/hal_espressif-2.7.6/components/driver/ |
D | spi_bus_lock.c | 304 SPI_MASTER_ATTR static inline void req_core(spi_bus_lock_dev_t *dev_handle) in req_core() argument 306 spi_bus_lock_t *lock = dev_handle->parent; in req_core() 311 if (dev_handle == lock->acquiring_dev){ in req_core() 318 uint32_t status = lock_status_fetch_set(lock, DEV_REQ_MASK(dev_handle)); in req_core() 319 if ((status & DEV_BG_MASK(dev_handle)) == 0) { in req_core() 323 uint32_t status = lock_status_fetch_set(lock, DEV_REQ_MASK(dev_handle)); in req_core() 331 SPI_MASTER_ISR_ATTR static inline bool acquire_core(spi_bus_lock_dev_t *dev_handle) in acquire_core() argument 333 spi_bus_lock_t* lock = dev_handle->parent; in acquire_core() 334 uint32_t status = lock_status_fetch_set(lock, dev_handle->mask & LOCK_MASK); in acquire_core() 339 lock->acquiring_dev = dev_handle; in acquire_core() [all …]
|
D | spi_master.c | 341 spi_bus_lock_dev_handle_t dev_handle; in spi_bus_add_device() local 342 err = spi_bus_lock_register_dev(bus_attr->lock, &lock_config, &dev_handle); in spi_bus_add_device() 347 int freecs = spi_bus_lock_get_dev_id(dev_handle); in spi_bus_add_device() 376 dev->dev_lock = dev_handle; in spi_bus_add_device()
|
/hal_espressif-2.7.6/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_act.c | 47 static void bta_hh_cback (UINT8 dev_handle, BD_ADDR addr, UINT8 event, 519 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_cmpl_act() local 523 conn.handle = dev_handle; in bta_hh_open_cmpl_act() 550 if ((HID_HostWriteDev(dev_handle, in bta_hh_open_cmpl_act() 583 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_act() local 587 APPL_TRACE_EVENT ("bta_hh_open_act: Device[%d] connected", dev_handle); in bta_hh_open_act() 599 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act() 926 UINT8 dev_handle; in bta_hh_maint_dev_act() local 943 if (HID_HostAddDev(p_dev_info->bda, p_dev_info->attr_mask, &dev_handle)\ in bta_hh_maint_dev_act() 945 dev_info.handle = dev_handle; in bta_hh_maint_dev_act() [all …]
|
D | bta_hh_utils.c | 478 UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle) in bta_hh_dev_handle_to_cb_idx() argument 483 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 484 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) { in bta_hh_dev_handle_to_cb_idx() 485 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx() 488 … 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() 494 if (dev_handle < BTA_HH_MAX_KNOWN ) { in bta_hh_dev_handle_to_cb_idx() 495 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/std/hid/ |
D | hidh_api.c | 375 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) in HID_HostRemoveDev() argument 381 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostRemoveDev() 385 HID_HostCloseDev( dev_handle ) ; in HID_HostRemoveDev() 386 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev() 387 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev() 388 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev() 389 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev() 403 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle ) in HID_HostOpenDev() argument 409 if ( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) { in HID_HostOpenDev() 413 if ( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN ) { in HID_HostOpenDev() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/include/bta/ |
D | bta_hh_api.h | 353 extern void BTA_HhClose(UINT8 dev_handle); 375 extern void BTA_HhGetProtoMode(UINT8 dev_handle); 385 extern void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 397 extern void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 408 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 419 extern void BTA_HhGetIdle(UINT8 dev_handle); 430 extern void BTA_HhSendCtrl(UINT8 dev_handle, 442 extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 454 extern void BTA_HhGetIdle(UINT8 dev_handle); 465 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-2.7.6/components/driver/include/driver/ |
D | spi_common_internal.h | 554 void spi_bus_lock_unregister_dev(spi_bus_lock_dev_handle_t dev_handle); 562 spi_bus_lock_handle_t spi_bus_lock_get_parent(spi_bus_lock_dev_handle_t dev_handle); 572 int spi_bus_lock_get_dev_id(spi_bus_lock_dev_handle_t dev_handle); 584 bool spi_bus_lock_touch(spi_bus_lock_dev_handle_t dev_handle); 601 esp_err_t spi_bus_lock_acquire_start(spi_bus_lock_dev_handle_t dev_handle, TickType_t wait); 619 esp_err_t spi_bus_lock_acquire_end(spi_bus_lock_dev_handle_t dev_handle); 645 esp_err_t spi_bus_lock_bg_request(spi_bus_lock_dev_handle_t dev_handle); 662 esp_err_t spi_bus_lock_wait_bg_done(spi_bus_lock_dev_handle_t dev_handle, TickType_t wait);
|
/hal_espressif-2.7.6/components/esp_hid/private/ |
D | esp_bt_hh_api.h | 284 extern void BTA_HhClose(uint8_t dev_handle); 290 extern void BTA_HhGetProtoMode(uint8_t dev_handle); 293 extern void BTA_HhSetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, BT_HDR *p_data); 296 extern void BTA_HhGetReport(uint8_t dev_handle, tBTA_HH_RPT_TYPE r_type, uint8_t rpt_id, uint16_t b… 299 extern void BTA_HhSetIdle(uint8_t dev_handle, uint16_t idle_rate); 302 extern void BTA_HhGetIdle(uint8_t dev_handle); 305 extern void BTA_HhSendCtrl(uint8_t dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type); 308 extern void BTA_HhSendData(uint8_t dev_handle, esp_bd_addr_t dev_bda, BT_HDR *p_buf); 311 extern void BTA_HhGetDscpInfo(uint8_t dev_handle); 317 extern void BTA_HhRemoveDev(uint8_t dev_handle );
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/include/stack/ |
D | hidh_api.h | 79 typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle, 151 extern tHID_STATUS HID_HostRemoveDev (UINT8 dev_handle ); 163 extern tHID_STATUS HID_HostOpenDev (UINT8 dev_handle ); 174 extern tHID_STATUS HID_HostWriteDev(UINT8 dev_handle, UINT8 t_type, 187 extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle );
|
/hal_espressif-2.7.6/components/spi_flash/ |
D | spi_flash_os_func_app.c | 222 spi_bus_lock_dev_handle_t dev_handle; in register_dev() local 224 esp_err_t err = spi_bus_lock_register_dev(lock, &config, &dev_handle); in register_dev() 228 return dev_handle; in register_dev() 233 spi_bus_lock_dev_handle_t dev_handle = NULL; in esp_flash_init_os_functions() local 242 dev_handle = register_dev(host_id); in esp_flash_init_os_functions() 255 .dev_lock = dev_handle, in esp_flash_init_os_functions() 268 .dev_lock = dev_handle, in esp_flash_init_os_functions() 275 if (dev_handle) { in esp_flash_init_os_functions() 276 *out_dev_id = spi_bus_lock_get_dev_id(dev_handle); in esp_flash_init_os_functions()
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/hh/include/ |
D | bta_hh_int.h | 357 extern UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle);
|
/hal_espressif-2.7.6/components/esp_hid/src/ |
D | bt_hidh.c | 448 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) {} in bta_hh_co_close() argument
|