/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_nve.c | 205 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_find() local 207 return rhashtable_lookup_fast(&nve->mc_list_ht, key, in mlxsw_sp_nve_mc_list_find() 215 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_create() local 226 err = rhashtable_insert_fast(&nve->mc_list_ht, &mc_list->ht_node, in mlxsw_sp_nve_mc_list_create() 241 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_destroy() local 243 rhashtable_remove_fast(&nve->mc_list_ht, &mc_list->ht_node, in mlxsw_sp_nve_mc_list_destroy() 276 unsigned int num_max_entries = mlxsw_sp->nve in mlxsw_sp_nve_mc_record_create() 324 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_mc_record_get() local 346 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_free_entry_find() local 417 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_entry_find() local 685 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_record_delete() local 729 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_tunnel_init() local 761 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_tunnel_fini() local 848 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_ipv6_ht_insert() local 877 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_ipv6_ht_remove() local 924 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_ipv6_addr_flush_by_fid() local 940 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_fid_enable() local 1119 struct mlxsw_sp_nve *nve; mlxsw_sp_nve_init() local [all...] |
H A D | spectrum_nve_vxlan.c | 58 static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_can_offload() argument 119 static bool mlxsw_sp1_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_can_offload() argument 128 return mlxsw_sp_nve_vxlan_can_offload(nve, params, extack); in mlxsw_sp1_nve_vxlan_can_offload() 147 static void mlxsw_sp_nve_vxlan_config(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_config() argument 232 static int mlxsw_sp1_nve_vxlan_init(struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_init() argument 235 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init() 250 err = mlxsw_sp1_nve_vxlan_rtdp_set(mlxsw_sp, nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init() 257 nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init() 273 static void mlxsw_sp1_nve_vxlan_fini(struct mlxsw_sp_nve *nve) in mlxsw_sp1_nve_vxlan_fini() argument 275 struct mlxsw_sp_nve_config *config = &nve in mlxsw_sp1_nve_vxlan_fini() 413 mlxsw_sp2_nve_vxlan_init(struct mlxsw_sp_nve *nve, const struct mlxsw_sp_nve_config *config) mlxsw_sp2_nve_vxlan_init() argument 455 mlxsw_sp2_nve_vxlan_fini(struct mlxsw_sp_nve *nve) mlxsw_sp2_nve_vxlan_fini() argument [all...] |
H A D | spectrum_nve.h | 38 bool (*can_offload)(const struct mlxsw_sp_nve *nve, 41 void (*nve_config)(const struct mlxsw_sp_nve *nve, 44 int (*init)(struct mlxsw_sp_nve *nve, 46 void (*fini)(struct mlxsw_sp_nve *nve);
|
H A D | spectrum.h | 181 struct mlxsw_sp_nve *nve; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_nve.c | 195 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_find() local 197 return rhashtable_lookup_fast(&nve->mc_list_ht, key, in mlxsw_sp_nve_mc_list_find() 205 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_create() local 216 err = rhashtable_insert_fast(&nve->mc_list_ht, &mc_list->ht_node, in mlxsw_sp_nve_mc_list_create() 231 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_list_destroy() local 233 rhashtable_remove_fast(&nve->mc_list_ht, &mc_list->ht_node, in mlxsw_sp_nve_mc_list_destroy() 266 unsigned int num_max_entries = mlxsw_sp->nve in mlxsw_sp_nve_mc_record_create() 314 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_mc_record_get() local 336 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_free_entry_find() local 407 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_entry_find() local 675 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; mlxsw_sp_nve_mc_record_delete() local 719 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_tunnel_init() local 751 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_tunnel_fini() local 794 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; mlxsw_sp_nve_fid_enable() local 971 struct mlxsw_sp_nve *nve; mlxsw_sp_nve_init() local [all...] |
H A D | spectrum_nve_vxlan.c | 24 static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_can_offload() argument 89 static void mlxsw_sp_nve_vxlan_config(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_config() argument 119 int parsing_depth = mlxsw_sp->nve->inc_parsing_depth_refs ? in mlxsw_sp_nve_parsing_set() 132 mlxsw_sp->nve->inc_parsing_depth_refs++; in __mlxsw_sp_nve_inc_parsing_depth_get() 140 mlxsw_sp->nve->inc_parsing_depth_refs--; in __mlxsw_sp_nve_inc_parsing_depth_get() 148 mlxsw_sp->nve->inc_parsing_depth_refs--; in __mlxsw_sp_nve_inc_parsing_depth_put() 154 __be16 udp_dport = mlxsw_sp->nve->config.udp_dport; in mlxsw_sp_nve_inc_parsing_depth_get() 161 __be16 udp_dport = mlxsw_sp->nve->config.udp_dport; in mlxsw_sp_nve_inc_parsing_depth_put() 223 static int mlxsw_sp1_nve_vxlan_init(struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_init() argument 226 struct mlxsw_sp *mlxsw_sp = nve in mlxsw_sp1_nve_vxlan_init() 258 mlxsw_sp1_nve_vxlan_fini(struct mlxsw_sp_nve *nve) mlxsw_sp1_nve_vxlan_fini() argument 363 mlxsw_sp2_nve_vxlan_init(struct mlxsw_sp_nve *nve, const struct mlxsw_sp_nve_config *config) mlxsw_sp2_nve_vxlan_init() argument 399 mlxsw_sp2_nve_vxlan_fini(struct mlxsw_sp_nve *nve) mlxsw_sp2_nve_vxlan_fini() argument [all...] |
H A D | spectrum_nve.h | 37 bool (*can_offload)(const struct mlxsw_sp_nve *nve, 40 void (*nve_config)(const struct mlxsw_sp_nve *nve, 43 int (*init)(struct mlxsw_sp_nve *nve, 45 void (*fini)(struct mlxsw_sp_nve *nve);
|
H A D | spectrum.h | 160 struct mlxsw_sp_nve *nve; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac5.c | 416 int i, ret, nve = 0; in dwmac5_rxp_config() local 450 entry->val.ok_index = nve + 2; in dwmac5_rxp_config() 453 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config() 457 entry->table_pos = nve++; in dwmac5_rxp_config() 461 ret = dwmac5_rxp_update_single_entry(ioaddr, frag, nve); in dwmac5_rxp_config() 464 frag->table_pos = nve++; in dwmac5_rxp_config() 469 if (!nve) in dwmac5_rxp_config() 478 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config() 482 entry->table_pos = nve++; in dwmac5_rxp_config() 486 val = (nve << 1 in dwmac5_rxp_config() [all...] |
H A D | dwxgmac2_core.c | 1069 int i, ret, nve = 0; in dwxgmac3_rxp_config() local 1103 entry->val.ok_index = nve + 2; in dwxgmac3_rxp_config() 1106 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1110 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1114 ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); in dwxgmac3_rxp_config() 1117 frag->table_pos = nve++; in dwxgmac3_rxp_config() 1122 if (!nve) in dwxgmac3_rxp_config() 1131 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1135 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1139 val = (nve << 1 in dwxgmac3_rxp_config() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac5.c | 437 int i, ret, nve = 0; in dwmac5_rxp_config() local 471 entry->val.ok_index = nve + 2; in dwmac5_rxp_config() 474 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config() 478 entry->table_pos = nve++; in dwmac5_rxp_config() 482 ret = dwmac5_rxp_update_single_entry(ioaddr, frag, nve); in dwmac5_rxp_config() 485 frag->table_pos = nve++; in dwmac5_rxp_config() 490 if (!nve) in dwmac5_rxp_config() 499 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config() 503 entry->table_pos = nve++; in dwmac5_rxp_config() 507 val = (nve << 1 in dwmac5_rxp_config() [all...] |
H A D | dwxgmac2_core.c | 1115 int i, ret, nve = 0; in dwxgmac3_rxp_config() local 1149 entry->val.ok_index = nve + 2; in dwxgmac3_rxp_config() 1152 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1156 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1160 ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); in dwxgmac3_rxp_config() 1163 frag->table_pos = nve++; in dwxgmac3_rxp_config() 1168 if (!nve) in dwxgmac3_rxp_config() 1177 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1181 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1185 val = (nve << 1 in dwxgmac3_rxp_config() [all...] |