Lines Matching refs:port_rate
72 atomic64_t port_rate; /* in bytes/s */ member
152 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
154 if (unlikely(port_rate == 0)) in credits_from_len()
157 return div64_s64(len * slope, port_rate); in credits_from_len()
216 atomic64_read(&q->port_rate)); in cbs_dequeue_soft()
221 if (unlikely(atomic64_read(&q->port_rate) == 0)) in cbs_dequeue_soft()
225 atomic64_read(&q->port_rate)); in cbs_dequeue_soft()
312 int port_rate; in cbs_set_port_rate() local
323 port_rate = speed * 1000 * BYTES_PER_KBIT; in cbs_set_port_rate()
325 atomic64_set(&q->port_rate, port_rate); in cbs_set_port_rate()
327 dev->name, (long long)atomic64_read(&q->port_rate), in cbs_set_port_rate()