Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve.c195 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 …]
Dspectrum_nve_vxlan.c24 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->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init()
[all …]
Dspectrum_nve.h37 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);
Dspectrum.h160 struct mlxsw_sp_nve *nve; member
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Ddwmac5.c416 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 << 16) & NPE; in dwmac5_rxp_config()
[all …]
Ddwxgmac2_core.c1013 int i, ret, nve = 0; in dwxgmac3_rxp_config() local
1047 entry->val.ok_index = nve + 2; in dwxgmac3_rxp_config()
1050 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config()
1054 entry->table_pos = nve++; in dwxgmac3_rxp_config()
1058 ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); in dwxgmac3_rxp_config()
1061 frag->table_pos = nve++; in dwxgmac3_rxp_config()
1066 if (!nve) in dwxgmac3_rxp_config()
1075 ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); in dwxgmac3_rxp_config()
1079 entry->table_pos = nve++; in dwxgmac3_rxp_config()
1083 val = (nve << 16) & XGMAC_NPE; in dwxgmac3_rxp_config()
[all …]