Searched refs:mlxsw_sp_bytes_cells (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_buffers.c | 128 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes) in mlxsw_sp_bytes_cells() function 188 size = mlxsw_sp_bytes_cells(mlxsw_sp, mlxsw_sp->sb->sb_size); in mlxsw_sp_sb_pr_write() 213 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, in mlxsw_sp_sb_cm_write() 310 u16 size = mlxsw_sp_bytes_cells(mlxsw_sp, pbs[i]); in mlxsw_sp_port_pb_init() 487 size_cells = mlxsw_sp_bytes_cells(mlxsw_sp, size); in mlxsw_sp_sb_prs_init() 658 min_buff = mlxsw_sp_bytes_cells(mlxsw_sp, cm->min_buff); in __mlxsw_sp_sb_cms_init() 667 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, in __mlxsw_sp_sb_cms_init() 772 min_buff = mlxsw_sp_bytes_cells(mlxsw_sp, pm->min_buff); in mlxsw_sp_sb_pms_init() 775 max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, max_buff); in mlxsw_sp_sb_pms_init() 839 min_buff = mlxsw_sp_bytes_cells(mlxsw_sp, mc->min_buff); in mlxsw_sp_sb_mms_init() [all …]
|
D | spectrum_qdisc.c | 337 min = mlxsw_sp_bytes_cells(mlxsw_sp, p->min); in mlxsw_sp_qdisc_red_replace() 338 max = mlxsw_sp_bytes_cells(mlxsw_sp, p->max); in mlxsw_sp_qdisc_red_replace()
|
D | spectrum_span.c | 733 return mlxsw_sp_bytes_cells(mlxsw_sp, mtu * 5 / 2) + 1; in mlxsw_sp_span_mtu_to_buffsize()
|
D | spectrum.h | 428 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes);
|
D | spectrum.c | 884 return 2 * mlxsw_sp_bytes_cells(mlxsw_sp, mtu); in mlxsw_sp_pg_buf_threshold_get() 892 delay = mlxsw_sp_bytes_cells(mlxsw_sp, DIV_ROUND_UP(delay, in mlxsw_sp_pfc_delay_get() 894 return MLXSW_SP_CELL_FACTOR * delay + mlxsw_sp_bytes_cells(mlxsw_sp, in mlxsw_sp_pfc_delay_get() 909 return mlxsw_sp_bytes_cells(mlxsw_sp, MLXSW_SP_PAUSE_DELAY); in mlxsw_sp_pg_buf_delay_get()
|