Home
last modified time | relevance | path

Searched refs:tx_credits (Results 1 – 19 of 19) sorted by relevance

/freebsd/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c155 txsd->tx_credits = howmany(flowclen, 16); in send_flowc_wr()
157 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_flowc_wr()
158 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in send_flowc_wr()
159 toep->tx_credits -= txsd->tx_credits; in send_flowc_wr()
200 if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0 || in update_tx_rate_limit()
224 txsd->tx_credits = flowclen16; in update_tx_rate_limit()
226 toep->tx_credits -= txsd->tx_credits; in update_tx_rate_limit()
505 max_imm_payload(int tx_credits, int iso) in max_imm_payload() argument
510 KASSERT(tx_credits >= 0 && in max_imm_payload()
511 tx_credits <= MAX_OFLD_TX_CREDITS, in max_imm_payload()
[all …]
H A Dt4_tom.c116 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()
873 if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0) { in send_mss_flowc_wr()
875 toep->tid, toep->tx_credits, toep->txsd_avail); in send_mss_flowc_wr()
894 txsd->tx_credits = flowclen16; in send_mss_flowc_wr()
896 toep->tx_credits -= txsd->tx_credits; in send_mss_flowc_wr()
[all …]
H A Dt4_tls.c511 int tls_size, tx_credits, shove, sowwakeup; in t4_push_ktls() local
553 tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS); in t4_push_ktls()
629 if (howmany(wr_len, 16) > tx_credits) { in t4_push_ktls()
639 tx_credits); in t4_push_ktls()
714 KASSERT(toep->tx_credits >= credits, in t4_push_ktls()
717 toep->tx_credits -= credits; in t4_push_ktls()
727 if (toep->tx_credits < MIN_OFLD_TLSTX_CREDITS(toep)) in t4_push_ktls()
734 txsd->tx_credits = credits; in t4_push_ktls()
H A Dt4_tom.h127 uint32_t tx_credits : 6; /* firmware tx credits (unit is 16B) */
232 u_int tx_credits; /* tx WR credits (in 16B units) available */
126 uint32_t tx_credits : 6; /* firmware tx credits (unit is 16B) */ global() member
231 u_int tx_credits; /* tx WR credits (in 16B units) available */ global() member
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dhtc.c95 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()
695 ep->tx_credits = tx_alloc; in ath12k_htc_connect_service()
H A Dhtc.h276 int tx_credits; member
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dhtc.c97 if (ep->tx_credits < credits) { in ath11k_htc_send()
100 eid, credits, ep->tx_credits); in ath11k_htc_send()
105 ep->tx_credits -= credits; in ath11k_htc_send()
108 eid, credits, ep->tx_credits); in ath11k_htc_send()
136 ep->tx_credits += credits; in ath11k_htc_send()
139 eid, credits, ep->tx_credits); in ath11k_htc_send()
171 ep->tx_credits += report->credits; in ath11k_htc_process_credit_report()
174 report->eid, report->credits, ep->tx_credits); in ath11k_htc_process_credit_report()
739 ep->tx_credits = tx_alloc; in ath11k_htc_connect_service()
H A Dhtc.h257 int tx_credits; member
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_bcopy.c188 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 Dsdp_rx.c417 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 Dsdp.h280 #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 Dsdp_cma.c180 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 Dhtc.c127 if (ep->tx_credits < credits) { in ath10k_htc_consume_credit()
130 eid, credits, ep->tx_credits, consume); in ath10k_htc_consume_credit()
136 ep->tx_credits -= credits; in ath10k_htc_consume_credit()
139 eid, credits, ep->tx_credits); in ath10k_htc_consume_credit()
159 ep->tx_credits += credits; in ath10k_htc_release_credit()
162 eid, credits, ep->tx_credits); in ath10k_htc_release_credit()
273 ep->tx_credits += report->credits; in ath10k_htc_process_credit_report()
276 report->eid, report->credits, ep->tx_credits); in ath10k_htc_process_credit_report()
720 ep->tx_credits < ATH10K_MIN_CREDIT_PER_HTC_TX_BUNDLE) in ath10k_htc_send_bundle_skbs()
769 ep->tx_credits < ATH10K_MIN_CREDIT_PER_HTC_TX_BUNDLE) { in ath10k_htc_send_bundle_skbs()
[all …]
H A Dhtc.h359 int tx_credits; member
H A Dhtt_rx.c4306 ep->tx_credits++; in ath10k_htt_t2h_msg_handler()
4400 ep->tx_credits += htt_credit_delta; in ath10k_htt_t2h_msg_handler()
4404 ep->tx_credits); in ath10k_htt_t2h_msg_handler()
/freebsd/sys/dev/cxgbe/
H A Dt4_sched.c838 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 Doffload.h95 uint8_t tx_credits; /* tx WR credits (in 16B units) available */ member
H A Dt4_sge.c6786 MPASS(cst->tx_credits >= ETID_FLOWC_LEN16); /* flowc is first WR. */ in send_etid_flowc_wr()
6787 cst->tx_credits -= ETID_FLOWC_LEN16; in send_etid_flowc_wr()
6816 MPASS(cst->tx_credits >= ETID_FLUSH_LEN16); in send_etid_flush_wr()
6817 cst->tx_credits -= ETID_FLUSH_LEN16; in send_etid_flush_wr()
6987 if (next_credits > cst->tx_credits) { in ethofld_tx()
7002 cst->tx_credits -= next_credits; in ethofld_tx()
7127 MPASS(cst->tx_credits + cpl->credits == cst->tx_total); in ethofld_fw4_ack()
7131 cst->tx_credits += cpl->credits; in ethofld_fw4_ack()
7146 cst->tx_credits += cpl->credits; in ethofld_fw4_ack()
7147 MPASS(cst->tx_credits <= cst->tx_total); in ethofld_fw4_ack()
[all …]
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dqp.c1330 txsd->tx_credits = howmany(wrsize, 16); in creds()
1332 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in creds()
1333 ("%s: not enough credits (%d)", __func__, toep->tx_credits)); in creds()
1334 toep->tx_credits -= txsd->tx_credits; in creds()
1340 txsd->tx_credits, toep->tx_credits, toep->txsd_pidx); in creds()