Home | History | Annotate | Download | only in netbt

Lines Matching defs:credit

217 	struct rfcomm_credit *credit;
243 /* throw away any remaining credit notes */
244 while ((credit = SIMPLEQ_FIRST(&rs->rs_credits)) != NULL) {
246 pool_put(&rfcomm_credit_pool, credit);
448 struct rfcomm_credit *credit;
458 credit = SIMPLEQ_FIRST(&rs->rs_credits);
459 if (credit == NULL) {
464 dlc = credit->rc_dlc;
468 (dlc->rd_upper, credit->rc_len);
471 * if not using credit flow control, we may push
494 pool_put(&rfcomm_credit_pool, credit);
978 DPRINTF("Credit limit reached, UIH discarded\n");
1467 struct rfcomm_credit *credit;
1471 credit = pool_get(&rfcomm_credit_pool, PR_NOWAIT);
1472 if (credit == NULL)
1477 pool_put(&rfcomm_credit_pool, credit);
1507 /* empty credit note */
1508 credit->rc_dlc = NULL;
1509 credit->rc_len = m->m_pkthdr.len;
1510 SIMPLEQ_INSERT_TAIL(&rs->rs_credits, credit, rc_next);
1529 struct rfcomm_credit *credit;
1540 * Make a credit note for the completion notification
1542 credit = pool_get(&rfcomm_credit_pool, PR_NOWAIT);
1543 if (credit == NULL)
1546 credit->rc_len = len;
1547 credit->rc_dlc = dlc;
1609 dlc ? dlc->rd_dlci : 0, m0->m_pkthdr.len, credit->rc_len,
1619 SIMPLEQ_INSERT_TAIL(&rs->rs_credits, credit, rc_next);
1630 if (credit != NULL)
1631 pool_put(&rfcomm_credit_pool, credit);