Lines Matching defs:credits

133 	    ("%s: not enough credits (%d)", __func__, toep->tx_credits));
274 * If we were unable to send all rx credits via opt0, save the remainder
308 send_rx_credits(struct adapter *sc, struct toepcb *toep, int credits)
314 KASSERT(credits >= 0, ("%s: %d credits", __func__, credits));
322 req->credit_dack = htobe32(dack | V_RX_CREDITS(credits));
325 return (credits);
336 int credits;
346 credits = toep->rx_credits;
349 if (credits > 0 &&
350 (credits + 16384 >= tp->rcv_wnd || credits >= 15 * 1024)) {
352 credits = send_rx_credits(sc, toep, credits);
354 toep->rx_credits -= credits;
356 tp->rcv_wnd += credits;
357 tp->rcv_adv += credits;
413 ("%s: %d credits", __func__, tx_credits));
433 ("%s: %d credits", __func__, tx_credits));
447 unsigned int plen, uint8_t credits, int shove)
454 V_FW_WR_LEN16(credits));
536 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf;
590 /* Too few credits */
662 credits = howmany(wr->wr_len, 16);
663 write_tx_wr(txwr, toep, plen, plen, credits, shove);
680 credits = howmany(wr_len, 16);
681 write_tx_wr(txwr, toep, 0, plen, credits, shove);
691 KASSERT(toep->tx_credits >= credits,
692 ("%s: not enough credits", __func__));
694 toep->tx_credits -= credits;
695 toep->tx_nocompl += credits;
721 txsd->tx_credits = credits;
1331 uint8_t credits = cpl->credits;
1340 * now this comes back carrying the credits for the flowc.
1344 ("%s: credits for a synq entry %p", __func__, toep));
1387 while (credits) {
1388 KASSERT(credits >= txsd->tx_credits,
1389 ("%s: too many (or partial) credits", __func__));
1390 credits -= txsd->tx_credits;