Lines Matching defs:mlxsw_sp
52 u32 mlxsw_sp_cells_bytes(const struct mlxsw_sp *mlxsw_sp, u32 cells) in mlxsw_sp_cells_bytes()
57 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes) in mlxsw_sp_bytes_cells()
62 static struct mlxsw_sp_sb_pr *mlxsw_sp_sb_pr_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pr_get()
69 static struct mlxsw_sp_sb_cm *mlxsw_sp_sb_cm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_cm_get()
76 static struct mlxsw_sp_sb_pm *mlxsw_sp_sb_pm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pm_get()
83 static int mlxsw_sp_sb_pr_write(struct mlxsw_sp *mlxsw_sp, u8 pool, in mlxsw_sp_sb_pr_write()
102 static int mlxsw_sp_sb_cm_write(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_cm_write()
125 static int mlxsw_sp_sb_pm_write(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_pm_write()
145 static int mlxsw_sp_sb_pm_occ_clear(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_pm_occ_clear()
165 static int mlxsw_sp_sb_pm_occ_query(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_sb_pm_occ_query()
190 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_pb_init() local
230 static int mlxsw_sp_sb_ports_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_ports_init()
242 static void mlxsw_sp_sb_ports_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_ports_fini()
277 static int __mlxsw_sp_sb_prs_init(struct mlxsw_sp *mlxsw_sp, in __mlxsw_sp_sb_prs_init()
295 static int mlxsw_sp_sb_prs_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_prs_init()
393 static int __mlxsw_sp_sb_cms_init(struct mlxsw_sp *mlxsw_sp, u8 local_port, in __mlxsw_sp_sb_cms_init()
438 static int mlxsw_sp_cpu_port_sb_cms_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_cpu_port_sb_cms_init()
469 static int __mlxsw_sp_port_sb_pms_init(struct mlxsw_sp *mlxsw_sp, u8 local_port, in __mlxsw_sp_port_sb_pms_init()
540 static int mlxsw_sp_sb_mms_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_sb_mms_init()
564 int mlxsw_sp_buffers_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_buffers_init()
613 void mlxsw_sp_buffers_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_buffers_fini()
660 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_pool_get() local
675 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_pool_set() local
690 static u32 mlxsw_sp_sb_threshold_out(struct mlxsw_sp *mlxsw_sp, u8 pool, in mlxsw_sp_sb_threshold_out()
700 static int mlxsw_sp_sb_threshold_in(struct mlxsw_sp *mlxsw_sp, u8 pool, in mlxsw_sp_sb_threshold_in()
726 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_port_pool_get() local
744 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_port_pool_set() local
767 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_tc_pool_bind_get() local
787 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_tc_pool_bind_set() local
819 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_sr_occ_query_cb() local
862 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_occ_snapshot() local
931 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_sb_occ_max_clear() local
995 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_occ_port_pool_get() local
1014 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_sb_occ_tc_port_bind_get() local