Lines Matching refs:urb

258 …urb_t *urb = heap_caps_calloc(1, sizeof(urb_t) + (num_isoc_packets * sizeof(usb_isoc_packet_desc_t…  in test_hcd_alloc_urb()  local
260 TEST_ASSERT_NOT_EQUAL(NULL, urb); in test_hcd_alloc_urb()
263 usb_transfer_dummy_t *transfer_dummy = (usb_transfer_dummy_t *)&urb->transfer; in test_hcd_alloc_urb()
266 return urb; in test_hcd_alloc_urb()
269 void test_hcd_free_urb(urb_t *urb) in test_hcd_free_urb() argument
272 heap_caps_free(urb->transfer.data_buffer); in test_hcd_free_urb()
274 heap_caps_free(urb); in test_hcd_free_urb()
280 urb_t *urb = test_hcd_alloc_urb(0, sizeof(usb_setup_packet_t) + 256); in test_hcd_enum_device() local
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()
286 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device()
288 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in test_hcd_enum_device()
289 TEST_ASSERT_EQUAL(USB_TRANSFER_STATUS_COMPLETED, urb->transfer.status); 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()
297 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in test_hcd_enum_device()
298 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device()
300 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in test_hcd_enum_device()
301 TEST_ASSERT_EQUAL(USB_TRANSFER_STATUS_COMPLETED, urb->transfer.status); in test_hcd_enum_device()
308 urb->transfer.num_bytes = sizeof(usb_setup_packet_t); in test_hcd_enum_device()
309 TEST_ASSERT_EQUAL(ESP_OK, hcd_urb_enqueue(default_pipe, urb)); in test_hcd_enum_device()
311 TEST_ASSERT_EQUAL(urb, hcd_urb_dequeue(default_pipe)); in test_hcd_enum_device()
312 TEST_ASSERT_EQUAL(USB_TRANSFER_STATUS_COMPLETED, urb->transfer.status); in test_hcd_enum_device()
315 test_hcd_free_urb(urb); in test_hcd_enum_device()