Searched refs:tx_credits (Results 1 - 10 of 10) sorted by relevance

/freebsd-11-stable/sys/dev/cxgbe/tom/
H A Dt4_cpl_io.c196 txsd->tx_credits = howmany(flowclen, 16);
198 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
199 ("%s: not enough credits (%d)", __func__, toep->tx_credits));
200 toep->tx_credits -= txsd->tx_credits;
241 if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0 ||
262 txsd->tx_credits = flowclen16;
264 toep->tx_credits -= txsd->tx_credits;
573 max_imm_payload(int tx_credits) argument
592 max_dsgl_nsegs(int tx_credits) argument
722 int tx_credits, shove, compl, sowwakeup; local
980 int tx_credits, shove; local
[all...]
H A Dt4_tls.c564 txsd->tx_credits = DIV_ROUND_UP(len, 16);
566 toep->tx_credits -= txsd->tx_credits;
908 max_imm_tls_space(int tx_credits) argument
913 KASSERT(tx_credits >= 0 &&
914 tx_credits <= MAX_OFLD_TX_CREDITS,
915 ("%s: %d credits", __func__, tx_credits));
917 if (tx_credits >= (n * EQ_ESIZE) / 16)
920 space = tx_credits * 16;
1102 int tls_size, tx_credits, shov local
[all...]
H A Dt4_tom.h88 uint8_t tx_credits; /* firmware tx credits (unit is 16B) */ member in struct:ofld_tx_sdesc
177 u_int tx_credits; /* tx WR credits (in 16B units) available */ member in struct:toepcb
H A Dt4_tom.c109 int tx_credits, txsd_total, len; local
116 tx_credits = sc->params.ofldq_wr_cred;
117 tx_credits -= howmany(sizeof(struct cpl_abort_req), 16);
124 txsd_total = tx_credits /
148 toep->tx_total = tx_credits;
149 toep->tx_credits = tx_credits;
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_bcopy.c186 tx_credits(ssk) >= SDP_MIN_TX_CREDITS &&
197 if (tx_credits(ssk) <= SDP_MIN_TX_CREDITS &&
203 while (tx_credits(ssk) > SDP_MIN_TX_CREDITS &&
237 tx_credits(ssk) > 1) {
H A Dsdp_rx.c417 SDPSTATS_HIST_LINEAR(credits_before_update, tx_credits(ssk));
420 credits_before = tx_credits(ssk);
428 tx_credits(ssk), ntohl(h->mseq), ntohl(h->mseq_ack));
525 if (tx_credits(ssk) >= ssk->min_bufs && sk)
619 xmit_poll_force = tx_credits(ssk) < SDP_MIN_TX_CREDITS;
622 /* if has pending tx because run out of tx_credits - xmit it */
642 credits_before = tx_credits(ssk);
649 credits_before, tx_credits(ssk));
H A Dsdp.h322 #define tx_credits(ssk) (atomic_read(&ssk->tx_ring.credits)) macro
498 tx_credits(ssk), tx_ring_posted(ssk));
511 min_free = MIN(tx_credits(ssk),
653 likely(tx_credits(ssk) > 0) &&
H A Dsdp_cma.c173 ssk->min_bufs = tx_credits(ssk) / 4;
205 ssk->min_bufs = tx_credits(ssk) / 4;
/freebsd-11-stable/sys/dev/cxgbe/cxgbei/
H A Dicl_cxgbei.c573 txsd->tx_credits = howmany(flowclen, 16);
575 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
576 ("%s: not enough credits (%d)", __func__, toep->tx_credits));
577 toep->tx_credits -= txsd->tx_credits;
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
H A Dqp.c1319 txsd->tx_credits = howmany(wrsize, 16);
1321 KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
1322 ("%s: not enough credits (%d)", __func__, toep->tx_credits));
1323 toep->tx_credits -= txsd->tx_credits;
1329 txsd->tx_credits, toep->tx_credits, toep->txsd_pidx);

Completed in 216 milliseconds