Lines Matching refs:num_segs
1064 uint16_t num_segs = in l2c_link_send_to_lower_br_edr() local
1070 num_segs = 1; in l2c_link_send_to_lower_br_edr()
1074 if (num_segs > l2cb.controller_xmit_window) { in l2c_link_send_to_lower_br_edr()
1075 num_segs = l2cb.controller_xmit_window; in l2c_link_send_to_lower_br_edr()
1079 if (num_segs > (p_lcb->link_xmit_quota - p_lcb->sent_not_acked)) { in l2c_link_send_to_lower_br_edr()
1080 num_segs = (p_lcb->link_xmit_quota - p_lcb->sent_not_acked); in l2c_link_send_to_lower_br_edr()
1085 p_lcb->sent_not_acked += num_segs; in l2c_link_send_to_lower_br_edr()
1086 p_buf->layer_specific = num_segs; in l2c_link_send_to_lower_br_edr()
1087 l2cb.controller_xmit_window -= num_segs; in l2c_link_send_to_lower_br_edr()
1088 if (p_lcb->link_xmit_quota == 0) l2cb.round_robin_unacked += num_segs; in l2c_link_send_to_lower_br_edr()
1111 uint16_t num_segs = in l2c_link_send_to_lower_ble() local
1117 num_segs = 1; in l2c_link_send_to_lower_ble()
1121 if (num_segs > l2cb.controller_le_xmit_window) { in l2c_link_send_to_lower_ble()
1122 num_segs = l2cb.controller_le_xmit_window; in l2c_link_send_to_lower_ble()
1126 if (num_segs > (p_lcb->link_xmit_quota - p_lcb->sent_not_acked)) { in l2c_link_send_to_lower_ble()
1127 num_segs = (p_lcb->link_xmit_quota - p_lcb->sent_not_acked); in l2c_link_send_to_lower_ble()
1132 p_lcb->sent_not_acked += num_segs; in l2c_link_send_to_lower_ble()
1133 p_buf->layer_specific = num_segs; in l2c_link_send_to_lower_ble()
1134 l2cb.controller_le_xmit_window -= num_segs; in l2c_link_send_to_lower_ble()
1135 if (p_lcb->link_xmit_quota == 0) l2cb.ble_round_robin_unacked += num_segs; in l2c_link_send_to_lower_ble()