Lines Matching refs:p_ccb
150 tL2C_CCB* p_ccb; in l2c_link_hci_conn_comp() local
215 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_hci_conn_comp()
216 p_ccb = p_ccb->p_next_ccb) { in l2c_link_hci_conn_comp()
217 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); in l2c_link_hci_conn_comp()
242 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_conn_comp()
243 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp()
245 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci); in l2c_link_hci_conn_comp()
247 p_ccb = pn; in l2c_link_hci_conn_comp()
289 tL2C_CCB* p_ccb; in l2c_link_sec_comp2() local
311 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_next_ccb) { in l2c_link_sec_comp2()
312 p_next_ccb = p_ccb->p_next_ccb; in l2c_link_sec_comp2()
314 if (p_ccb == p_ref_data) { in l2c_link_sec_comp2()
323 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, in l2c_link_sec_comp2()
325 l2c_ccb_timer_timeout, p_ccb); in l2c_link_sec_comp2()
331 l2c_csm_execute(p_ccb, event, &ci); in l2c_link_sec_comp2()
349 tL2C_CCB* p_ccb; in l2c_link_hci_disc_comp() local
376 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_disc_comp()
377 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_disc_comp()
385 if (p_ccb != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp()
386 l2c_csm_execute(p_ccb, L2CEVT_LP_DISCONNECT_IND, &reason); in l2c_link_hci_disc_comp()
388 p_ccb = pn; in l2c_link_hci_disc_comp()
483 tL2C_CCB* p_ccb; in l2c_link_hci_qos_violation() local
492 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()
493 if (p_ccb->p_rcb->api.pL2CA_QoSViolationInd_Cb) in l2c_link_hci_qos_violation()
494 l2c_csm_execute(p_ccb, L2CEVT_LP_QOS_VIOLATION_IND, NULL); in l2c_link_hci_qos_violation()
510 tL2C_CCB* p_ccb; in l2c_link_timeout() local
527 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_timeout()
528 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_timeout()
530 l2c_csm_execute(p_ccb, L2CEVT_LP_DISCONNECT_IND, NULL); in l2c_link_timeout()
532 p_ccb = pn; in l2c_link_timeout()
554 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_timeout()
555 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_timeout()
557 l2c_csm_execute(p_ccb, L2CEVT_LP_DISCONNECT_IND, NULL); in l2c_link_timeout()
559 p_ccb = pn; in l2c_link_timeout()
618 tL2C_CCB* p_ccb; in l2c_info_resp_timer_timeout() local
625 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_info_resp_timer_timeout()
626 p_ccb = p_ccb->p_next_ccb) { in l2c_info_resp_timer_timeout()
627 if ((p_ccb->chnl_state == CST_ORIG_W4_SEC_COMP) || in l2c_info_resp_timer_timeout()
628 (p_ccb->chnl_state == CST_TERM_W4_SEC_COMP)) { in l2c_info_resp_timer_timeout()
646 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_info_resp_timer_timeout()
647 p_ccb = p_ccb->p_next_ccb) { in l2c_info_resp_timer_timeout()
648 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_INFO_RSP, &ci); in l2c_info_resp_timer_timeout()
796 tL2C_CCB* p_ccb = l2cb.ccb_pool + xx; in l2c_link_adjust_chnl_allocation() local
798 if (!p_ccb->in_use) continue; in l2c_link_adjust_chnl_allocation()
800 tL2CAP_CHNL_DATA_RATE data_rate = p_ccb->tx_data_rate + p_ccb->rx_data_rate; in l2c_link_adjust_chnl_allocation()
801 p_ccb->buff_quota = L2CAP_CBB_DEFAULT_DATA_RATE_BUFF_QUOTA * data_rate; in l2c_link_adjust_chnl_allocation()
805 p_ccb->local_cid, p_ccb->peer_cfg.fcr.mode, p_ccb->ccb_priority, in l2c_link_adjust_chnl_allocation()
806 p_ccb->tx_data_rate, p_ccb->rx_data_rate, p_ccb->buff_quota); in l2c_link_adjust_chnl_allocation()
809 l2cu_check_channel_congestion(p_ccb); in l2c_link_adjust_chnl_allocation()
920 tL2C_CCB* p_ccb; in l2c_link_check_power_mode() local
927 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_check_power_mode()
928 p_ccb = p_ccb->p_next_ccb) { in l2c_link_check_power_mode()
929 if (!fixed_queue_is_empty(p_ccb->xmit_hold_q)) { in l2c_link_check_power_mode()
963 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
969 if (p_ccb != NULL) { in l2c_link_check_send_pkts()
970 p_buf->event = p_ccb->local_cid; in l2c_link_check_send_pkts()