fid_core 156 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_fid_core *fid_core; fid_core 134 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_family = mlxsw_sp->fid_core->fid_family_arr[fid_type]; fid_core 149 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->fid_ht, &fid_index, fid_core 183 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->vni_ht, &vni, fid_core 252 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c err = rhashtable_lookup_insert_fast(&mlxsw_sp->fid_core->vni_ht, fid_core 267 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_remove_fast(&mlxsw_sp->fid_core->vni_ht, &fid->vni_ht_node, fid_core 283 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_remove_fast(&mlxsw_sp->fid_core->vni_ht, &fid->vni_ht_node, fid_core 386 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c struct mlxsw_sp_fid_core *fid_core = mlxsw_sp->fid_core; fid_core 388 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c return fid_core->fid_family_arr[type]->rif_type; fid_core 531 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 0) fid_core 544 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 0) fid_core 727 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port]++ == 0) { fid_core 736 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[local_port]--; fid_core 749 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 1) fid_core 751 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[local_port]--; fid_core 928 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port]++ == 0) { fid_core 937 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[local_port]--; fid_core 948 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 1) fid_core 950 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[local_port]--; fid_core 1029 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_family = mlxsw_sp->fid_core->fid_family_arr[type]; fid_core 1053 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_family = mlxsw_sp->fid_core->fid_family_arr[type]; fid_core 1072 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c err = rhashtable_insert_fast(&mlxsw_sp->fid_core->fid_ht, &fid->ht_node, fid_core 1100 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_remove_fast(&mlxsw_sp->fid_core->fid_ht, fid_core 1213 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->fid_family_arr[tmpl->type] = fid_family; fid_core 1228 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->fid_family_arr[fid_family->type] = NULL; fid_core 1242 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[mlxsw_sp_port->local_port] = 0; fid_core 1251 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core->port_fid_mappings[mlxsw_sp_port->local_port] = 0; fid_core 1257 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c struct mlxsw_sp_fid_core *fid_core; fid_core 1260 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_core = kzalloc(sizeof(*mlxsw_sp->fid_core), GFP_KERNEL); fid_core 1261 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (!fid_core) fid_core 1263 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_sp->fid_core = fid_core; fid_core 1265 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c err = rhashtable_init(&fid_core->fid_ht, &mlxsw_sp_fid_ht_params); fid_core 1269 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c err = rhashtable_init(&fid_core->vni_ht, &mlxsw_sp_fid_vni_ht_params); fid_core 1273 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), fid_core 1275 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c if (!fid_core->port_fid_mappings) { fid_core 1294 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_family = fid_core->fid_family_arr[i]; fid_core 1297 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c kfree(fid_core->port_fid_mappings); fid_core 1299 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_destroy(&fid_core->vni_ht); fid_core 1301 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_destroy(&fid_core->fid_ht); fid_core 1303 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c kfree(fid_core); fid_core 1309 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c struct mlxsw_sp_fid_core *fid_core = mlxsw_sp->fid_core; fid_core 1314 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_core->fid_family_arr[i]); fid_core 1315 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c kfree(fid_core->port_fid_mappings); fid_core 1316 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_destroy(&fid_core->vni_ht); fid_core 1317 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c rhashtable_destroy(&fid_core->fid_ht); fid_core 1318 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c kfree(fid_core);