Searched refs:rate_mbps (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-qos.c | 33 am65_cpsw_qos_tx_rate_calc(u32 rate_mbps, unsigned long bus_freq) in am65_cpsw_qos_tx_rate_calc() argument 38 ir = DIV_ROUND_UP(((u64)rate_mbps * 32768), bus_freq); in am65_cpsw_qos_tx_rate_calc() 58 u32 rate_mbps; in am65_cpsw_tx_pn_shaper_apply() local 83 rate_mbps = TO_MBPS(mqprio->min_rate[tc]); in am65_cpsw_tx_pn_shaper_apply() 84 rate_mbps = am65_cpsw_qos_tx_rate_calc(rate_mbps, in am65_cpsw_tx_pn_shaper_apply() 86 writel(rate_mbps, in am65_cpsw_tx_pn_shaper_apply() 89 rate_mbps = 0; in am65_cpsw_tx_pn_shaper_apply() 92 rate_mbps = mqprio->max_rate[tc] - mqprio->min_rate[tc]; in am65_cpsw_tx_pn_shaper_apply() 93 rate_mbps = TO_MBPS(rate_mbps); in am65_cpsw_tx_pn_shaper_apply() 94 rate_mbps = am65_cpsw_qos_tx_rate_calc(rate_mbps, in am65_cpsw_tx_pn_shaper_apply() [all …]
|
H A D | am65-cpsw-qos.h | 101 int am65_cpsw_qos_ndo_tx_p0_set_maxrate(struct net_device *ndev, int queue, u32 rate_mbps); 122 u32 rate_mbps) in am65_cpsw_qos_ndo_tx_p0_set_maxrate() argument
|
H A D | am65-cpsw-nuss.h | 92 u32 rate_mbps; member
|
H A D | am65-cpsw-nuss.c | 1008 txq->tx_maxrate = common->tx_chns[i].rate_mbps; in am65_cpsw_nuss_ndo_slave_open()
|
/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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.c | 766 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 776 if (rate_mbps) { in mlx5_esw_qos_modify_vport_rate() 782 link_speed_max, rate_mbps, NULL); in mlx5_esw_qos_modify_vport_rate() 788 err = mlx5_esw_qos_set_vport_max_rate(vport, rate_mbps, NULL); in mlx5_esw_qos_modify_vport_rate()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.h | 403 int mlx5_esw_qos_modify_vport_rate(struct mlx5_eswitch *esw, u16 vport_num, u32 rate_mbps);
|
H A D | en_tc.c | 5018 u32 rate_mbps = 0; in apply_police_params() local 5039 rate_mbps = max_t(u32, rate, 1); in apply_police_params() 5042 err = mlx5_esw_qos_modify_vport_rate(esw, vport_num, rate_mbps); in apply_police_params()
|