/hal_espressif-3.7.0/components/driver/spi/ |
D | spi_bus_lock.c | 329 SPI_MASTER_ATTR static inline void req_core(spi_bus_lock_dev_t *dev_handle) in req_core() argument 331 spi_bus_lock_t *lock = dev_handle->parent; in req_core() 336 if (dev_handle == lock->acquiring_dev){ in req_core() 343 uint32_t status = lock_status_fetch_set(lock, DEV_REQ_MASK(dev_handle)); in req_core() 344 if ((status & DEV_BG_MASK(dev_handle)) == 0) { in req_core() 348 uint32_t status = lock_status_fetch_set(lock, DEV_REQ_MASK(dev_handle)); in req_core() 356 SPI_MASTER_ISR_ATTR static inline bool acquire_core(spi_bus_lock_dev_t *dev_handle) in acquire_core() argument 358 spi_bus_lock_t* lock = dev_handle->parent; in acquire_core() 362 uint32_t status = lock_status_fetch_set(lock, dev_handle->mask & LOCK_MASK); in acquire_core() 368 lock->acquiring_dev = dev_handle; in acquire_core() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/hid/ |
D | bta_hh_co.c | 15 void bta_hh_co_open(uint8_t dev_handle, uint8_t sub_class, tBTA_HH_ATTR_MASK attr_mask, uint8_t app… in bta_hh_co_open() argument 20 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open() 21 APPL_TRACE_WARNING("%s: Oops, dev_handle (%d) is invalid...", __func__, dev_handle); in bta_hh_co_open() 27 if (p_dev->dev_status != ESP_HIDH_CONN_STATE_UNKNOWN && p_dev->dev_handle == dev_handle) { in bta_hh_co_open() 31 … __func__, p_dev->dev_status, dev_handle, p_dev->attr_mask, p_dev->sub_class, in bta_hh_co_open() 43 p_dev->dev_handle = dev_handle; in bta_hh_co_open() 76 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) in bta_hh_co_close() argument 81 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __func__, dev_handle, app_id); in bta_hh_co_close() 82 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_close() 83 APPL_TRACE_WARNING("%s: Oops, dev_handle (%d) is invalid...", __func__, dev_handle); in bta_hh_co_close() [all …]
|
D | btc_hh.c | 140 …ices[i].dev_status == ESP_HIDH_CONN_STATE_CONNECTED && btc_hh_cb.devices[i].dev_handle == handle) { in btc_hh_find_connected_dev_by_handle() 237 p_data.dev_status.handle = p_dev->dev_handle; in btc_hh_timer_timeout() 293 btc_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; in btc_hh_add_added_dev() 320 BTA_HhRemoveDev(p_added_dev->dev_handle); in btc_hh_remove_device() 323 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btc_hh_remove_device() 339 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btc_hh_remove_device() 497 BTA_HhClose(btc_hh_cb.devices[i].dev_handle); in btc_hh_deinit() 559 if (added_dev->dev_handle == BTA_HH_INVALID_HANDLE) { in btc_hh_connect() 612 BTA_HhClose(p_dev->dev_handle); in btc_hh_disconnect() 614 param.close.handle = p_dev->dev_handle; in btc_hh_disconnect() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hh/ |
D | bta_hh_api.c | 113 void BTA_HhClose(UINT8 dev_handle) in BTA_HhClose() argument 120 p_buf->layer_specific = (UINT16) dev_handle; in BTA_HhClose() 162 static void bta_hh_snd_write_dev(UINT8 dev_handle, UINT8 t_type, UINT8 param, in bta_hh_snd_write_dev() argument 172 p_buf->hdr.layer_specific = (UINT16) dev_handle; in bta_hh_snd_write_dev() 194 void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, BT_HDR *p_data) in BTA_HhSetReport() argument 196 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); in BTA_HhSetReport() 207 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument 211 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, in BTA_HhGetReport() 223 void BTA_HhSetProtoMode(UINT8 dev_handle, tBTA_HH_PROTO_MODE p_type) in BTA_HhSetProtoMode() argument 225 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_PROTOCOL, (UINT8)p_type, in BTA_HhSetProtoMode() [all …]
|
D | bta_hh_utils.c | 481 UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle) in bta_hh_dev_handle_to_cb_idx() argument 486 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 487 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 488 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 491 … APPL_TRACE_DEBUG("bta_hh_dev_handle_to_cb_idx dev_handle = %d index = %d", dev_handle, index); in bta_hh_dev_handle_to_cb_idx() 497 if (dev_handle < BTA_HH_MAX_KNOWN ) { in bta_hh_dev_handle_to_cb_idx() 498 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
D | bta_hh_act.c | 47 static void bta_hh_cback (UINT8 dev_handle, BD_ADDR addr, UINT8 event, 521 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_cmpl_act() local 525 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 554 if ((HID_HostWriteDev(dev_handle, in bta_hh_open_cmpl_act() 587 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_act() local 591 APPL_TRACE_EVENT ("bta_hh_open_act: Device[%d] connected", dev_handle); in bta_hh_open_act() 603 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 941 UINT8 dev_handle; in bta_hh_maint_dev_act() local 958 if (HID_HostAddDev(p_dev_info->bda, p_dev_info->attr_mask, &dev_handle)\ in bta_hh_maint_dev_act() 960 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/hid/ |
D | hidh_api.c | 436 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) in HID_HostRemoveDev() argument 442 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostRemoveDev() 446 HID_HostCloseDev( dev_handle ) ; in HID_HostRemoveDev() 448 if (hh_cb.devices[dev_handle].conn.conn_state == HID_CONN_STATE_DISCONNECTING_INTR || in HID_HostRemoveDev() 449 hh_cb.devices[dev_handle].conn.conn_state == HID_CONN_STATE_DISCONNECTING_CTRL) { in HID_HostRemoveDev() 451 hh_cb.devices[dev_handle].delay_remove = TRUE; in HID_HostRemoveDev() 453 HIDH_TRACE_WARNING("%s dev_handle:%d conn_state:%d", __func__, dev_handle, in HID_HostRemoveDev() 454 hh_cb.devices[dev_handle].conn.conn_state); in HID_HostRemoveDev() 455 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev() 456 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() [all …]
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/include/bta/ |
D | bta_hh_api.h | 373 extern void BTA_HhClose(UINT8 dev_handle); 395 extern void BTA_HhGetProtoMode(UINT8 dev_handle); 405 extern void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 417 extern void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 428 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 439 extern void BTA_HhGetIdle(UINT8 dev_handle); 450 extern void BTA_HhSendCtrl(UINT8 dev_handle, 462 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 474 extern void BTA_HhGetIdle(UINT8 dev_handle); 485 extern void BTA_HhSendData(UINT8 dev_handle, BD_ADDR dev_bda, BT_HDR *p_buf); [all …]
|
D | bta_hh_co.h | 48 extern void bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len, 63 extern void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, 76 extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
|
/hal_espressif-3.7.0/components/driver/include/esp_private/ |
D | spi_common_internal.h | 544 void spi_bus_lock_unregister_dev(spi_bus_lock_dev_handle_t dev_handle); 552 spi_bus_lock_handle_t spi_bus_lock_get_parent(spi_bus_lock_dev_handle_t dev_handle); 562 int spi_bus_lock_get_dev_id(spi_bus_lock_dev_handle_t dev_handle); 574 bool spi_bus_lock_touch(spi_bus_lock_dev_handle_t dev_handle); 591 esp_err_t spi_bus_lock_acquire_start(spi_bus_lock_dev_handle_t dev_handle, uint32_t wait); 609 esp_err_t spi_bus_lock_acquire_end(spi_bus_lock_dev_handle_t dev_handle); 635 esp_err_t spi_bus_lock_bg_request(spi_bus_lock_dev_handle_t dev_handle); 652 esp_err_t spi_bus_lock_wait_bg_done(spi_bus_lock_dev_handle_t dev_handle, uint32_t wait);
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/include/stack/ |
D | hidh_api.h | 79 typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle, 162 extern tHID_STATUS HID_HostRemoveDev (UINT8 dev_handle ); 174 extern tHID_STATUS HID_HostOpenDev (UINT8 dev_handle ); 185 extern tHID_STATUS HID_HostWriteDev(UINT8 dev_handle, UINT8 t_type, 198 extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle );
|
/hal_espressif-3.7.0/components/spi_flash/ |
D | esp_flash_spi_init.c | 191 spi_bus_lock_dev_handle_t dev_handle = NULL; in acquire_spi_device() local 197 ret = spi_bus_lock_register_dev(lock, &config, &dev_handle); in acquire_spi_device() 199 dev_id = spi_bus_lock_get_dev_id(dev_handle); in acquire_spi_device() 212 assert(dev_handle == NULL); in acquire_spi_device() 216 *out_dev_handle = dev_handle; in acquire_spi_device() 253 spi_bus_lock_dev_handle_t dev_handle; in spi_bus_add_flash_device() local 254 esp_err_t err = acquire_spi_device(config, &dev_id, &dev_handle); in spi_bus_add_flash_device() 260 err = esp_flash_init_os_functions(chip, config->host_id, dev_handle); in spi_bus_add_flash_device() 301 spi_bus_lock_dev_handle_t dev_handle = NULL; in spi_bus_remove_flash_device() local 302 esp_flash_deinit_os_functions(chip, &dev_handle); in spi_bus_remove_flash_device() [all …]
|
D | spi_flash_os_func_app.c | 269 …t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, spi_bus_lock_dev_handle_t dev_handle) in esp_flash_init_os_functions() argument 271 if (use_bus_lock(host_id) && !dev_handle) { in esp_flash_init_os_functions() 299 .dev_lock = dev_handle, in esp_flash_init_os_functions()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/btc/profile/std/include/ |
D | btc_hh.h | 71 uint8_t dev_handle; member 83 uint8_t dev_handle; member
|
/hal_espressif-3.7.0/components/spi_flash/include/ |
D | esp_flash_internal.h | 58 … esp_flash_init_os_functions(esp_flash_t *chip, int host_id, spi_bus_lock_dev_handle_t dev_handle);
|
/hal_espressif-3.7.0/components/driver/spi/gpspi/ |
D | spi_master.c | 386 spi_bus_lock_dev_handle_t dev_handle; in spi_bus_add_device() local 387 err = spi_bus_lock_register_dev(bus_attr->lock, &lock_config, &dev_handle); in spi_bus_add_device() 392 int freecs = spi_bus_lock_get_dev_id(dev_handle); in spi_bus_add_device() 423 dev->dev_lock = dev_handle; in spi_bus_add_device()
|
/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/hh/include/ |
D | bta_hh_int.h | 358 extern UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle);
|