/external/bluetooth/bluedroid/bta/gatt/ |
D | bta_gatts_utils.c | 71 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()
|
D | bta_gattc_utils.c | 128 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() 240 p_clcb->in_use = FALSE; in bta_gattc_clcb_alloc() 320 if (p_srcb->in_use && bdcmp(p_srcb->server_bda, bda) == 0) in bta_gattc_find_srcb() 383 if (!p_tcb->in_use) in bta_gattc_srcb_alloc() 408 p_tcb->in_use = TRUE; in bta_gattc_srcb_alloc() [all …]
|
D | bta_gattc_int.h | 267 BOOLEAN in_use; member 306 BOOLEAN in_use; member 314 BOOLEAN in_use; member 336 BOOLEAN in_use; member 353 BOOLEAN in_use; member 362 BOOLEAN in_use; member
|
/external/bluetooth/bluedroid/stack/gap/ |
D | gap_utils.c | 45 if (index < GAP_MAX_BLOCKS && gap_cb.blk[index].in_use) in btm_cback() 132 if (p_cb->in_use && (p_cb->event == GAP_EVT_INQUIRY_COMPLETE)) in gap_inq_results_cb() 164 if (p_cb->in_use) in gap_find_addr_name_cb() 204 p_cb->in_use = FALSE; in gap_find_addr_name_cb() 230 if (p_cb->in_use) in gap_find_addr_inq_cb() 264 p_cb->in_use = FALSE; in gap_find_addr_inq_cb() 330 if (!p_cb->in_use) in gap_allocate_cb() 334 p_cb->in_use = TRUE; in gap_allocate_cb() 360 p_cb->in_use = FALSE; in gap_free_cb() 384 if (p_cb->in_use && p_cb->event == request) in gap_is_service_busy()
|
D | gap_int.h | 57 BOOLEAN in_use; /* True when structure is allocated */ member 66 BOOLEAN in_use; member 156 BOOLEAN in_use; member
|
D | gap_api.c | 176 if (gap_cb.findaddr_cb.in_use == FALSE) in GAP_FindAddrByName() 187 gap_cb.findaddr_cb.in_use = TRUE; in GAP_FindAddrByName() 191 gap_cb.findaddr_cb.in_use = TRUE; in GAP_FindAddrByName() 529 if (p_cb->in_use && p_cb->event == GAP_EVT_INQUIRY_COMPLETE) in GAP_CancelInquiry() 568 if (p_cb->in_use && p_cb->event == GAP_EVT_INQUIRY_COMPLETE) in GAP_CancelPeriodicInquiry()
|
D | gap_ble.c | 90 if (p_clcb->in_use && !memcmp(p_clcb->bda, bda, BD_ADDR_LEN)) in gap_find_clcb_by_bd_addr() 115 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) in gap_ble_find_clcb_by_conn_id() 140 if (!p_clcb->in_use) in gap_clcb_alloc() 142 p_clcb->in_use = TRUE; in gap_clcb_alloc() 168 if (!p_clcb->in_use) in gap_find_alloc_clcb() 170 p_clcb->in_use = TRUE; in gap_find_alloc_clcb() 204 if (p_clcb->in_use && p_clcb->connected && !memcmp(p_clcb->bda, bd_addr, BD_ADDR_LEN) ) in gap_get_conn_id_if_connected()
|
/external/bluetooth/bluedroid/stack/rfcomm/ |
D | port_api.c | 222 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in RFCOMM_RemoveConnection() 261 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in RFCOMM_RemoveServer() 303 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetEventCallback() 366 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetDataCallback() 402 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetDataCOCallback() 438 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetEventMask() 475 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_CheckConnection() 578 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_SetState() 626 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_GetRxQueueCnt() 670 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) in PORT_GetState() [all …]
|
/external/bluetooth/bluedroid/stack/gatt/ |
D | gatt_attr.c | 70 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()
|
D | gatt_utils.c | 293 if (!p_cb->hdl_list[i].in_use) in gatt_alloc_hdl_buffer() 296 p_elem->in_use = TRUE; in gatt_alloc_hdl_buffer() 322 if (p_list->in_use && p_list->asgn_range.s_handle == handle) in gatt_find_hdl_buffer_by_handle() 480 gatt_cb.srv_list[i_sreg].in_use = TRUE; in gatts_update_srv_list_elem() 713 if (gatt_cb.tcb[i].in_use) in gatt_find_the_connected_bda() 814 if (gatt_cb.tcb[i].in_use && in gatt_is_bda_connected() 862 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx() 902 if (!gatt_cb.tcb[i].in_use) in gatt_find_i_tcb_free() 942 p_tcb->in_use = TRUE; in gatt_allocate_tcb_by_bdaddr() 1207 if (gatt_cb.sr_reg[i_rcb].in_use && in gatt_sr_find_i_rcb_by_handle() [all …]
|
D | gatt_int.h | 225 BOOLEAN in_use; member 241 BOOLEAN in_use; member 306 BOOLEAN in_use; member 323 BOOLEAN in_use; member 368 BOOLEAN in_use; member 399 BOOLEAN in_use; member 429 BOOLEAN in_use; member 444 BOOLEAN in_use; member 451 BOOLEAN in_use; member
|
/external/bluetooth/bluedroid/stack/avdt/ |
D | avdt_defs.h | 150 #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/ |
D | hidh_api.c | 345 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/src/ |
D | btif_hl.c | 191 if (p_acb->in_use) in btif_hl_if_channel_setup_pending() 196 if (p_mcb->in_use && in btif_hl_if_channel_setup_pending() 233 if (p_acb && p_acb->in_use) in btif_hl_num_dchs_in_use() 237 if(p_acb->mcb[j].in_use) in btif_hl_num_dchs_in_use() 240 if (p_acb->mcb[j].in_use && in btif_hl_num_dchs_in_use() 247 if (p_mcb->mdl[x].in_use) in btif_hl_num_dchs_in_use() 273 BTIF_TRACE_DEBUG2("%s timer_in_use=%d", __FUNCTION__, tle->in_use ); in btif_hl_tmr_hdlr() 312 __FUNCTION__,app_idx, mcl_idx, p_mcb->cch_timer.in_use); in btif_hl_stop_cch_timer() 315 if (p_mcb->cch_timer.in_use) in btif_hl_stop_cch_timer() 334 p_mcb->cch_timer_active, p_mcb->cch_timer.in_use); in btif_hl_start_cch_timer() [all …]
|
D | btif_gatt_util.c | 49 BOOLEAN in_use; member 282 if (p_link->in_use && (!memcmp(p_link->bd_addr, bd_addr, BD_ADDR_LEN))) in btif_gatt_is_link_encrypted() 301 if (!p_link->in_use) in btif_gatt_add_encrypted_link() 303 p_link->in_use = TRUE; in btif_gatt_add_encrypted_link() 322 if (p_link->in_use && (!memcmp (p_link->bd_addr, bd_addr, BD_ADDR_LEN))) in btif_gatt_remove_encrypted_link() 324 p_link->in_use = FALSE; in btif_gatt_remove_encrypted_link()
|
/external/bluetooth/bluedroid/btif/include/ |
D | btif_hl.h | 157 BOOLEAN in_use; member 185 BOOLEAN in_use; member 195 BOOLEAN in_use; member 225 BOOLEAN in_use; /* this CB is in use*/ member 249 BOOLEAN in_use; member
|
/external/bluetooth/bluedroid/bta/ag/ |
D | bta_ag_main.c | 315 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/ |
D | l2c_utils.c | 56 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() 227 if ((p_lcb->in_use) && (!memcmp (p_lcb->remote_bd_addr, p_bd_addr, BD_ADDR_LEN))) in l2cu_find_lcb_by_bd_addr() 1119 if ( (!p_ccb->in_use) || (p_q == NULL) ) in l2cu_enqueue_ccb() 1122 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb() 1212 if ( (!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL) ) in l2cu_dequeue_ccb() 1215 … 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() 1379 p_ccb->in_use = TRUE; in l2cu_allocate_ccb() 1417 if (p_ccb->fcrb.ack_timer.in_use) in l2cu_allocate_ccb() [all …]
|
/external/libnfc-nci/src/nfa/dm/ |
D | nfa_dm_discover.c | 801 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_started() 906 if (!nfa_dm_cb.disc_cb.tle.in_use) in nfa_dm_send_deactivate_cmd() 918 else if (nfa_dm_cb.disc_cb.tle.in_use) in nfa_dm_send_deactivate_cmd() 949 &&(nfa_dm_cb.disc_cb.excl_disc_entry.in_use == FALSE) ) in nfa_dm_start_rf_discover() 957 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_start_rf_discover() 968 if (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_start_rf_discover() 1094 if (!nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_start_rf_discover() 1165 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_activation() 1184 if ( (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_disc_notify_activation() 1239 if (nfa_dm_cb.disc_cb.entry[xx].in_use) in nfa_dm_disc_notify_activation() [all …]
|
/external/qemu/slirp/ |
D | tftp.c | 29 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-android/ |
D | tftp.c | 29 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/ |
D | nattraversal.c | 74 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/ |
D | bta_dm_pm.c | 106 if(bta_dm_cb.pm_timer[i].in_use) in bta_dm_disable_pm() 110 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_disable_pm() 132 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() 136 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_pm_stop_timer() 430 if(!bta_dm_cb.pm_timer[i].in_use) in bta_dm_pm_set_mode() 432 bta_dm_cb.pm_timer[i].in_use = TRUE; in bta_dm_pm_set_mode() 706 if(bta_dm_cb.pm_timer[i].in_use) in bta_dm_pm_timer_cback() 712 bta_dm_cb.pm_timer[i].in_use = FALSE; in bta_dm_pm_timer_cback()
|
/external/bluetooth/bluedroid/stack/btm/ |
D | btm_ble_bgconn.c | 203 if (p_cb->bg_dev_list[i].in_use && in btm_ble_count_unconn_dev_in_whitelist() 236 if (p_bg_dev->in_use && memcmp(p_bg_dev->bd_addr, bd_addr, BD_ADDR_LEN) == 0) in btm_update_bg_conn_list() 249 … for (j = i + 1 ;j < BTM_BLE_MAX_BG_CONN_DEV_NUM && p_next->in_use ; j ++, p_cur ++, p_next ++ ) in btm_update_bg_conn_list() 255 else if (!p_bg_dev->in_use && to_add) in btm_update_bg_conn_list() 260 p_bg_dev->in_use = TRUE; in btm_update_bg_conn_list()
|
/external/e2fsprogs/lib/ext2fs/ |
D | unix_io.c | 76 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()
|