Home
last modified time | relevance | path

Searched refs:usb_setup_packet_t (Results 1 – 14 of 14) sorted by relevance

/hal_espressif-3.6.0/components/usb/test/hcd/
Dtest_hcd_ctrl.c25 #define URB_DATA_BUFF_SIZE (sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES) //256 is wo…
57 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES;
58 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, …
78 TEST_ASSERT_GREATER_OR_EQUAL(sizeof(usb_setup_packet_t), urb->transfer.actual_num_bytes);
80 …esc_t *config_desc = (usb_config_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setup_packet_t));
102 … TEST_ASSERT_GREATER_OR_EQUAL(sizeof(usb_setup_packet_t), urb->transfer.actual_num_bytes);
152 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES;
153 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, …
157 ((usb_setup_packet_t *)urb_list[0]->transfer.data_buffer)->bRequest = 0xAA;
182 … TEST_ASSERT_GREATER_OR_EQUAL(sizeof(usb_setup_packet_t), urb->transfer.actual_num_bytes);
[all …]
Dtest_hcd_port.c19 #define URB_DATA_BUFF_SIZE (sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES) //256 is wo…
57 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES;
58 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, …
92 … TEST_ASSERT_GREATER_OR_EQUAL(sizeof(usb_setup_packet_t), urb->transfer.actual_num_bytes);
204 urb_list[i]->transfer.num_bytes = sizeof(usb_setup_packet_t) + TRANSFER_MAX_BYTES;
205 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)urb_list[i]->transfer.data_buffer, 0, …
238 … TEST_ASSERT_GREATER_OR_EQUAL(sizeof(usb_setup_packet_t), urb->transfer.actual_num_bytes);
Dtest_hcd_common.c280 urb_t *urb = test_hcd_alloc_urb(0, sizeof(usb_setup_packet_t) + 256); in test_hcd_enum_device()
281 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)urb->transfer.data_buffer; in test_hcd_enum_device()
285 urb->transfer.num_bytes = sizeof(usb_setup_packet_t) + sizeof(usb_device_desc_t); in test_hcd_enum_device()
292 …esc_t *device_desc = (usb_device_desc_t *)(urb->transfer.data_buffer + sizeof(usb_setup_packet_t)); in test_hcd_enum_device()
297 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in test_hcd_enum_device()
308 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in test_hcd_enum_device()
Dtest_hcd_bulk.c21 urb_t *urb = test_hcd_alloc_urb(0, sizeof(usb_setup_packet_t)); in mock_msc_reset_req()
22 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)urb->transfer.data_buffer; in mock_msc_reset_req()
24 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in mock_msc_reset_req()
/hal_espressif-3.6.0/components/usb/
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()
328 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(ENUM_SHORT_DESC_REQ_LEN, en… in enum_stage_transfer()
330 enum_ctrl->expect_num_bytes = sizeof(usb_setup_packet_t) + 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()
335 transfer->num_bytes = sizeof(usb_setup_packet_t); //No data stage in enum_stage_transfer()
340 USB_SETUP_PACKET_INIT_GET_DEVICE_DESC((usb_setup_packet_t *)transfer->data_buffer); in enum_stage_transfer()
341 …transfer->num_bytes = sizeof(usb_setup_packet_t) + usb_round_up_to_mps(sizeof(usb_device_desc_t), … in enum_stage_transfer()
343 enum_ctrl->expect_num_bytes = sizeof(usb_setup_packet_t) + sizeof(usb_device_desc_t); 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()
[all …]
Dusb_host.c1221 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)transfer->data_buffer; in transfer_check()
1222 if (transfer->num_bytes != sizeof(usb_setup_packet_t) + setup_pkt->wLength) { 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()
Dhcd.c2060 usb_setup_packet_t *setup_pkt = (usb_setup_packet_t *)transfer->data_buffer; in _buffer_fill_ctrl()
2064 …bh_hal_xfer_desc_fill(buffer->xfer_desc_list, 0, transfer->data_buffer, sizeof(usb_setup_packet_t), in _buffer_fill_ctrl()
2072 …c_list, 1, transfer->data_buffer + sizeof(usb_setup_packet_t), transfer->num_bytes - sizeof(usb_se… in _buffer_fill_ctrl()
2333 transfer->actual_num_bytes = sizeof(usb_setup_packet_t); in _buffer_parse_ctrl()
2340 assert(rem_len <= (transfer->num_bytes - sizeof(usb_setup_packet_t))); in _buffer_parse_ctrl()
/hal_espressif-3.6.0/components/usb/test/usb_host/
Dctrl_client_async_seq.c67 …rl_obj->config_desc_cached->wTotalLength, transfer->actual_num_bytes - sizeof(usb_setup_packet_t)); in ctrl_transfer_cb()
112 …TEST_ASSERT_EQUAL(ESP_OK, usb_host_transfer_alloc(sizeof(usb_setup_packet_t) + MAX_TRANSFER_BYTES,… in ctrl_client_async_seq_task()
157 …USB_SETUP_PACKET_INIT_GET_CONFIG_DESC((usb_setup_packet_t *)transfer->data_buffer, 0, MAX_TRANSFER… in ctrl_client_async_seq_task()
158 transfer->num_bytes = sizeof(usb_setup_packet_t) + MAX_TRANSFER_BYTES; in ctrl_client_async_seq_task()
Dmsc_client_async_seq.c144 size_t out_worst_case_size = MAX(sizeof(mock_msc_bulk_cbw_t), sizeof(usb_setup_packet_t)); in msc_client_async_seq_task()
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()
192 xfer_out->num_bytes = sizeof(usb_setup_packet_t); in msc_client_async_seq_task()
Dmsc_client_async_dconn.c145 size_t xfer_out_size = MAX(sizeof(mock_msc_bulk_cbw_t), sizeof(usb_setup_packet_t)); in msc_client_async_dconn_task()
201 …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()
202 xfer_out->num_bytes = sizeof(usb_setup_packet_t); in msc_client_async_dconn_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()
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()
/hal_espressif-3.6.0/components/usb/include/usb/
Dusb_types_ch9.h100 } usb_setup_packet_t; typedef
101 _Static_assert(sizeof(usb_setup_packet_t) == USB_SETUP_PACKET_SIZE, "Size of usb_setup_packet_t inc…
/hal_espressif-3.6.0/examples/peripherals/usb/host/cdc/common/cdc_acm_host/
Dcdc_acm_host.c1122 usb_setup_packet_t *req = (usb_setup_packet_t *)(cdc_dev->ctrl_transfer->data_buffer); in send_cdc_request()
1123 uint8_t *start_of_data = (uint8_t *)req + sizeof(usb_setup_packet_t); in send_cdc_request()
1136 cdc_dev->ctrl_transfer->num_bytes = data_len + sizeof(usb_setup_packet_t); in send_cdc_request()