Home
last modified time | relevance | path

Searched refs:rate_mbps (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c835 ir = DIV_ROUND_UP(((u64)rate_mbps * 32768), bus_freq); in am65_cpsw_qos_tx_rate_calc()
841 int tx_ch, u32 rate_mbps) in am65_cpsw_qos_tx_p0_rate_apply() argument
861 int queue, u32 rate_mbps) in am65_cpsw_qos_ndo_tx_p0_set_maxrate() argument
871 queue, rate_mbps, common->tx_ch_rate_msk); in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
879 if (ch_rate == rate_mbps) in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
890 if (rate_mbps && !(tx_ch_rate_msk_new & BIT(queue))) { in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
894 } else if (!rate_mbps) { in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
908 tx_chn->rate_mbps = rate_mbps; in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
915 am65_cpsw_qos_tx_p0_rate_apply(common, queue, rate_mbps); in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
931 if (!tx_chn->rate_mbps) in am65_cpsw_qos_tx_p0_rate_init()
[all …]
H A Dam65-cpsw-qos.h38 int am65_cpsw_qos_ndo_tx_p0_set_maxrate(struct net_device *ndev, int queue, u32 rate_mbps);
H A Dam65-cpsw-nuss.h82 u32 rate_mbps; member
H A Dam65-cpsw-nuss.c610 txq->tx_maxrate = common->tx_chns[i].rate_mbps; in am65_cpsw_nuss_ndo_slave_open()
/openbmc/linux/samples/bpf/
H A Dhbm.c323 unsigned int rate_mbps = ((qstats.bytes_total - in run_bpf_prog() local
345 fprintf(fout, "rate_mbps:%d\n", rate_mbps); in run_bpf_prog()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dqos.c715 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps) in mlx5_esw_qos_modify_vport_rate() argument
729 err = esw_qos_vport_enable(esw, vport, rate_mbps, vport->qos.bw_share, NULL); in mlx5_esw_qos_modify_vport_rate()
731 MLX5_SET(scheduling_context, ctx, max_average_bw, rate_mbps); in mlx5_esw_qos_modify_vport_rate()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h402 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
H A Den_tc.c4899 u32 rate_mbps = 0; in apply_police_params() local
4920 rate_mbps = max_t(u32, rate, 1); in apply_police_params()
4923 err = mlx5_esw_qos_modify_vport_rate(esw, vport_num, rate_mbps); in apply_police_params()