Home
last modified time | relevance | path

Searched refs:return_credits (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/net/bluetooth/
Dl2cap_core.c7480 u16 return_credits; in l2cap_chan_le_send_credits() local
7482 return_credits = (chan->imtu / chan->mps) + 1; in l2cap_chan_le_send_credits()
7484 if (chan->rx_credits >= return_credits) in l2cap_chan_le_send_credits()
7487 return_credits -= chan->rx_credits; in l2cap_chan_le_send_credits()
7489 BT_DBG("chan %p returning %u credits to sender", chan, return_credits); in l2cap_chan_le_send_credits()
7491 chan->rx_credits += return_credits; in l2cap_chan_le_send_credits()
7494 pkt.credits = cpu_to_le16(return_credits); in l2cap_chan_le_send_credits()