Lines Matching refs:sb_vals
186 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_pr_write()
225 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_cm_write()
254 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_pm_write()
275 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_pm_occ_clear()
301 &mlxsw_sp->sb_vals->pool_dess[pool_index]; in mlxsw_sp_sb_pm_occ_query()
627 pms = kcalloc(mlxsw_sp->sb_vals->pool_count, sizeof(*pms), in mlxsw_sp_sb_port_init()
653 prs = kcalloc(mlxsw_sp->sb_vals->pool_count, sizeof(*prs), in mlxsw_sp_sb_ports_init()
953 const struct mlxsw_sp_sb_vals *sb_vals = mlxsw_sp->sb_vals; in __mlxsw_sp_sb_cms_init() local
965 if (WARN_ON(sb_vals->pool_dess[cm->pool_index].dir != dir)) in __mlxsw_sp_sb_cms_init()
997 mlxsw_sp->sb_vals->cms_ingress, in mlxsw_sp_port_sb_cms_init()
998 mlxsw_sp->sb_vals->cms_ingress_count); in mlxsw_sp_port_sb_cms_init()
1004 mlxsw_sp->sb_vals->cms_egress, in mlxsw_sp_port_sb_cms_init()
1005 mlxsw_sp->sb_vals->cms_egress_count); in mlxsw_sp_port_sb_cms_init()
1011 mlxsw_sp->sb_vals->cms_cpu, in mlxsw_sp_cpu_port_sb_cms_init()
1012 mlxsw_sp->sb_vals->cms_cpu_count); in mlxsw_sp_cpu_port_sb_cms_init()
1072 for (i = 0; i < mlxsw_sp->sb_vals->pool_count; i++) { in mlxsw_sp_sb_pms_init()
1078 des = &mlxsw_sp->sb_vals->pool_dess[i]; in mlxsw_sp_sb_pms_init()
1099 mlxsw_sp->sb_vals->pms, false); in mlxsw_sp_port_sb_pms_init()
1104 return mlxsw_sp_sb_pms_init(mlxsw_sp, 0, mlxsw_sp->sb_vals->pms_cpu, in mlxsw_sp_cpu_port_sb_pms_init()
1139 for (i = 0; i < mlxsw_sp->sb_vals->mms_count; i++) { in mlxsw_sp_sb_mms_init()
1144 mc = &mlxsw_sp->sb_vals->mms[i]; in mlxsw_sp_sb_mms_init()
1145 des = &mlxsw_sp->sb_vals->pool_dess[mc->pool_index]; in mlxsw_sp_sb_mms_init()
1164 for (i = 0; i < mlxsw_sp->sb_vals->pool_count; ++i) { in mlxsw_sp_pool_count()
1165 if (mlxsw_sp->sb_vals->pool_dess[i].dir == in mlxsw_sp_pool_count()
1278 err = mlxsw_sp_sb_prs_init(mlxsw_sp, mlxsw_sp->sb_vals->prs, in mlxsw_sp_buffers_init()
1279 mlxsw_sp->sb_vals->pool_dess, in mlxsw_sp_buffers_init()
1280 mlxsw_sp->sb_vals->pool_count); in mlxsw_sp_buffers_init()
1362 dir = mlxsw_sp->sb_vals->pool_dess[pool_index].dir; in mlxsw_sp_sb_pool_get()
1382 pr = &mlxsw_sp->sb_vals->prs[pool_index]; in mlxsw_sp_sb_pool_set()
1520 if (dir != mlxsw_sp->sb_vals->pool_dess[pool_index].dir) { in mlxsw_sp_sb_tc_pool_bind_set()
1526 cm = &mlxsw_sp->sb_vals->cms_ingress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1528 cm = &mlxsw_sp->sb_vals->cms_egress[tc_index]; in mlxsw_sp_sb_tc_pool_bind_set()
1651 for (i = 0; i < mlxsw_sp->sb_vals->pool_count; i++) { in mlxsw_sp_sb_occ_snapshot()
1725 for (i = 0; i < mlxsw_sp->sb_vals->pool_count; i++) { in mlxsw_sp_sb_occ_max_clear()