Home
last modified time | relevance | path

Searched refs:pcb (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/stack/pan/
Dpan_main.cc198 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb() local
199 if (pcb) { in pan_conn_ind_cb()
212 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_conn_ind_cb()
216 pcb->prv_src_uuid = pcb->src_uuid; in pan_conn_ind_cb()
217 pcb->prv_dst_uuid = pcb->dst_uuid; in pan_conn_ind_cb()
219 if (pcb->src_uuid == UUID_SERVCLASS_NAP && in pan_conn_ind_cb()
223 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_conn_ind_cb()
228 pcb->src_uuid = local_uuid16; in pan_conn_ind_cb()
229 pcb->dst_uuid = remote_uuid16; in pan_conn_ind_cb()
247 pcb = pan_allocate_pcb(p_bda, handle); in pan_conn_ind_cb()
[all …]
Dpan_api.cc295 tPAN_CONN* pcb = pan_get_pcb_by_addr(rem_bda); in PAN_Connect() local
300 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) { in PAN_Connect()
322 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) { in PAN_Connect()
339 if (!pcb) pcb = pan_allocate_pcb(rem_bda, BNEP_INVALID_HANDLE); in PAN_Connect()
340 if (!pcb) { in PAN_Connect()
346 if (pcb->con_state == PAN_STATE_IDLE) { in PAN_Connect()
348 } else if (pcb->con_state == PAN_STATE_CONNECTED) { in PAN_Connect()
349 pcb->con_flags |= PAN_FLAGS_CONN_COMPLETED; in PAN_Connect()
354 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
355 pcb->prv_src_uuid = pcb->src_uuid; in PAN_Connect()
[all …]
Dpan_utils.cc185 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
186 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
191 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
192 pan_cb.pcb[i].rem_bda == p_bda) in pan_allocate_pcb()
197 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
198 memset(&(pan_cb.pcb[i]), 0, sizeof(tPAN_CONN)); in pan_allocate_pcb()
199 pan_cb.pcb[i].rem_bda = p_bda; in pan_allocate_pcb()
200 pan_cb.pcb[i].handle = handle; in pan_allocate_pcb()
201 return &(pan_cb.pcb[i]); in pan_allocate_pcb()
220 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
[all …]
Dpan_int.h86 tPAN_CONN pcb[MAX_PAN_CONNS]; member
/packages/modules/Bluetooth/system/bta/jv/
Dbta_jv_act.cc1549 tBTA_JV_PCB** pcb) { in find_rfc_pcb() argument
1551 *pcb = NULL; in find_rfc_pcb()
1557 *pcb = &bta_jv_cb.port_cb[i]; in find_rfc_pcb()
1562 rfc_handle, (*pcb)->handle, (*pcb)->state, (*cb)->handle); in find_rfc_pcb()