Home
last modified time | relevance | path

Searched refs:port_rate (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/net/sched/
Dsch_cbs.c72 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()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mthca/
Dmthca_av.c69 static enum ib_rate memfree_rate_to_ib(u8 mthca_rate, u8 port_rate) in memfree_rate_to_ib() argument
73 return mult_to_ib_rate(port_rate >> 3); in memfree_rate_to_ib()
75 return mult_to_ib_rate(port_rate >> 2); in memfree_rate_to_ib()
77 return mult_to_ib_rate(port_rate >> 1); in memfree_rate_to_ib()
80 return mult_to_ib_rate(port_rate); in memfree_rate_to_ib()
84 static enum ib_rate tavor_rate_to_ib(u8 mthca_rate, u8 port_rate) in tavor_rate_to_ib() argument
90 default: return mult_to_ib_rate(port_rate); in tavor_rate_to_ib()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_init.h383 tFair = T_FAIR_COEF / input_data->port_rate; in bnx2x_init_min()
481 r_param = BITS_TO_BYTES(input_data->port_rate); in bnx2x_init_cmng()
Dbnx2x_hsi.h5034 u32 port_rate; member
Dbnx2x_main.c2566 input.port_rate = bp->link_vars.line_speed; in bnx2x_cmng_fns_init()
2568 if (cmng_type == CMNG_FNS_MINMAX && input.port_rate) { in bnx2x_cmng_fns_init()