Lines Matching defs:usb
10 #include <ddk/protocol/usb.h>
11 #include <ddk/usb/usb.h>
13 #include <zircon/hw/usb.h>
40 usb_protocol_t usb;
83 usb_req_release(&ftdi->usb, request);
92 usb_request_queue(&ftdi->usb, request);
101 usb_req_release(&ftdi->usb, request);
154 *actual = usb_req_copy_to(&ftdi->usb, req, buf, length, 0);
157 usb_request_queue(&ftdi->usb,req);
184 usb_req_copy_from(&ftdi->usb, req, &buffer[bytes_copied],
195 usb_request_queue(&ftdi->usb, req);
231 status = usb_control(&ftdi->usb, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
247 &ftdi->usb,
312 usb_req_release(&ftdi->usb, req);
315 usb_req_release(&ftdi->usb, req);
318 usb_req_release(&ftdi->usb, req);
343 usb_protocol_t usb;
344 zx_status_t status = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
351 status = usb_desc_iter_init(&usb, &iter);
398 memcpy(&ftdi->usb, &usb, sizeof(ftdi->usb));
404 status = usb_req_alloc(&ftdi->usb, &req, USB_BUF_SIZE, bulk_in_addr);
414 status = usb_req_alloc(&ftdi->usb, &req, USB_BUF_SIZE, bulk_out_addr);
456 usb_request_queue(&ftdi->usb, req);