/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_cpl_io.c | 151 txsd->tx_credits = howmany(flowclen, 16); in send_flowc_wr() 153 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_flowc_wr() 154 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in send_flowc_wr() 155 toep->tx_credits -= txsd->tx_credits; in send_flowc_wr() 196 if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0 || in update_tx_rate_limit() 218 txsd->tx_credits = flowclen16; in update_tx_rate_limit() 220 toep->tx_credits -= txsd->tx_credits; in update_tx_rate_limit() 496 max_imm_payload(int tx_credits, int iso) in max_imm_payload() argument 501 KASSERT(tx_credits >= 0 && in max_imm_payload() 502 tx_credits <= MAX_OFLD_TX_CREDITS, in max_imm_payload() [all …]
|
H A D | t4_tls.c | 194 txsd->tx_credits = DIV_ROUND_UP(TLS_KEY_WR_SZ, 16); in tls_program_key_id() 196 toep->tx_credits -= txsd->tx_credits; in tls_program_key_id() 497 int tls_size, tx_credits, shove, sowwakeup; in t4_push_ktls() local 537 tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS); in t4_push_ktls() 599 if (howmany(wr_len, 16) > tx_credits) { in t4_push_ktls() 609 tx_credits); in t4_push_ktls() 680 KASSERT(toep->tx_credits >= credits, in t4_push_ktls() 683 toep->tx_credits in t4_push_ktls() [all...] |
H A D | t4_tom.c | 116 int tx_credits, txsd_total, len; in alloc_toepcb() local 123 tx_credits = sc->params.ofldq_wr_cred; in alloc_toepcb() 124 tx_credits -= howmany(sizeof(struct cpl_abort_req), 16); in alloc_toepcb() 131 txsd_total = tx_credits / in alloc_toepcb() 146 toep->tx_total = tx_credits; in alloc_toepcb() 147 toep->tx_credits = tx_credits; in alloc_toepcb() 866 if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0) { in send_mss_flowc_wr() 868 toep->tid, toep->tx_credits, toep->txsd_avail); in send_mss_flowc_wr() 885 txsd->tx_credits = flowclen16; in send_mss_flowc_wr() 887 toep->tx_credits -= txsd->tx_credits; in send_mss_flowc_wr()
|
H A D | t4_tom.h | 126 uint8_t tx_credits; /* firmware tx credits (unit is 16B) */ member 228 u_int tx_credits; /* tx WR credits (in 16B units) available */ member
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | htc.c | 95 if (ep->tx_credits < credits) { in ath12k_htc_send() 98 eid, credits, ep->tx_credits); in ath12k_htc_send() 103 ep->tx_credits -= credits; in ath12k_htc_send() 106 eid, credits, ep->tx_credits); in ath12k_htc_send() 130 ep->tx_credits += credits; in ath12k_htc_send() 133 eid, credits, ep->tx_credits); in ath12k_htc_send() 165 ep->tx_credits += report->credits; in ath12k_htc_process_credit_report() 168 report->eid, report->credits, ep->tx_credits); in ath12k_htc_process_credit_report() 688 ep->tx_credits = tx_alloc; in ath12k_htc_connect_service()
|
H A D | htc.h | 276 int tx_credits; member
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | htc.c | 96 if (ep->tx_credits < credits) { in ath11k_htc_send() 99 eid, credits, ep->tx_credits); in ath11k_htc_send() 104 ep->tx_credits -= credits; in ath11k_htc_send() 107 eid, credits, ep->tx_credits); in ath11k_htc_send() 135 ep->tx_credits += credits; in ath11k_htc_send() 138 eid, credits, ep->tx_credits); in ath11k_htc_send() 170 ep->tx_credits += report->credits; in ath11k_htc_process_credit_report() 173 report->eid, report->credits, ep->tx_credits); in ath11k_htc_process_credit_report() 738 ep->tx_credits = tx_alloc; in ath11k_htc_connect_service()
|
H A D | htc.h | 271 int tx_credits; member
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_bcopy.c | 188 tx_credits(ssk) >= SDP_MIN_TX_CREDITS && in sdp_post_sends() 199 if (tx_credits(ssk) <= SDP_MIN_TX_CREDITS && in sdp_post_sends() 205 while (tx_credits(ssk) > SDP_MIN_TX_CREDITS && in sdp_post_sends() 239 tx_credits(ssk) > 1) { in sdp_post_sends()
|
H A D | sdp_rx.c | 417 SDPSTATS_HIST_LINEAR(credits_before_update, tx_credits(ssk)); in sdp_process_rx_mb() 420 credits_before = tx_credits(ssk); in sdp_process_rx_mb() 428 tx_credits(ssk), ntohl(h->mseq), ntohl(h->mseq_ack)); in sdp_process_rx_mb() 526 if (tx_credits(ssk) >= ssk->min_bufs && sk) in sdp_bzcopy_write_space() 620 xmit_poll_force = tx_credits(ssk) < SDP_MIN_TX_CREDITS; in sdp_do_posts() 643 credits_before = tx_credits(ssk); in sdp_process_rx() 650 credits_before, tx_credits(ssk)); in sdp_process_rx()
|
H A D | sdp.h | 280 #define tx_credits(ssk) (atomic_read(&ssk->tx_ring.credits)) macro 457 tx_credits(ssk), tx_ring_posted(ssk)); in sdp_arm_tx_cq() 470 min_free = MIN(tx_credits(ssk), in tx_slots_free() 612 likely(tx_credits(ssk) > 0) && in credit_update_needed()
|
H A D | sdp_cma.c | 180 ssk->min_bufs = tx_credits(ssk) / 4; in sdp_connect_handler() 212 ssk->min_bufs = tx_credits(ssk) / 4; in sdp_response_handler()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | htc.c | 123 if (ep->tx_credits < credits) { in ath10k_htc_consume_credit() 126 eid, credits, ep->tx_credits, consume); in ath10k_htc_consume_credit() 132 ep->tx_credits -= credits; in ath10k_htc_consume_credit() 135 eid, credits, ep->tx_credits); in ath10k_htc_consume_credit() 155 ep->tx_credits += credits; in ath10k_htc_release_credit() 158 eid, credits, ep->tx_credits); in ath10k_htc_release_credit() 269 ep->tx_credits += report->credits; in ath10k_htc_process_credit_report() 272 report->eid, report->credits, ep->tx_credits); in ath10k_htc_process_credit_report() 716 ep->tx_credits < ATH10K_MIN_CREDIT_PER_HTC_TX_BUNDLE) in ath10k_htc_send_bundle_skbs() 765 ep->tx_credits < ATH10K_MIN_CREDIT_PER_HTC_TX_BUNDLE) { in ath10k_htc_send_bundle_skbs() [all …]
|
H A D | htc.h | 373 int tx_credits; member
|
H A D | htt_rx.c | 4304 ep->tx_credits++; in ath10k_htt_t2h_msg_handler() 4398 ep->tx_credits += htt_credit_delta; in ath10k_htt_t2h_msg_handler() 4402 ep->tx_credits); in ath10k_htt_t2h_msg_handler()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sched.c | 838 cst->tx_credits = sc->params.eo_wr_cred; in cxgbe_rate_tag_alloc() 839 cst->tx_total = cst->tx_credits; in cxgbe_rate_tag_alloc() 892 (cst->tx_total - cst->tx_credits) * CST_TO_MST_QLEVEL_SCALE; in cxgbe_rate_tag_query() 907 MPASS(cst->tx_credits == cst->tx_total); in cxgbe_rate_tag_free_locked() 938 if (cst->tx_credits == cst->tx_total) { in cxgbe_rate_tag_free()
|
H A D | offload.h | 95 uint8_t tx_credits; /* tx WR credits (in 16B units) available */ member
|
H A D | t4_sge.c | 6593 MPASS(cst->tx_credits >= ETID_FLOWC_LEN16); /* flowc is first WR. */ in send_etid_flowc_wr() 6594 cst->tx_credits -= ETID_FLOWC_LEN16; in send_etid_flowc_wr() 6623 MPASS(cst->tx_credits >= ETID_FLUSH_LEN16); in send_etid_flush_wr() 6624 cst->tx_credits -= ETID_FLUSH_LEN16; in send_etid_flush_wr() 6794 if (next_credits > cst->tx_credits) { in ethofld_tx() 6809 cst->tx_credits -= next_credits; in ethofld_tx() 6934 MPASS(cst->tx_credits + cpl->credits == cst->tx_total); in ethofld_fw4_ack() 6938 cst->tx_credits += cpl->credits; in ethofld_fw4_ack() 6953 cst->tx_credits += cpl->credits; in ethofld_fw4_ack() 6954 MPASS(cst->tx_credits <= cst->tx_total); in ethofld_fw4_ack() [all …]
|
/freebsd/sys/dev/cxgbe/cxgbei/ |
H A D | icl_cxgbei.c | 1056 txsd->tx_credits = howmany(flowclen, 16); in send_iscsi_flowc_wr() 1058 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_iscsi_flowc_wr() 1059 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in send_iscsi_flowc_wr() 1060 toep->tx_credits -= txsd->tx_credits; in send_iscsi_flowc_wr()
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | qp.c | 1329 txsd->tx_credits = howmany(wrsize, 16); in creds() 1331 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in creds() 1332 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in creds() 1333 toep->tx_credits -= txsd->tx_credits; in creds() 1339 txsd->tx_credits, toep->tx_credits, toep->txsd_pidx); in creds()
|