Home
last modified time | relevance | path

Searched refs:nve (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve.c205 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->num_max_mc_entries[proto]; in mlxsw_sp_nve_mc_record_create()
324 struct mlxsw_sp_nve *nve = mlxsw_sp->nve; in mlxsw_sp_nve_mc_record_get() local
327 num_entries < nve->num_max_mc_entries[proto]) in mlxsw_sp_nve_mc_record_get()
346 struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; in mlxsw_sp_nve_mc_free_entry_find() local
[all …]
Dspectrum_nve_vxlan.c56 static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_can_offload() argument
117 static bool mlxsw_sp1_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_can_offload() argument
126 return mlxsw_sp_nve_vxlan_can_offload(nve, params, extack); in mlxsw_sp1_nve_vxlan_can_offload()
145 static void mlxsw_sp_nve_vxlan_config(const struct mlxsw_sp_nve *nve, in mlxsw_sp_nve_vxlan_config() argument
230 static int mlxsw_sp1_nve_vxlan_init(struct mlxsw_sp_nve *nve, in mlxsw_sp1_nve_vxlan_init() argument
233 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init()
248 err = mlxsw_sp1_nve_vxlan_rtdp_set(mlxsw_sp, nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init()
255 nve->tunnel_index); in mlxsw_sp1_nve_vxlan_init()
271 static void mlxsw_sp1_nve_vxlan_fini(struct mlxsw_sp_nve *nve) in mlxsw_sp1_nve_vxlan_fini() argument
273 struct mlxsw_sp_nve_config *config = &nve->config; in mlxsw_sp1_nve_vxlan_fini()
[all …]
Dspectrum_nve.h38 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);
Dspectrum.h179 struct mlxsw_sp_nve *nve; member
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac5.c423 int i, ret, nve = 0; in dwmac5_rxp_config() local
457 entry->val.ok_index = nve + 2; in dwmac5_rxp_config()
460 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config()
464 entry->table_pos = nve++; in dwmac5_rxp_config()
468 ret = dwmac5_rxp_update_single_entry(ioaddr, frag, nve); in dwmac5_rxp_config()
471 frag->table_pos = nve++; in dwmac5_rxp_config()
476 if (!nve) in dwmac5_rxp_config()
485 ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); in dwmac5_rxp_config()
489 entry->table_pos = nve++; in dwmac5_rxp_config()
493 val = (nve << 16) & NPE; in dwmac5_rxp_config()
[all …]
Ddwxgmac2_core.c1016 int i, ret, nve = 0; in dwxgmac3_rxp_config() local
1050 entry->val.ok_index = nve + 2; in dwxgmac3_rxp_config()
1053 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config()
1057 entry->table_pos = nve++; in dwxgmac3_rxp_config()
1061 ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); in dwxgmac3_rxp_config()
1064 frag->table_pos = nve++; in dwxgmac3_rxp_config()
1069 if (!nve) in dwxgmac3_rxp_config()
1078 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config()
1082 entry->table_pos = nve++; in dwxgmac3_rxp_config()
1086 val = (nve << 16) & XGMAC_NPE; in dwxgmac3_rxp_config()
[all …]