Symbol: tx_credits
sys/dev/cxgbe/iw_cxgbe/qp.c
1331
txsd->tx_credits = howmany(wrsize, 16);
sys/dev/cxgbe/iw_cxgbe/qp.c
1333
KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
sys/dev/cxgbe/iw_cxgbe/qp.c
1334
("%s: not enough credits (%d)", __func__, toep->tx_credits));
sys/dev/cxgbe/iw_cxgbe/qp.c
1335
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/iw_cxgbe/qp.c
1341
txsd->tx_credits, toep->tx_credits, toep->txsd_pidx);
sys/dev/cxgbe/offload.h
95
uint8_t tx_credits; /* tx WR credits (in 16B units) available */
sys/dev/cxgbe/t4_sched.c
838
cst->tx_credits = sc->params.eo_wr_cred;
sys/dev/cxgbe/t4_sched.c
839
cst->tx_total = cst->tx_credits;
sys/dev/cxgbe/t4_sched.c
892
(cst->tx_total - cst->tx_credits) * CST_TO_MST_QLEVEL_SCALE;
sys/dev/cxgbe/t4_sched.c
907
MPASS(cst->tx_credits == cst->tx_total);
sys/dev/cxgbe/t4_sched.c
938
if (cst->tx_credits == cst->tx_total) {
sys/dev/cxgbe/t4_sge.c
6786
MPASS(cst->tx_credits >= ETID_FLOWC_LEN16); /* flowc is first WR. */
sys/dev/cxgbe/t4_sge.c
6787
cst->tx_credits -= ETID_FLOWC_LEN16;
sys/dev/cxgbe/t4_sge.c
6816
MPASS(cst->tx_credits >= ETID_FLUSH_LEN16);
sys/dev/cxgbe/t4_sge.c
6817
cst->tx_credits -= ETID_FLUSH_LEN16;
sys/dev/cxgbe/t4_sge.c
6987
if (next_credits > cst->tx_credits) {
sys/dev/cxgbe/t4_sge.c
7002
cst->tx_credits -= next_credits;
sys/dev/cxgbe/t4_sge.c
7127
MPASS(cst->tx_credits + cpl->credits == cst->tx_total);
sys/dev/cxgbe/t4_sge.c
7131
cst->tx_credits += cpl->credits;
sys/dev/cxgbe/t4_sge.c
7146
cst->tx_credits += cpl->credits;
sys/dev/cxgbe/t4_sge.c
7147
MPASS(cst->tx_credits <= cst->tx_total);
sys/dev/cxgbe/t4_sge.c
7156
if (m != NULL && cst->tx_credits >= mbuf_eo_len16(m))
sys/dev/cxgbe/tom/t4_cpl_io.c
1040
int tx_credits, shove, npdu, wr_len;
sys/dev/cxgbe/tom/t4_cpl_io.c
1047
tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS);
sys/dev/cxgbe/tom/t4_cpl_io.c
1052
if (plen > tx_credits * 16)
sys/dev/cxgbe/tom/t4_cpl_io.c
1064
max_imm = max_imm_payload(tx_credits, iso);
sys/dev/cxgbe/tom/t4_cpl_io.c
1065
max_nsegs = max_dsgl_nsegs(tx_credits, iso);
sys/dev/cxgbe/tom/t4_cpl_io.c
1170
KASSERT(toep->tx_credits >= credits,
sys/dev/cxgbe/tom/t4_cpl_io.c
1174
toep->tx_credits, tx_credits, nsegs, max_nsegs, iso));
sys/dev/cxgbe/tom/t4_cpl_io.c
1239
int tx_credits, shove, npdu, wr_len;
sys/dev/cxgbe/tom/t4_cpl_io.c
1245
tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS);
sys/dev/cxgbe/tom/t4_cpl_io.c
1250
if (plen > tx_credits * 16)
sys/dev/cxgbe/tom/t4_cpl_io.c
1262
max_imm = max_imm_payload(tx_credits, iso);
sys/dev/cxgbe/tom/t4_cpl_io.c
1263
max_nsegs = max_dsgl_nsegs(tx_credits, iso);
sys/dev/cxgbe/tom/t4_cpl_io.c
1403
KASSERT(toep->tx_credits >= credits,
sys/dev/cxgbe/tom/t4_cpl_io.c
1407
toep->tx_credits, tx_credits, nsegs, max_nsegs, iso));
sys/dev/cxgbe/tom/t4_cpl_io.c
1492
KASSERT(toep->tx_credits >= credits,
sys/dev/cxgbe/tom/t4_cpl_io.c
1499
toep->tx_credits -= credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
1507
if (toep->tx_credits <= SGE_MAX_WR_LEN * 5 / 4 &&
sys/dev/cxgbe/tom/t4_cpl_io.c
1516
if (toep->tx_credits < MIN_OFLD_TX_CREDITS)
sys/dev/cxgbe/tom/t4_cpl_io.c
1523
txsd->tx_credits = credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
155
txsd->tx_credits = howmany(flowclen, 16);
sys/dev/cxgbe/tom/t4_cpl_io.c
157
KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
sys/dev/cxgbe/tom/t4_cpl_io.c
158
("%s: not enough credits (%d)", __func__, toep->tx_credits));
sys/dev/cxgbe/tom/t4_cpl_io.c
159
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
200
if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0 ||
sys/dev/cxgbe/tom/t4_cpl_io.c
2215
KASSERT(credits >= txsd->tx_credits,
sys/dev/cxgbe/tom/t4_cpl_io.c
2217
credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
2218
toep->tx_credits += txsd->tx_credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
2230
if (toep->tx_credits == toep->tx_total) {
sys/dev/cxgbe/tom/t4_cpl_io.c
2236
toep->tx_credits >= toep->tx_total / 4) {
sys/dev/cxgbe/tom/t4_cpl_io.c
224
txsd->tx_credits = flowclen16;
sys/dev/cxgbe/tom/t4_cpl_io.c
226
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
2332
txsd->tx_credits = howmany(len, 16);
sys/dev/cxgbe/tom/t4_cpl_io.c
2334
KASSERT(toep->tx_credits >= txsd->tx_credits &&
sys/dev/cxgbe/tom/t4_cpl_io.c
2337
toep->tx_credits));
sys/dev/cxgbe/tom/t4_cpl_io.c
2338
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
505
max_imm_payload(int tx_credits, int iso)
sys/dev/cxgbe/tom/t4_cpl_io.c
510
KASSERT(tx_credits >= 0 &&
sys/dev/cxgbe/tom/t4_cpl_io.c
511
tx_credits <= MAX_OFLD_TX_CREDITS,
sys/dev/cxgbe/tom/t4_cpl_io.c
512
("%s: %d credits", __func__, tx_credits));
sys/dev/cxgbe/tom/t4_cpl_io.c
514
if (tx_credits < MIN_TX_CREDITS(iso))
sys/dev/cxgbe/tom/t4_cpl_io.c
517
if (tx_credits >= (n * EQ_ESIZE) / 16)
sys/dev/cxgbe/tom/t4_cpl_io.c
521
return (tx_credits * 16 - sizeof(struct fw_ofld_tx_data_wr) -
sys/dev/cxgbe/tom/t4_cpl_io.c
527
max_dsgl_nsegs(int tx_credits, int iso)
sys/dev/cxgbe/tom/t4_cpl_io.c
530
int sge_pair_credits = tx_credits - MIN_TX_CREDITS(iso);
sys/dev/cxgbe/tom/t4_cpl_io.c
532
KASSERT(tx_credits >= 0 &&
sys/dev/cxgbe/tom/t4_cpl_io.c
533
tx_credits <= MAX_OFLD_TX_CREDITS,
sys/dev/cxgbe/tom/t4_cpl_io.c
534
("%s: %d credits", __func__, tx_credits));
sys/dev/cxgbe/tom/t4_cpl_io.c
536
if (tx_credits < MIN_TX_CREDITS(iso))
sys/dev/cxgbe/tom/t4_cpl_io.c
638
if (credits > toep->tx_credits)
sys/dev/cxgbe/tom/t4_cpl_io.c
648
toep->tx_credits -= credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
649
if (toep->tx_credits < MIN_OFLD_TX_CREDITS)
sys/dev/cxgbe/tom/t4_cpl_io.c
657
txsd->tx_credits = credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
699
int tx_credits, shove, compl, sowwakeup;
sys/dev/cxgbe/tom/t4_cpl_io.c
739
tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS);
sys/dev/cxgbe/tom/t4_cpl_io.c
740
max_imm = max_imm_payload(tx_credits, 0);
sys/dev/cxgbe/tom/t4_cpl_io.c
741
max_nsegs = max_dsgl_nsegs(tx_credits, 0);
sys/dev/cxgbe/tom/t4_cpl_io.c
911
KASSERT(toep->tx_credits >= credits,
sys/dev/cxgbe/tom/t4_cpl_io.c
914
toep->tx_credits -= credits;
sys/dev/cxgbe/tom/t4_cpl_io.c
917
if (toep->tx_credits <= toep->tx_total * 3 / 8 &&
sys/dev/cxgbe/tom/t4_cpl_io.c
936
if (toep->tx_credits < MIN_OFLD_TX_CREDITS)
sys/dev/cxgbe/tom/t4_cpl_io.c
943
txsd->tx_credits = credits;
sys/dev/cxgbe/tom/t4_tls.c
511
int tls_size, tx_credits, shove, sowwakeup;
sys/dev/cxgbe/tom/t4_tls.c
553
tx_credits = min(toep->tx_credits, MAX_OFLD_TX_CREDITS);
sys/dev/cxgbe/tom/t4_tls.c
629
if (howmany(wr_len, 16) > tx_credits) {
sys/dev/cxgbe/tom/t4_tls.c
639
tx_credits);
sys/dev/cxgbe/tom/t4_tls.c
714
KASSERT(toep->tx_credits >= credits,
sys/dev/cxgbe/tom/t4_tls.c
717
toep->tx_credits -= credits;
sys/dev/cxgbe/tom/t4_tls.c
727
if (toep->tx_credits < MIN_OFLD_TLSTX_CREDITS(toep))
sys/dev/cxgbe/tom/t4_tls.c
734
txsd->tx_credits = credits;
sys/dev/cxgbe/tom/t4_tom.c
116
int tx_credits, txsd_total, len;
sys/dev/cxgbe/tom/t4_tom.c
123
tx_credits = sc->params.ofldq_wr_cred;
sys/dev/cxgbe/tom/t4_tom.c
124
tx_credits -= howmany(sizeof(struct cpl_abort_req), 16);
sys/dev/cxgbe/tom/t4_tom.c
131
txsd_total = tx_credits /
sys/dev/cxgbe/tom/t4_tom.c
146
toep->tx_total = tx_credits;
sys/dev/cxgbe/tom/t4_tom.c
147
toep->tx_credits = tx_credits;
sys/dev/cxgbe/tom/t4_tom.c
2351
txsd->tx_credits = howmany(flowclen, 16);
sys/dev/cxgbe/tom/t4_tom.c
2353
KASSERT(toep->tx_credits >= txsd->tx_credits && toep->txsd_avail > 0,
sys/dev/cxgbe/tom/t4_tom.c
2354
("%s: not enough credits (%d)", __func__, toep->tx_credits));
sys/dev/cxgbe/tom/t4_tom.c
2355
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_tom.c
873
if (toep->tx_credits < flowclen16 || toep->txsd_avail == 0) {
sys/dev/cxgbe/tom/t4_tom.c
875
toep->tid, toep->tx_credits, toep->txsd_avail);
sys/dev/cxgbe/tom/t4_tom.c
894
txsd->tx_credits = flowclen16;
sys/dev/cxgbe/tom/t4_tom.c
896
toep->tx_credits -= txsd->tx_credits;
sys/dev/cxgbe/tom/t4_tom.h
127
uint32_t tx_credits : 6; /* firmware tx credits (unit is 16B) */
sys/dev/cxgbe/tom/t4_tom.h
232
u_int tx_credits; /* tx WR credits (in 16B units) available */
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
457
tx_credits(ssk), tx_ring_posted(ssk));
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
470
min_free = MIN(tx_credits(ssk),
sys/ofed/drivers/infiniband/ulp/sdp/sdp.h
612
likely(tx_credits(ssk) > 0) &&
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
188
tx_credits(ssk) >= SDP_MIN_TX_CREDITS &&
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
199
if (tx_credits(ssk) <= SDP_MIN_TX_CREDITS &&
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
205
while (tx_credits(ssk) > SDP_MIN_TX_CREDITS &&
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
239
tx_credits(ssk) > 1) {
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
180
ssk->min_bufs = tx_credits(ssk) / 4;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
212
ssk->min_bufs = tx_credits(ssk) / 4;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
417
SDPSTATS_HIST_LINEAR(credits_before_update, tx_credits(ssk));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
420
credits_before = tx_credits(ssk);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
428
tx_credits(ssk), ntohl(h->mseq), ntohl(h->mseq_ack));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
526
if (tx_credits(ssk) >= ssk->min_bufs && sk)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
620
xmit_poll_force = tx_credits(ssk) < SDP_MIN_TX_CREDITS;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
643
credits_before = tx_credits(ssk);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
650
credits_before, tx_credits(ssk));