Home
last modified time | relevance | path

Searched refs:USB_DIR_IN (Results 1 – 25 of 65) sorted by relevance

123

/openbmc/u-boot/drivers/usb/gadget/
H A Depautoconf.c104 if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
150 } else if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
153 desc->bEndpointAddress = USB_DIR_IN | in_epnum; in ep_matches()
244 && (USB_DIR_IN & desc->bEndpointAddress)) { in usb_ep_autoconfig()
269 if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
272 else if ((desc->bEndpointAddress & USB_DIR_IN) == 0 && in usb_ep_autoconfig()
275 else if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
H A Ddwc2_udc_otg_priv.h89 #define ep_is_in(EP) (((EP)->bEndpointAddress&USB_DIR_IN) == USB_DIR_IN)
H A Dfotg210.c62 .bEndpointAddress = USB_DIR_IN,
81 if (ep_addr & USB_DIR_IN) { in ep_reset()
236 if (ep->desc->bEndpointAddress & USB_DIR_IN) in fotg210_dma()
243 if (ep->desc->bEndpointAddress & USB_DIR_IN) { in fotg210_dma()
357 if (req->bRequestType & USB_DIR_IN) in fotg210_setup()
358 ep0_desc.bEndpointAddress = USB_DIR_IN; in fotg210_setup()
473 if (ep->stopped || (ep->desc->bEndpointAddress & USB_DIR_IN)) { in fotg210_recv()
507 int in = (desc->bEndpointAddress & USB_DIR_IN) ? 1 : 0; in fotg210_ep_enable()
617 if (ep->desc->bEndpointAddress & USB_DIR_IN) in fotg210_ep_queue()
621 if (ep->desc->bEndpointAddress & USB_DIR_IN) { in fotg210_ep_queue()
[all …]
H A Dci_udc.c79 .bEndpointAddress = USB_DIR_IN,
333 in = (desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_enable()
438 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_submit_next_request()
564 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_queue()
597 if (ep0_desc.bEndpointAddress == USB_DIR_IN) { in flip_ep0_direction()
602 ep0_desc.bEndpointAddress = USB_DIR_IN; in flip_ep0_direction()
613 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in handle_ep_complete()
690 if (r.bRequestType & USB_DIR_IN) { in handle_setup()
692 ep0_desc.bEndpointAddress = USB_DIR_IN; in handle_setup()
724 & USB_DIR_IN) != 0; in handle_setup()
[all …]
H A Dpxa25x_udc.c814 } else if ((ep->bEndpointAddress & USB_DIR_IN) != 0) { in pxa25x_ep_queue()
911 if ((ep->bEndpointAddress & USB_DIR_IN) != 0 in pxa25x_ep_set_halt()
952 if ((ep->bEndpointAddress & USB_DIR_IN) != 0) in pxa25x_ep_fifo_status()
974 if ((ep->bEndpointAddress & USB_DIR_IN) == 0) { in pxa25x_ep_fifo_flush()
1326 if (u.r.bRequestType & USB_DIR_IN) in handle_ep0()
1463 int is_in = ep->bEndpointAddress & USB_DIR_IN; in handle_ep()
1659 .bEndpointAddress = USB_DIR_IN | 1,
1687 .bEndpointAddress = USB_DIR_IN | 3,
1714 .bEndpointAddress = USB_DIR_IN | 5,
1729 .bEndpointAddress = USB_DIR_IN | 6,
[all …]
H A Dstorage_common.c420 .bEndpointAddress = USB_DIR_IN,
442 .bEndpointAddress = USB_DIR_IN,
H A Dat91_udc.c862 if (pkt.r.bRequestType & USB_DIR_IN) { in handle_setup()
926 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_DEVICE) << 8) in handle_setup()
957 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE) << 8) in handle_setup()
974 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT) << 8) in handle_setup()
982 if ((w_index & USB_DIR_IN)) { in handle_setup()
1005 if ((w_index & USB_DIR_IN)) { in handle_setup()
1026 if ((w_index & USB_DIR_IN)) { in handle_setup()
H A Df_fastboot.c56 .bEndpointAddress = USB_DIR_IN,
72 .bEndpointAddress = USB_DIR_IN,
/openbmc/u-boot/include/
H A Dusb_defs.h63 #define USB_DIR_IN 0x80 macro
70 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE) << 8)
76 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8)
79 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8)
H A Dusb.h348 USB_DIR_IN)
353 USB_DIR_IN)
358 USB_DIR_IN)
363 USB_DIR_IN)
368 USB_DIR_IN)
383 #define usb_packetid(pipe) (((pipe) & USB_DIR_IN) ? USB_PID_IN : \
/openbmc/qemu/include/hw/
H A Dusb.h93 #define USB_DIR_IN 0x80 macro
107 #define DeviceRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_DEVICE)<<8)
109 #define VendorDeviceRequest ((USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_DEVICE)<<8)
114 ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8)
118 ((USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE)<<8)
122 ((USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_INTERFACE)<<8)
126 #define EndpointRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8)
/openbmc/qemu/hw/usb/
H A Ddev-hid.c102 .bEndpointAddress = USB_DIR_IN | 0x01,
133 .bEndpointAddress = USB_DIR_IN | 0x01,
163 .bEndpointAddress = USB_DIR_IN | 0x01,
193 .bEndpointAddress = USB_DIR_IN | 0x01,
224 .bEndpointAddress = USB_DIR_IN | 0x01,
255 .bEndpointAddress = USB_DIR_IN | 0x01,
H A Dredirect.c455 (ep & USB_DIR_IN) ? USB_TOKEN_IN : USB_TOKEN_OUT, in usbredir_find_packet_by_id()
560 if (!(ep & USB_DIR_IN)) { in usbredir_handle_iso_data()
577 if (ep & USB_DIR_IN) { in usbredir_handle_iso_data()
817 if (ep & USB_DIR_IN || size == 0) { in usbredir_handle_bulk_data()
964 ep |= USB_DIR_IN; in usbredir_handle_data()
984 if (ep & USB_DIR_IN) { in usbredir_handle_data()
1010 if (ep & USB_DIR_IN) { in usbredir_stop_ep()
1018 if (ep & USB_DIR_IN) { in usbredir_stop_ep()
1133 control_packet.endpoint = control_packet.requesttype & USB_DIR_IN; in usbredir_handle_control()
1138 if (control_packet.requesttype & USB_DIR_IN) { in usbredir_handle_control()
[all …]
H A Dcore.c156 if (s->setup_buf[0] & USB_DIR_IN) { in do_token_setup()
193 if (!(s->setup_buf[0] & USB_DIR_IN)) { in do_token_in()
207 if (s->setup_buf[0] & USB_DIR_IN) { in do_token_in()
235 if (s->setup_buf[0] & USB_DIR_IN) { in do_token_out()
245 if (!(s->setup_buf[0] & USB_DIR_IN)) { in do_token_out()
H A Ddev-storage.c66 .bEndpointAddress = USB_DIR_IN | 0x01,
101 .bEndpointAddress = USB_DIR_IN | 0x01,
136 .bEndpointAddress = USB_DIR_IN | 0x01,
H A Dhost-libusb.c450 udev->setup_buf[0] == USB_DIR_IN && in usb_host_req_complete_ctrl()
571 xfer->xfer->endpoint |= USB_DIR_IN; in usb_host_iso_alloc()
910 pid = (devep & USB_DIR_IN) ? USB_TOKEN_IN : USB_TOKEN_OUT; in usb_host_ep_update()
926 (devep & USB_DIR_IN) ? "in" : "out", in usb_host_ep_update()
1497 int pid = (index & USB_DIR_IN) ? USB_TOKEN_IN : USB_TOKEN_OUT; in usb_host_handle_control()
1505 r = usb_host_req_alloc(s, p, (request >> 8) & USB_DIR_IN, length + 8); in usb_host_handle_control()
1572 ep = p->ep->nr | (r->in ? USB_DIR_IN : 0); in usb_host_handle_data()
1596 ep = p->ep->nr | (r->in ? USB_DIR_IN : 0); in usb_host_handle_data()
/openbmc/u-boot/drivers/usb/emul/
H A Dsandbox_hub.c82 .bEndpointAddress = 1 | USB_DIR_IN,
212 case USB_RT_HUB | USB_DIR_IN: in sandbox_hub_submit_control_msg()
229 case USB_RT_PORT | USB_DIR_IN: in sandbox_hub_submit_control_msg()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0014-add-u3-ss-descriptor-support-for-adb.patch136 + .bEndpointAddress = 2 | USB_DIR_IN,
163 + .bEndpointAddress = 2 | USB_DIR_IN,
213 - .bEndpointAddress = 2 | USB_DIR_IN,
220 + .bEndpointAddress = 2 | USB_DIR_IN,
245 - .bEndpointAddress = 2 | USB_DIR_IN,
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget_ep0.c97 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
253 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
417 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
612 if (req->bRequestType & USB_DIR_IN) in musb_read_setup()
615 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
/openbmc/u-boot/drivers/serial/
H A Dusbtty.c218 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN,
255 .bEndpointAddress = UDC_IN_ENDPOINT | USB_DIR_IN,
334 .bEndpointAddress = UDC_IN_ENDPOINT | USB_DIR_IN,
344 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN,
712 if (endpoint_instance[i].endpoint_address & USB_DIR_IN) in usbtty_init_instances()
/openbmc/u-boot/drivers/usb/eth/
H A Dusb_ether.c46 if (ep_addr & USB_DIR_IN && !ep_in_found) { in usb_ether_register()
50 } else if (!(ep_addr & USB_DIR_IN) && !ep_out_found) { in usb_ether_register()
/openbmc/u-boot/common/
H A Dusb_hub.c95 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN | USB_RT_HUB, in usb_get_hub_descriptor()
116 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_HUB, 0, 0, in usb_get_hub_status()
125 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, 0, port, in usb_get_port_status()
901 if (!(ep->bEndpointAddress & USB_DIR_IN)) in usb_hub_check()
H A Dusb.c296 if ((pipe & USB_DIR_IN) == 0) in usb_maxpacket()
558 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN, in usb_get_descriptor()
702 USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, in usb_get_report()
713 USB_REQ_GET_DESCRIPTOR, USB_RECIP_INTERFACE | USB_DIR_IN, in usb_get_class_descriptor()
729 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN, in usb_get_string()
/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.c532 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_status()
601 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_descriptor()
680 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_configuration()
729 switch (bmrtype_breq & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_out()
798 if (cmd->requesttype & USB_DIR_IN) in dwc_otg_submit_rh_msg()
H A Dusb-sandbox.c24 pipe & USB_DIR_IN ? 'i' : 'o', in usbmon_trace()

123