Searched refs:rate_mbps (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-qos.c | 835 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 D | am65-cpsw-qos.h | 38 int am65_cpsw_qos_ndo_tx_p0_set_maxrate(struct net_device *ndev, int queue, u32 rate_mbps);
|
H A D | am65-cpsw-nuss.h | 82 u32 rate_mbps; member
|
H A D | am65-cpsw-nuss.c | 610 txq->tx_maxrate = common->tx_chns[i].rate_mbps; in am65_cpsw_nuss_ndo_slave_open()
|
/openbmc/linux/samples/bpf/ |
H A D | hbm.c | 323 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 D | qos.c | 715 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 D | eswitch.h | 402 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
|
H A D | en_tc.c | 4899 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()
|