Lines Matching refs:pg_buff
154 static bool mlxsw_sp_sb_cm_exists(u8 pg_buff, enum mlxsw_reg_sbxx_dir dir) in mlxsw_sp_sb_cm_exists() argument
157 return pg_buff < MLXSW_SP_SB_ING_TC_COUNT; in mlxsw_sp_sb_cm_exists()
159 return pg_buff < MLXSW_SP_SB_EG_TC_COUNT; in mlxsw_sp_sb_cm_exists()
163 u8 local_port, u8 pg_buff, in mlxsw_sp_sb_cm_get() argument
168 WARN_ON(!mlxsw_sp_sb_cm_exists(pg_buff, dir)); in mlxsw_sp_sb_cm_get()
170 return &sb_port->ing_cms[pg_buff]; in mlxsw_sp_sb_cm_get()
172 return &sb_port->eg_cms[pg_buff]; in mlxsw_sp_sb_cm_get()
206 u8 pg_buff, u32 min_buff, u32 max_buff, in mlxsw_sp_sb_cm_write() argument
215 mlxsw_reg_sbcm_pack(sbcm_pl, local_port, pg_buff, des->dir, in mlxsw_sp_sb_cm_write()
221 if (mlxsw_sp_sb_cm_exists(pg_buff, des->dir)) { in mlxsw_sp_sb_cm_write()
226 cm = mlxsw_sp_sb_cm_get(mlxsw_sp, local_port, pg_buff, in mlxsw_sp_sb_cm_write()
1462 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_get() local
1465 pg_buff, dir); in mlxsw_sp_sb_tc_pool_bind_get()
1484 u8 pg_buff = tc_index; in mlxsw_sp_sb_tc_pool_bind_set() local
1519 return mlxsw_sp_sb_cm_write(mlxsw_sp, local_port, pg_buff, in mlxsw_sp_sb_tc_pool_bind_set()
1736 u8 pg_buff = tc_index; in mlxsw_sp_sb_occ_tc_port_bind_get() local
1739 pg_buff, dir); in mlxsw_sp_sb_occ_tc_port_bind_get()