Lines Matching defs:credits
928 uint8_t credits = 0;
957 /* if PF is set, credits were included */
960 if (m->m_pkthdr.len < sizeof(credits)) {
965 m_copydata(m, 0, sizeof(credits), &credits);
966 m_adj(m, sizeof(credits));
968 dlc->rd_txcred += credits;
970 if (credits > 0 && dlc->rd_txbuf != NULL)
1349 /* credits are only set before DLC is open */
1353 dlc->rd_txcred = pn.credits & 0x07;
1360 pn.credits = dlc->rd_rxcred;
1363 pn.credits = 0x00;
1401 /* set initial credits according to RFCOMM spec */
1404 dlc->rd_txcred = (pn.credits & 0x07);
1519 * rfcomm_session_send_uih(rfcomm_session, rfcomm_dlc, credits, mbuf)
1522 * when no DLC is given. Data mbuf is optional (just credits
1527 int credits, struct mbuf *m)
1537 KASSERT(!(credits == 0 && len == 0));
1552 * [ADDRESS] [CONTROL] [LENGTH] [CREDITS] [...] [FCS]
1557 * Credits may be one octet.
1562 * If there are credits to be sent, we will set the PF
1578 /* PF bit is set if credits are being sent */
1579 *hdr = RFCOMM_MKCONTROL(RFCOMM_FRAME_UIH, (credits > 0 ? 1 : 0));
1590 if (credits > 0)
1591 *hdr++ = (uint8_t)credits;
1608 DPRINTFN(10, "dlci %d, pktlen %d (%d data, %d credits), fcs=%#2.2x\n",
1610 credits, fcs);