Lines Matching refs:p_lcb
44 static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf);
58 tL2C_LCB *p_lcb; in l2c_link_hci_conn_req() local
64 p_lcb = l2cu_find_lcb_by_bd_addr (bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_req()
67 if (!p_lcb) in l2c_link_hci_conn_req()
69 p_lcb = l2cu_allocate_lcb (bd_addr, FALSE, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_req()
70 if (!p_lcb) in l2c_link_hci_conn_req()
82 if (p_lcb_cur == p_lcb) in l2c_link_hci_conn_req()
88 p_lcb->link_role = HCI_ROLE_MASTER; in l2c_link_hci_conn_req()
96 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
98 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
104 btsnd_hcic_accept_conn (bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
106 p_lcb->link_state = LST_CONNECTING; in l2c_link_hci_conn_req()
109 btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_LINK_CONNECT_TOUT); in l2c_link_hci_conn_req()
114 if ((p_lcb->link_state == LST_CONNECTING) || (p_lcb->link_state == LST_CONNECT_HOLDING)) in l2c_link_hci_conn_req()
119 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
121 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
124 btsnd_hcic_accept_conn (bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
126 p_lcb->link_state = LST_CONNECTING; in l2c_link_hci_conn_req()
129 else if (p_lcb->link_state == LST_DISCONNECTING) in l2c_link_hci_conn_req()
138 p_lcb->link_state); in l2c_link_hci_conn_req()
159 tL2C_LCB *p_lcb; in l2c_link_hci_conn_comp() local
170 p_lcb = l2cu_find_lcb_by_bd_addr (ci.bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_comp()
173 if (!p_lcb) in l2c_link_hci_conn_comp()
179 if (p_lcb->link_state != LST_CONNECTING) in l2c_link_hci_conn_comp()
181 …L2CAP_TRACE_ERROR ("L2CAP got conn_comp in bad state: %d status: 0x%d", p_lcb->link_state, status… in l2c_link_hci_conn_comp()
184 l2c_link_hci_disc_comp (p_lcb->handle, status); in l2c_link_hci_conn_comp()
190 p_lcb->handle = handle; in l2c_link_hci_conn_comp()
195 p_lcb->link_state = LST_CONNECTED; in l2c_link_hci_conn_comp()
199 l2cu_send_peer_info_req (p_lcb, L2CAP_EXTENDED_FEATURES_INFO_TYPE); in l2c_link_hci_conn_comp()
205 p_lcb->link_role, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_comp()
207 btm_acl_created (ci.bd_addr, NULL, NULL, handle, p_lcb->link_role, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_comp()
212 if (p_lcb->is_bonding) in l2c_link_hci_conn_comp()
221 btu_stop_timer (&p_lcb->timer_entry); in l2c_link_hci_conn_comp()
224 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) in l2c_link_hci_conn_comp()
229 if (p_lcb->p_echo_rsp_cb) in l2c_link_hci_conn_comp()
231 l2cu_send_peer_echo_req (p_lcb, NULL, 0); in l2c_link_hci_conn_comp()
232 btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_ECHO_RSP_TOUT); in l2c_link_hci_conn_comp()
234 else if (!p_lcb->ccb_queue.p_first_ccb) in l2c_link_hci_conn_comp()
236 btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_LINK_STARTUP_TOUT); in l2c_link_hci_conn_comp()
243 p_lcb->link_state = LST_CONNECT_HOLDING; in l2c_link_hci_conn_comp()
244 p_lcb->handle = HCI_INVALID_HANDLE; in l2c_link_hci_conn_comp()
249 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_hci_conn_comp()
253 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; ) in l2c_link_hci_conn_comp()
262 p_lcb->disc_reason = status; in l2c_link_hci_conn_comp()
264 if (p_lcb->ccb_queue.p_first_ccb == NULL) in l2c_link_hci_conn_comp()
265 l2cu_release_lcb (p_lcb); in l2c_link_hci_conn_comp()
271 p_lcb->link_state = LST_CONNECTING; in l2c_link_hci_conn_comp()
275 l2cu_create_conn(p_lcb, BT_TRANSPORT_BR_EDR); in l2c_link_hci_conn_comp()
296 tL2C_LCB *p_lcb; in l2c_link_sec_comp() local
312 p_lcb = l2cu_find_lcb_by_bd_addr (p_bda, BT_TRANSPORT_BR_EDR); in l2c_link_sec_comp()
315 if (!p_lcb) in l2c_link_sec_comp()
322 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_next_ccb) in l2c_link_sec_comp()
362 tL2C_LCB *p_lcb; in l2c_link_hci_disc_comp() local
369 p_lcb = l2cu_find_lcb_by_handle (handle); in l2c_link_hci_disc_comp()
372 if (!p_lcb) in l2c_link_hci_disc_comp()
383 p_lcb->disc_reason = btm_cb.acl_disc_reason; in l2c_link_hci_disc_comp()
386 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_hci_disc_comp()
390 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_hci_disc_comp()
391 btm_ble_update_link_topology_mask(p_lcb->link_role, FALSE); in l2c_link_hci_disc_comp()
395 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; ) in l2c_link_hci_disc_comp()
405 if (p_ccb != p_lcb->p_pending_ccb) in l2c_link_hci_disc_comp()
414 if (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_hci_disc_comp()
417 btm_sco_acl_removed (p_lcb->remote_bd_addr); in l2c_link_hci_disc_comp()
424 if (p_lcb->ccb_queue.p_first_ccb != NULL || p_lcb->p_pending_ccb) in l2c_link_hci_disc_comp()
427 transport = p_lcb->transport; in l2c_link_hci_disc_comp()
430 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_hci_disc_comp()
433 btm_acl_removed (p_lcb->remote_bd_addr, p_lcb->transport); in l2c_link_hci_disc_comp()
436 while (!list_is_empty(p_lcb->link_xmit_data_q)) in l2c_link_hci_disc_comp()
438 p_buf = list_front(p_lcb->link_xmit_data_q); in l2c_link_hci_disc_comp()
439 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2c_link_hci_disc_comp()
452 if (p_lcb->p_fixed_ccbs[xx] && p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) in l2c_link_hci_disc_comp()
456 p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport); in l2c_link_hci_disc_comp()
459 p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, BT_TRANSPORT_BR_EDR); in l2c_link_hci_disc_comp()
461 l2cu_release_ccb (p_lcb->p_fixed_ccbs[xx]); in l2c_link_hci_disc_comp()
463 p_lcb->p_fixed_ccbs[xx] = NULL; in l2c_link_hci_disc_comp()
468 if (l2cu_create_conn(p_lcb, transport)) in l2c_link_hci_disc_comp()
472 p_lcb->p_pending_ccb = NULL; in l2c_link_hci_disc_comp()
476 l2cu_release_lcb (p_lcb); in l2c_link_hci_disc_comp()
480 if (lcb_is_free && ((p_lcb = l2cu_find_lcb_by_state(LST_CONNECT_HOLDING)) != NULL)) in l2c_link_hci_disc_comp()
483 l2cu_create_conn(p_lcb, BT_TRANSPORT_BR_EDR); in l2c_link_hci_disc_comp()
502 tL2C_LCB *p_lcb; in l2c_link_hci_qos_violation() local
506 p_lcb = l2cu_find_lcb_by_handle (handle); in l2c_link_hci_qos_violation()
509 if (!p_lcb) in l2c_link_hci_qos_violation()
513 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) in l2c_link_hci_qos_violation()
533 void l2c_link_timeout (tL2C_LCB *p_lcb) in l2c_link_timeout() argument
540 p_lcb->link_state, p_lcb->ccb_queue.p_first_ccb, p_lcb->is_bonding); in l2c_link_timeout()
543 if ((p_lcb->link_state == LST_CONNECTING_WAIT_SWITCH) || in l2c_link_timeout()
544 (p_lcb->link_state == LST_CONNECTING) || in l2c_link_timeout()
545 (p_lcb->link_state == LST_CONNECT_HOLDING) || in l2c_link_timeout()
546 (p_lcb->link_state == LST_DISCONNECTING)) in l2c_link_timeout()
548 p_lcb->p_pending_ccb = NULL; in l2c_link_timeout()
552 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; ) in l2c_link_timeout()
561 if (p_lcb->link_state == LST_CONNECTING && in l2c_link_timeout()
568 l2cu_release_lcb (p_lcb); in l2c_link_timeout()
572 if (p_lcb->link_state == LST_CONNECTED) in l2c_link_timeout()
575 if (p_lcb->p_echo_rsp_cb) in l2c_link_timeout()
577 tL2CA_ECHO_RSP_CB *p_cb = p_lcb->p_echo_rsp_cb; in l2c_link_timeout()
580 p_lcb->p_echo_rsp_cb = NULL; in l2c_link_timeout()
588 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; ) in l2c_link_timeout()
599 if (!p_lcb->ccb_queue.p_first_ccb) in l2c_link_timeout()
601 rc = btm_sec_disconnect (p_lcb->handle, HCI_ERR_PEER_USER); in l2c_link_timeout()
610 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_timeout()
615 l2cu_process_fixed_disc_cback(p_lcb); in l2c_link_timeout()
617 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_timeout()
625 else if ((p_lcb->is_bonding) in l2c_link_timeout()
626 && (btsnd_hcic_disconnect (p_lcb->handle, HCI_ERR_PEER_USER))) in l2c_link_timeout()
628 l2cu_process_fixed_disc_cback(p_lcb); in l2c_link_timeout()
629 p_lcb->link_state = LST_DISCONNECTING; in l2c_link_timeout()
640 btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, timeout); in l2c_link_timeout()
646 l2c_link_check_send_pkts (p_lcb, NULL, NULL); in l2c_link_timeout()
660 void l2c_info_timeout (tL2C_LCB *p_lcb) in l2c_info_timeout() argument
666 if (p_lcb->w4_info_rsp) in l2c_info_timeout()
669 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) in l2c_info_timeout()
673 … btu_start_timer (&p_lcb->info_timer_entry, BTU_TTYPE_L2CAP_INFO, L2CAP_WAIT_INFO_RSP_TOUT); in l2c_info_timeout()
678 p_lcb->w4_info_rsp = FALSE; in l2c_info_timeout()
681 if ((p_lcb->link_state != LST_DISCONNECTED) && in l2c_info_timeout()
682 (p_lcb->link_state != LST_DISCONNECTING)) in l2c_info_timeout()
685 if (p_lcb->ccb_queue.p_first_ccb) in l2c_info_timeout()
688 memcpy (ci.bd_addr, p_lcb->remote_bd_addr, sizeof(BD_ADDR)); in l2c_info_timeout()
690 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) in l2c_info_timeout()
717 tL2C_LCB *p_lcb; in l2c_link_adjust_allocation() local
733 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) in l2c_link_adjust_allocation()
735 if (p_lcb->in_use) in l2c_link_adjust_allocation()
737 if (p_lcb->acl_priority == L2CAP_PRIORITY_HIGH) in l2c_link_adjust_allocation()
782 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) in l2c_link_adjust_allocation()
784 if (p_lcb->in_use) in l2c_link_adjust_allocation()
786 if (p_lcb->acl_priority == L2CAP_PRIORITY_HIGH) in l2c_link_adjust_allocation()
788 p_lcb->link_xmit_quota = high_pri_link_quota; in l2c_link_adjust_allocation()
795 if (( p_lcb->link_xmit_quota > 0 )&&( qq == 0 )) in l2c_link_adjust_allocation()
796 l2cb.round_robin_unacked += p_lcb->sent_not_acked; in l2c_link_adjust_allocation()
798 p_lcb->link_xmit_quota = qq; in l2c_link_adjust_allocation()
801 p_lcb->link_xmit_quota++; in l2c_link_adjust_allocation()
807 yy, p_lcb->acl_priority, p_lcb->link_xmit_quota); in l2c_link_adjust_allocation()
810 p_lcb->sent_not_acked, l2cb.round_robin_unacked); in l2c_link_adjust_allocation()
815 if ( (p_lcb->link_state == LST_CONNECTED) in l2c_link_adjust_allocation()
816 && (!list_is_empty(p_lcb->link_xmit_data_q)) in l2c_link_adjust_allocation()
817 && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota) ) in l2c_link_adjust_allocation()
818 … btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_LINK_FLOW_CONTROL_TOUT); in l2c_link_adjust_allocation()
991 tL2C_LCB *p_lcb; in l2c_link_role_changed() local
998 p_lcb = l2cu_find_lcb_by_bd_addr (bd_addr, BT_TRANSPORT_BR_EDR); in l2c_link_role_changed()
999 if (p_lcb) in l2c_link_role_changed()
1001 p_lcb->link_role = new_role; in l2c_link_role_changed()
1005 l2cu_set_acl_priority(bd_addr, p_lcb->acl_priority, TRUE); in l2c_link_role_changed()
1010 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) in l2c_link_role_changed()
1012 if ((p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTING_WAIT_SWITCH)) in l2c_link_role_changed()
1014 l2cu_create_conn_after_switch (p_lcb); in l2c_link_role_changed()
1034 tL2C_LCB *p_lcb = l2cu_find_lcb_by_bd_addr (bd_addr, BT_TRANSPORT_BR_EDR); in l2c_pin_code_request() local
1036 if ( (p_lcb) && (!p_lcb->ccb_queue.p_first_ccb) ) in l2c_pin_code_request()
1038 btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_LINK_CONNECT_TOUT_EXT); in l2c_pin_code_request()
1053 BOOLEAN l2c_link_check_power_mode (tL2C_LCB *p_lcb) in l2c_link_check_power_mode() argument
1062 if (list_is_empty(p_lcb->link_xmit_data_q)) in l2c_link_check_power_mode()
1064 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb) in l2c_link_check_power_mode()
1080 if (BTM_ReadPowerMode(p_lcb->remote_bd_addr, &mode) == BTM_SUCCESS) in l2c_link_check_power_mode()
1084 L2CAP_TRACE_DEBUG ("LCB(0x%x) is in PM pending state", p_lcb->handle); in l2c_link_check_power_mode()
1105 void l2c_link_check_send_pkts (tL2C_LCB *p_lcb, tL2C_CCB *p_ccb, BT_HDR *p_buf) in l2c_link_check_send_pkts() argument
1122 list_append(p_lcb->link_xmit_data_q, p_buf); in l2c_link_check_send_pkts()
1124 if (p_lcb->link_xmit_quota == 0) in l2c_link_check_send_pkts()
1127 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_check_send_pkts()
1144 if ( (p_lcb == NULL) || (p_lcb->link_xmit_quota == 0) ) in l2c_link_check_send_pkts()
1146 if (p_lcb == NULL) in l2c_link_check_send_pkts()
1147 p_lcb = l2cb.lcb_pool; in l2c_link_check_send_pkts()
1149 p_lcb++; in l2c_link_check_send_pkts()
1152 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) in l2c_link_check_send_pkts()
1158 && (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_check_send_pkts()
1160 || (p_lcb->transport == BT_TRANSPORT_LE && in l2c_link_check_send_pkts()
1170 if (p_lcb == &l2cb.lcb_pool[MAX_L2CAP_LINKS]) in l2c_link_check_send_pkts()
1171 p_lcb = &l2cb.lcb_pool[0]; in l2c_link_check_send_pkts()
1173 if ( (!p_lcb->in_use) in l2c_link_check_send_pkts()
1174 || (p_lcb->partial_segment_being_sent) in l2c_link_check_send_pkts()
1175 || (p_lcb->link_state != LST_CONNECTED) in l2c_link_check_send_pkts()
1176 || (p_lcb->link_xmit_quota != 0) in l2c_link_check_send_pkts()
1177 || (L2C_LINK_CHECK_POWER_MODE (p_lcb)) ) in l2c_link_check_send_pkts()
1181 if (!list_is_empty(p_lcb->link_xmit_data_q)) { in l2c_link_check_send_pkts()
1182 p_buf = (BT_HDR *)list_front(p_lcb->link_xmit_data_q); in l2c_link_check_send_pkts()
1183 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2c_link_check_send_pkts()
1184 l2c_link_send_to_lower (p_lcb, p_buf); in l2c_link_check_send_pkts()
1192 else if ((p_buf = l2cu_get_next_buffer_to_send (p_lcb)) != NULL) in l2c_link_check_send_pkts()
1194 l2c_link_send_to_lower (p_lcb, p_buf); in l2c_link_check_send_pkts()
1202 && (p_lcb->transport == BT_TRANSPORT_BR_EDR) in l2c_link_check_send_pkts()
1210 && (p_lcb->transport == BT_TRANSPORT_LE)) in l2c_link_check_send_pkts()
1217 if ( (p_lcb->partial_segment_being_sent) in l2c_link_check_send_pkts()
1218 || (p_lcb->link_state != LST_CONNECTED) in l2c_link_check_send_pkts()
1219 || (L2C_LINK_CHECK_POWER_MODE (p_lcb)) ) in l2c_link_check_send_pkts()
1224 while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) || in l2c_link_check_send_pkts()
1225 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE))) in l2c_link_check_send_pkts()
1226 && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)) in l2c_link_check_send_pkts()
1229 && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)) in l2c_link_check_send_pkts()
1232 if (list_is_empty(p_lcb->link_xmit_data_q)) in l2c_link_check_send_pkts()
1235 p_buf = (BT_HDR *)list_front(p_lcb->link_xmit_data_q); in l2c_link_check_send_pkts()
1236 list_remove(p_lcb->link_xmit_data_q, p_buf); in l2c_link_check_send_pkts()
1237 if (!l2c_link_send_to_lower (p_lcb, p_buf)) in l2c_link_check_send_pkts()
1245 … while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) || in l2c_link_check_send_pkts()
1246 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE))) in l2c_link_check_send_pkts()
1247 && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)) in l2c_link_check_send_pkts()
1249 … while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)) in l2c_link_check_send_pkts()
1252 if ((p_buf = l2cu_get_next_buffer_to_send (p_lcb)) == NULL) in l2c_link_check_send_pkts()
1255 if (!l2c_link_send_to_lower (p_lcb, p_buf)) in l2c_link_check_send_pkts()
1263 …if ( (!list_is_empty(p_lcb->link_xmit_data_q)) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)… in l2c_link_check_send_pkts()
1264 … btu_start_timer (&p_lcb->timer_entry, BTU_TTYPE_L2CAP_LINK, L2CAP_LINK_FLOW_CONTROL_TOUT); in l2c_link_check_send_pkts()
1278 static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf) in l2c_link_send_to_lower() argument
1286 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) || in l2c_link_send_to_lower()
1287 … ((p_lcb->transport == BT_TRANSPORT_LE) && (p_buf->len <= controller->get_acl_packet_size_ble())) in l2c_link_send_to_lower()
1293 if (p_lcb->link_xmit_quota == 0) in l2c_link_send_to_lower()
1296 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1302 p_lcb->sent_not_acked++; in l2c_link_send_to_lower()
1306 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1321 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1337 if (p_lcb->link_xmit_quota == 0) in l2c_link_send_to_lower()
1340 p_lcb->partial_segment_being_sent = TRUE; in l2c_link_send_to_lower()
1348 p_lcb->partial_segment_being_sent = TRUE; in l2c_link_send_to_lower()
1351 if (num_segs > (p_lcb->link_xmit_quota - p_lcb->sent_not_acked)) in l2c_link_send_to_lower()
1353 num_segs = (p_lcb->link_xmit_quota - p_lcb->sent_not_acked); in l2c_link_send_to_lower()
1354 p_lcb->partial_segment_being_sent = TRUE; in l2c_link_send_to_lower()
1360 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1363 if (p_lcb->link_xmit_quota == 0) in l2c_link_send_to_lower()
1371 if (p_lcb->link_xmit_quota == 0) in l2c_link_send_to_lower()
1375 p_lcb->sent_not_acked += num_segs; in l2c_link_send_to_lower()
1377 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1390 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_send_to_lower()
1394 p_lcb->handle, in l2c_link_send_to_lower()
1395 p_lcb->link_xmit_quota, p_lcb->sent_not_acked, in l2c_link_send_to_lower()
1403 p_lcb->handle, in l2c_link_send_to_lower()
1404 p_lcb->link_xmit_quota, p_lcb->sent_not_acked, in l2c_link_send_to_lower()
1428 tL2C_LCB *p_lcb; in l2c_link_process_num_completed_pkts() local
1437 p_lcb = l2cu_find_lcb_by_handle (handle); in l2c_link_process_num_completed_pkts()
1441 if((p_lcb != NULL) && (p_lcb->p_nocp_cb)) in l2c_link_process_num_completed_pkts()
1444 (*p_lcb->p_nocp_cb)(p_lcb->remote_bd_addr); in l2c_link_process_num_completed_pkts()
1447 if (p_lcb) in l2c_link_process_num_completed_pkts()
1450 if (p_lcb && (p_lcb->transport == BT_TRANSPORT_LE)) in l2c_link_process_num_completed_pkts()
1459 if (p_lcb->link_xmit_quota == 0) in l2c_link_process_num_completed_pkts()
1462 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_process_num_completed_pkts()
1482 if (p_lcb->sent_not_acked > num_sent) in l2c_link_process_num_completed_pkts()
1483 p_lcb->sent_not_acked -= num_sent; in l2c_link_process_num_completed_pkts()
1485 p_lcb->sent_not_acked = 0; in l2c_link_process_num_completed_pkts()
1487 l2c_link_check_send_pkts (p_lcb, NULL, NULL); in l2c_link_process_num_completed_pkts()
1490 if ( (p_lcb->acl_priority == L2CAP_PRIORITY_HIGH) in l2c_link_process_num_completed_pkts()
1497 if ((p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_process_num_completed_pkts()
1498 && (p_lcb->acl_priority == L2CAP_PRIORITY_HIGH) in l2c_link_process_num_completed_pkts()
1508 if (p_lcb) in l2c_link_process_num_completed_pkts()
1511 if (p_lcb->transport == BT_TRANSPORT_LE) in l2c_link_process_num_completed_pkts()
1515 p_lcb->handle, p_lcb->sent_not_acked, in l2c_link_process_num_completed_pkts()
1523 p_lcb->handle, p_lcb->sent_not_acked, in l2c_link_process_num_completed_pkts()
1566 tL2C_LCB *p_lcb; in l2c_link_segments_xmitted() local
1573 if ((p_lcb = l2cu_find_lcb_by_handle (handle)) == NULL) in l2c_link_segments_xmitted()
1580 if (p_lcb->link_state == LST_CONNECTED) in l2c_link_segments_xmitted()
1584 list_prepend(p_lcb->link_xmit_data_q, p_msg); in l2c_link_segments_xmitted()
1586 p_lcb->partial_segment_being_sent = FALSE; in l2c_link_segments_xmitted()
1588 l2c_link_check_send_pkts (p_lcb, NULL, NULL); in l2c_link_segments_xmitted()