Lines Matching refs:token_rate
1135 int token_rate; in tx_set_rate() local
1139 token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000); in tx_set_rate()
1140 if (token_rate > 1023) in tx_set_rate()
1141 token_rate = 1023; in tx_set_rate()
1153 wrlp(mp, TX_BW_RATE, token_rate); in tx_set_rate()
1158 wrlp(mp, TX_BW_RATE_MOVED, token_rate); in tx_set_rate()
1168 int token_rate; in txq_set_rate() local
1171 token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000); in txq_set_rate()
1172 if (token_rate > 1023) in txq_set_rate()
1173 token_rate = 1023; in txq_set_rate()
1179 wrlp(mp, TXQ_BW_TOKENS(txq->index), token_rate << 14); in txq_set_rate()
1180 wrlp(mp, TXQ_BW_CONF(txq->index), (bucket_size << 10) | token_rate); in txq_set_rate()