Lines Matching refs:tx_credits
529 static void l2cap_le_flowctl_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_le_flowctl_init() argument
534 chan->tx_credits = tx_credits; in l2cap_le_flowctl_init()
543 static void l2cap_ecred_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_ecred_init() argument
545 l2cap_le_flowctl_init(chan, tx_credits); in l2cap_ecred_init()
1349 if (!chan->tx_credits) in l2cap_chan_ready()
2629 while (chan->tx_credits && !skb_queue_empty(&chan->tx_q)) { in l2cap_le_flowctl_send()
2631 chan->tx_credits--; in l2cap_le_flowctl_send()
2635 BT_DBG("Sent %d credits %u queued %u", sent, chan->tx_credits, in l2cap_le_flowctl_send()
2689 if (!chan->tx_credits) in l2cap_chan_send()
5630 chan->tx_credits = credits; in l2cap_le_connect_rsp()
5894 max_credits = LE_FLOWCTL_MAX_CREDITS - chan->tx_credits; in l2cap_le_credits()
5906 chan->tx_credits += credits; in l2cap_le_credits()
5911 if (chan->tx_credits) in l2cap_le_credits()
6163 chan->tx_credits = credits; in l2cap_ecred_conn_rsp()