Lines Matching refs:rate_mbps
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()
98 writel(rate_mbps, in am65_cpsw_tx_pn_shaper_apply()
1181 int tx_ch, u32 rate_mbps) in am65_cpsw_qos_tx_p0_rate_apply() argument
1187 ch_cir = am65_cpsw_qos_tx_rate_calc(rate_mbps, common->bus_freq); in am65_cpsw_qos_tx_p0_rate_apply()
1196 netdev_get_tx_queue(ndev, tx_ch)->tx_maxrate = rate_mbps; in am65_cpsw_qos_tx_p0_rate_apply()
1201 int queue, u32 rate_mbps) in am65_cpsw_qos_ndo_tx_p0_set_maxrate() argument
1211 queue, rate_mbps, common->tx_ch_rate_msk); in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1219 if (ch_rate == rate_mbps) in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1230 if (rate_mbps && !(tx_ch_rate_msk_new & BIT(queue))) { in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1234 } else if (!rate_mbps) { in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1248 tx_chn->rate_mbps = rate_mbps; in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1255 am65_cpsw_qos_tx_p0_rate_apply(common, queue, rate_mbps); in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1271 if (!tx_chn->rate_mbps) in am65_cpsw_qos_tx_p0_rate_init()
1274 ch_cir = am65_cpsw_qos_tx_rate_calc(tx_chn->rate_mbps, in am65_cpsw_qos_tx_p0_rate_init()