Lines Matching refs:tx_credits
558 static void l2cap_le_flowctl_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_le_flowctl_init() argument
563 chan->tx_credits = tx_credits; in l2cap_le_flowctl_init()
572 static void l2cap_ecred_init(struct l2cap_chan *chan, u16 tx_credits) in l2cap_ecred_init() argument
574 l2cap_le_flowctl_init(chan, tx_credits); in l2cap_ecred_init()
1378 if (!chan->tx_credits) in l2cap_chan_ready()
2661 while (chan->tx_credits && !skb_queue_empty(&chan->tx_q)) { in l2cap_le_flowctl_send()
2663 chan->tx_credits--; in l2cap_le_flowctl_send()
2667 BT_DBG("Sent %d credits %u queued %u", sent, chan->tx_credits, in l2cap_le_flowctl_send()
2721 if (!chan->tx_credits) in l2cap_chan_send()
5674 chan->tx_credits = credits; in l2cap_le_connect_rsp()
5951 max_credits = LE_FLOWCTL_MAX_CREDITS - chan->tx_credits; in l2cap_le_credits()
5962 chan->tx_credits += credits; in l2cap_le_credits()
5967 if (chan->tx_credits) in l2cap_le_credits()
6233 chan->tx_credits = credits; in l2cap_ecred_conn_rsp()