Lines Matching refs:rate_mbps
830 am65_cpsw_qos_tx_rate_calc(u32 rate_mbps, unsigned long bus_freq)
835 ir = DIV_ROUND_UP(((u64)rate_mbps * 32768), bus_freq);
841 int tx_ch, u32 rate_mbps)
847 ch_cir = am65_cpsw_qos_tx_rate_calc(rate_mbps, common->bus_freq);
856 netdev_get_tx_queue(ndev, tx_ch)->tx_maxrate = rate_mbps;
861 int queue, u32 rate_mbps)
871 queue, rate_mbps, common->tx_ch_rate_msk);
879 if (ch_rate == rate_mbps)
890 if (rate_mbps && !(tx_ch_rate_msk_new & BIT(queue))) {
894 } else if (!rate_mbps) {
908 tx_chn->rate_mbps = rate_mbps;
915 am65_cpsw_qos_tx_p0_rate_apply(common, queue, rate_mbps);
931 if (!tx_chn->rate_mbps)
934 ch_cir = am65_cpsw_qos_tx_rate_calc(tx_chn->rate_mbps,