Lines Matching refs:max_buff
30 u32 max_buff; member
42 u32 max_buff; member
48 u32 max_buff; member
221 u8 pg_buff, u32 min_buff, u32 max_buff, in mlxsw_sp_sb_cm_write() argument
231 min_buff, max_buff, infi_max, des->pool); in mlxsw_sp_sb_cm_write()
238 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, in mlxsw_sp_sb_cm_write()
244 cm->max_buff = max_buff; in mlxsw_sp_sb_cm_write()
251 u16 pool_index, u32 min_buff, u32 max_buff) in mlxsw_sp_sb_pm_write() argument
260 min_buff, max_buff); in mlxsw_sp_sb_pm_write()
267 pm->max_buff = max_buff; in mlxsw_sp_sb_pm_write()
810 .max_buff = _max_buff, \
817 .max_buff = _max_buff, \
824 .max_buff = _max_buff, \
831 .max_buff = _max_buff, \
960 u32 max_buff; in __mlxsw_sp_sb_cms_init() local
969 max_buff = cm->max_buff; in __mlxsw_sp_sb_cms_init()
970 if (max_buff == MLXSW_SP_SB_INFI) { in __mlxsw_sp_sb_cms_init()
977 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, in __mlxsw_sp_sb_cms_init()
978 max_buff); in __mlxsw_sp_sb_cms_init()
980 min_buff, max_buff, in __mlxsw_sp_sb_cms_init()
1018 .max_buff = _max_buff, \
1075 u32 max_buff; in mlxsw_sp_sb_pms_init() local
1083 max_buff = pm->max_buff; in mlxsw_sp_sb_pms_init()
1085 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, max_buff); in mlxsw_sp_sb_pms_init()
1087 max_buff); in mlxsw_sp_sb_pms_init()
1111 .max_buff = _max_buff, \
1150 mlxsw_reg_sbmm_pack(sbmm_pl, i, min_buff, mc->max_buff, in mlxsw_sp_sb_mms_init()
1407 u32 max_buff) in mlxsw_sp_sb_threshold_out() argument
1412 return max_buff - MLXSW_SP_SB_THRESHOLD_TO_ALPHA_OFFSET; in mlxsw_sp_sb_threshold_out()
1413 return mlxsw_sp_cells_bytes(mlxsw_sp, max_buff); in mlxsw_sp_sb_threshold_out()
1450 pm->max_buff); in mlxsw_sp_sb_port_pool_get()
1462 u32 max_buff; in mlxsw_sp_sb_port_pool_set() local
1471 threshold, &max_buff, extack); in mlxsw_sp_sb_port_pool_set()
1476 0, max_buff); in mlxsw_sp_sb_port_pool_set()
1494 cm->max_buff); in mlxsw_sp_sb_tc_pool_bind_get()
1512 u32 max_buff; in mlxsw_sp_sb_tc_pool_bind_set() local
1535 if (cm->freeze_thresh && cm->max_buff != threshold) { in mlxsw_sp_sb_tc_pool_bind_set()
1541 threshold, &max_buff, extack); in mlxsw_sp_sb_tc_pool_bind_set()
1546 0, max_buff, false, pool_index); in mlxsw_sp_sb_tc_pool_bind_set()