Lines Matching refs:prs
101 struct mlxsw_sp_sb_pr *prs; member
113 const struct mlxsw_sp_sb_pr *prs; member
151 return &mlxsw_sp->sb->prs[pool_index]; in mlxsw_sp_sb_pr_get()
628 struct mlxsw_sp_sb_pr *prs; in mlxsw_sp_sb_ports_init() local
638 prs = kcalloc(mlxsw_sp->sb_vals->pool_count, sizeof(*prs), in mlxsw_sp_sb_ports_init()
640 if (!prs) { in mlxsw_sp_sb_ports_init()
644 mlxsw_sp->sb->prs = prs; in mlxsw_sp_sb_ports_init()
657 kfree(mlxsw_sp->sb->prs); in mlxsw_sp_sb_ports_init()
670 kfree(mlxsw_sp->sb->prs); in mlxsw_sp_sb_ports_fini()
731 const struct mlxsw_sp_sb_pr *prs, in mlxsw_sp_sb_prs_init() argument
746 u32 size = prs[i].size; in mlxsw_sp_sb_prs_init()
760 u32 size = prs[i].size; in mlxsw_sp_sb_prs_init()
764 err = mlxsw_sp_sb_pr_write(mlxsw_sp, i, prs[i].mode, in mlxsw_sp_sb_prs_init()
768 err = mlxsw_sp_sb_pr_write(mlxsw_sp, i, prs[i].mode, in mlxsw_sp_sb_prs_init()
772 err = mlxsw_sp_sb_pr_write(mlxsw_sp, i, prs[i].mode, in mlxsw_sp_sb_prs_init()
1154 .prs = mlxsw_sp1_sb_prs,
1170 .prs = mlxsw_sp2_sb_prs,
1252 err = mlxsw_sp_sb_prs_init(mlxsw_sp, mlxsw_sp->sb_vals->prs, in mlxsw_sp_buffers_init()
1356 pr = &mlxsw_sp->sb_vals->prs[pool_index]; in mlxsw_sp_sb_pool_set()