Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc45 uint8_t con_state; member
266 p_ccb->con_state = GAP_CCB_STATE_LISTENING; in GAP_ConnOpen()
274 p_ccb->con_state = GAP_CCB_STATE_CONN_SETUP; in GAP_ConnOpen()
320 if (p_ccb->con_state != GAP_CCB_STATE_LISTENING) { in GAP_ConnClose()
419 if (p_ccb->con_state == GAP_CCB_STATE_CONNECTED) { in GAP_GetRxQueueCnt()
478 if (p_ccb->con_state != GAP_CCB_STATE_CONNECTED) { in GAP_ConnWriteData()
511 if ((p_ccb) && (p_ccb->con_state > GAP_CCB_STATE_LISTENING)) { in GAP_ConnGetRemoteAddr()
574 if ((p_ccb->con_state == GAP_CCB_STATE_CONNECTED) && (sdu_sent == 0xFFFF)) { in gap_tx_complete_ind()
597 if ((p_ccb->con_state == GAP_CCB_STATE_LISTENING) && (p_ccb->psm == psm) && in gap_connect_ind()
625 p_ccb->con_state = GAP_CCB_STATE_CFG_SETUP; in gap_connect_ind()
[all …]
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_main.cc65 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_ind()
101 if ((result == L2CAP_CONN_OK) && (p_ccb->con_state == SDP_STATE_CONN_SETUP)) { in sdp_connect_cfm()
102 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_cfm()
169 p_ccb->con_state = SDP_STATE_CONNECTED; in sdp_config_cfm()
202 (ccb.con_state == SDP_STATE_CONNECTED) ? SDP_SUCCESS : SDP_CONN_FAILED; in sdp_disconnect_ind()
237 if (p_ccb->con_state == SDP_STATE_CONNECTED) { in sdp_data_ind()
244 p_ccb->con_state, l2cap_cid); in sdp_data_ind()
288 p_ccb->con_state = SDP_STATE_CONN_SETUP; in sdp_conn_originate()
291 p_ccb->con_state = SDP_STATE_CONN_PEND; in sdp_conn_originate()
335 if (ccb.con_state == SDP_STATE_CONN_SETUP) { in sdp_disconnect()
[all …]
Dsdp_utils.cc340 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()
368 if ((p_ccb->con_state != SDP_STATE_IDLE) && (p_ccb->p_db == p_db)) in sdpu_find_ccb_by_db()
391 if (p_ccb->con_state == SDP_STATE_IDLE) { in sdpu_allocate_ccb()
434 ccb.con_state = SDP_STATE_IDLE; in sdpu_release_ccb()
460 if ((p_ccb->con_state == SDP_STATE_CONN_SETUP) || in sdpu_get_active_ccb_cid()
461 (p_ccb->con_state == SDP_STATE_CFG_SETUP) || in sdpu_get_active_ccb_cid()
462 (p_ccb->con_state == SDP_STATE_CONNECTED)) { in sdpu_get_active_ccb_cid()
492 if ((p_ccb->con_state == SDP_STATE_CONN_PEND) && in sdpu_process_pend_ccb_same_cid()
495 p_ccb->con_state = SDP_STATE_CONNECTED; in sdpu_process_pend_ccb_same_cid()
[all …]
Dsdpint.h181 uint8_t con_state; member
/packages/modules/Bluetooth/system/stack/bnep/
Dbnep_utils.cc70 if ((p_bcb->con_state != BNEP_STATE_IDLE) && (p_bcb->l2cap_cid == cid)) in bnepu_find_bcb_by_cid()
94 if (p_bcb->con_state != BNEP_STATE_IDLE) { in bnepu_find_bcb_by_bd_addr()
118 if (p_bcb->con_state == BNEP_STATE_IDLE) { in bnepu_allocate_bcb()
150 p_bcb->con_state = BNEP_STATE_IDLE; in bnepu_release_bcb()
545 if (p_bcb->con_state != BNEP_STATE_CONN_SETUP && in bnep_process_setup_conn_req()
546 p_bcb->con_state != BNEP_STATE_SEC_CHECKING && in bnep_process_setup_conn_req()
547 p_bcb->con_state != BNEP_STATE_CONNECTED) { in bnep_process_setup_conn_req()
548 log::error("BNEP - setup request in bad state {}", p_bcb->con_state); in bnep_process_setup_conn_req()
562 if (p_bcb->con_state != BNEP_STATE_CONNECTED && in bnep_process_setup_conn_req()
566 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()
184 (p_bcb->con_state == BNEP_STATE_CONN_START)) { in bnep_connect_cfm()
185 p_bcb->con_state = BNEP_STATE_CFG_SETUP; in bnep_connect_cfm()
222 p_bcb->con_state = BNEP_STATE_SEC_CHECKING; in bnep_config_cfm()
256 if (p_bcb->con_state == BNEP_STATE_CONNECTED) { in bnep_disconnect_ind()
368 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in bnep_data_ind()
372 p_bcb->con_state, l2cap_cid); in bnep_data_ind()
442 p_bcb->con_state != BNEP_STATE_CONNECTED && extension_present && p && in bnep_data_ind()
544 p_bcb->con_state, p_bcb->l2cap_cid, p_bcb->con_flags, in bnep_conn_timer_timeout()
547 if (p_bcb->con_state == BNEP_STATE_CONN_SETUP) { in bnep_conn_timer_timeout()
[all …]
Dbnep_api.cc147 } else if (p_bcb->con_state != BNEP_STATE_CONNECTED) in BNEP_Connect()
161 if (p_bcb->con_state == BNEP_STATE_CONNECTED) { in BNEP_Connect()
164 p_bcb->con_state = BNEP_STATE_SEC_CHECKING; in BNEP_Connect()
173 p_bcb->con_state = BNEP_STATE_CONN_START; in BNEP_Connect()
221 if (p_bcb->con_state != BNEP_STATE_CONN_SETUP || in BNEP_ConnectResp()
246 p_bcb->con_state = BNEP_STATE_CONNECTED; in BNEP_ConnectResp()
296 if (p_bcb->con_state == BNEP_STATE_IDLE) return (BNEP_WRONG_HANDLE); in BNEP_Disconnect()
555 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in BNEP_SetProtocolFilters()
611 if ((p_bcb->con_state != BNEP_STATE_CONNECTED) && in BNEP_SetMulticastFilters()
Dbnep_int.h96 uint8_t con_state; member
/packages/modules/Bluetooth/system/stack/pan/
Dpan_utils.cc185 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
191 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
197 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
220 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
241 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) continue; in pan_get_pcb_by_addr()
268 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE) { in pan_close_all_connections()
270 pan_cb.pcb[i].con_state = PAN_STATE_IDLE; in pan_close_all_connections()
291 p_pcb->con_state = PAN_STATE_IDLE; in pan_release_pcb()
313 log::verbose("{} state:{}, handle:{}, src{}, BD:{}", i, p_pcb->con_state, in pan_dump_status()
Dpan_main.cc212 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_conn_ind_cb()
259 pcb->con_state = PAN_STATE_CONN_START; in pan_conn_ind_cb()
307 if (pcb->con_state != PAN_STATE_CONNECTED && in pan_connect_state_cb()
311 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
324 if (pcb->con_state == PAN_STATE_CONNECTED) { in pan_connect_state_cb()
346 pcb->con_state = PAN_STATE_CONNECTED; in pan_connect_state_cb()
397 if (pcb->con_state != PAN_STATE_CONNECTED) { in pan_data_buf_ind_cb()
399 pcb->con_state, handle); in pan_data_buf_ind_cb()
427 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_buf_ind_cb()
Dpan_api.cc346 if (pcb->con_state == PAN_STATE_IDLE) { in PAN_Connect()
348 } else if (pcb->con_state == PAN_STATE_CONNECTED) { in PAN_Connect()
354 pcb->con_state = PAN_STATE_CONN_START; in PAN_Connect()
402 if (pcb->con_state != PAN_STATE_IDLE) pan_cb.num_conns--; in PAN_Disconnect()
458 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
513 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
525 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
561 if (pcb->con_state != PAN_STATE_CONNECTED) { in PAN_WriteBuf()
699 if (pcb->con_state == PAN_STATE_IDLE) continue; in PAN_Dumpsys()
Dpan_int.h55 tPAN_STATE con_state; member
/packages/modules/Bluetooth/system/stack/test/sdp/
Dstack_sdp_test.cc102 ASSERT_EQ(p_ccb->con_state, SDP_STATE_CONN_SETUP); in TEST_F()
107 ASSERT_EQ(p_ccb->con_state, SDP_STATE_CONNECTED); in TEST_F()
112 ASSERT_EQ(p_ccb->con_state, SDP_STATE_IDLE); in TEST_F()
121 if ((p_ccb->con_state == state) && (p_ccb->connection_id == cid)) { in find_ccb()
133 ASSERT_EQ(p_ccb1->con_state, SDP_STATE_CONN_SETUP); in TEST_F()
139 ASSERT_EQ(p_ccb2->con_state, SDP_STATE_CONN_PEND); in TEST_F()
144 ASSERT_EQ(p_ccb1->con_state, SDP_STATE_CONNECTED); in TEST_F()
145 ASSERT_EQ(p_ccb2->con_state, SDP_STATE_CONN_PEND); in TEST_F()
150 ASSERT_EQ(p_ccb1->con_state, SDP_STATE_IDLE); in TEST_F()
151 ASSERT_EQ(p_ccb2->con_state, SDP_STATE_CONNECTED); in TEST_F()
[all …]
Dstack_sdp_parse_test.cc133 p_ccb_->con_state = SDP_STATE_CONNECTED; in SetUp()