Lines Matching refs:fid_index

36 	u16 fid_index;  member
62 .key_len = sizeof_field(struct mlxsw_sp_fid, fid_index),
63 .key_offset = offsetof(struct mlxsw_sp_fid, fid_index),
190 u16 fid_index) in mlxsw_sp_fid_lookup_by_index() argument
194 fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->fid_ht, &fid_index, in mlxsw_sp_fid_lookup_by_index()
450 fid->fid_index, local_port, member); in mlxsw_sp_fid_flood_set()
469 return fid->fid_index; in mlxsw_sp_fid_index()
507 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021q_setup()
523 smpe = fid->fid_family->smpe_index_valid ? fid->fid_index : 0; in mlxsw_sp_fid_pack()
525 mlxsw_reg_sfmr_pack(sfmr_pl, op, fid->fid_index, in mlxsw_sp_fid_pack()
624 mlxsw_reg_svfa_vni_pack(svfa_pl, valid, fid->fid_index, in mlxsw_sp_fid_vni_to_fid_map()
656 mlxsw_reg_svfa_vid_pack(svfa_pl, valid, fid->fid_index, vid, irif_valid, in mlxsw_sp_fid_vid_to_fid_map()
682 fid->fid_index, pv->vid, irif_valid, in mlxsw_sp_fid_port_vid_to_fid_rif_update_one()
903 mlxsw_reg_svfa_port_vid_pack(svfa_pl, local_port, valid, fid->fid_index, in __mlxsw_sp_fid_port_vid_map()
919 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021d_setup()
939 u16 nr_fids, fid_index; in mlxsw_sp_fid_8021d_index_alloc() local
942 fid_index = find_first_zero_bit(fid_family->fids_bitmap, nr_fids); in mlxsw_sp_fid_8021d_index_alloc()
943 if (fid_index == nr_fids) in mlxsw_sp_fid_8021d_index_alloc()
945 *p_fid_index = fid_family->start_index + fid_index; in mlxsw_sp_fid_8021d_index_alloc()
1064 mlxsw_reg_smpe_pack(smpe_pl, local_port, fid->fid_index, in mlxsw_sp_fid_mpe_table_map()
1412 return fid->fid_index == rif_index + fid->fid_family->start_index; in mlxsw_sp_fid_rfid_compare()
2017 u16 fid_index; in mlxsw_sp_fid_get() local
2032 err = fid->fid_family->ops->index_alloc(fid, arg, &fid_index); in mlxsw_sp_fid_get()
2035 fid->fid_index = fid_index; in mlxsw_sp_fid_get()
2036 __set_bit(fid_index - fid_family->start_index, fid_family->fids_bitmap); in mlxsw_sp_fid_get()
2059 __clear_bit(fid_index - fid_family->start_index, in mlxsw_sp_fid_get()
2078 __clear_bit(fid->fid_index - fid_family->start_index, in mlxsw_sp_fid_put()