Lines Matching +full:usb +full:- +full:c
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * This file holds USB constants and structures that are needed for
4 * USB device APIs. These are used by the USB device model, which is
5 * defined in chapter 9 of the USB 2.0 specification and in the
6 * Wireless USB 1.0 (spread around). Linux has several APIs in C that
9 * - the host side Linux-USB kernel driver API;
10 * - the "usbfs" user space API; and
11 * - the Linux "gadget" device/peripheral side driver API.
13 * USB 2.0 adds an additional "On The Go" (OTG) mode, which lets systems
14 * act either as a USB host or as a USB device. That means the host and
17 * There's also "Wireless USB", using low power short range radios for
18 * peripheral interconnection but otherwise building on the USB framework.
22 * [a] they never get padded, either internally (USB spec writers
25 * [b] so that accessing bigger-than-a-bytes fields will never
29 * [c] for consistency, removing all doubt even when it appears to
30 * someone that the two other points are non-issues for that
37 #include <uapi/linux/usb/ch9.h>
40 * usb_ep_type_string() - Returns human readable-name of the endpoint type.
41 * @ep_type: The endpoint type to return human-readable name for. If it's not
48 * usb_speed_string() - Returns human readable-name of the speed.
49 * @speed: The speed to return human-readable name for. If it's not
56 * usb_get_maximum_speed - Get maximum requested speed for a given USB
58 * @dev: Pointer to the given USB controller device
60 * The function gets the maximum speed string from property "maximum-speed",
66 * usb_state_string - Returns human readable name for the state.
67 * @state: The state to return a human-readable name for. If it's not
75 * usb_decode_ctrl - Returns human readable representation of control request.
76 * @str: buffer to return a human-readable representation of control request.
79 * @bRequestType: matches the USB bmRequestType field
80 * @bRequest: matches the USB bRequest field
81 * @wValue: matches the USB wValue field (CPU byte order)
82 * @wIndex: matches the USB wIndex field (CPU byte order)
83 * @wLength: matches the USB wLength field (CPU byte order)
85 * Function returns decoded, formatted and human-readable description of