Home
last modified time | relevance | path

Searched refs:p_ccb (Results 1 – 25 of 42) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_csm.cc51 static void l2c_csm_closed(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
52 static void l2c_csm_orig_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
54 static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
56 static void l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
58 static void l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
60 static void l2c_csm_config(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
61 static void l2c_csm_open(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
62 static void l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
64 static void l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
70 static void l2c_csm_send_connect_rsp(tL2C_CCB* p_ccb) { in l2c_csm_send_connect_rsp() argument
[all …]
Dl2c_fcr.cc88 static bool process_reqseq(tL2C_CCB* p_ccb, uint16_t ctrl_word);
89 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word);
90 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word,
92 static bool retransmit_i_frames(tL2C_CCB* p_ccb, uint8_t tx_seq);
93 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf,
95 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf,
163 void l2c_fcr_start_timer(tL2C_CCB* p_ccb) { in l2c_fcr_start_timer() argument
164 log::assert_that(p_ccb != NULL, "assert failed: p_ccb != NULL"); in l2c_fcr_start_timer()
168 if (p_ccb->fcrb.wait_ack) { in l2c_fcr_start_timer()
169 tout = (uint32_t)p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_start_timer()
[all …]
Dl2c_utils.cc151 tL2C_CCB* p_ccb; in l2cu_release_lcb() local
182 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cu_release_lcb()
183 p_ccb = p_lcb->ccb_queue.p_first_ccb) { in l2cu_release_lcb()
184 l2cu_release_ccb(p_ccb); in l2cu_release_lcb()
401 void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb) { in l2cu_send_peer_connect_req() argument
406 p_ccb->p_lcb->signal_id++; in l2cu_send_peer_connect_req()
407 l2cu_adj_id(p_ccb->p_lcb); in l2cu_send_peer_connect_req()
409 p_ccb->local_id = p_ccb->p_lcb->signal_id; in l2cu_send_peer_connect_req()
411 p_buf = l2cu_build_header(p_ccb->p_lcb, L2CAP_CONN_REQ_LEN, in l2cu_send_peer_connect_req()
412 L2CAP_CMD_CONN_REQ, p_ccb->local_id); in l2cu_send_peer_connect_req()
[all …]
Dl2c_link.cc71 tL2C_CCB* p_ccb; in l2c_link_hci_conn_comp() local
127 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_hci_conn_comp()
128 p_ccb = p_ccb->p_next_ccb) { in l2c_link_hci_conn_comp()
129 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); in l2c_link_hci_conn_comp()
152 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_conn_comp()
153 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp()
155 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci); in l2c_link_hci_conn_comp()
157 p_ccb = pn; in l2c_link_hci_conn_comp()
193 tL2C_CCB* p_ccb; in l2c_link_sec_comp() local
222 p_ccb = (tL2C_CCB*)p_ref_data; in l2c_link_sec_comp()
[all …]
Dl2c_main.cc119 tL2C_CCB* p_ccb = NULL; in l2c_rcv_acl_data() local
121 p_ccb = l2cu_find_ccb_by_cid(p_lcb, rcv_cid); in l2c_rcv_acl_data()
122 if (!p_ccb) { in l2c_rcv_acl_data()
171 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL]; in l2c_rcv_acl_data()
172 p_ccb->metrics.rx(p_msg->len); in l2c_rcv_acl_data()
174 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in l2c_rcv_acl_data()
175 l2c_fcr_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data()
182 if (!p_ccb) { in l2c_rcv_acl_data()
188 l2c_lcc_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data()
191 --p_ccb->remote_credit_count; in l2c_rcv_acl_data()
[all …]
Dl2c_api.cc195 tL2C_CCB* p_ccb; in L2CA_Deregister() local
206 p_ccb = p_lcb->ccb_queue.p_first_ccb; in L2CA_Deregister()
207 if ((p_ccb == NULL) || (p_lcb->link_state == LST_DISCONNECTING)) { in L2CA_Deregister()
211 if ((p_ccb->in_use) && in L2CA_Deregister()
212 ((p_ccb->chnl_state == CST_W4_L2CAP_DISCONNECT_RSP) || in L2CA_Deregister()
213 (p_ccb->chnl_state == CST_W4_L2CA_DISCONNECT_RSP))) { in L2CA_Deregister()
217 if (p_ccb->p_rcb == p_rcb) { in L2CA_Deregister()
218 l2c_csm_execute(p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL); in L2CA_Deregister()
347 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in L2CA_ConnectReq() local
348 if (p_ccb == nullptr) { in L2CA_ConnectReq()
[all …]
Dl2c_ble.cc118 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cble_notify_le_connection() local
119 p_ccb = p_ccb->p_next_ccb) { in l2cble_notify_le_connection()
120 if (p_ccb->chnl_state == CST_CLOSED) in l2cble_notify_le_connection()
121 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); in l2cble_notify_le_connection()
242 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd() local
448 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
449 p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX; in l2cble_process_sig_cmd()
450 p_ccb->local_conn_cfg.mps = bluetooth::shim::GetController() in l2cble_process_sig_cmd()
453 p_lcb->pending_lead_cid = p_ccb->local_cid; in l2cble_process_sig_cmd()
467 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_CONNECT_REQ, NULL); in l2cble_process_sig_cmd()
[all …]
Dl2c_int.h670 tL2C_CCB* p_ccb; /* CCB */ member
718 void l2cu_enqueue_ccb(tL2C_CCB* p_ccb);
719 void l2cu_dequeue_ccb(tL2C_CCB* p_ccb);
720 void l2cu_change_pri_ccb(tL2C_CCB* p_ccb, tL2CAP_CHNL_PRIORITY priority);
724 void l2cu_release_ccb(tL2C_CCB* p_ccb);
731 void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb);
732 void l2cu_send_peer_connect_rsp(tL2C_CCB* p_ccb, uint16_t result,
734 void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg);
735 void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg);
736 void l2cu_send_peer_config_rej(tL2C_CCB* p_ccb, uint8_t* p_data,
[all …]
/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc104 static void gap_release_ccb(tGAP_CCB* p_ccb);
105 static void gap_checks_con_flags(tGAP_CCB* p_ccb);
173 tGAP_CCB* p_ccb; in GAP_ConnOpen() local
177 p_ccb = gap_allocate_ccb(); in GAP_ConnOpen()
178 if (p_ccb == NULL) return (GAP_INVALID_HANDLE); in GAP_ConnOpen()
181 p_ccb->transport = transport; in GAP_ConnOpen()
184 p_ccb->service_id = service_id; in GAP_ConnOpen()
189 if (*p_rem_bda != RawAddress::kAny) p_ccb->rem_addr_specified = true; in GAP_ConnOpen()
191 p_ccb->rem_dev_address = *p_rem_bda; in GAP_ConnOpen()
194 gap_release_ccb(p_ccb); in GAP_ConnOpen()
[all …]
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_ccb_act.cc53 static void avdt_ccb_clear_ccb(AvdtpCcb* p_ccb) { in avdt_ccb_clear_ccb() argument
57 p_ccb->cong = false; in avdt_ccb_clear_ccb()
58 p_ccb->ret_count = 0; in avdt_ccb_clear_ccb()
61 osi_free_and_reset((void**)&p_ccb->p_curr_msg); in avdt_ccb_clear_ccb()
64 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_ccb_clear_ccb()
67 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->rsp_q)) != NULL) in avdt_ccb_clear_ccb()
82 void avdt_ccb_chan_open(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* /* p_data */) { in avdt_ccb_chan_open() argument
83 avdt_ad_open_req(AVDT_CHAN_SIG, p_ccb, NULL, AVDT_INT); in avdt_ccb_chan_open()
97 void avdt_ccb_chan_close(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* /* p_data */) { in avdt_ccb_chan_close() argument
99 avdt_ad_close_req(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_ccb_chan_close()
[all …]
Davdt_ccb.cc368 void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event, tAVDT_CCB_EVT* p_data) { in avdt_ccb_event() argument
374 log::verbose("CCB ccb={} event={} state={} p_ccb={}", avdt_ccb_to_idx(p_ccb), in avdt_ccb_event()
375 avdt_ccb_evt_str[event], avdt_ccb_st_str[p_ccb->state], in avdt_ccb_event()
376 fmt::ptr(p_ccb)); in avdt_ccb_event()
380 state_table = avdt_ccb_st_tbl[p_ccb->state]; in avdt_ccb_event()
383 if (p_ccb->state != state_table[event][AVDT_CCB_NEXT_STATE]) { in avdt_ccb_event()
384 p_ccb->state = state_table[event][AVDT_CCB_NEXT_STATE]; in avdt_ccb_event()
391 avdt_ccb_st_str[p_ccb->state], action); in avdt_ccb_event()
393 (*avdtp_cb.p_ccb_act[action])(p_ccb, p_data); in avdt_ccb_event()
411 AvdtpCcb* p_ccb = &avdtp_cb.ccb[0]; in avdt_ccb_by_bd() local
[all …]
Davdt_msg.cc1056 bool avdt_msg_send(AvdtpCcb* p_ccb, BT_HDR* p_msg) { in avdt_msg_send() argument
1069 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_msg_send()
1073 p_ccb->p_curr_msg = p_msg; in avdt_msg_send()
1077 curr_msg_len = p_ccb->p_curr_msg->len; in avdt_msg_send()
1080 while ((!p_ccb->cong) && (p_ccb->p_curr_msg != NULL)) { in avdt_msg_send()
1086 if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send()
1087 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1090 p_buf = p_ccb->p_curr_msg; in avdt_msg_send()
1093 else if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send()
1094 (p_ccb->p_curr_msg->len > in avdt_msg_send()
[all …]
Davdt_l2c.cc83 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_term() local
86 p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_term()
88 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term()
93 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
112 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_orig() local
116 if (bd_addr) p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_orig()
117 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); in avdt_sec_check_complete_orig()
140 AvdtpCcb* p_ccb; in avdt_l2c_connect_ind_cback() local
145 p_ccb = avdt_ccb_by_bd(bd_addr); in avdt_l2c_connect_ind_cback()
146 if (p_ccb == NULL) { in avdt_l2c_connect_ind_cback()
[all …]
Davdt_int.h417 p_ccb(nullptr), in AvdtpScb()
448 AvdtpCcb* p_ccb_saved = p_ccb; in Recycle()
466 p_ccb = nullptr; in Reset()
490 AvdtpCcb* p_ccb; // CCB associated with this SCB variable
726 typedef void (*tAVDT_CCB_ACTION)(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
789 void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event, tAVDT_CCB_EVT* p_data);
794 void avdt_ccb_dealloc(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
795 uint8_t avdt_ccb_to_idx(AvdtpCcb* p_ccb);
799 void avdt_ccb_chan_open(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
800 void avdt_ccb_chan_close(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
[all …]
Davdt_scb_act.cc212 avdt_ad_open_req(AVDT_CHAN_MEDIA, p_scb->p_ccb, p_scb, AVDT_INT); in avdt_scb_hdl_open_rsp()
577 AvdtpCcb* p_ccb = avdt_ccb_by_idx(p_data->msg.config_cmd.hdr.ccb_idx); in avdt_scb_hdl_setconfig_cmd() local
578 if (p_scb->p_ccb != p_ccb) { in avdt_scb_hdl_setconfig_cmd()
582 fmt::ptr(p_scb->p_ccb), fmt::ptr(p_ccb), fmt::ptr(p_scb), in avdt_scb_hdl_setconfig_cmd()
596 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : RawAddress::kEmpty, in avdt_scb_hdl_setconfig_cmd()
647 if (p_scb->p_ccb == NULL) { in avdt_scb_snd_snk_delay_rpt_req()
680 if (p_scb->p_ccb != NULL) { in avdt_scb_hdl_setconfig_rsp()
709 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : RawAddress::kEmpty, in avdt_scb_hdl_start_cmd()
726 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : RawAddress::kEmpty, in avdt_scb_hdl_start_rsp()
744 p_scb->p_ccb ? p_scb->p_ccb->peer_addr : RawAddress::kEmpty, in avdt_scb_hdl_suspend_cmd()
[all …]
Davdt_ad.cc143 AvdtpTransportChannel* avdt_ad_tc_tbl_by_st(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_st() argument
149 if (p_ccb == NULL) { in avdt_ad_tc_tbl_by_st()
158 ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_st()
215 AvdtpTransportChannel* avdt_ad_tc_tbl_by_type(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_type() argument
220 uint8_t ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_type()
246 AvdtpTransportChannel* avdt_ad_tc_tbl_alloc(AvdtpCcb* p_ccb) { in avdt_ad_tc_tbl_alloc() argument
263 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_alloc()
299 AvdtpCcb* p_ccb; in avdt_ad_tc_close_ind() local
312 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_close_ind()
313 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL); in avdt_ad_tc_close_ind()
[all …]
Davdt_api.cc49 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_idle_ccb_timer_timeout() local
55 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_idle_ccb_timer_timeout()
59 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_ret_ccb_timer_timeout() local
65 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_ret_ccb_timer_timeout()
69 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_rsp_ccb_timer_timeout() local
75 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_rsp_ccb_timer_timeout()
258 AvdtpCcb* p_ccb; in AVDT_DiscoverReq() local
265 p_ccb = avdt_ccb_by_bd(bd_addr); in AVDT_DiscoverReq()
266 if (p_ccb == NULL) { in AVDT_DiscoverReq()
267 p_ccb = avdt_ccb_alloc_by_channel_index(bd_addr, channel_index); in AVDT_DiscoverReq()
[all …]
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_server.cc188 static void process_service_search(tCONN_CB* p_ccb, uint16_t trans_num, in process_service_search() argument
202 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in process_service_search()
209 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in process_service_search()
229 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_CONT_STATE, in process_service_search()
236 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_CONT_STATE, in process_service_search()
242 if (cont_offset != p_ccb->cont_offset || num_rsp_handles < cont_offset) { in process_service_search()
243 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_CONT_STATE, in process_service_search()
253 p_ccb->cont_offset = 0; in process_service_search()
258 (uint16_t)((p_ccb->rem_mtu_size - SDP_MAX_SERVICE_RSPHDR_LEN) / 4); in process_service_search()
264 p_ccb->cont_offset += cur_handles; in process_service_search()
[all …]
Dsdp_discovery.cc120 static void sdp_snd_service_search_req(tCONN_CB* p_ccb, uint8_t cont_len, in sdp_snd_service_search_req() argument
133 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req()
134 p_ccb->transaction_id++; in sdp_snd_service_search_req()
156 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req()
157 p_ccb->p_db->uuid_filters, bytes_left); in sdp_snd_service_search_req()
175 p_ccb->disc_state = SDP_DISC_WAIT_HANDLES; in sdp_snd_service_search_req()
180 if (L2CA_DataWrite(p_ccb->connection_id, p_cmd) != L2CAP_DW_SUCCESS) { in sdp_snd_service_search_req()
182 p_ccb->device_address, p_ccb->connection_id, p_cmd->len); in sdp_snd_service_search_req()
186 alarm_set_on_mloop(p_ccb->sdp_conn_timer, SDP_INACT_TIMEOUT_MS, in sdp_snd_service_search_req()
187 sdp_conn_timer_timeout, p_ccb); in sdp_snd_service_search_req()
[all …]
Dsdp_main.cc61 tCONN_CB* p_ccb = sdpu_allocate_ccb(); in sdp_connect_ind() local
62 if (p_ccb == NULL) return; in sdp_connect_ind()
65 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_ind()
68 p_ccb->device_address = bd_addr; in sdp_connect_ind()
69 p_ccb->connection_id = l2cap_cid; in sdp_connect_ind()
73 tCONN_CB* p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_on_l2cap_error() local
74 if (p_ccb == nullptr) return; in sdp_on_l2cap_error()
75 sdp_disconnect(p_ccb, SDP_CFG_FAILED); in sdp_on_l2cap_error()
90 tCONN_CB* p_ccb; in sdp_connect_cfm() local
93 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_connect_cfm()
[all …]
Dsdp_utils.cc336 tCONN_CB* p_ccb; in sdpu_find_ccb_by_cid() local
339 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
340 if ((p_ccb->con_state != SDP_STATE_IDLE) && in sdpu_find_ccb_by_cid()
341 (p_ccb->con_state != SDP_STATE_CONN_PEND) && in sdpu_find_ccb_by_cid()
342 (p_ccb->connection_id == cid)) { in sdpu_find_ccb_by_cid()
343 return (p_ccb); in sdpu_find_ccb_by_cid()
363 tCONN_CB* p_ccb; in sdpu_find_ccb_by_db() local
367 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
368 if ((p_ccb->con_state != SDP_STATE_IDLE) && (p_ccb->p_db == p_db)) in sdpu_find_ccb_by_db()
369 return (p_ccb); in sdpu_find_ccb_by_db()
[all …]
/packages/modules/Bluetooth/system/stack/avct/
Davct_api.cc126 tAVCT_CCB* p_ccb; in AVCT_CreateConn() local
132 p_ccb = avct_ccb_alloc(p_cc); in AVCT_CreateConn()
133 if (p_ccb == NULL) { in AVCT_CreateConn()
137 *p_handle = avct_ccb_to_idx(p_ccb); in AVCT_CreateConn()
147 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
153 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
159 p_ccb->p_lcb = p_lcb; in AVCT_CreateConn()
162 avct_lcb_evt.p_ccb = p_ccb; in AVCT_CreateConn()
185 tAVCT_CCB* p_ccb; in AVCT_RemoveConn() local
190 p_ccb = avct_ccb_by_idx(handle); in AVCT_RemoveConn()
[all …]
Davct_bcb_act.cc139 p_data->p_ccb->p_bcb = NULL; in avct_bcb_unbind_disc()
140 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb), in avct_bcb_unbind_disc()
159 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_bcb_open_ind() local
164 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_ind()
166 if (p_ccb->allocated) { in avct_bcb_open_ind()
168 if (p_ccb->p_bcb == p_bcb) { in avct_bcb_open_ind()
170 p_ccb_bind = p_ccb; in avct_bcb_open_ind()
171 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_BROWSE_CONN_CFM_EVT, in avct_bcb_open_ind()
172 0, &p_ccb->p_lcb->peer_addr); in avct_bcb_open_ind()
176 else if ((p_ccb->p_bcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && in avct_bcb_open_ind()
[all …]
Davct_lcb_act.cc208 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); in avct_lcb_unbind_disc()
225 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_open_ind() local
232 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_open_ind()
233 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb) && in avct_lcb_open_ind()
234 p_ccb->cc.role == AVCT_INT) { in avct_lcb_open_ind()
240 p_ccb = &avct_cb.ccb[0]; in avct_lcb_open_ind()
241 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_open_ind()
246 p_ccb->allocated, fmt::ptr(p_ccb->p_lcb), p_ccb->cc.role, in avct_lcb_open_ind()
247 p_ccb->cc.pid); in avct_lcb_open_ind()
248 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb)) { in avct_lcb_open_ind()
[all …]
Davct_ccb.cc49 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_ccb_alloc() local
52 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_ccb_alloc()
53 if (!p_ccb->allocated) { in avct_ccb_alloc()
54 p_ccb->allocated = AVCT_ALOC_LCB; in avct_ccb_alloc()
55 memcpy(&p_ccb->cc, p_cc, sizeof(tAVCT_CC)); in avct_ccb_alloc()
63 p_ccb = NULL; in avct_ccb_alloc()
66 return p_ccb; in avct_ccb_alloc()
80 void avct_ccb_dealloc(tAVCT_CCB* p_ccb, uint8_t event, uint16_t result, in avct_ccb_dealloc() argument
82 tAVCT_CTRL_CBACK* p_cback = p_ccb->cc.p_ctrl_cback; in avct_ccb_dealloc()
84 log::verbose("avct_ccb_dealloc {}", avct_ccb_to_idx(p_ccb)); in avct_ccb_dealloc()
[all …]

12