Lines Matching defs:setup

163  * @setup: usb_ctrlrequest structure for control requests
181 struct usb_ctrlrequest setup;
1021 if (udc->setup.bRequestType & USB_DIR_IN) {
1032 if (udc->setup.wLength) {
1612 switch (udc->setup.bRequestType & USB_RECIP_MASK) {
1622 epnum = le16_to_cpu(udc->setup.wIndex) & USB_ENDPOINT_NUMBER_MASK;
1628 if (le16_to_cpu(udc->setup.wIndex) & USB_DIR_IN) {
1666 int flag = (udc->setup.bRequest == USB_REQ_SET_FEATURE ? 1 : 0);
1669 switch (udc->setup.bRequestType) {
1671 switch (le16_to_cpu(udc->setup.wValue)) {
1690 if (!udc->setup.wValue) {
1691 endpoint = le16_to_cpu(udc->setup.wIndex) &
1698 outinbit = le16_to_cpu(udc->setup.wIndex) &
1745 * xudc_handle_setup - Processes the setup packet.
1748 * Process setup packet and delegate to gadget layer.
1754 struct usb_ctrlrequest setup;
1759 memcpy_toio((void __iomem *)&setup, ep0rambase, 8);
1761 udc->setup = setup;
1762 udc->setup.wValue = cpu_to_le16((u16 __force)setup.wValue);
1763 udc->setup.wIndex = cpu_to_le16((u16 __force)setup.wIndex);
1764 udc->setup.wLength = cpu_to_le16((u16 __force)setup.wLength);
1769 if (udc->setup.bRequestType & USB_DIR_IN) {
1779 switch (udc->setup.bRequest) {
1782 if ((udc->setup.bRequestType &
1790 if (udc->setup.bRequestType != (USB_DIR_OUT |
1798 if ((udc->setup.bRequestType & USB_TYPE_MASK)
1808 if (udc->driver->setup(&udc->gadget, &setup) < 0)
1876 u8 test_mode = le16_to_cpu(udc->setup.wIndex) >> 8;
1883 switch (udc->setup.bRequest) {
1887 le16_to_cpu(udc->setup.wValue));
1890 if (udc->setup.bRequestType ==
1892 if (le16_to_cpu(udc->setup.wValue) ==