Lines Matching defs:credits

174 	    ("%s: not enough credits (%d)", __func__, toep->tx_credits));
324 * If we were unable to send all rx credits via opt0, save the remainder
358 send_rx_credits(struct adapter *sc, struct toepcb *toep, int credits)
364 KASSERT(credits >= 0, ("%s: %d credits", __func__, credits));
372 req->credit_dack = htobe32(dack | V_RX_CREDITS(credits));
375 return (credits);
386 int credits;
402 credits = send_rx_credits(sc, toep, toep->rx_credits);
403 toep->rx_credits -= credits;
404 tp->rcv_wnd += credits;
405 tp->rcv_adv += credits;
462 ("%s: %d credits", __func__, tx_credits));
482 ("%s: %d credits", __func__, tx_credits));
496 unsigned int plen, uint8_t credits, int shove, int ulp_submode, int txalign)
503 V_FW_WR_LEN16(credits));
596 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf;
653 /* Too few credits */
723 credits = howmany(wr->wr_len, 16);
724 write_tx_wr(txwr, toep, plen, plen, credits, shove, 0,
742 credits = howmany(wr_len, 16);
743 write_tx_wr(txwr, toep, 0, plen, credits, shove, 0,
754 KASSERT(toep->tx_credits >= credits,
755 ("%s: not enough credits", __func__));
757 toep->tx_credits -= credits;
758 toep->tx_nocompl += credits;
784 txsd->tx_credits = credits;
808 /* Too many credits. */
812 /* Partial credits. */
826 u_int plen, nsegs, credits, max_imm, max_nsegs, max_nsegs_1mbuf;
920 credits = howmany(wr->wr_len, 16);
921 write_tx_wr(txwr, toep, plen, adjusted_plen, credits,
938 credits = howmany(wr_len, 16);
939 write_tx_wr(txwr, toep, 0, adjusted_plen, credits,
950 KASSERT(toep->tx_credits >= credits,
951 ("%s: not enough credits", __func__));
957 toep->tx_credits -= credits;
958 toep->tx_nocompl += credits;
976 txsd->tx_credits = credits;
1557 int credits;
1559 credits = send_rx_credits(sc, toep, toep->rx_credits);
1560 toep->rx_credits -= credits;
1561 tp->rcv_wnd += credits;
1562 tp->rcv_adv += credits;
1606 uint8_t credits = cpl->credits;
1615 * now this comes back carrying the credits for the flowc.
1619 ("%s: credits for a synq entry %p", __func__, toep));
1662 while (credits) {
1663 KASSERT(credits >= txsd->tx_credits,
1664 ("%s: too many (or partial) credits", __func__));
1665 credits -= txsd->tx_credits;
1704 * Incoming credits should account for so_snd