Home
last modified time | relevance | path

Searched refs:con_state (Results 1 – 12 of 12) sorted by relevance

/system/bt/stack/pan/
Dpan_utils.cc182 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
188 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
194 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
217 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
238 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) continue; in pan_get_pcb_by_addr()
265 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE) { in pan_close_all_connections()
267 pan_cb.pcb[i].con_state = PAN_STATE_IDLE; in pan_close_all_connections()
288 p_pcb->con_state = PAN_STATE_IDLE; in pan_release_pcb()
310 VLOG(1) << +i << " state:" << p_pcb->con_state in pan_dump_status()
Dpan_main.cc209 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_conn_ind_cb()
256 pcb->con_state = PAN_STATE_CONN_START; in pan_conn_ind_cb()
305 if (pcb->con_state != PAN_STATE_CONNECTED && in pan_connect_state_cb()
309 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
322 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_connect_state_cb()
348 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
407 if (pcb->con_state != PAN_STATE_CONNECTED) { in pan_data_ind_cb()
409 pcb->con_state, handle); in pan_data_ind_cb()
418 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
434 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
[all …]
Dpan_api.cc355 if (pcb->con_state == PAN_STATE_IDLE) { in PAN_Connect()
357 } else if (pcb->con_state == PAN_STATE_CONNECTED) { in PAN_Connect()
363 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
409 if (pcb->con_state != PAN_STATE_IDLE) pan_cb.num_conns--; in PAN_Disconnect()
463 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
518 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
530 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
563 if (pcb->con_state != PAN_STATE_CONNECTED) { in PAN_WriteBuf()
Dpan_int.h48 uint8_t con_state; member
/system/bt/stack/bnep/
Dbnep_utils.cc67 if ((p_bcb->con_state != BNEP_STATE_IDLE) && (p_bcb->l2cap_cid == cid)) in bnepu_find_bcb_by_cid()
91 if (p_bcb->con_state != BNEP_STATE_IDLE) { in bnepu_find_bcb_by_bd_addr()
115 if (p_bcb->con_state == BNEP_STATE_IDLE) { in bnepu_allocate_bcb()
147 p_bcb->con_state = BNEP_STATE_IDLE; in bnepu_release_bcb()
536 if (p_bcb->con_state != BNEP_STATE_CONN_SETUP && in bnep_process_setup_conn_req()
537 p_bcb->con_state != BNEP_STATE_SEC_CHECKING && in bnep_process_setup_conn_req()
538 p_bcb->con_state != BNEP_STATE_CONNECTED) { in bnep_process_setup_conn_req()
539 BNEP_TRACE_ERROR("BNEP - setup request in bad state %d", p_bcb->con_state); in bnep_process_setup_conn_req()
553 if (p_bcb->con_state != BNEP_STATE_CONNECTED && in bnep_process_setup_conn_req()
557 p_bcb->con_state); in bnep_process_setup_conn_req()
[all …]
Dbnep_main.cc130 p_bcb->con_state = BNEP_STATE_CFG_SETUP; in bnep_connect_ind()
172 (p_bcb->con_state == BNEP_STATE_CONN_START)) { in bnep_connect_cfm()
173 p_bcb->con_state = BNEP_STATE_CFG_SETUP; in bnep_connect_cfm()
252 p_bcb->con_state = BNEP_STATE_SEC_CHECKING; in bnep_config_ind()
295 p_bcb->con_state = BNEP_STATE_SEC_CHECKING; in bnep_config_cfm()
345 if (p_bcb->con_state == BNEP_STATE_CONNECTED) { in bnep_disconnect_ind()
470 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in bnep_data_ind()
475 p_bcb->con_state, l2cap_cid); in bnep_data_ind()
548 p_bcb->con_state != BNEP_STATE_CONNECTED && extension_present && p && in bnep_data_ind()
649 p_bcb->con_state, p_bcb->l2cap_cid, p_bcb->con_flags, in bnep_conn_timer_timeout()
[all …]
Dbnep_api.cc140 } else if (p_bcb->con_state != BNEP_STATE_CONNECTED) in BNEP_Connect()
154 if (p_bcb->con_state == BNEP_STATE_CONNECTED) { in BNEP_Connect()
157 p_bcb->con_state = BNEP_STATE_SEC_CHECKING; in BNEP_Connect()
173 p_bcb->con_state = BNEP_STATE_CONN_START; in BNEP_Connect()
220 if (p_bcb->con_state != BNEP_STATE_CONN_SETUP || in BNEP_ConnectResp()
246 p_bcb->con_state = BNEP_STATE_CONNECTED; in BNEP_ConnectResp()
295 if (p_bcb->con_state == BNEP_STATE_IDLE) return (BNEP_WRONG_HANDLE); in BNEP_Disconnect()
550 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in BNEP_SetProtocolFilters()
606 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in BNEP_SetMulticastFilters()
674 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in BNEP_GetStatus()
Dbnep_int.h114 uint8_t con_state; member
/system/bt/stack/gap/
Dgap_conn.cc42 uint8_t con_state; member
288 p_ccb->con_state = GAP_CCB_STATE_LISTENING; in GAP_ConnOpen()
296 p_ccb->con_state = GAP_CCB_STATE_CONN_SETUP; in GAP_ConnOpen()
344 if (p_ccb->con_state != GAP_CCB_STATE_LISTENING) in GAP_ConnClose()
436 if (p_ccb->con_state == GAP_CCB_STATE_CONNECTED) { in GAP_GetRxQueueCnt()
527 if (p_ccb->con_state != GAP_CCB_STATE_CONNECTED) { in GAP_ConnWriteData()
567 if (p_ccb->con_state == GAP_CCB_STATE_CONNECTED) in GAP_ConnReconfig()
625 if ((p_ccb) && (p_ccb->con_state > GAP_CCB_STATE_LISTENING)) { in GAP_ConnGetRemoteAddr()
690 if ((p_ccb->con_state == GAP_CCB_STATE_CONNECTED) && (sdu_sent == 0xFFFF)) { in gap_tx_complete_ind()
724 if ((p_ccb->con_state == GAP_CCB_STATE_LISTENING) && (p_ccb->psm == psm) && in gap_connect_ind()
[all …]
/system/bt/stack/sdp/
Dsdp_main.cc177 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_ind()
237 if ((result == L2CAP_CONN_OK) && (p_ccb->con_state == SDP_STATE_CONN_SETUP)) { in sdp_connect_cfm()
238 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_cfm()
365 p_ccb->con_state = SDP_STATE_CONNECTED; in sdp_config_ind()
405 p_ccb->con_state = SDP_STATE_CONNECTED; in sdp_config_cfm()
455 (*p_ccb->p_cb)((uint16_t)((p_ccb->con_state == SDP_STATE_CONNECTED) in sdp_disconnect_ind()
460 (uint16_t)((p_ccb->con_state == SDP_STATE_CONNECTED) ? SDP_SUCCESS in sdp_disconnect_ind()
488 if (p_ccb->con_state == SDP_STATE_CONNECTED) { in sdp_data_ind()
496 p_ccb->con_state, l2cap_cid); in sdp_data_ind()
538 p_ccb->con_state = SDP_STATE_CONN_SETUP; in sdp_conn_originate()
[all …]
Dsdp_utils.cc304 if ((p_ccb->con_state != SDP_STATE_IDLE) && (p_ccb->connection_id == cid)) in sdpu_find_ccb_by_cid()
329 if ((p_ccb->con_state != SDP_STATE_IDLE) && (p_ccb->p_db == p_db)) in sdpu_find_ccb_by_db()
352 if (p_ccb->con_state == SDP_STATE_IDLE) { in sdpu_allocate_ccb()
378 p_ccb->con_state = SDP_STATE_IDLE; in sdpu_release_ccb()
Dsdpint.h162 uint8_t con_state; member