Searched refs:port_rate (Results 1 – 7 of 7) sorted by relevance
73 atomic64_t port_rate; /* in bytes/s */ member153 static s64 credits_from_len(unsigned int len, s64 slope, s64 port_rate) in credits_from_len() argument155 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() local324 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 …]
69 static enum ib_rate memfree_rate_to_ib(u8 mthca_rate, u8 port_rate) in memfree_rate_to_ib() argument73 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() argument90 default: return mult_to_ib_rate(port_rate); in tavor_rate_to_ib()
383 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()
5035 u32 port_rate; member
2575 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()
197 __le32 port_rate; member
490 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()