Home
last modified time | relevance | path

Searched refs:pg_buff (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_buffers.c154 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()
[all …]
Dreg.h10778 MLXSW_ITEM32(reg, sbcm, pg_buff, 0x00, 8, 6);
10822 static inline void mlxsw_reg_sbcm_pack(char *payload, u8 local_port, u8 pg_buff, in mlxsw_reg_sbcm_pack() argument
10829 mlxsw_reg_sbcm_pg_buff_set(payload, pg_buff); in mlxsw_reg_sbcm_pack()