Lines Matching refs:fid_index

25 	u16 fid_index;  member
164 return fid->fid_index; in mlxsw_sp_fid_index()
210 static int mlxsw_sp_fid_op(struct mlxsw_sp *mlxsw_sp, u16 fid_index, in mlxsw_sp_fid_op() argument
215 mlxsw_reg_sfmr_pack(sfmr_pl, mlxsw_sp_sfmr_op(valid), fid_index, in mlxsw_sp_fid_op()
220 static int mlxsw_sp_fid_vid_map(struct mlxsw_sp *mlxsw_sp, u16 fid_index, in mlxsw_sp_fid_vid_map() argument
226 mlxsw_reg_svfa_pack(svfa_pl, 0, mt, valid, fid_index, vid); in mlxsw_sp_fid_vid_map()
230 static int __mlxsw_sp_fid_port_vid_map(struct mlxsw_sp *mlxsw_sp, u16 fid_index, in __mlxsw_sp_fid_port_vid_map() argument
236 mlxsw_reg_svfa_pack(svfa_pl, local_port, mt, valid, fid_index, vid); in __mlxsw_sp_fid_port_vid_map()
246 err = mlxsw_sp_fid_op(mlxsw_sp, fid->fid_index, fid->fid_index, true); in mlxsw_sp_fid_8021q_configure()
251 err = mlxsw_sp_fid_vid_map(mlxsw_sp, fid->fid_index, fid_8021q->vid, in mlxsw_sp_fid_8021q_configure()
259 mlxsw_sp_fid_op(mlxsw_sp, fid->fid_index, 0, false); in mlxsw_sp_fid_8021q_configure()
269 mlxsw_sp_fid_vid_map(mlxsw_sp, fid->fid_index, fid_8021q->vid, false); in mlxsw_sp_fid_8021q_deconfigure()
270 mlxsw_sp_fid_op(mlxsw_sp, fid->fid_index, 0, false); in mlxsw_sp_fid_8021q_deconfigure()
297 return fid->fid_index; in mlxsw_sp_fid_8021q_flood_index()
313 return __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, local_port, in mlxsw_sp_fid_8021q_port_vid_map()
326 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, local_port, vid, in mlxsw_sp_fid_8021q_port_vid_unmap()
391 return mlxsw_sp_fid_op(fid_family->mlxsw_sp, fid->fid_index, 0, true); in mlxsw_sp_fid_8021d_configure()
396 mlxsw_sp_fid_op(fid->fid_family->mlxsw_sp, fid->fid_index, 0, false); in mlxsw_sp_fid_8021d_deconfigure()
403 u16 nr_fids, fid_index; in mlxsw_sp_fid_8021d_index_alloc() local
406 fid_index = find_first_zero_bit(fid_family->fids_bitmap, nr_fids); in mlxsw_sp_fid_8021d_index_alloc()
407 if (fid_index == nr_fids) in mlxsw_sp_fid_8021d_index_alloc()
409 *p_fid_index = fid_family->start_index + fid_index; in mlxsw_sp_fid_8021d_index_alloc()
424 return fid->fid_index - fid->fid_family->start_index; in mlxsw_sp_fid_8021d_flood_index()
441 err = __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_port_vp_mode_trans()
464 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_port_vp_mode_trans()
486 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_port_vlan_mode_trans()
500 err = __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_fid_8021d_port_vid_map()
515 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_fid_8021d_port_vid_map()
530 __mlxsw_sp_fid_port_vid_map(mlxsw_sp, fid->fid_index, in mlxsw_sp_fid_8021d_port_vid_unmap()
603 return fid->fid_index == rif_index + fid->fid_family->start_index; in mlxsw_sp_fid_rfid_compare()
667 return mlxsw_sp_fid_op(mlxsw_sp, fid->fid_index, 0, true); in mlxsw_sp_fid_dummy_configure()
672 mlxsw_sp_fid_op(fid->fid_family->mlxsw_sp, fid->fid_index, 0, false); in mlxsw_sp_fid_dummy_deconfigure()
717 u16 fid_index; in mlxsw_sp_fid_get() local
733 err = fid->fid_family->ops->index_alloc(fid, arg, &fid_index); in mlxsw_sp_fid_get()
736 fid->fid_index = fid_index; in mlxsw_sp_fid_get()
737 __set_bit(fid_index - fid_family->start_index, fid_family->fids_bitmap); in mlxsw_sp_fid_get()
751 __clear_bit(fid_index - fid_family->start_index, in mlxsw_sp_fid_get()
770 __clear_bit(fid->fid_index - fid_family->start_index, in mlxsw_sp_fid_put()