Searched refs:mid_base (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_pgt.c | 50 void mlxsw_sp_pgt_mid_free(struct mlxsw_sp *mlxsw_sp, u16 mid_base) in mlxsw_sp_pgt_mid_free() argument 53 WARN_ON(idr_remove(&mlxsw_sp->pgt->pgt_idr, mid_base)); in mlxsw_sp_pgt_mid_free() 58 mlxsw_sp_pgt_mid_alloc_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, u16 count) in mlxsw_sp_pgt_mid_alloc_range() argument 71 if (WARN_ON(idr_cursor != mid_base)) { in mlxsw_sp_pgt_mid_alloc_range() 78 mid_base, mid_base + count, GFP_KERNEL); in mlxsw_sp_pgt_mid_alloc_range() 88 idr_remove(&mlxsw_sp->pgt->pgt_idr, mid_base + i); in mlxsw_sp_pgt_mid_alloc_range() 95 mlxsw_sp_pgt_mid_free_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, u16 count) in mlxsw_sp_pgt_mid_free_range() argument 103 WARN_ON_ONCE(idr_remove(pgt_idr, mid_base + i)); in mlxsw_sp_pgt_mid_free_range()
|
D | spectrum_fid.c | 1667 u16 num_fids, mid_base; in mlxsw_sp_fid_flood_table_init() local 1670 mid_base = mlxsw_sp_fid_flood_table_mid(fid_family, flood_table, 0); in mlxsw_sp_fid_flood_table_init() 1672 err = mlxsw_sp_pgt_mid_alloc_range(mlxsw_sp, mid_base, num_fids); in mlxsw_sp_fid_flood_table_init() 1684 flood_table->table_type, 0, mid_base); in mlxsw_sp_fid_flood_table_init() 1694 mlxsw_sp_pgt_mid_free_range(mlxsw_sp, mid_base, num_fids); in mlxsw_sp_fid_flood_table_init() 1703 u16 num_fids, mid_base; in mlxsw_sp_fid_flood_table_fini() local 1705 mid_base = mlxsw_sp_fid_flood_table_mid(fid_family, flood_table, 0); in mlxsw_sp_fid_flood_table_fini() 1707 mlxsw_sp_pgt_mid_free_range(mlxsw_sp, mid_base, num_fids); in mlxsw_sp_fid_flood_table_fini()
|
D | spectrum.h | 1483 void mlxsw_sp_pgt_mid_free(struct mlxsw_sp *mlxsw_sp, u16 mid_base); 1484 int mlxsw_sp_pgt_mid_alloc_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, 1486 void mlxsw_sp_pgt_mid_free_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base,
|
D | reg.h | 1114 MLXSW_ITEM32(reg, sfgc, mid_base, 0x10, 0, 16); 1120 unsigned int flood_table, u16 mid_base) in mlxsw_reg_sfgc_pack() argument 1127 mlxsw_reg_sfgc_mid_base_set(payload, mid_base); in mlxsw_reg_sfgc_pack()
|