Home
last modified time | relevance | path

Searched refs:data_buffer (Results 1 – 25 of 26) sorted by relevance

12

/hal_espressif-3.6.0/components/usb/
Dusb_private.c14 uint8_t *data_buffer = heap_caps_malloc(data_buffer_size + header_size, MALLOC_CAP_DMA); in urb_alloc() local
15 if (urb == NULL || data_buffer == NULL) { in urb_alloc()
21 dummy_transfer->data_buffer = (uint8_t *)(data_buffer + header_size); in urb_alloc()
27 heap_caps_free(data_buffer); in urb_alloc()
36 heap_caps_free((uint8_t *)(urb->transfer.data_buffer - urb->usb_host_header_size)); in urb_free()
Dhub.c326 USB_SETUP_PACKET_INIT_GET_DEVICE_DESC((usb_setup_packet_t *)transfer->data_buffer); in enum_stage_transfer()
327 ((usb_setup_packet_t *)transfer->data_buffer)->wLength = ENUM_SHORT_DESC_REQ_LEN; in enum_stage_transfer()
334 … USB_SETUP_PACKET_INIT_SET_ADDR((usb_setup_packet_t *)transfer->data_buffer, ENUM_DEV_ADDR); in enum_stage_transfer()
340 USB_SETUP_PACKET_INIT_GET_DEVICE_DESC((usb_setup_packet_t *)transfer->data_buffer); in enum_stage_transfer()
348 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)transfer->data_buffer, ENUM_CONFIG_IND… in enum_stage_transfer()
356 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)transfer->data_buffer, ENUM_CONFIG_IND… in enum_stage_transfer()
363 …USB_SETUP_PACKET_INIT_SET_CONFIG((usb_setup_packet_t *)transfer->data_buffer, ENUM_CONFIG_INDEX + … in enum_stage_transfer()
374 USB_SETUP_PACKET_INIT_GET_STR_DESC((usb_setup_packet_t *)transfer->data_buffer, in enum_stage_transfer()
389 USB_SETUP_PACKET_INIT_GET_STR_DESC((usb_setup_packet_t *)transfer->data_buffer, in enum_stage_transfer()
431 …const usb_device_desc_t *device_desc = (usb_device_desc_t *)(transfer->data_buffer + sizeof(usb_se… in enum_stage_transfer_check()
[all …]
Dhcd.c2060 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)transfer->data_buffer; in _buffer_fill_ctrl()
2064 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, 0, transfer->data_buffer, sizeof(usb_setup_packet_… in _buffer_fill_ctrl()
2072 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, 1, transfer->data_buffer + sizeof(usb_setup_packet… in _buffer_fill_ctrl()
2090 … usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, 0, transfer->data_buffer, transfer->num_bytes, in _buffer_fill_bulk()
2095 … usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, 0, transfer->data_buffer, transfer->num_bytes, 0); in _buffer_fill_bulk()
2099 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, 0, transfer->data_buffer, transfer->num_bytes, USB… in _buffer_fill_bulk()
2127 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, i, &transfer->data_buffer[bytes_filled], mps, xfer… in _buffer_fill_intr()
2133 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, num_qtds - 1, &transfer->data_buffer[bytes_filled]… in _buffer_fill_intr()
2139 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, num_qtds - 1, &transfer->data_buffer[bytes_filled]… in _buffer_fill_intr()
2163 …usbh_hal_xfer_desc_fill(buffer->xfer_desc_list, desc_idx, &transfer->data_buffer[bytes_filled], xf… in _buffer_fill_isoc()
Dusb_host.c1221 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)transfer->data_buffer; in transfer_check()
1329 …bool xfer_is_in = ((usb_setup_packet_t *)transfer->data_buffer)->bmRequestType & USB_BM_REQUEST_TY… in usb_host_transfer_submit_control()
/hal_espressif-3.6.0/examples/bluetooth/bluedroid/ble/ble_ancs/main/
Dble_ancs_demo.c52 static struct data_source_buffer data_buffer = {0}; variable
238 if (data_buffer.len > 0) { in periodic_timer_callback()
239 esp_receive_apple_data_source(data_buffer.buffer, data_buffer.len); in periodic_timer_callback()
240 memset(data_buffer.buffer, 0, data_buffer.len); in periodic_timer_callback()
241 data_buffer.len = 0; in periodic_timer_callback()
509 … memcpy(&data_buffer.buffer[data_buffer.len], param->notify.value, param->notify.value_len); in gattc_profile_event_handler()
510 data_buffer.len += param->notify.value_len; in gattc_profile_event_handler()
516 esp_receive_apple_data_source(data_buffer.buffer, data_buffer.len); in gattc_profile_event_handler()
517 memset(data_buffer.buffer, 0, data_buffer.len); in gattc_profile_event_handler()
518 data_buffer.len = 0; in gattc_profile_event_handler()
/hal_espressif-3.6.0/components/usb/test/hcd/
Dtest_hcd_ctrl.c58 …ACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, TRANSFER_MA…
80 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu…
153 …ACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, TRANSFER_MA…
157 ((usb_setup_packet_t *)urb_list[0]->transfer.data_buffer)->bRequest = 0xAA;
197 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[0]->transfer.data_buffer, 0, …
213 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu…
259 …ACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, TRANSFER_MA…
288 …usb_config_desc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu…
Dtest_hcd_common.c259 uint8_t *data_buffer = heap_caps_malloc(data_buffer_size, MALLOC_CAP_DMA); in test_hcd_alloc_urb() local
261 TEST_ASSERT_NOT_EQUAL(NULL, data_buffer); in test_hcd_alloc_urb()
264 transfer_dummy->data_buffer = data_buffer; in test_hcd_alloc_urb()
272 heap_caps_free(urb->transfer.data_buffer); in test_hcd_free_urb()
281 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)urb->transfer.data_buffer; in test_hcd_enum_device()
292 …usb_device_desc_t *device_desc = (usb_device_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setu… in test_hcd_enum_device()
Dtest_hcd_bulk.c22 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)urb->transfer.data_buffer; in mock_msc_reset_req()
80 …mock_msc_scsi_init_cbw((mock_msc_bulk_cbw_t *)urb_cbw->transfer.data_buffer, true, block_num, TEST…
96 …L(true, mock_msc_scsi_check_csw((mock_msc_bulk_csw_t *)urb_csw->transfer.data_buffer, 0xAAAAAAAA));
100 printf("0x%02x,", ((char *)urb_data->transfer.data_buffer)[i]);
Dtest_hcd_isoc.c67 …memset(&urb_list[urb_idx]->transfer.data_buffer[pkt_idx * ISOC_PACKET_SIZE], (urb_idx * NUM_URBS) …
149 …memset(&urb_list[urb_idx]->transfer.data_buffer[pkt_idx * ISOC_PACKET_SIZE], (urb_idx * NUM_URBS) …
Dtest_hcd_port.c58 …ACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, TRANSFER_MA…
205 …ACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, TRANSFER_MA…
Dtest_hcd_intr.c73 mock_hid_process_report((mock_hid_mouse_report_t *)urb->transfer.data_buffer, iter_count);
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Dtwai_ll.h571 uint8_t *data_buffer = (is_extd) ? tx_frame->extended.data : tx_frame->standard.data; in twai_ll_format_frame_buffer() local
574 data_buffer[i] = data[i]; in twai_ll_format_frame_buffer()
616 …uint8_t *data_buffer = (rx_frame->frame_format) ? rx_frame->extended.data : rx_frame->standard.dat… in twai_ll_prase_frame_buffer() local
620 data[i] = data_buffer[i]; in twai_ll_prase_frame_buffer()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Dtwai_ll.h571 uint8_t *data_buffer = (is_extd) ? tx_frame->extended.data : tx_frame->standard.data; in twai_ll_format_frame_buffer() local
574 data_buffer[i] = data[i]; in twai_ll_format_frame_buffer()
616 …uint8_t *data_buffer = (rx_frame->frame_format) ? rx_frame->extended.data : rx_frame->standard.dat… in twai_ll_prase_frame_buffer() local
620 data[i] = data_buffer[i]; in twai_ll_prase_frame_buffer()
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Dtwai_ll.h571 uint8_t *data_buffer = (is_extd) ? tx_frame->extended.data : tx_frame->standard.data; in twai_ll_format_frame_buffer() local
574 data_buffer[i] = data[i]; in twai_ll_format_frame_buffer()
616 …uint8_t *data_buffer = (rx_frame->frame_format) ? rx_frame->extended.data : rx_frame->standard.dat… in twai_ll_prase_frame_buffer() local
620 data[i] = data_buffer[i]; in twai_ll_prase_frame_buffer()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Dtwai_ll.h571 uint8_t *data_buffer = (is_extd) ? tx_frame->extended.data : tx_frame->standard.data; in twai_ll_format_frame_buffer() local
574 data_buffer[i] = data[i]; in twai_ll_format_frame_buffer()
616 …uint8_t *data_buffer = (rx_frame->frame_format) ? rx_frame->extended.data : rx_frame->standard.dat… in twai_ll_prase_frame_buffer() local
620 data[i] = data_buffer[i]; in twai_ll_prase_frame_buffer()
/hal_espressif-3.6.0/components/usb/test/usb_host/
Dmsc_client_async_seq.c87 …T_EQUAL(true, mock_msc_scsi_check_csw((mock_msc_bulk_csw_t *)transfer->data_buffer, msc_obj->test_… in msc_transfer_cb()
191 …MOCK_MSC_SCSI_REQ_INIT_RESET((usb_setup_packet_t *)xfer_out->data_buffer, MOCK_MSC_SCSI_INTF_NUMBE… in msc_client_async_seq_task()
200 …mock_msc_scsi_init_cbw((mock_msc_bulk_cbw_t *)xfer_out->data_buffer, true, msc_obj.next_stage, msc… in msc_client_async_seq_task()
Dmsc_client_async_dconn.c201 …MOCK_MSC_SCSI_REQ_INIT_RESET((usb_setup_packet_t *)xfer_out->data_buffer, MOCK_MSC_SCSI_INTF_NUMBE… in msc_client_async_dconn_task()
210 …mock_msc_scsi_init_cbw((mock_msc_bulk_cbw_t *)xfer_out->data_buffer, true, 0, msc_obj.test_param.n… in msc_client_async_dconn_task()
Dctrl_client_async_seq.c157 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)transfer->data_buffer, 0, MAX_TRANSFER… in ctrl_client_async_seq_task()
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/
Dmsc_scsi_bot.c256 USB_SETUP_PACKET_INIT_CLEAR_FEATURE_EP((usb_setup_packet_t *)xfer->data_buffer, endpoint); in clear_feature()
266 USB_MASS_REQ_INIT_RESET((usb_setup_packet_t *)xfer->data_buffer, 0); in msc_mass_reset()
276 USB_MASS_REQ_INIT_GET_MAX_LUN((usb_setup_packet_t *)xfer->data_buffer, 0); in msc_get_max_lun()
279 *lun = xfer->data_buffer[USB_SETUP_PACKET_SIZE]; in msc_get_max_lun()
Dmsc_host.c434 USB_SETUP_PACKET_INIT_GET_STR_DESC((usb_setup_packet_t *)xfer->data_buffer, index, 0x409, 64); in msc_read_string_desc()
437 usb_standard_desc_t *desc = (usb_standard_desc_t *)(xfer->data_buffer + USB_SETUP_PACKET_SIZE); in msc_read_string_desc()
438 wchar_t *data = (wchar_t *)(xfer->data_buffer + USB_SETUP_PACKET_SIZE + 2); in msc_read_string_desc()
522 memcpy(xfer->data_buffer, data, size); in msc_bulk_transfer()
536 memcpy(data, xfer->data_buffer, size); in msc_bulk_transfer()
/hal_espressif-3.6.0/components/hal/esp32/include/hal/
Dtwai_ll.h663 uint8_t *data_buffer = (is_extd) ? tx_frame->extended.data : tx_frame->standard.data; in twai_ll_format_frame_buffer() local
666 data_buffer[i] = data[i]; in twai_ll_format_frame_buffer()
708 …uint8_t *data_buffer = (rx_frame->frame_format) ? rx_frame->extended.data : rx_frame->standard.dat… in twai_ll_prase_frame_buffer() local
712 data[i] = data_buffer[i]; in twai_ll_prase_frame_buffer()
/hal_espressif-3.6.0/components/usb/private_include/
Dusb_private.h23 uint8_t *data_buffer; member
/hal_espressif-3.6.0/components/usb/include/usb/
Dusb_types_stack.h126 uint8_t *const data_buffer; /**< Pointer to data buffer */ member
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/
Dcdc_acm_host.c936 cdc_dev->data.in_cb(transfer->data_buffer, transfer->actual_num_bytes, cdc_dev->cb_arg); in in_xfer_cb()
950 cdc_notification_t *notif = (cdc_notification_t *)transfer->data_buffer; in notif_xfer_cb()
976 ESP_LOG_BUFFER_HEX("CDC_ACM", transfer->data_buffer, transfer->actual_num_bytes); in notif_xfer_cb()
1038 memcpy(cdc_dev->data.out_xfer->data_buffer, data, data_len); in cdc_acm_host_data_tx_blocking()
1122 usb_setup_packet_t *req = (usb_setup_packet_t *)(cdc_dev->ctrl_transfer->data_buffer); in send_cdc_request()
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32/
Dspiram_psram.c490 static void spi_user_psram_write(psram_spi_num_t spi_num, uint32_t address, uint32_t *data_buffer, … in spi_user_psram_write() argument
507 ps_cmd.txData = data_buffer + (i / 4); in spi_user_psram_write()
515 static void spi_user_psram_read(psram_spi_num_t spi_num, uint32_t address, uint32_t *data_buffer, u… in spi_user_psram_read() argument
532 ps_cmd.rxData = data_buffer + (i / 4); in spi_user_psram_read()

12