Lines Matching refs:ch_rate
323 int speed, ch_rate; in cpsw_need_resplit() local
333 ch_rate = cpdma_chan_get_rate(cpsw->txv[i].ch); in cpsw_need_resplit()
334 if (!ch_rate) in cpsw_need_resplit()
353 u32 ch_rate, max_rate; in cpsw_split_res() local
357 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
358 if (!ch_rate) in cpsw_split_res()
362 consumed_rate += ch_rate; in cpsw_split_res()
393 ch_rate = cpdma_chan_get_rate(txv[i].ch); in cpsw_split_res()
394 if (ch_rate) { in cpsw_split_res()
395 txv[i].budget = (ch_rate * NAPI_POLL_WEIGHT) / max_rate; in cpsw_split_res()
398 if (ch_rate > bigest_rate) { in cpsw_split_res()
400 bigest_rate = ch_rate; in cpsw_split_res()
403 ch_weight = (ch_rate * 100) / max_rate; in cpsw_split_res()
739 u32 ch_rate; in cpsw_ndo_set_tx_maxrate() local
742 ch_rate = netdev_get_tx_queue(ndev, queue)->tx_maxrate; in cpsw_ndo_set_tx_maxrate()
743 if (ch_rate == rate) in cpsw_ndo_set_tx_maxrate()
746 ch_rate = rate * 1000; in cpsw_ndo_set_tx_maxrate()
748 if ((ch_rate < min_rate && ch_rate)) { in cpsw_ndo_set_tx_maxrate()
763 ret = cpdma_chan_set_rate(cpsw->txv[queue].ch, ch_rate); in cpsw_ndo_set_tx_maxrate()