Home
last modified time | relevance | path

Searched refs:mlxsw_sp_bytes_cells (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_buffers.c57 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes) in mlxsw_sp_bytes_cells() function
197 u16 size = mlxsw_sp_bytes_cells(mlxsw_sp, mlxsw_sp_pbs[i]); in mlxsw_sp_port_pb_init()
286 u32 size = mlxsw_sp_bytes_cells(mlxsw_sp, prs[i].size); in __mlxsw_sp_sb_prs_init()
411 min_buff = mlxsw_sp_bytes_cells(mlxsw_sp, cm->min_buff); in __mlxsw_sp_sb_cms_init()
554 min_buff = mlxsw_sp_bytes_cells(mlxsw_sp, mc->min_buff); in mlxsw_sp_sb_mms_init()
676 u32 pool_size = mlxsw_sp_bytes_cells(mlxsw_sp, size); in mlxsw_sp_sb_pool_set()
715 *p_max_buff = mlxsw_sp_bytes_cells(mlxsw_sp, threshold); in mlxsw_sp_sb_threshold_in()
Dspectrum_qdisc.c337 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()
Dspectrum.h313 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes);
Dspectrum_span.c729 return mlxsw_sp_bytes_cells(mlxsw_sp, mtu * 5 / 2) + 1; in mlxsw_sp_span_mtu_to_buffsize()
Dspectrum.c781 return 2 * mlxsw_sp_bytes_cells(mlxsw_sp, mtu); in mlxsw_sp_pg_buf_threshold_get()
789 delay = mlxsw_sp_bytes_cells(mlxsw_sp, DIV_ROUND_UP(delay, in mlxsw_sp_pfc_delay_get()
791 return MLXSW_SP_CELL_FACTOR * delay + mlxsw_sp_bytes_cells(mlxsw_sp, in mlxsw_sp_pfc_delay_get()
806 return mlxsw_sp_bytes_cells(mlxsw_sp, MLXSW_SP_PAUSE_DELAY); in mlxsw_sp_pg_buf_delay_get()