Lines Matching refs:mlxsw_sp
81 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, in mlxsw_sp_port_pb_init()
130 static int mlxsw_sp_sb_pools_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_pools_init() argument
142 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbpr), sbpr_pl); in mlxsw_sp_sb_pools_init()
249 static int mlxsw_sp_sb_cms_init(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_cms_init() argument
263 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbcm), sbcm_pl); in mlxsw_sp_sb_cms_init()
272 return mlxsw_sp_sb_cms_init(mlxsw_sp_port->mlxsw_sp, in mlxsw_sp_port_sb_cms_init()
277 static int mlxsw_sp_cpu_port_sb_cms_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_cpu_port_sb_cms_init() argument
279 return mlxsw_sp_sb_cms_init(mlxsw_sp, 0, mlxsw_sp_cpu_port_sb_cms, in mlxsw_sp_cpu_port_sb_cms_init()
332 err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, in mlxsw_sp_port_sb_pms_init()
375 static int mlxsw_sp_sb_mms_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_mms_init() argument
387 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sbmm), sbmm_pl); in mlxsw_sp_sb_mms_init()
394 int mlxsw_sp_buffers_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_buffers_init() argument
398 err = mlxsw_sp_sb_pools_init(mlxsw_sp); in mlxsw_sp_buffers_init()
401 err = mlxsw_sp_cpu_port_sb_cms_init(mlxsw_sp); in mlxsw_sp_buffers_init()
404 err = mlxsw_sp_sb_mms_init(mlxsw_sp); in mlxsw_sp_buffers_init()