Home
last modified time | relevance | path

Searched refs:in_use (Results 1 – 25 of 95) sorted by relevance

1234

/external/bluetooth/bluedroid/bta/gatt/
Dbta_gatts_utils.c71 if (!p_cb->srvc_cb[i].in_use) in bta_gatts_alloc_srvc_cb()
73 p_cb->srvc_cb[i].in_use = TRUE; in bta_gatts_alloc_srvc_cb()
97 if (p_reg->in_use && p_reg->gatt_if == server_if) in bta_gatts_find_app_rcb_by_app_if()
119 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) in bta_gatts_find_app_rcb_idx_by_app_if()
139 if (p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_srvc_id()
165 p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
166 p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
171 p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
172 !p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
Dbta_gattc_utils.c128 if (p_clrcb->in_use && in bta_gattc_cl_get_regcb()
149 if (bta_gattc_cb.cl_rcb[i].in_use) in bta_gattc_num_reg_app()
170 if (p_clcb->in_use && in bta_gattc_find_clcb_by_cif()
194 if (p_clcb->in_use && in bta_gattc_find_clcb_by_conn_id()
217 if (!bta_gattc_cb.clcb[i_clcb].in_use) in bta_gattc_clcb_alloc()
223 p_clcb->in_use = TRUE; in bta_gattc_clcb_alloc()
239 p_clcb->in_use = FALSE; in bta_gattc_clcb_alloc()
289 …APPL_TRACE_ERROR2("bta_gattc_clcb_dealloc in_use=%d conn_id=%d",p_clcb->in_use, p_clcb->bta_conn_i… in bta_gattc_clcb_dealloc()
314 if (p_srcb->in_use && bdcmp(p_srcb->server_bda, bda) == 0) in bta_gattc_find_srcb()
355 if (!p_tcb->in_use) in bta_gattc_srcb_alloc()
[all …]
Dbta_gattc_int.h264 BOOLEAN in_use; member
301 BOOLEAN in_use; member
309 BOOLEAN in_use; member
331 BOOLEAN in_use; member
348 BOOLEAN in_use; member
/external/bluetooth/bluedroid/stack/rfcomm/
Dport_api.c220 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in RFCOMM_RemoveConnection()
259 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in RFCOMM_RemoveServer()
301 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetEventCallback()
341 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetDataCallback()
377 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetDataCOCallback()
413 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetEventMask()
450 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_CheckConnection()
553 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetState()
601 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_GetRxQueueCnt()
645 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_GetState()
[all …]
Dport_utils.c74 if (!p_port->in_use) in port_allocate_port()
78 p_port->in_use = TRUE; in port_allocate_port()
344 if (p_port->in_use && (p_port->rfc.p_mcb == NULL)) in port_find_dlci_port()
378 if (p_port->in_use in port_find_port()
/external/bluetooth/bluedroid/stack/gatt/
Dgatt_utils.c276 if (!p_cb->hdl_list[i].in_use) in gatt_alloc_hdl_buffer()
279 p_elem->in_use = TRUE; in gatt_alloc_hdl_buffer()
305 if (p_list->in_use && p_list->asgn_range.s_handle == handle) in gatt_find_hdl_buffer_by_handle()
463 gatt_cb.srv_list[i_sreg].in_use = TRUE; in gatts_update_srv_list_elem()
696 if (gatt_cb.tcb[i].in_use) in gatt_find_the_connected_bda()
797 if (gatt_cb.tcb[i].in_use && in gatt_is_bda_connected()
845 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
885 if (!gatt_cb.tcb[i].in_use) in gatt_find_i_tcb_free()
923 p_tcb->in_use = TRUE; in gatt_allocate_tcb_by_bdaddr()
1188 if (gatt_cb.sr_reg[i_rcb].in_use && in gatt_sr_find_i_rcb_by_handle()
[all …]
Dgatt_attr.c70 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_conn_id_by_bd_addr()
95 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gatt_profile_find_clcb_by_bd_addr()
120 if (!p_clcb->in_use) in gatt_profile_clcb_alloc()
122 p_clcb->in_use = TRUE; in gatt_profile_clcb_alloc()
147 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) in gatt_profile_clcb_dealloc()
Dgatt_int.h225 BOOLEAN in_use; member
239 BOOLEAN in_use; member
303 BOOLEAN in_use; member
320 BOOLEAN in_use; member
365 BOOLEAN in_use; member
395 BOOLEAN in_use; member
419 BOOLEAN in_use; member
433 BOOLEAN in_use; member
440 BOOLEAN in_use; member
/external/bluetooth/bluedroid/stack/avdt/
Davdt_defs.h150 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument
152 in_use = (*(p)++ >> 1) & 0x01; \
183 #define AVDT_MSG_BLD_DISC(p, seid, in_use, type, tsep) \ argument
184 *(p)++ = (UINT8) (((seid) << 2) | ((in_use) << 1)); \
/external/bluetooth/bluedroid/stack/hid/
Dhidh_api.c345 if((hh_cb.devices[i].in_use) && in HID_HostAddDev()
354 if( !hh_cb.devices[i].in_use) in HID_HostAddDev()
362 if (!hh_cb.devices[i].in_use) in HID_HostAddDev()
364 hh_cb.devices[i].in_use = TRUE; in HID_HostAddDev()
392 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev()
396 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev()
418 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostOpenDev()
451 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostWriteDev()
488 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostCloseDev()
/external/bluetooth/bluedroid/btif/include/
Dbtif_hl.h135 BOOLEAN in_use; member
193 BOOLEAN in_use; member
221 BOOLEAN in_use; member
231 BOOLEAN in_use; member
261 BOOLEAN in_use; /* this CB is in use*/ member
287 BOOLEAN in_use; member
/external/bluetooth/bluedroid/bta/ag/
Dbta_ag_main.c315 if (!p_scb->in_use) in bta_ag_scb_alloc()
318 p_scb->in_use = TRUE; in bta_ag_scb_alloc()
371 if (bta_ag_cb.scb[idx].in_use) in bta_ag_scb_dealloc()
420 if (!p_scb->in_use) in bta_ag_scb_by_idx()
475 if (p_scb->in_use && !bdcmp(peer_addr, p_scb->peer_addr)) in bta_ag_idx_by_bdaddr()
504 if (p_scb->in_use && p_scb != p_curr_scb && p_scb->state == BTA_AG_OPEN_ST) in bta_ag_other_scb_open()
532 if (p_scb->in_use && (p_scb != p_curr_scb) && (p_scb->state == BTA_AG_INIT_ST)) in bta_ag_get_other_idle_scb()
719 if (p_scb->in_use) in bta_ag_api_disable()
788 if (p_scb->in_use) in bta_ag_api_result()
/external/bluetooth/bluedroid/stack/l2cap/
Dl2c_utils.c56 if (!p_lcb->in_use) in l2cu_allocate_lcb()
62 p_lcb->in_use = TRUE; in l2cu_allocate_lcb()
120 p_lcb->in_use = FALSE; in l2cu_release_lcb()
218 if ((p_lcb->in_use) && (!memcmp (p_lcb->remote_bd_addr, p_bd_addr, BD_ADDR_LEN))) in l2cu_find_lcb_by_bd_addr()
1117 if ( (!p_ccb->in_use) || (p_q == NULL) ) in l2cu_enqueue_ccb()
1120 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb()
1210 if ( (!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL) ) in l2cu_dequeue_ccb()
1213 … p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb, p_q, p_q ? p_q->p_first_ccb : 0); in l2cu_dequeue_ccb()
1377 p_ccb->in_use = TRUE; in l2cu_allocate_ccb()
1415 if (p_ccb->fcrb.ack_timer.in_use) in l2cu_allocate_ccb()
[all …]
Dl2c_fcr.c193 if (p_ccb->fcrb.mon_retrans_timer.in_use == 0) in l2c_fcr_start_timer()
208 if (p_ccb->fcrb.mon_retrans_timer.in_use) in l2c_fcr_stop_timer()
458 if (p_ccb->fcrb.ack_timer.in_use) in prepare_I_frame()
533 if ((!p_ccb->in_use) || (p_ccb->chnl_state != CST_OPEN)) in l2c_fcr_send_S_frame()
617 if (p_ccb->fcrb.ack_timer.in_use) in l2c_fcr_send_S_frame()
796 if ( (!p_ccb->in_use) || (p_ccb->chnl_state != CST_OPEN) ) in l2c_fcr_proc_pdu()
808 if (p_ccb->in_use && (p_ccb->chnl_state == CST_OPEN)) in l2c_fcr_proc_pdu()
1266 if ((num_to_ack != 0) && p_ccb->in_use && (p_ccb->chnl_state == CST_OPEN)) in process_i_frame()
1272 if (!p_ccb->fcrb.ack_timer.in_use) in process_i_frame()
2302 if (!p_ccb || !p_ccb->fcrb.test_cb.cfg.in_use) in l2c_corrupt_the_fcr_packet()
[all …]
Dl2c_api.c135 if (p_lcb->in_use) in L2CA_Deregister()
141 if ((p_ccb->in_use) && in L2CA_Deregister()
736 if ((p_lcb) && (p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) in L2CA_SetIdleTimeout()
771 if ((p_lcb) && (p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) in L2CA_SetIdleTimeoutByBdAddr()
783 if ((p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) in L2CA_SetIdleTimeoutByBdAddr()
1134 if ((p_lcb) && (p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) in L2CA_SetFlushTimeout()
1161 if ((p_lcb->in_use) && (p_lcb->link_state == LST_CONNECTED)) in L2CA_SetFlushTimeout()
1441 if (p_lcb->in_use && p_lcb->link_state == LST_CONNECTED && !p_lcb->ccb_queue.p_first_ccb) in L2CA_SendFixedChnlData()
1529 if (p_lcb->in_use && p_lcb->link_state == LST_CONNECTED && !p_lcb->ccb_queue.p_first_ccb) in L2CA_SetFixedChannelTout()
/external/bluetooth/bluedroid/btif/src/
Dbtif_hl.c188 if (p_acb->in_use) in btif_hl_if_channel_setup_pending()
193 if (p_mcb->in_use && in btif_hl_if_channel_setup_pending()
227 if (p_mcb->mdl[i].in_use) in btif_hl_num_dchs_in_use()
245 BTIF_TRACE_DEBUG2("%s timer_in_use=%d", __FUNCTION__, tle->in_use ); in btif_hl_tmr_hdlr()
284 __FUNCTION__,app_idx, mcl_idx, p_mcb->cch_timer.in_use); in btif_hl_stop_cch_timer()
287 if (p_mcb->cch_timer.in_use) in btif_hl_stop_cch_timer()
306 p_mcb->cch_timer_active, p_mcb->cch_timer.in_use); in btif_hl_start_cch_timer()
309 if (!p_mcb->cch_timer.in_use) in btif_hl_start_cch_timer()
344 if (p_mcb->mdl[i].in_use && in btif_hl_find_mdl_idx()
427 if (p_mcb->mdl[i].in_use && p_mcb->mdl[i].is_the_first_reliable) in btif_hl_is_the_first_reliable_existed()
[all …]
/external/qemu/slirp-android/
Dtftp.c29 int in_use; member
45 spt->in_use = 1; in tftp_session_update()
50 spt->in_use = 0; in tftp_session_terminate()
61 if (!spt->in_use) in tftp_session_allocate()
89 if (spt->in_use) { in tftp_session_find()
/external/qemu/slirp/
Dtftp.c29 int in_use; member
45 spt->in_use = 1; in tftp_session_update()
50 spt->in_use = 0; in tftp_session_terminate()
61 if (!spt->in_use) in tftp_session_allocate()
89 if (spt->in_use) { in tftp_session_find()
/external/ipsec-tools/src/racoon/
Dnattraversal.c74 unsigned in_use; member
378 ka->in_use++; in natt_keepalive_add()
380 saddr2str_fromto("%s->%s", src, dst), ka->in_use); in natt_keepalive_add()
403 new_addr->in_use = 1; in natt_keepalive_add()
438 saddr2str_fromto("%s->%s", src, dst), ka->in_use); in natt_keepalive_remove()
442 -- ka->in_use <= 0) { in natt_keepalive_remove()
/external/bluetooth/bluedroid/bta/dm/
Dbta_dm_pm.c104 if(bta_dm_cb.pm_timer[i].in_use) in bta_dm_disable_pm()
108 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_disable_pm()
130 if(bta_dm_cb.pm_timer[i].in_use && !bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr)) in bta_dm_pm_stop_timer()
134 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_pm_stop_timer()
421 if(!bta_dm_cb.pm_timer[i].in_use) in bta_dm_pm_set_mode()
423 bta_dm_cb.pm_timer[i].in_use = TRUE; in bta_dm_pm_set_mode()
728 if(bta_dm_cb.pm_timer[i].in_use) in bta_dm_pm_timer_cback()
734 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_pm_timer_cback()
/external/libnfc-nci/src/nfa/dm/
Dnfa_dm_discover.c800 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_started()
892 &&(nfa_dm_cb.disc_cb.excl_disc_entry.in_use == FALSE) ) in nfa_dm_start_rf_discover()
900 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_start_rf_discover()
911 if (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_start_rf_discover()
1035 if (!nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_start_rf_discover()
1103 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_activation()
1122 if ( (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_disc_notify_activation()
1176 if (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_disc_notify_activation()
1281 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_deactivation()
1298 if ((xx < NFA_DM_DISC_NUM_ENTRIES) && (nfa_dm_cb.disc_cb.entry[xx].in_use)) in nfa_dm_disc_notify_deactivation()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dunix_io.c76 unsigned in_use:1; member
307 cache->in_use = 0; in alloc_cache()
335 cache->in_use = 0; in free_cache()
358 if (!cache->in_use) { in find_cached_block()
382 if (cache->dirty && cache->in_use) in reuse_cache()
385 cache->in_use = 1; in reuse_cache()
405 if (!cache->in_use) in flush_cached_blocks()
409 cache->in_use = 0; in flush_cached_blocks()
672 cache->in_use = 0; in unix_read_blk64()
/external/bluetooth/bluedroid/bta/hh/
Dbta_hh_utils.c79 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
88 if (!bta_hh_cb.kdev[xx].in_use) in bta_hh_find_cb()
175 p_cb->in_use = TRUE; in bta_hh_add_device_to_list()
408 bta_hh_cb.kdev[xx].in_use, bta_hh_cb.kdev[xx].hid_handle); in bta_hh_trace_dev_db()
/external/bluetooth/bluedroid/bta/hl/
Dbta_hl_utils.c548 p_mcb->in_use = TRUE; in bta_hl_find_cch_cb_indexes()
812 if (p_mcb->mdl[i].in_use && in bta_hl_allocate_mdl_id()
865 if (p_mcb->mdl[i].in_use && in bta_hl_find_mdl_idx()
904 if (p_mcb->mdl[i].in_use && in bta_hl_find_an_active_mdl_idx()
942 if (p_mcb->mdl[i].in_use && in bta_hl_find_dch_setup_mdl_idx()
981 if (p_mcb->in_use && in bta_hl_find_an_in_use_mcl_idx()
1020 if (p_acb->in_use) in bta_hl_find_an_in_use_app_idx()
1055 if (bta_hl_cb.acb[i].in_use && in bta_hl_find_app_idx()
1091 if (bta_hl_cb.acb[i].in_use && in bta_hl_find_app_idx_using_handle()
1132 if (p_acb->in_use) in bta_hl_find_mcl_idx_using_handle()
[all …]
/external/bluetooth/bluedroid/stack/btm/
Dbtm_acl.c92 if ((p->in_use) && (!memcmp (p->remote_addr, bda, BD_ADDR_LEN))) in btm_bda_to_acl()
121 if ((p->in_use) && (p->hci_handle == hci_handle)) in btm_handle_to_acl_index()
170 if (!p->in_use) in btm_acl_created()
172 p->in_use = TRUE; in btm_acl_created()
319 p->in_use = FALSE; in btm_acl_removed()
364 if (pa->in_use && pa->is_le_link) in btm_acl_removed()
425 if (p->in_use) in btm_acl_device_down()
1134 if ((p_acl_cb->in_use) && (handle == p_acl_cb->hci_handle)) in btm_read_link_policy_complete()
1174 if ((p_acl_cb->in_use) && (p_acl_cb->hci_handle == handle)) in btm_read_remote_version_complete()
1213 if ((p_acl_cb->in_use) && (p_acl_cb->hci_handle == handle)) in btm_read_remote_features_complete()
[all …]

1234