Home
last modified time | relevance | path

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

1234

/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_utils.c69 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
70 p_cb->srvc_cb[i].in_use = 1; in bta_gatts_alloc_srvc_cb()
93 if (p_reg->in_use && p_reg->gatt_if == server_if) { in bta_gatts_find_app_rcb_by_app_if()
115 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()
135 if (p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_srvc_id()
159 p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
160 p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_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()
Dbta_gattc_utils.c132 if (p_clrcb->in_use && in bta_gattc_cl_get_regcb()
153 if (bta_gattc_cb.cl_rcb[i].in_use) { in bta_gattc_num_reg_app()
175 if (p_clcb->in_use && in bta_gattc_find_clcb_by_cif()
199 if (p_clcb->in_use && in bta_gattc_find_clcb_by_conn_id()
223 if (!bta_gattc_cb.clcb[i_clcb].in_use) { in bta_gattc_clcb_alloc()
228 p_clcb->in_use = 1; in bta_gattc_clcb_alloc()
246 p_clcb->in_use = 0; in bta_gattc_clcb_alloc()
340 if (p_srcb->in_use && bdcmp(p_srcb->server_bda, bda) == 0) { in bta_gattc_find_srcb()
404 if (!p_tcb->in_use) { in bta_gattc_srcb_alloc()
430 p_tcb->in_use = 1; in bta_gattc_srcb_alloc()
[all …]
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/
Dhal_spi.c174 static bool BOOT_BSS_LOC in_use[HAL_SPI_ID_QTY] = { false, }; variable
767 if (set_bool_flag(&in_use[id])) { in hal_spi_enable_and_send_id()
776 clear_bool_flag(&in_use[id]); in hal_spi_enable_and_send_id()
786 if (set_bool_flag(&in_use[id])) { in hal_spi_enable_and_recv_id()
795 clear_bool_flag(&in_use[id]); in hal_spi_enable_and_recv_id()
820 clear_bool_flag(&in_use[id]); in hal_spi_txdma_handler()
938 clear_bool_flag(&in_use[id]); in hal_spi_stop_dma_send_id()
980 clear_bool_flag(&in_use[id]); in hal_spi_rxdma_handler()
1454 clear_bool_flag(&in_use[id]); in hal_spi_stop_dma_recv_id()
1489 if (set_bool_flag(&in_use[HAL_SPI_ID_INTERNAL])) { in hal_ispi_send()
[all …]
Dhal_ir.c357 static bool in_use[HAL_IR_ID_QTY] = { false, }; variable
374 clear_bool_flag(&in_use[id]); in hal_ir_rxdma_handler()
471 clear_bool_flag(&in_use[id]); in hal_ir_stop_dma_rx()
485 clear_bool_flag(&in_use[id]); in hal_ir_txdma_handler()
578 clear_bool_flag(&in_use[id]); in hal_ir_stop_dma_tx()
584 if (set_bool_flag(&in_use[HAL_IR_ID])) in hal_ir_dma_rx()
594 clear_bool_flag(&in_use[HAL_IR_ID]); in hal_ir_dma_rx()
603 if (set_bool_flag(&in_use[HAL_IR_ID])) in hal_ir_dma_tx()
613 clear_bool_flag(&in_use[HAL_IR_ID]); in hal_ir_dma_tx()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gap/
Dgap_utils.c40 if (!p_cb->in_use) { in gap_allocate_cb()
43 p_cb->in_use = 1; in gap_allocate_cb()
68 p_cb->in_use = 0; in gap_free_cb()
91 if (p_cb->in_use && p_cb->event == request) { in gap_is_service_busy()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/btu/
Dbtu_task.c438 p_tle->in_use = 1; in btu_start_timer()
456 if (p_tle->in_use == 0) { in btu_stop_timer()
459 p_tle->in_use = 0; in btu_stop_timer()
483 p_tle->in_use = 0; in btu_free_timer()
552 p_tle->in_use = 1; in btu_start_quick_timer()
570 if (p_tle->in_use == 0) { in btu_stop_quick_timer()
573 p_tle->in_use = 0; in btu_stop_quick_timer()
588 p_tle->in_use = 0; in btu_free_quick_timer()
637 p_tle->in_use = 1; in btu_start_timer_oneshot()
647 if (p_tle->in_use == 0) { in btu_stop_timer_oneshot()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/rfcomm/
Dport_api.c244 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in RFCOMM_RemoveConnection()
281 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in RFCOMM_RemoveServer()
321 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetEventCallback()
381 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetDataCallback()
415 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetDataCOCallback()
449 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetEventMask()
484 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_CheckConnection()
579 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetState()
623 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_GetRxQueueCnt()
664 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_GetState()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/hid/
Dhidh_api.c331 if ((hh_cb.devices[i].in_use) && in HID_HostAddDev()
339 if ( !hh_cb.devices[i].in_use) { in HID_HostAddDev()
349 if (!hh_cb.devices[i].in_use) { in HID_HostAddDev()
350 hh_cb.devices[i].in_use = 1; in HID_HostAddDev()
381 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostRemoveDev()
386 hh_cb.devices[dev_handle].in_use = 0; in HID_HostRemoveDev()
409 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostOpenDev()
443 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostWriteDev()
479 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostCloseDev()
573 if ((hh_cb.devices[i].in_use) && in hid_known_hid_device()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/
Dmali_kbase_csf_heap_context_alloc.c49 heap_nr = find_first_zero_bit(ctx_alloc->in_use, in sub_alloc()
73 bitmap_set(ctx_alloc->in_use, heap_nr, 1); in sub_alloc()
112 bitmap_clear(ctx_alloc->in_use, heap_nr, 1); in sub_free()
127 bitmap_zero(ctx_alloc->in_use, MAX_TILER_HEAPS); in kbase_csf_heap_context_allocator_init()
Dmali_kbase_csf_kcpu_debugfs.c135 idx = find_first_bit(kctx->csf.kcpu_queues.in_use, in kbasep_csf_kcpu_debugfs_show()
147 idx = find_next_bit(kctx->csf.kcpu_queues.in_use, in kbasep_csf_kcpu_debugfs_show()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gap/include/
Dgap_int.h35 BOOLEAN in_use; /* True when structure is allocated */ member
43 BOOLEAN in_use; member
120 BOOLEAN in_use; member
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/
Dgatt_utils.c338 if (!p_cb->hdl_list[i].in_use) { in gatt_alloc_hdl_buffer()
340 p_elem->in_use = 1; in gatt_alloc_hdl_buffer()
366 if (p_list->in_use && p_list->asgn_range.s_handle == handle) { in gatt_find_hdl_buffer_by_handle()
391 if (p_list->in_use && (p_list->asgn_range.s_handle <= attr_handle) in gatt_find_hdl_buffer_by_attr_handle()
579 gatt_cb.srv_list[i_sreg].in_use = 1; in gatts_update_srv_list_elem()
791 if (p_tcb->in_use && p_tcb->ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
895 if (p_tcb->in_use && in gatt_is_bda_connected()
943 if ( (tcb_idx < GATT_MAX_PHY_CHANNEL) && p_tcb->in_use && p_tcb->tcb_idx == tcb_idx ) { in gatt_get_tcb_by_idx()
1067 p_tcb->in_use = 1; in gatt_allocate_tcb_by_bdaddr()
1387 if (gatt_cb.sr_reg[i_rcb].in_use && in gatt_sr_find_i_rcb_by_handle()
[all …]
Dgatt_attr.c97 if (p_clcb->in_use && p_clcb->conn_id == conn_id) { in gatt_profile_find_clcb_by_conn_id()
120 if (p_clcb->in_use && p_clcb->transport == transport && in gatt_profile_find_clcb_by_bd_addr()
144 if (!p_clcb->in_use) { in gatt_profile_clcb_alloc()
145 p_clcb->in_use = 1; in gatt_profile_clcb_alloc()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/btm/
Dbtm_ble_multi_adv.c150 btm_multi_adv_cb.p_adv_inst[inst_id - 1].in_use = 0; in btm_ble_multi_adv_vsc_cmpl_cback()
470 if (1 == p_inst->in_use) { in btm_ble_multi_adv_reenable()
477 p_inst->in_use = 0; in btm_ble_multi_adv_reenable()
499 p_inst->in_use = 0; in btm_ble_multi_adv_enb_privacy()
543 if (0 == p_inst->in_use) { in BTM_BleEnableAdvInstance()
544 p_inst->in_use = 1; in BTM_BleEnableAdvInstance()
565 p_inst->in_use = 0; in BTM_BleEnableAdvInstance()
602 if (0 == p_inst->in_use) { in BTM_BleUpdateAdvInstParam()
706 btm_multi_adv_cb.p_adv_inst[inst_id - 1].in_use = 0; in BTM_BleDisableAdvInstance()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/l2cap/
Dl2c_utils.c90 p_lcb->in_use = 1; in l2cu_allocate_lcb()
156 p_lcb->in_use = 0; in l2cu_release_lcb()
308 if ((p_lcb->in_use) && in l2cu_find_lcb_by_bd_addr()
327 if (!p_lcb->in_use) { in l2cu_find_free_lcb()
342 if (p_lcb && p_lcb->in_use) { in l2cu_plcb_active_count()
1285 if ( (!p_ccb->in_use) || (p_q == NULL) ) { in l2cu_enqueue_ccb()
1287 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb()
1371 if ( (!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL) ) { in l2cu_dequeue_ccb()
1373 … 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()
1500 p_ccb->in_use = 1; in l2cu_allocate_ccb()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/dm/
Dbta_dm_pm.c139 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()
200 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_by_mode()
229 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_by_srvc_id()
254 p_timer->in_use = 1; in bta_dm_pm_start_timer()
291 assert(p_timer->in_use && (p_timer->active > 0)); in bta_dm_pm_stop_timer_by_index()
299 p_timer->in_use = 0; in bta_dm_pm_stop_timer_by_index()
575 … if (bta_dm_cb.pm_timer[i].in_use && bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr) == 0) { in bta_dm_pm_set_mode()
595 } else if (!bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_set_mode()
848 APPL_TRACE_DEBUG("dm_pm_timer[%d] in use? %d", i, bta_dm_cb.pm_timer[i].in_use); in bta_dm_pm_timer_cback()
849 if (bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_timer_cback()
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/esp/ble_button/
Dbutton_pro.c228 if (!p_clcb->in_use) { in button_env_clcb_alloc()
229 p_clcb->in_use = 1; in button_env_clcb_alloc()
254 … if (p_clcb->in_use && p_clcb->connected && memcmp(p_clcb->remote_bda, remote_bda, BD_ADDR_LEN)) { in button_env_find_conn_id_by_bd_adddr()
278 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) { in button_env_clcb_dealloc()
/device/soc/rockchip/common/sdk_linux/ipc/
Dutil.c116 ids->in_use = 0; in ipc_init_ids()
225 max_idx = max(ids->in_use * 0x3 / 0x2, ipc_min_cycle); in ipc_idr_alloc()
289 if (ids->in_use >= limit) { in ipc_addid()
322 ids->in_use++; in ipc_addid()
470 ids->in_use--; in ipc_rmid()
765 for (id = 0; id < pos && total < ids->in_use; id++) { in sysvipc_find_ipc()
773 if (total >= ids->in_use) { in sysvipc_find_ipc()
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/hh/
Dbta_hh_le.c119 if (p_cb->hid_srvc[i].in_use) { in bta_hh_le_hid_report_dbg()
126 if (p_rpt->in_use) { in bta_hh_le_hid_report_dbg()
314 p_dev_cb->hid_srvc[idx].in_use = 0; in bta_hh_le_add_hid_srvc_entry()
337 p_cb->in_use = 0; in bta_hh_le_open_conn()
401 if (p_dev_cb->in_use && p_dev_cb->conn_id == conn_id) { in bta_hh_le_find_dev_cb_by_conn_id()
421 if (p_dev_cb->in_use && in bta_hh_le_find_dev_cb_by_bda()
441 if (p_cb->hid_srvc[i].in_use && in bta_hh_le_find_service_inst_by_battery_inst_id()
507 if (p_rpt->in_use && p_rpt->rpt_id == rpt_id && r_type == p_rpt->rpt_type) { in bta_hh_le_find_rpt_by_idtype()
552 if (!p_rpt->in_use || in bta_hh_le_find_alloc_report_entry()
555 if (!p_rpt->in_use) { in bta_hh_le_find_alloc_report_entry()
[all …]
Dbta_hh_utils.c80 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
89 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
192 p_cb->in_use = 1; in bta_hh_add_device_to_list()
519 bta_hh_cb.kdev[xx].in_use, bta_hh_cb.kdev[xx].hid_handle); in bta_hh_trace_dev_db()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/gatt/include/
Dgatt_int.h248 BOOLEAN in_use; member
263 BOOLEAN in_use; member
322 BOOLEAN in_use; member
337 BOOLEAN in_use; member
408 BOOLEAN in_use; member
438 BOOLEAN in_use; member
467 BOOLEAN in_use; member
480 BOOLEAN in_use; member
491 BOOLEAN in_use; member
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/esp/wechat_AirSync/
Dwx_airsync_prf.c203 if (!p_clcb->in_use) { in airsync_env_clcb_alloc()
204 p_clcb->in_use = 1; in airsync_env_clcb_alloc()
229 … if (p_clcb->in_use && p_clcb->connected && memcmp(p_clcb->remote_bda, remote_bda, BD_ADDR_LEN)) { in airsync_env_find_conn_id_by_bd_adddr()
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/net/wifi/
Dwifi_agent.h145 uint32 in_use; member
154 uint32 in_use; member
/device/soc/esp/esp32/components/bt/host/bluedroid/bta/gatt/include/
Dbta_gattc_int.h289 BOOLEAN in_use; member
325 BOOLEAN in_use; member
332 BOOLEAN in_use; member
356 BOOLEAN in_use; member
373 BOOLEAN in_use; member
381 BOOLEAN in_use; member
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
Dhmac_blockack.c214 if ((rx_buff->in_use == 0) || (rx_buff->us_seq_num != us_seq_num)) { in hmac_remove_frame_from_reorder_q()
217 rx_buff->in_use = 0; in hmac_remove_frame_from_reorder_q()
238 if ((rx_buff->in_use == 0) || (rx_buff->us_seq_num != us_seq_num)) { in hmac_get_frame_from_reorder_q()
260 if (rx_buf->in_use == 1) { in hmac_ba_buffer_frame_in_reorder()
267 rx_buf->in_use = 1; in hmac_ba_buffer_frame_in_reorder()
474 if (rx_buf->in_use == HI_TRUE) { in hmac_ba_flush_reorder_q()
477 rx_buf->in_use = HI_FALSE; in hmac_ba_flush_reorder_q()
709 rx_buf->in_use = 0; in hmac_ba_send_reorder_timeout()

1234