Lines Matching +full:rx +full:- +full:float +full:- +full:inactive
15 * SPDX-License-Identifier: GPL-2.0+
130 * float y;
143 #define member_offset(type,memb) (_cv_(&(((type*)0)->memb))-(char*)0)
144 #define p2surround(type,memb,ptr) ((type*)(void*)(_cv_(ptr)-member_offset(type,memb)))
293 * Device Requests (c.f Table 9-2)
373 * Device State (c.f USB Spec 2.0 Figure 9-1)
411 * These are defined in the USB Spec (c.f USB Spec 2.0 Figure 9-1).
419 DEVICE_UNKNOWN, /* bi - unknown event */
420 DEVICE_INIT, /* bi - initialize */
421 DEVICE_CREATE, /* bi - */
422 DEVICE_HUB_CONFIGURED, /* bi - bus has been plugged int */
423 DEVICE_RESET, /* bi - hub has powered our port */
425 DEVICE_ADDRESS_ASSIGNED, /* ep0 - set address setup received */
426 DEVICE_CONFIGURED, /* ep0 - set configure setup received */
427 DEVICE_SET_INTERFACE, /* ep0 - set interface setup received */
429 DEVICE_SET_FEATURE, /* ep0 - set feature setup received */
430 DEVICE_CLEAR_FEATURE, /* ep0 - clear feature setup received */
432 DEVICE_DE_CONFIGURED, /* ep0 - set configure setup received for ?? */
434 DEVICE_BUS_INACTIVE, /* bi - bus in inactive (no SOF packets) */
435 DEVICE_BUS_ACTIVITY, /* bi - bus is active again */
437 DEVICE_POWER_INTERRUPTION, /* bi - hub has depowered our port */
438 DEVICE_HUB_RESET, /* bi - bus has been unplugged */
439 DEVICE_DESTROY, /* bi - device instance should be destroyed */
441 DEVICE_HOTPLUG, /* bi - a hotplug event has occurred */
443 DEVICE_FUNCTION_PRIVATE, /* function - private */
453 /* USB Data structure - for passing data around.
465 /* in linux we'd malloc this, but in u-boot we prefer static data */
612 int max_endpoints; /* maximimum number of rx enpoints */
680 serial_printf("\tendpoint %p\n", u->endpoint); in print_urb()
681 serial_printf("\tdevice %p\n", u->device); in print_urb()
682 serial_printf("\tbuffer %p\n", u->buffer); in print_urb()
683 serial_printf("\tbuffer_length %d\n", u->buffer_length); in print_urb()
684 serial_printf("\tactual_length %d\n", u->actual_length); in print_urb()
685 serial_printf("\tstatus %d\n", u->status); in print_urb()
686 serial_printf("\tdata %d\n", u->data); in print_urb()
692 serial_printf("\tbmRequestType 0x%2.2x\n", r->bmRequestType); in print_usb_device_request()
693 if ((r->bmRequestType & USB_REQ_DIRECTION_MASK) == 0) in print_usb_device_request()
697 if ((r->bmRequestType & USB_TYPE_STANDARD) == USB_TYPE_STANDARD) in print_usb_device_request()
699 if ((r->bmRequestType & USB_TYPE_CLASS) == USB_TYPE_CLASS) in print_usb_device_request()
701 if ((r->bmRequestType & USB_TYPE_VENDOR) == USB_TYPE_VENDOR) in print_usb_device_request()
703 if ((r->bmRequestType & USB_TYPE_RESERVED) == USB_TYPE_RESERVED) in print_usb_device_request()
705 if ((r->bmRequestType & USB_REQ_RECIPIENT_MASK) == in print_usb_device_request()
708 if ((r->bmRequestType & USB_REQ_RECIPIENT_MASK) == in print_usb_device_request()
711 if ((r->bmRequestType & USB_REQ_RECIPIENT_MASK) == in print_usb_device_request()
714 if ((r->bmRequestType & USB_REQ_RECIPIENT_MASK) == in print_usb_device_request()
717 serial_printf("\tbRequest 0x%2.2x\n", r->bRequest); in print_usb_device_request()
718 if (r->bRequest == USB_REQ_GET_STATUS) in print_usb_device_request()
720 else if (r->bRequest == USB_REQ_SET_ADDRESS) in print_usb_device_request()
722 else if (r->bRequest == USB_REQ_SET_FEATURE) in print_usb_device_request()
724 else if (r->bRequest == USB_REQ_GET_DESCRIPTOR) in print_usb_device_request()
726 else if (r->bRequest == USB_REQ_SET_CONFIGURATION) in print_usb_device_request()
728 else if (r->bRequest == USB_REQ_SET_INTERFACE) in print_usb_device_request()
731 serial_printf("\tUNKNOWN %d\n", r->bRequest); in print_usb_device_request()
732 serial_printf("\twValue 0x%4.4x\n", r->wValue); in print_usb_device_request()
733 if (r->bRequest == USB_REQ_GET_DESCRIPTOR) { in print_usb_device_request()
734 switch (r->wValue >> 8) { in print_usb_device_request()
770 serial_printf("\twIndex 0x%4.4x\n", r->wIndex); in print_usb_device_request()
771 serial_printf("\twLength 0x%4.4x\n", r->wLength); in print_usb_device_request()