Home
last modified time | relevance | path

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

/system/bt/stack/pan/
Dpan_main.cc195 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb() local
196 if (pcb) { in pan_conn_ind_cb()
209 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_conn_ind_cb()
213 pcb->prv_src_uuid = pcb->src_uuid; in pan_conn_ind_cb()
214 pcb->prv_dst_uuid = pcb->dst_uuid; in pan_conn_ind_cb()
216 if (pcb->src_uuid == UUID_SERVCLASS_NAP && in pan_conn_ind_cb()
220 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_conn_ind_cb()
225 pcb->src_uuid = local_uuid16; in pan_conn_ind_cb()
226 pcb->dst_uuid = remote_uuid16; in pan_conn_ind_cb()
244 pcb = pan_allocate_pcb(p_bda, handle); in pan_conn_ind_cb()
[all …]
Dpan_api.cc296 tPAN_CONN* pcb = pan_get_pcb_by_addr(rem_bda); in PAN_Connect() local
301 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) { in PAN_Connect()
325 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) { in PAN_Connect()
347 if (!pcb) pcb = pan_allocate_pcb(rem_bda, BNEP_INVALID_HANDLE); in PAN_Connect()
348 if (!pcb) { in PAN_Connect()
355 if (pcb->con_state == PAN_STATE_IDLE) { in PAN_Connect()
357 } else if (pcb->con_state == PAN_STATE_CONNECTED) { in PAN_Connect()
358 pcb->con_flags |= PAN_FLAGS_CONN_COMPLETED; in PAN_Connect()
363 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
364 pcb->prv_src_uuid = pcb->src_uuid; in PAN_Connect()
[all …]
Dpan_utils.cc182 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
183 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
188 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
189 pan_cb.pcb[i].rem_bda == p_bda) in pan_allocate_pcb()
194 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
195 memset(&(pan_cb.pcb[i]), 0, sizeof(tPAN_CONN)); in pan_allocate_pcb()
196 pan_cb.pcb[i].rem_bda = p_bda; in pan_allocate_pcb()
197 pan_cb.pcb[i].handle = handle; in pan_allocate_pcb()
198 return &(pan_cb.pcb[i]); in pan_allocate_pcb()
217 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
[all …]
Dpan_int.h72 tPAN_CONN pcb[MAX_PAN_CONNS]; member
/system/bt/bta/jv/
Dbta_jv_act.cc1401 tBTA_JV_PCB** pcb) { in find_rfc_pcb() argument
1403 *pcb = NULL; in find_rfc_pcb()
1409 *pcb = &bta_jv_cb.port_cb[i]; in find_rfc_pcb()
1412 << ", port.jv_handle=" << loghex((*pcb)->handle) in find_rfc_pcb()
1413 << ", state=" << (*pcb)->state in find_rfc_pcb()