Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dsch_cbs.c73 atomic64_t port_rate; /* in bytes/s */ member
153 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument
155 if (unlikely(port_rate == 0)) in credits_from_len()
158 return div64_s64(len * slope, port_rate); in credits_from_len()
217 atomic64_read(&q->port_rate)); in cbs_dequeue_soft()
222 if (unlikely(atomic64_read(&q->port_rate) == 0)) in cbs_dequeue_soft()
226 atomic64_read(&q->port_rate)); in cbs_dequeue_soft()
313 int port_rate; in cbs_set_port_rate() local
324 port_rate = speed * 1000 * BYTES_PER_KBIT; in cbs_set_port_rate()
326 atomic64_set(&q->port_rate, port_rate); in cbs_set_port_rate()
[all …]
/linux/drivers/infiniband/hw/mthca/
H A 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/drivers/net/ethernet/broadcom/bnx2x/
H A 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()
H A Dbnx2x_hsi.h5035 u32 port_rate; member
H A Dbnx2x_main.c2575 input.port_rate = bp->link_vars.line_speed; in bnx2x_cmng_fns_init()
2577 if (cmng_type == CMNG_FNS_MINMAX && input.port_rate) { in bnx2x_cmng_fns_init()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_tm.h197 __le32 port_rate; member
H A Dhclge_tm.c490 shap_cfg_cmd->port_rate = cpu_to_le32(hdev->hw.mac.speed); in hclge_tm_port_shaper_cfg()
2117 para->rate = le32_to_cpu(port_shap_cfg_cmd->port_rate); in hclge_tm_get_port_shaper()