Lines Matching refs:fid_index
35 u16 fid_index; member
61 .key_len = sizeof_field(struct mlxsw_sp_fid, fid_index),
62 .key_offset = offsetof(struct mlxsw_sp_fid, fid_index),
140 bool mlxsw_sp_fid_is_dummy(struct mlxsw_sp *mlxsw_sp, u16 fid_index) in mlxsw_sp_fid_is_dummy() argument
147 return fid_family->start_index == fid_index; in mlxsw_sp_fid_is_dummy()
151 u16 fid_index) in mlxsw_sp_fid_lookup_by_index() argument
155 fid = rhashtable_lookup_fast(&mlxsw_sp->fid_core->fid_ht, &fid_index, in mlxsw_sp_fid_lookup_by_index()
363 fid->fid_index, local_port, member); in mlxsw_sp_fid_flood_set()
382 return fid->fid_index; in mlxsw_sp_fid_index()
420 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021q_setup()
435 smpe = fid->fid_family->smpe_index_valid ? fid->fid_index : 0; in mlxsw_sp_fid_op()
437 mlxsw_reg_sfmr_pack(sfmr_pl, mlxsw_sp_sfmr_op(valid), fid->fid_index, in mlxsw_sp_fid_op()
451 smpe = fid->fid_family->smpe_index_valid ? fid->fid_index : 0; in mlxsw_sp_fid_edit_op()
454 fid->fid_index, fid->fid_offset, in mlxsw_sp_fid_edit_op()
483 mlxsw_reg_svfa_vni_pack(svfa_pl, valid, fid->fid_index, in mlxsw_sp_fid_vni_to_fid_map()
515 mlxsw_reg_svfa_vid_pack(svfa_pl, valid, fid->fid_index, vid, irif_valid, in mlxsw_sp_fid_vid_to_fid_map()
541 fid->fid_index, pv->vid, irif_valid, in mlxsw_sp_fid_port_vid_to_fid_rif_update_one()
762 mlxsw_reg_svfa_port_vid_pack(svfa_pl, local_port, valid, fid->fid_index, in __mlxsw_sp_fid_port_vid_map()
778 fid->fid_offset = fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021d_setup()
797 u16 nr_fids, fid_index; in mlxsw_sp_fid_8021d_index_alloc() local
800 fid_index = find_first_zero_bit(fid_family->fids_bitmap, nr_fids); in mlxsw_sp_fid_8021d_index_alloc()
801 if (fid_index == nr_fids) in mlxsw_sp_fid_8021d_index_alloc()
803 *p_fid_index = fid_family->start_index + fid_index; in mlxsw_sp_fid_8021d_index_alloc()
922 mlxsw_reg_smpe_pack(smpe_pl, local_port, fid->fid_index, in mlxsw_sp_fid_mpe_table_map()
1147 return fid->fid_index == rif_index + fid->fid_family->start_index; in mlxsw_sp_fid_rfid_compare()
1561 u16 fid_index; in mlxsw_sp_fid_get() local
1576 err = fid->fid_family->ops->index_alloc(fid, arg, &fid_index); in mlxsw_sp_fid_get()
1579 fid->fid_index = fid_index; in mlxsw_sp_fid_get()
1580 __set_bit(fid_index - fid_family->start_index, fid_family->fids_bitmap); in mlxsw_sp_fid_get()
1600 __clear_bit(fid_index - fid_family->start_index, in mlxsw_sp_fid_get()
1619 __clear_bit(fid->fid_index - fid_family->start_index, in mlxsw_sp_fid_put()