Lines Matching defs:usb
12 #include <ddk/protocol/usb.h>
13 #include <ddk/usb/usb.h>
14 #include <zircon/hw/usb-cdc.h>
15 #include <zircon/hw/usb.h>
37 usb_protocol_t usb;
98 status = usb_control(ð->usb, USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
107 status = usb_control(ð->usb, USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
123 usb_req_release(ð->usb, request);
130 usb_reset_endpoint(ð->usb, eth->bulk_in_addr);
137 usb_reset_endpoint(ð->usb, eth->bulk_in_addr);
143 zx_status_t status = usb_req_mmap(ð->usb, request, (void*)&read_data);
155 usb_request_queue(ð->usb, request);
165 usb_req_release(ð->usb, request);
172 usb_reset_endpoint(ð->usb, eth->bulk_out_addr);
179 usb_reset_endpoint(ð->usb, eth->bulk_out_addr);
189 usb_req_release(ð->usb, txn);
192 usb_req_release(ð->usb, txn);
195 usb_req_release(ð->usb, txn);
268 usb_req_copy_to(ð->usb, req, header_data, sizeof(rndis_packet_header), 0);
269 ssize_t bytes_copied = usb_req_copy_to(ð->usb, req, byte_data, length,
278 usb_request_queue(ð->usb, req);
426 usb_protocol_t usb;
428 zx_status_t status = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
435 status = usb_desc_iter_init(&usb, &iter);
513 memcpy(ð->usb, &usb, sizeof(eth->usb));
517 zx_status_t alloc_result = usb_req_alloc(ð->usb, &req, RNDIS_BUFFER_SIZE, bulk_in_addr);
529 zx_status_t alloc_result = usb_req_alloc(ð->usb, &req, RNDIS_BUFFER_SIZE, bulk_out_addr);