Home
last modified time | relevance | path

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

/freebsd/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c153 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0, in send_flowc_wr()
155 toep->tx_credits -= txsd->tx_credits; in send_flowc_wr()
220 toep->tx_credits -= txsd->tx_credits; in update_tx_rate_limit()
501 KASSERT(tx_credits >= 0 && in max_imm_payload()
687 tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS); in t4_push_frames()
978 tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS); in write_iscsi_mbuf_wr()
1105 toep->tx_credits, tx_credits, nsegs, max_nsegs, iso)); in write_iscsi_mbuf_wr()
1879 toep->tx_credits += txsd->tx_credits; in do_fw4_ack()
1974 KASSERT(toep->tx_credits >= txsd->tx_credits && in t4_set_tcb_field()
1977 toep->tx_credits)); in t4_set_tcb_field()
[all …]
H A Dt4_tls.c194 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 -= credits; in t4_push_ktls()
693 if (toep->tx_credits < MIN_OFLD_TLSTX_CREDITS(toep)) in t4_push_ktls()
698 txsd->tx_credits = credits; in t4_push_ktls()
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()
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 Dt4_tom.h126 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 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()
688 ep->tx_credits = tx_alloc; in ath12k_htc_connect_service()
H A Dhtc.h276 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/ath11k/
H A Dhtc.c96 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 Dhtc.h271 int tx_credits; member
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtc.c123 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 Dhtc.h373 int tx_credits; member
H A Dhtt_rx.c4304 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 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.h103 uint8_t tx_credits; /* tx WR credits (in 16B units) available */ member
H A Dt4_sge.c6593 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 Dicl_cxgbei.c1056 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 Dqp.c1329 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()