Lines Matching defs:usb
9 #include <ddk/protocol/usb.h>
10 #include <ddk/protocol/usb-bus.h>
11 #include <ddk/protocol/usb-hub.h>
12 #include <ddk/usb/usb.h>
13 #include <ddk/usb-request/usb-request.h>
14 #include <zircon/hw/usb-hub.h>
33 usb_protocol_t usb;
73 zx_status_t result = usb_get_status(&hub->usb, USB_RECIP_PORT, port, &status, sizeof(status),
87 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_CONNECTION, port,
92 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_ENABLE, port,
97 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_SUSPEND, port,
102 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_OVER_CURRENT, port,
107 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_RESET, port,
112 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_BH_PORT_RESET, port,
117 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_LINK_STATE, port,
122 usb_clear_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_C_PORT_CONFIG_ERROR, port,
169 usb_set_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_PORT_POWER, port, ZX_TIME_INFINITE);
214 usb_set_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_PORT_RESET, port, ZX_TIME_INFINITE);
222 usb_set_feature(&hub->usb, USB_RECIP_PORT, USB_FEATURE_PORT_RESET, port, ZX_TIME_INFINITE);
310 zx_status_t result = usb_get_descriptor(&hub->usb, USB_TYPE_CLASS | USB_RECIP_DEVICE,
362 usb_request_queue(&hub->usb, req);
404 usb_protocol_t usb;
405 zx_status_t status = device_get_protocol(device, ZX_PROTOCOL_USB, &usb);
425 status = usb_desc_iter_init(&usb, &iter);
460 hub->hub_speed = usb_get_speed(&usb);
462 memcpy(&hub->usb, &usb, sizeof(usb_protocol_t));
466 status = usb_req_alloc(&usb, &req, max_packet_size, ep_addr);
476 status = usb_enable_endpoint(&usb, endp, ss_comp_desc, true);
488 .name = "usb-hub",