• Home
  • Raw
  • Download

Lines Matching refs:p_ccb

145   tL2C_CCB* p_ccb;  in l2c_link_hci_conn_comp()  local
204 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_hci_conn_comp()
205 p_ccb = p_ccb->p_next_ccb) { in l2c_link_hci_conn_comp()
206 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); in l2c_link_hci_conn_comp()
229 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_conn_comp()
230 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp()
232 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci); in l2c_link_hci_conn_comp()
234 p_ccb = pn; in l2c_link_hci_conn_comp()
277 tL2C_CCB* p_ccb; in l2c_link_sec_comp2() local
301 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_next_ccb) { in l2c_link_sec_comp2()
302 p_next_ccb = p_ccb->p_next_ccb; in l2c_link_sec_comp2()
304 if (p_ccb == p_ref_data) { in l2c_link_sec_comp2()
307 l2c_csm_execute(p_ccb, L2CEVT_SEC_COMP, &ci); in l2c_link_sec_comp2()
313 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, in l2c_link_sec_comp2()
315 l2c_ccb_timer_timeout, p_ccb); in l2c_link_sec_comp2()
319 l2c_csm_execute(p_ccb, L2CEVT_SEC_COMP_NEG, &ci); in l2c_link_sec_comp2()
343 tL2C_CCB* p_ccb; in l2c_link_hci_disc_comp() local
361 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_disc_comp()
362 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_disc_comp()
370 if (p_ccb != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp()
371 l2c_csm_execute(p_ccb, L2CEVT_LP_DISCONNECT_IND, &reason); in l2c_link_hci_disc_comp()
373 p_ccb = pn; in l2c_link_hci_disc_comp()
462 tL2C_CCB* p_ccb; in l2c_link_timeout() local
479 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_timeout()
480 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_timeout()
482 l2c_csm_execute(p_ccb, L2CEVT_LP_DISCONNECT_IND, NULL); in l2c_link_timeout()
484 p_ccb = pn; in l2c_link_timeout()
549 tL2C_CCB* p_ccb; in l2c_info_resp_timer_timeout() local
556 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_info_resp_timer_timeout()
557 p_ccb = p_ccb->p_next_ccb) { in l2c_info_resp_timer_timeout()
558 if ((p_ccb->chnl_state == CST_ORIG_W4_SEC_COMP) || in l2c_info_resp_timer_timeout()
559 (p_ccb->chnl_state == CST_TERM_W4_SEC_COMP)) { in l2c_info_resp_timer_timeout()
577 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_info_resp_timer_timeout()
578 p_ccb = p_ccb->p_next_ccb) { in l2c_info_resp_timer_timeout()
579 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_INFO_RSP, &ci); in l2c_info_resp_timer_timeout()
727 tL2C_CCB* p_ccb = l2cb.ccb_pool + xx; in l2c_link_adjust_chnl_allocation() local
729 if (!p_ccb->in_use) continue; in l2c_link_adjust_chnl_allocation()
731 tL2CAP_CHNL_DATA_RATE data_rate = p_ccb->tx_data_rate + p_ccb->rx_data_rate; in l2c_link_adjust_chnl_allocation()
732 p_ccb->buff_quota = L2CAP_CBB_DEFAULT_DATA_RATE_BUFF_QUOTA * data_rate; in l2c_link_adjust_chnl_allocation()
736 p_ccb->local_cid, p_ccb->peer_cfg.fcr.mode, p_ccb->ccb_priority, in l2c_link_adjust_chnl_allocation()
737 p_ccb->tx_data_rate, p_ccb->rx_data_rate, p_ccb->buff_quota); in l2c_link_adjust_chnl_allocation()
740 l2cu_check_channel_congestion(p_ccb); in l2c_link_adjust_chnl_allocation()
834 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_check_power_mode() local
835 p_ccb = p_ccb->p_next_ccb) { in l2c_link_check_power_mode()
836 if (!fixed_queue_is_empty(p_ccb->xmit_hold_q)) { in l2c_link_check_power_mode()
1388 tL2C_CCB* p_ccb; in l2cu_get_next_channel_in_rr() local
1399 p_ccb = p_lcb->rr_serv[p_lcb->rr_pri].p_serve_ccb; in l2cu_get_next_channel_in_rr()
1401 if (!p_ccb) { in l2cu_get_next_channel_in_rr()
1406 LOG_DEBUG("RR scan pri=%d, lcid=0x%04x, q_cout=%zu", p_ccb->ccb_priority, in l2cu_get_next_channel_in_rr()
1407 p_ccb->local_cid, fixed_queue_length(p_ccb->xmit_hold_q)); in l2cu_get_next_channel_in_rr()
1411 if ((p_ccb->p_next_ccb == NULL) || in l2cu_get_next_channel_in_rr()
1412 (p_ccb->p_next_ccb->ccb_priority != p_ccb->ccb_priority)) { in l2cu_get_next_channel_in_rr()
1418 p_lcb->rr_serv[p_lcb->rr_pri].p_serve_ccb = p_ccb->p_next_ccb; in l2cu_get_next_channel_in_rr()
1421 if (p_ccb->chnl_state != CST_OPEN) continue; in l2cu_get_next_channel_in_rr()
1423 if (p_ccb->p_lcb->transport == BT_TRANSPORT_LE) { in l2cu_get_next_channel_in_rr()
1425 if (fixed_queue_is_empty(p_ccb->xmit_hold_q)) continue; in l2cu_get_next_channel_in_rr()
1429 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) { in l2cu_get_next_channel_in_rr()
1430 if (p_ccb->fcrb.wait_ack || p_ccb->fcrb.remote_busy) continue; in l2cu_get_next_channel_in_rr()
1432 if (fixed_queue_is_empty(p_ccb->fcrb.retrans_q)) { in l2cu_get_next_channel_in_rr()
1433 if (fixed_queue_is_empty(p_ccb->xmit_hold_q)) continue; in l2cu_get_next_channel_in_rr()
1436 if ((p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) && in l2cu_get_next_channel_in_rr()
1437 (l2c_fcr_is_flow_controlled(p_ccb))) in l2cu_get_next_channel_in_rr()
1441 if (fixed_queue_is_empty(p_ccb->xmit_hold_q)) continue; in l2cu_get_next_channel_in_rr()
1446 p_serve_ccb = p_ccb; in l2cu_get_next_channel_in_rr()
1483 tL2C_CCB* p_ccb; in l2cu_get_next_buffer_to_send() local
1490 p_ccb = p_lcb->p_fixed_ccbs[xx]; in l2cu_get_next_buffer_to_send()
1491 if (p_ccb == NULL) continue; in l2cu_get_next_buffer_to_send()
1494 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) { in l2cu_get_next_buffer_to_send()
1495 if (p_ccb->fcrb.wait_ack || p_ccb->fcrb.remote_busy) continue; in l2cu_get_next_buffer_to_send()
1498 if (fixed_queue_is_empty(p_ccb->fcrb.retrans_q)) { in l2cu_get_next_buffer_to_send()
1499 if (fixed_queue_is_empty(p_ccb->xmit_hold_q)) continue; in l2cu_get_next_buffer_to_send()
1502 if ((p_ccb->peer_cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) && in l2cu_get_next_buffer_to_send()
1503 (l2c_fcr_is_flow_controlled(p_ccb))) in l2cu_get_next_buffer_to_send()
1507 p_buf = l2c_fcr_get_next_xmit_sdu_seg(p_ccb, 0); in l2cu_get_next_buffer_to_send()
1509 l2cu_check_channel_congestion(p_ccb); in l2cu_get_next_buffer_to_send()
1510 l2cu_set_acl_hci_header(p_buf, p_ccb); in l2cu_get_next_buffer_to_send()
1514 if (!fixed_queue_is_empty(p_ccb->xmit_hold_q)) { in l2cu_get_next_buffer_to_send()
1515 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->xmit_hold_q); in l2cu_get_next_buffer_to_send()
1521 l2cu_check_channel_congestion(p_ccb); in l2cu_get_next_buffer_to_send()
1522 l2cu_set_acl_hci_header(p_buf, p_ccb); in l2cu_get_next_buffer_to_send()
1529 p_ccb = l2cu_get_next_channel_in_rr(p_lcb); in l2cu_get_next_buffer_to_send()
1532 if (p_ccb == NULL) return (NULL); in l2cu_get_next_buffer_to_send()
1534 if (p_ccb->p_lcb->transport == BT_TRANSPORT_LE) { in l2cu_get_next_buffer_to_send()
1536 if (p_ccb->peer_conn_cfg.credits == 0) { in l2cu_get_next_buffer_to_send()
1542 p_buf = l2c_lcc_get_next_xmit_sdu_seg(p_ccb, &last_piece_of_sdu); in l2cu_get_next_buffer_to_send()
1543 p_ccb->peer_conn_cfg.credits--; in l2cu_get_next_buffer_to_send()
1551 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) { in l2cu_get_next_buffer_to_send()
1552 p_buf = l2c_fcr_get_next_xmit_sdu_seg(p_ccb, 0); in l2cu_get_next_buffer_to_send()
1555 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->xmit_hold_q); in l2cu_get_next_buffer_to_send()
1563 if (p_ccb->p_rcb && p_ccb->p_rcb->api.pL2CA_TxComplete_Cb && in l2cu_get_next_buffer_to_send()
1564 (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_ERTM_MODE)) in l2cu_get_next_buffer_to_send()
1565 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, 1); in l2cu_get_next_buffer_to_send()
1567 l2cu_check_channel_congestion(p_ccb); in l2cu_get_next_buffer_to_send()
1569 l2cu_set_acl_hci_header(p_buf, p_ccb); in l2cu_get_next_buffer_to_send()