Lines Matching refs:speed
33 usb_speed_t speed; member
57 uint32_t port, usb_speed_t speed) { in xhci_address_device() argument
59 slot_id, port, hub_address, speed); in xhci_address_device()
73 slot->speed = speed; in xhci_address_device()
129 XHCI_SET_BITS32(&sc->sc0, SLOT_CTX_SPEED_START, SLOT_CTX_SPEED_BITS, speed); in xhci_address_device()
137 if (hub_address != 0 && (speed == USB_SPEED_LOW || speed == USB_SPEED_FULL)) { in xhci_address_device()
145 } else if (hub_slot->speed == USB_SPEED_HIGH) { in xhci_address_device()
164 switch (speed) { in xhci_address_device()
253 static int compute_interval(const usb_endpoint_descriptor_t* ep, usb_speed_t speed) { in compute_interval() argument
258 if (speed == USB_SPEED_HIGH) { in compute_interval()
267 if (ep_type == USB_ENDPOINT_INTERRUPT && (speed == USB_SPEED_LOW || speed == USB_SPEED_FULL)) { in compute_interval()
273 switch (speed) { in compute_interval()
311 uint32_t port, usb_speed_t speed) { in xhci_setup_slot() argument
312 zx_status_t result = xhci_address_device(xhci, slot_id, hub_address, port, speed); in xhci_setup_slot()
342 switch (speed) { in xhci_setup_slot()
386 usb_speed_t speed) { in xhci_handle_enumerate_device() argument
402 result = xhci_setup_slot(xhci, slot_id, hub_address, port, speed); in xhci_handle_enumerate_device()
407 xhci_add_device(xhci, slot_id, hub_address, speed); in xhci_handle_enumerate_device()
583 result = xhci_setup_slot(xhci, slot_id, hub_address, port, slot->speed); in xhci_handle_reset_device()
622 xhci_handle_enumerate_device(xhci, command->hub_address, command->port, command->speed); in xhci_device_thread()
642 uint32_t port, usb_speed_t speed) { in xhci_queue_command() argument
651 device_command->speed = speed; in xhci_queue_command()
671 usb_speed_t speed) { in xhci_enumerate_device() argument
672 return xhci_queue_command(xhci, ENUMERATE_DEVICE, hub_address, port, speed); in xhci_enumerate_device()
717 usb_speed_t speed = slot->speed; in xhci_enable_endpoint() local
749 if (speed == USB_SPEED_SUPER) { in xhci_enable_endpoint()
753 } else if (speed == USB_SPEED_HIGH) { in xhci_enable_endpoint()
780 compute_interval(ep_desc, speed)); in xhci_enable_endpoint()
834 zx_status_t xhci_configure_hub(xhci_t* xhci, uint32_t slot_id, usb_speed_t speed, in xhci_configure_hub() argument
836 zxlogf(TRACE, "xhci_configure_hub slot_id: %d speed: %d\n", slot_id, speed); in xhci_configure_hub()
846 if (speed == USB_SPEED_HIGH) { in xhci_configure_hub()
876 if (speed == USB_SPEED_SUPER) { in xhci_configure_hub()