Lines Matching refs:num_segs
1108 uint16_t num_segs; in l2c_link_send_to_lower() local
1142 num_segs = (p_buf->len - HCI_DATA_PREAMBLE_SIZE + acl_data_size - 1) / in l2c_link_send_to_lower()
1147 num_segs = 1; in l2c_link_send_to_lower()
1151 if (num_segs > xmit_window) { in l2c_link_send_to_lower()
1152 num_segs = xmit_window; in l2c_link_send_to_lower()
1156 if (num_segs > (p_lcb->link_xmit_quota - p_lcb->sent_not_acked)) { in l2c_link_send_to_lower()
1157 num_segs = (p_lcb->link_xmit_quota - p_lcb->sent_not_acked); in l2c_link_send_to_lower()
1162 p_buf->layer_specific = num_segs; in l2c_link_send_to_lower()
1164 l2cb.controller_le_xmit_window -= num_segs; in l2c_link_send_to_lower()
1165 if (p_lcb->link_xmit_quota == 0) l2cb.ble_round_robin_unacked += num_segs; in l2c_link_send_to_lower()
1167 l2cb.controller_xmit_window -= num_segs; in l2c_link_send_to_lower()
1169 if (p_lcb->link_xmit_quota == 0) l2cb.round_robin_unacked += num_segs; in l2c_link_send_to_lower()
1172 p_lcb->sent_not_acked += num_segs; in l2c_link_send_to_lower()