Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 262) sorted by relevance

1234567891011

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/storage/
Dsettings_nvs.c25 bt_mesh_nvs_handle_t handle; member
63 int bt_mesh_settings_nvs_open(const char* name, bt_mesh_nvs_handle_t *handle) in bt_mesh_settings_nvs_open() argument
66 return nvs_open_from_partition(CONFIG_BLE_MESH_PARTITION_NAME, name, NVS_READWRITE, handle); in bt_mesh_settings_nvs_open()
68 return nvs_open(name, NVS_READWRITE, handle); in bt_mesh_settings_nvs_open()
72 void bt_mesh_settings_nvs_close(bt_mesh_nvs_handle_t handle) in bt_mesh_settings_nvs_close() argument
74 nvs_close(handle); in bt_mesh_settings_nvs_close()
110 err = bt_mesh_settings_nvs_open(ctx->nvs_name, &ctx->handle); in bt_mesh_settings_init_foreach()
150 bt_mesh_settings_nvs_close(ctx->handle); in bt_mesh_settings_deinit_foreach()
159 int bt_mesh_settings_direct_open(bt_mesh_nvs_handle_t *handle) in bt_mesh_settings_direct_open() argument
175 err = bt_mesh_settings_nvs_open(ctx->nvs_name, &ctx->handle); in bt_mesh_settings_direct_open()
[all …]
Dsettings_nvs.h25 int bt_mesh_settings_nvs_open(const char* name, bt_mesh_nvs_handle_t *handle);
26 void bt_mesh_settings_nvs_close(bt_mesh_nvs_handle_t handle);
31 int bt_mesh_settings_direct_open(bt_mesh_nvs_handle_t *handle);
34 int bt_mesh_save_settings(bt_mesh_nvs_handle_t handle, const char *key,
39 int bt_mesh_erase_settings(bt_mesh_nvs_handle_t handle, const char *key);
43 int bt_mesh_load_settings(bt_mesh_nvs_handle_t handle, const char *key,
48 struct net_buf_simple *bt_mesh_get_settings_item(bt_mesh_nvs_handle_t handle, const char *key);
52 int bt_mesh_add_settings_item(bt_mesh_nvs_handle_t handle, const char *key, const uint16_t val);
56 int bt_mesh_remove_settings_item(bt_mesh_nvs_handle_t handle, const char *key, const uint16_t val);
60 int bt_mesh_settings_erase_key(bt_mesh_nvs_handle_t handle, const char *key);
[all …]
/hal_espressif-latest/components/esp_adc/
Dadc_continuous.c326 esp_err_t adc_continuous_start(adc_continuous_handle_t handle) in adc_continuous_start() argument
328 ESP_RETURN_ON_FALSE(handle, ESP_ERR_INVALID_STATE, ADC_TAG, "The driver isn't initialised"); in adc_continuous_start()
329 …ESP_RETURN_ON_FALSE(handle->fsm == ADC_FSM_INIT, ESP_ERR_INVALID_STATE, ADC_TAG, "ADC continuous m… in adc_continuous_start()
334 if (handle->pm_lock) { in adc_continuous_start()
335 … ESP_RETURN_ON_ERROR(esp_pm_lock_acquire(handle->pm_lock), ADC_TAG, "acquire pm_lock failed"); in adc_continuous_start()
338 handle->fsm = ADC_FSM_STARTED; in adc_continuous_start()
341 if (handle->use_adc1) { in adc_continuous_start()
344 if (handle->use_adc2) { in adc_continuous_start()
349 if (handle->use_adc1) { in adc_continuous_start()
350 adc_set_hw_calibration_code(ADC_UNIT_1, handle->adc1_atten); in adc_continuous_start()
[all …]
Dadc_oneshot.c143 esp_err_t adc_oneshot_config_channel(adc_oneshot_unit_handle_t handle, adc_channel_t channel, const… in adc_oneshot_config_channel() argument
145 … ESP_RETURN_ON_FALSE(handle && config, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer"); in adc_oneshot_config_channel()
148 …ESP_RETURN_ON_FALSE(channel < SOC_ADC_CHANNEL_NUM(handle->unit_id), ESP_ERR_INVALID_ARG, TAG, "inv… in adc_oneshot_config_channel()
150 s_adc_io_init(handle->unit_id, channel); in adc_oneshot_config_channel()
152 adc_oneshot_hal_ctx_t *hal = &(handle->hal); in adc_oneshot_config_channel()
159 if (handle->ulp_mode) { in adc_oneshot_config_channel()
167 esp_err_t adc_oneshot_read(adc_oneshot_unit_handle_t handle, adc_channel_t chan, int *out_raw) in adc_oneshot_read() argument
169 …ESP_RETURN_ON_FALSE(handle && out_raw, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer"); in adc_oneshot_read()
170 …ESP_RETURN_ON_FALSE(chan < SOC_ADC_CHANNEL_NUM(handle->unit_id), ESP_ERR_INVALID_ARG, TAG, "invali… in adc_oneshot_read()
172 if (adc_lock_try_acquire(handle->unit_id) != ESP_OK) { in adc_oneshot_read()
[all …]
Dadc_filter.c30 static esp_err_t s_adc_filter_claim(adc_continuous_handle_t handle, adc_iir_filter_t *filter_ctx, a… in s_adc_filter_claim() argument
32 assert(handle && filter_ctx); in s_adc_filter_claim()
38 handle->iir_filter[unit] = filter_ctx; in s_adc_filter_claim()
58 static esp_err_t s_adc_filter_claim(adc_continuous_handle_t handle, adc_iir_filter_t *filter_ctx, a… in s_adc_filter_claim() argument
61 assert(handle && filter_ctx); in s_adc_filter_claim()
65 bool found = !handle->iir_filter[i]; in s_adc_filter_claim()
67 handle->iir_filter[i] = filter_ctx; in s_adc_filter_claim()
90 esp_err_t adc_new_continuous_iir_filter(adc_continuous_handle_t handle, const adc_continuous_iir_fi… in adc_new_continuous_iir_filter() argument
93 …ESP_RETURN_ON_FALSE(handle && config && ret_hdl, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null… in adc_new_continuous_iir_filter()
94 …ESP_RETURN_ON_FALSE(handle->fsm == ADC_FSM_INIT, ESP_ERR_INVALID_STATE, TAG, "ADC continuous drive… in adc_new_continuous_iir_filter()
[all …]
/hal_espressif-latest/components/esp_pm/
Dpm_locks.c76 esp_err_t esp_pm_lock_delete(esp_pm_lock_handle_t handle) in esp_pm_lock_delete() argument
82 if (handle == NULL) { in esp_pm_lock_delete()
86 if (handle->count > 0) { in esp_pm_lock_delete()
90 SLIST_REMOVE(&s_list, handle, esp_pm_lock, next); in esp_pm_lock_delete()
92 free(handle); in esp_pm_lock_delete()
96 esp_err_t IRAM_ATTR esp_pm_lock_acquire(esp_pm_lock_handle_t handle) in esp_pm_lock_acquire() argument
102 if (handle == NULL) { in esp_pm_lock_acquire()
106 portENTER_CRITICAL_SAFE(&handle->spinlock); in esp_pm_lock_acquire()
107 if (handle->count++ == 0) { in esp_pm_lock_acquire()
112 esp_pm_impl_switch_mode(handle->mode, MODE_LOCK, now); in esp_pm_lock_acquire()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/
Dport_api.c231 int RFCOMM_RemoveConnection (UINT16 handle) in RFCOMM_RemoveConnection() argument
235 RFCOMM_TRACE_API ("RFCOMM_RemoveConnection() handle:%d", handle); in RFCOMM_RemoveConnection()
238 if ((handle == 0) || (handle > MAX_RFC_PORTS)) { in RFCOMM_RemoveConnection()
239 RFCOMM_TRACE_ERROR ("RFCOMM_RemoveConnection() BAD handle:%d", handle); in RFCOMM_RemoveConnection()
242 p_port = &rfc_cb.port.port[handle - 1]; in RFCOMM_RemoveConnection()
245 RFCOMM_TRACE_EVENT ("RFCOMM_RemoveConnection() Not opened:%d", handle); in RFCOMM_RemoveConnection()
265 int RFCOMM_RemoveServer (UINT16 handle) in RFCOMM_RemoveServer() argument
269 RFCOMM_TRACE_API ("RFCOMM_RemoveServer() handle:%d", handle); in RFCOMM_RemoveServer()
272 if ((handle == 0) || (handle > MAX_RFC_PORTS)) { in RFCOMM_RemoveServer()
273 RFCOMM_TRACE_ERROR ("RFCOMM_RemoveServer() BAD handle:%d", handle); in RFCOMM_RemoveServer()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/include/bta/
Dbta_jv_api.h188 UINT32 handle; /* The SDP handle */ member
195 UINT32 handle; /* The connection handle */ member
203 UINT32 handle; /* The connection handle */ member
211 UINT32 handle; /* The connection handle */ member
218 UINT32 handle; /* The connection handle */ member
225 UINT32 handle; /* The connection handle */ member
232 UINT32 handle; /* The connection handle */ member
242 UINT32 handle; /* The connection handle */ member
252 UINT32 handle; /* The connection handle */ member
261 UINT32 handle; /* The connection handle */ member
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_rfc.c93 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_port_cback() argument
99 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) { in bta_ag_port_cback()
103 port_handle, p_scb->conn_handle, handle); in bta_ag_port_cback()
109 p_buf->layer_specific = handle; in bta_ag_port_cback()
125 static void bta_ag_mgmt_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_mgmt_cback() argument
134 code, port_handle, handle); in bta_ag_mgmt_cback()
136 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL) { in bta_ag_mgmt_cback()
170 p_buf->hdr.layer_specific = handle; in bta_ag_mgmt_cback()
187 static int bta_ag_data_cback(UINT16 port_handle, void *p_data, UINT16 len, UINT16 handle) in bta_ag_data_cback() argument
193 bta_ag_co_tx_write(handle, (UINT8 *) p_data, len); in bta_ag_data_cback()
[all …]
Dbta_ag_api.c145 void BTA_AgDeregister(UINT16 handle) in BTA_AgDeregister() argument
150 p_buf->layer_specific = handle; in BTA_AgDeregister()
168 void BTA_AgOpen(UINT16 handle, BD_ADDR bd_addr, tBTA_SEC sec_mask, tBTA_SERVICE_MASK services) in BTA_AgOpen() argument
174 p_buf->hdr.layer_specific = handle; in BTA_AgOpen()
193 void BTA_AgClose(UINT16 handle) in BTA_AgClose() argument
199 p_buf->layer_specific = handle; in BTA_AgClose()
215 void BTA_AgAudioOpen(UINT16 handle) in BTA_AgAudioOpen() argument
221 p_buf->layer_specific = handle; in BTA_AgAudioOpen()
237 void BTA_AgAudioClose(UINT16 handle) in BTA_AgAudioClose() argument
243 p_buf->layer_specific = handle; in BTA_AgAudioClose()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/
Dbta_jv_api.c85 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR; in BTA_JvEnable()
124 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR; in BTA_JvDisable()
340 tBTA_JV_STATUS BTA_JvDeleteRecord(UINT32 handle) in BTA_JvDeleteRecord() argument
348 p_msg->handle = handle; in BTA_JvDeleteRecord()
475 tBTA_JV_STATUS BTA_JvL2capClose(UINT32 handle, tBTA_JV_L2CAP_CBACK *p_cback, void *user_data) in BTA_JvL2capClose() argument
482 if (handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback && in BTA_JvL2capClose()
485 p_msg->handle = handle; in BTA_JvL2capClose()
486 p_msg->p_cb = &bta_jv_cb.l2c_cb[handle]; in BTA_JvL2capClose()
507 tBTA_JV_STATUS BTA_JvL2capCloseLE(UINT32 handle) in BTA_JvL2capCloseLE() argument
516 p_msg->handle = handle; in BTA_JvL2capCloseLE()
[all …]
Dbta_jv_act.c60 uint16_t handle; member
171 if (bta_jv_cb.rfc_cb[i].handle ) { in get_rfc_cb_used()
218 if (0 == bta_jv_cb.rfc_cb[i].handle ) { in bta_jv_alloc_rfc_cb()
221 p_cb->handle = (i + 1) | BTA_JV_RFCOMM_MASK; in bta_jv_alloc_rfc_cb()
230 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
233 p_pcb->handle = p_cb->handle; in bta_jv_alloc_rfc_cb()
261 && bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb()
280 UINT32 handle; in bta_jv_rfc_port_to_cb() local
283 && bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_cb()
284 handle = bta_jv_cb.port_cb[port_handle - 1].handle; in bta_jv_rfc_port_to_cb()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Dport_api.h252 extern int RFCOMM_RemoveConnection (UINT16 handle);
264 extern int RFCOMM_RemoveServer (UINT16 handle);
336 extern int PORT_CheckConnection (UINT16 handle, BOOLEAN ignore_rfc_state, BD_ADDR bd_addr,
364 extern int PORT_SetState (UINT16 handle, tPORT_STATE *p_settings);
376 extern int PORT_GetRxQueueCnt (UINT16 handle, UINT16 *p_rx_queue_count);
390 extern int PORT_GetState (UINT16 handle, tPORT_STATE *p_settings);
414 extern int PORT_Control (UINT16 handle, UINT8 signal);
429 extern int PORT_FlowControl (UINT16 handle, BOOLEAN enable);
442 extern int PORT_FlowControl_GiveCredit (UINT16 handle, BOOLEAN enable, UINT16 credits_given);
470 extern int PORT_GetModemStatus (UINT16 handle, UINT8 *p_control_signal);
[all …]
Davrc_api.h145 typedef void (tAVRC_CTRL_CBACK) (UINT8 handle, UINT8 event, UINT16 result,
153 typedef void (tAVRC_MSG_CBACK) (UINT8 handle, UINT8 label, UINT8 opcode,
316 extern UINT16 AVRC_Close(UINT8 handle);
332 extern UINT16 AVRC_OpenBrowse(UINT8 handle, UINT8 conn_role);
346 extern UINT16 AVRC_CloseBrowse(UINT8 handle);
364 extern UINT16 AVRC_MsgReq (UINT8 handle, UINT8 label, UINT8 ctype, BT_HDR *p_pkt);
387 extern UINT16 AVRC_UnitCmd(UINT8 handle, UINT8 label);
414 extern UINT16 AVRC_SubCmd(UINT8 handle, UINT8 label, UINT8 page);
440 extern UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg);
467 extern UINT16 AVRC_PassRsp(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg);
[all …]
Davdtc_api.h61 typedef void tAVDTC_CTRL_CBACK(UINT8 handle, BD_ADDR bd_addr, UINT8 event, tAVDTC_CTRL *p_data);
124 extern void AVDTC_GetConfigReq(UINT8 handle);
135 extern void AVDTC_GetConfigRsp(UINT8 handle, UINT8 label, tAVDT_CFG *p_cfg);
146 extern void AVDTC_OpenReq(UINT8 handle);
157 extern void AVDTC_OpenRsp(UINT8 handle, UINT8 label);
179 extern void AVDTC_CloseRsp(UINT8 handle, UINT8 label);
201 extern void AVDTC_AbortReq(UINT8 handle);
212 extern void AVDTC_AbortRsp(UINT8 handle, UINT8 label);
223 extern void AVDTC_Rej(UINT8 handle, BD_ADDR bd_addr, UINT8 cmd, UINT8 label,
Davdt_api.h364 typedef void (tAVDT_CTRL_CBACK)(UINT8 handle, BD_ADDR bd_addr, UINT8 event,
371 typedef void (tAVDT_DATA_CBACK)(UINT8 handle, BT_HDR *p_pkt, UINT32 time_stamp,
381 typedef void (tAVDT_MEDIA_CBACK)(UINT8 handle, UINT8 *p_payload, UINT32 payload_len,
390 typedef void (tAVDT_REPORT_CBACK)(UINT8 handle, AVDT_REPORT_TYPE type,
502 extern void AVDT_AbortReq(UINT8 handle);
534 extern UINT16 AVDT_RemoveStream(UINT8 handle);
631 extern UINT16 AVDT_DelayReport(UINT8 handle, UINT8 seid, UINT16 delay);
646 extern UINT16 AVDT_OpenReq(UINT8 handle, BD_ADDR bd_addr, UINT8 seid,
662 extern UINT16 AVDT_ConfigRsp(UINT8 handle, UINT8 label, UINT8 error_code,
712 extern UINT16 AVDT_CloseReq(UINT8 handle);
[all …]
/hal_espressif-latest/components/bootloader_support/src/idf/
Dbootloader_sha.c28 void bootloader_sha256_data(bootloader_sha256_handle_t handle, const void *data, size_t data_len) in bootloader_sha256_data() argument
30 assert(handle != NULL); in bootloader_sha256_data()
31 mbedtls_sha256_context *ctx = (mbedtls_sha256_context *)handle; in bootloader_sha256_data()
37 void bootloader_sha256_finish(bootloader_sha256_handle_t handle, uint8_t *digest) in bootloader_sha256_finish() argument
39 assert(handle != NULL); in bootloader_sha256_finish()
40 mbedtls_sha256_context *ctx = (mbedtls_sha256_context *)handle; in bootloader_sha256_finish()
47 free(handle); in bootloader_sha256_finish()
48 handle = NULL; in bootloader_sha256_finish()
/hal_espressif-latest/components/esp_hw_support/
Dintr_alloc.c93 static esp_err_t intr_free_for_current_cpu(intr_handle_t handle);
665 esp_err_t IRAM_ATTR esp_intr_set_in_iram(intr_handle_t handle, bool is_in_iram) in esp_intr_set_in_iram() argument
667 if (!handle) { in esp_intr_set_in_iram()
670 vector_desc_t *vd = handle->vector_desc; in esp_intr_set_in_iram()
694 esp_err_t esp_intr_free(intr_handle_t handle) in esp_intr_free() argument
696 if (!handle) { in esp_intr_free()
712 if (task_can_be_run_on_any_core || handle->vector_desc->cpu != esp_cpu_get_core_id()) { in esp_intr_free()
715 …esp_err_t ret = esp_ipc_call_blocking(handle->vector_desc->cpu, &intr_free_for_other_cpu, (void *) in esp_intr_free()
720 return intr_free_for_current_cpu(handle); in esp_intr_free()
723 static esp_err_t intr_free_for_current_cpu(intr_handle_t handle) in intr_free_for_current_cpu() argument
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_hidh_api.h161 uint8_t handle; /*!< device handle */ member
172 uint8_t handle; /*!< device handle */ member
181 uint8_t handle; /*!< device handle */ member
189 uint8_t handle; /*!< device handle */ member
198 uint8_t handle; /*!< device handle */ member
206 uint8_t handle; /*!< device handle */ member
216 uint8_t handle; /*!< device handle */ member
224 uint8_t handle; /*!< device handle */ member
233 uint8_t handle; /*!< device handle */ member
242 uint8_t handle; /*!< device handle */ member
[all …]
/hal_espressif-latest/components/driver/spi/gpspi/
Dspi_master.c340 …ost_device_t host_id, const spi_device_interface_config_t *dev_config, spi_device_handle_t *handle) in spi_bus_add_device() argument
476 *handle = dev; in spi_bus_add_device()
491 esp_err_t spi_bus_remove_device(spi_device_handle_t handle) in spi_bus_remove_device() argument
493 SPI_CHECK(handle!=NULL, "invalid handle", ESP_ERR_INVALID_ARG); in spi_bus_remove_device()
496 …SPI_CHECK(uxQueueMessagesWaiting(handle->trans_queue)==0, "Have unfinished transactions", ESP_ERR_… in spi_bus_remove_device()
497 …SPI_CHECK(handle->host->cur_cs == DEV_NUM_MAX || handle->host->device[handle->host->cur_cs] != han… in spi_bus_remove_device()
498 if (handle->ret_queue) { in spi_bus_remove_device()
499 …SPI_CHECK(uxQueueMessagesWaiting(handle->ret_queue)==0, "Have unfinished transactions", ESP_ERR_IN… in spi_bus_remove_device()
503 if (handle->cfg.clock_source == SPI_CLK_SRC_RC_FAST) { in spi_bus_remove_device()
509 int spics_io_num = handle->cfg.spics_io_num; in spi_bus_remove_device()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Dadv.c51 QueueHandle_t handle; member
111 TaskHandle_t handle; member
242 QueueSetMemberHandle_t handle = NULL; in adv_thread() local
256 xQueueReceive(adv_queue.handle, &msg, K_NO_WAIT); in adv_thread()
262 xQueueReceive(adv_queue.handle, &msg, K_WAIT(timeout)); in adv_thread()
267 xQueueReceive(adv_queue.handle, &msg, portMAX_DELAY); in adv_thread()
272 handle = xQueueSelectFromSet(mesh_queue_set, K_NO_WAIT); in adv_thread()
273 if (handle) { in adv_thread()
274 if (uxQueueMessagesWaiting(adv_queue.handle)) { in adv_thread()
275 xQueueReceive(adv_queue.handle, &msg, K_NO_WAIT); in adv_thread()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/battery/
Dbattery_prf.c116 dis_cb.dis_attr[0].handle = service_id; break; in bas_gatts_callback()
118 dis_cb.dis_attr[1].handle = service_id; break; in bas_gatts_callback()
120 dis_cb.dis_attr[2].handle = service_id; break; in bas_gatts_callback()
122 dis_cb.dis_attr[3].handle = service_id; break; in bas_gatts_callback()
124 dis_cb.dis_attr[4].handle = service_id; break; in bas_gatts_callback()
126 dis_cb.dis_attr[5].handle = service_id; break; in bas_gatts_callback()
128 dis_cb.dis_attr[6].handle = service_id; break; in bas_gatts_callback()
130 dis_cb.dis_attr[7].handle = service_id; break; in bas_gatts_callback()
132 dis_cb.dis_attr[8].handle = service_id; break; in bas_gatts_callback()
164 UINT16 handle = p_data->req_data.p_data->read_req.handle; in bas_gatts_callback() local
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/btu/
Dbtu_hcif.c127 static void btu_ble_ll_get_conn_param_format_err_from_contoller (UINT8 status, UINT16 handle);
644 UINT16 handle; in btu_hcif_connection_comp_evt() local
650 STREAM_TO_UINT16 (handle, p); in btu_hcif_connection_comp_evt()
655 handle = HCID_GET_HANDLE (handle); in btu_hcif_connection_comp_evt()
657 btm_acl_connected(bda, handle, link_type, enc_mode, status); in btu_hcif_connection_comp_evt()
659 HCI_TRACE_WARNING("hcif conn complete: hdl 0x%x, st 0x%x", handle, status); in btu_hcif_connection_comp_evt()
707 UINT16 handle; in btu_hcif_disconnection_comp_evt() local
711 STREAM_TO_UINT16 (handle, p); in btu_hcif_disconnection_comp_evt()
714 handle = HCID_GET_HANDLE (handle); in btu_hcif_disconnection_comp_evt()
716 btm_acl_disconnected(handle, reason); in btu_hcif_disconnection_comp_evt()
[all …]
/hal_espressif-latest/components/esp_psram/esp32/
Desp_himem.c221 esp_err_t esp_himem_free(esp_himem_handle_t handle) in esp_himem_free() argument
224 for (int i = 0; i < handle->block_ct; i++) { in esp_himem_free()
225 assert(ramblock_idx_valid(handle->block[i])); in esp_himem_free()
226 …ESP_RETURN_ON_FALSE(!s_ram_descriptor[handle->block[i]].is_mapped, ESP_ERR_INVALID_ARG, TAG, "bloc… in esp_himem_free()
230 for (int i = 0; i < handle->block_ct; i++) { in esp_himem_free()
231 s_ram_descriptor[handle->block[i]].is_alloced = false; in esp_himem_free()
236 free(handle->block); in esp_himem_free()
237 free(handle); in esp_himem_free()
281 esp_err_t esp_himem_free_map_range(esp_himem_rangehandle_t handle) in esp_himem_free_map_range() argument
284 for (int i = 0; i < handle->block_ct; i++) { in esp_himem_free_map_range()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/hci/
Dpacket_fragmenter.c31 #define APPLY_CONTINUATION_FLAG(handle) (((handle) & 0xCFFF) | 0x1000) argument
32 #define APPLY_START_FLAG(handle) (((handle) & 0xCFFF) | 0x2000) argument
34 #define GET_BOUNDARY_FLAG(handle) (((handle) >> 12) & 0x0003) argument
142 uint16_t handle; in reassemble_and_dispatch() local
146 STREAM_TO_UINT16(handle, stream); in reassemble_and_dispatch()
152 uint8_t boundary_flag = GET_BOUNDARY_FLAG(handle); in reassemble_and_dispatch()
153 handle = handle & HANDLE_MASK; in reassemble_and_dispatch()
155 BT_HDR *partial_packet = (BT_HDR *)hash_map_get(partial_packets, (void *)(uintptr_t)handle); in reassemble_and_dispatch()
160 hash_map_erase(partial_packets, (void *)(uintptr_t)handle); in reassemble_and_dispatch()
191 hash_map_set(partial_packets, (void *)(uintptr_t)handle, partial_packet); in reassemble_and_dispatch()
[all …]

1234567891011