Lines Matching refs:credits
227 u8_t credits) in rfcomm_dlc_tx_give_credits() argument
229 BT_DBG("dlc %p credits %u", dlc, credits); in rfcomm_dlc_tx_give_credits()
231 while (credits--) { in rfcomm_dlc_tx_give_credits()
909 pn->credits = dlc->rx_credit; in rfcomm_send_pn()
919 pn->credits = 0U; in rfcomm_send_pn()
932 static int rfcomm_send_credit(struct bt_rfcomm_dlc *dlc, u8_t credits) in rfcomm_send_credit() argument
938 BT_DBG("Dlc %p credits %d", dlc, credits); in rfcomm_send_credit()
948 net_buf_add_u8(buf, credits); in rfcomm_send_credit()
1190 rfcomm_dlc_tx_give_credits(dlc, pn->credits); in rfcomm_handle_pn()
1220 rfcomm_dlc_tx_give_credits(dlc, pn->credits); in rfcomm_handle_pn()
1342 u8_t credits; in rfcomm_dlc_update_credits() local
1356 credits = RFCOMM_MAX_CREDITS - dlc->rx_credit; in rfcomm_dlc_update_credits()
1357 dlc->rx_credit += credits; in rfcomm_dlc_update_credits()
1359 rfcomm_send_credit(dlc, credits); in rfcomm_dlc_update_credits()