Lines Matching defs:credits
567 send_rx_credits(struct adapter *sc, struct toepcb *toep, int credits)
580 req->credit_dack = htonl(dack | V_RX_CREDITS(credits));
582 return (credits);
606 int credits;
608 credits = send_rx_credits(sc, toep, toep->tp_rx_credits);
609 toep->tp_rx_credits -= credits;
610 tp->rcv_wnd += credits;
611 tp->rcv_adv += credits;
1594 * If we were unable to send all rx credits via opt0, save the remainder
1708 unsigned int credits = ntohs(hdr->credits);
1718 toep->tp_wr_avail += credits;
1722 while (credits) {
1726 CTR5(KTR_CXGB, "%s: %u extra WR_ACK credits, "
1727 "tid %u, state %u, wr_avail %u", __func__, credits,
1730 log(LOG_ERR, "%u WR_ACK credits for TID %u with "
1732 credits, toep->tp_tid, tp->t_state, toep->tp_wr_avail);
1738 KASSERT(credits >= G_HDR_NDESC(oh->flags),
1739 ("%s: partial credits? %d %d", __func__, credits,
1743 credits -= G_HDR_NDESC(oh->flags);