Searched refs:nve (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/mellanox/mlxsw/ |
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->num_max_mc_entries[proto]; in mlxsw_sp_nve_mc_record_create() 314 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_record_get() local 317 num_entries < nve->num_max_mc_entries[proto]) in mlxsw_sp_nve_mc_record_get() 336 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; in mlxsw_sp_nve_mc_free_entry_find() local [all …]
|
D | spectrum_nve_vxlan.c | 16 static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_can_offload() argument 81 static bool mlxsw_sp1_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_can_offload() argument 90 return mlxsw_sp_nve_vxlan_can_offload(nve, params, extack); in mlxsw_sp1_nve_vxlan_can_offload() 93 static void mlxsw_sp_nve_vxlan_config(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_config() argument 167 static int mlxsw_sp1_nve_vxlan_init(struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_init() argument 170 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init() 185 err = mlxsw_sp1_nve_vxlan_rtdp_set(mlxsw_sp, nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init() 192 nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init() 208 static void mlxsw_sp1_nve_vxlan_fini(struct mlxsw_sp_nve *nve) in mlxsw_sp1_nve_vxlan_fini() argument 210 struct mlxsw_sp_nve_config *config = &nve->config; in mlxsw_sp1_nve_vxlan_fini() [all …]
|
D | spectrum_nve.h | 36 bool (*can_offload)(const struct mlxsw_sp_nve *nve, 39 void (*nve_config)(const struct mlxsw_sp_nve *nve, 42 int (*init)(struct mlxsw_sp_nve *nve, 44 void (*fini)(struct mlxsw_sp_nve *nve);
|
D | spectrum.h | 176 struct mlxsw_sp_nve *nve; member
|
/drivers/net/ethernet/stmicro/stmmac/ |
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 << 16) & NPE; in dwmac5_rxp_config() [all …]
|
D | dwxgmac2_core.c | 1072 int i, ret, nve = 0; in dwxgmac3_rxp_config() local 1106 entry->val.ok_index = nve + 2; in dwxgmac3_rxp_config() 1109 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1113 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1117 ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); in dwxgmac3_rxp_config() 1120 frag->table_pos = nve++; in dwxgmac3_rxp_config() 1125 if (!nve) in dwxgmac3_rxp_config() 1134 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config() 1138 entry->table_pos = nve++; in dwxgmac3_rxp_config() 1142 val = (nve << 16) & XGMAC_NPE; in dwxgmac3_rxp_config() [all …]
|