Lines Matching refs:rate_mbps
830 am65_cpsw_qos_tx_rate_calc(u32 rate_mbps, unsigned long bus_freq) in am65_cpsw_qos_tx_rate_calc() argument
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
847 ch_cir = am65_cpsw_qos_tx_rate_calc(rate_mbps, common->bus_freq); in am65_cpsw_qos_tx_p0_rate_apply()
856 netdev_get_tx_queue(ndev, tx_ch)->tx_maxrate = rate_mbps; in am65_cpsw_qos_tx_p0_rate_apply()
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()
934 ch_cir = am65_cpsw_qos_tx_rate_calc(tx_chn->rate_mbps, in am65_cpsw_qos_tx_p0_rate_init()