Lines Matching defs:usb
12 #include <ddk/protocol/usb.h>
13 #include <ddk/usb/usb.h>
45 usb_protocol_t usb;
75 return usb_control(ð->usb, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
80 return usb_control(ð->usb, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
91 status = usb_control(ð->usb, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
114 status = usb_control(ð->usb, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
152 usb_request_queue(ð->usb, req);
159 zx_status_t status = usb_req_mmap(ð->usb, request, (void*)&pkt);
213 usb_req_copy_to(ð->usb, request, header, ETH_HEADER_SIZE, 0);
214 usb_req_copy_to(ð->usb, request, netbuf->data, length, ETH_HEADER_SIZE);
218 usb_request_queue(ð->usb, request);
226 usb_req_release(ð->usb, request);
233 usb_reset_endpoint(ð->usb, eth->bulk_in_addr);
240 usb_reset_endpoint(ð->usb, eth->bulk_in_addr);
247 usb_request_queue(ð->usb, request);
258 usb_req_release(ð->usb, request);
277 usb_reset_endpoint(ð->usb, eth->bulk_out_addr);
284 usb_reset_endpoint(ð->usb, eth->bulk_out_addr);
294 usb_req_release(ð->usb, request);
302 usb_req_copy_from(ð->usb, request, status, sizeof(status), 0);
322 usb_request_queue(ð->usb, req);
378 usb_req_release(ð->usb, req);
381 usb_req_release(ð->usb, req);
384 usb_req_release(ð->usb, req);
498 status = usb_control(ð->usb, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
548 status = usb_control(ð->usb, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
562 status = usb_control(ð->usb, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
599 usb_protocol_t usb;
600 zx_status_t result = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
607 result = usb_desc_iter_init(&usb, &iter);
654 memcpy(ð->usb, &usb, sizeof(eth->usb));
664 status = usb_req_alloc(ð->usb, &req, USB_BUF_IN_SIZE, bulk_in_addr);
674 status = usb_req_alloc(ð->usb, &req, USB_BUF_OUT_SIZE, bulk_out_addr);
684 status = usb_req_alloc(ð->usb, &req, INTR_REQ_SIZE, intr_addr);