Lines Matching defs:usb
8 #include <ddk/protocol/usb-composite.h>
9 #include <ddk/usb/usb.h>
11 #include <zircon/device/usb-device.h>
12 #include <zircon/device/usb-tester.h>
13 #include <zircon/hw/usb.h>
18 #include "usb-tester.h"
43 usb_protocol_t usb;
71 zx_status_t status = usb_req_alloc(&usb_tester->usb, &req, len, ep_address);
89 usb_req_release(&usb_tester->usb, test_req->req);
108 usb_reset_endpoint(&usb_tester->usb, req->header.ep_address);
113 status = usb_cancel_all(&usb_tester->usb, req->header.ep_address);
115 zxlogf(ERROR, "failed to cancel usb transfers, err: %d\n", status);
132 zx_status_t status = usb_req_mmap(&usb_tester->usb, test_req->req, (void**)&buf);
210 usb_request_queue(&usb_tester->usb, test_req->req);
216 zx_status_t status = usb_control(&usb_tester->usb,
249 usb_request_queue(&usb_tester->usb, out_req->req);
250 usb_request_queue(&usb_tester->usb, in_req->req);
260 status = usb_req_mmap(&usb_tester->usb, out_req->req, &out_data);
265 status = usb_req_mmap(&usb_tester->usb, in_req->req, &in_data);
293 zx_status_t status = usb_req_mmap(&usb_tester->usb, in_req->req, &in_data);
305 status = usb_req_mmap(&usb_tester->usb, out_req->req, &out_data);
333 zx_status_t status = usb_set_interface(&usb_tester->usb, intf->intf_num, intf->alt_setting);
364 uint64_t frame = usb_get_current_frame(&usb_tester->usb);
385 zx_status_t res = usb_set_interface(&usb_tester->usb, intf->intf_num, 0);
425 usb_get_device_descriptor(&usb_tester->usb, descriptor);
470 zx_status_t status = device_get_protocol(device, ZX_PROTOCOL_USB, &usb_tester->usb);
486 status = usb_desc_iter_init(&usb_tester->usb, &iter);
525 zxlogf(TRACE, "usb tester found isoch loopback eps: %x (%u) %x (%u), intf %u %u\n",
543 .name = "usb-tester",