Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Depautoconf.c107 if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
153 } else if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
156 desc->bEndpointAddress = USB_DIR_IN | in_epnum; in ep_matches()
247 && (USB_DIR_IN & desc->bEndpointAddress)) { in usb_ep_autoconfig()
272 if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
275 else if ((desc->bEndpointAddress & USB_DIR_IN) == 0 && in usb_ep_autoconfig()
278 else if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
H A Ddwc2_udc_otg_priv.h90 #define ep_is_in(EP) (((EP)->bEndpointAddress&USB_DIR_IN) == USB_DIR_IN)
H A Dfotg210.c63 .bEndpointAddress = USB_DIR_IN,
82 if (ep_addr & USB_DIR_IN) { in ep_reset()
237 if (ep->desc->bEndpointAddress & USB_DIR_IN) in fotg210_dma()
244 if (ep->desc->bEndpointAddress & USB_DIR_IN) { in fotg210_dma()
358 if (req->bRequestType & USB_DIR_IN) in fotg210_setup()
359 ep0_desc.bEndpointAddress = USB_DIR_IN; in fotg210_setup()
474 if (ep->stopped || (ep->desc->bEndpointAddress & USB_DIR_IN)) { in fotg210_recv()
508 int in = (desc->bEndpointAddress & USB_DIR_IN) ? 1 : 0; in fotg210_ep_enable()
618 if (ep->desc->bEndpointAddress & USB_DIR_IN) in fotg210_ep_queue()
622 if (ep->desc->bEndpointAddress & USB_DIR_IN) { in fotg210_ep_queue()
[all …]
H A Dci_udc.c80 .bEndpointAddress = USB_DIR_IN,
330 in = (desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_enable()
435 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_submit_next_request()
561 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in ci_ep_queue()
594 if (ep0_desc.bEndpointAddress == USB_DIR_IN) { in flip_ep0_direction()
599 ep0_desc.bEndpointAddress = USB_DIR_IN; in flip_ep0_direction()
610 in = (ci_ep->desc->bEndpointAddress & USB_DIR_IN) != 0; in handle_ep_complete()
687 if (r.bRequestType & USB_DIR_IN) { in handle_setup()
689 ep0_desc.bEndpointAddress = USB_DIR_IN; in handle_setup()
721 & USB_DIR_IN) != 0; in handle_setup()
[all …]
H A Dpxa25x_udc.c815 } else if ((ep->bEndpointAddress & USB_DIR_IN) != 0) { in pxa25x_ep_queue()
912 if ((ep->bEndpointAddress & USB_DIR_IN) != 0 in pxa25x_ep_set_halt()
953 if ((ep->bEndpointAddress & USB_DIR_IN) != 0) in pxa25x_ep_fifo_status()
975 if ((ep->bEndpointAddress & USB_DIR_IN) == 0) { in pxa25x_ep_fifo_flush()
1327 if (u.r.bRequestType & USB_DIR_IN) in handle_ep0()
1464 int is_in = ep->bEndpointAddress & USB_DIR_IN; in handle_ep()
1660 .bEndpointAddress = USB_DIR_IN | 1,
1688 .bEndpointAddress = USB_DIR_IN | 3,
1715 .bEndpointAddress = USB_DIR_IN | 5,
1730 .bEndpointAddress = USB_DIR_IN | 6,
[all …]
H A Dstorage_common.c425 .bEndpointAddress = USB_DIR_IN,
447 .bEndpointAddress = USB_DIR_IN,
H A Dat91_udc.c863 if (pkt.r.bRequestType & USB_DIR_IN) { in handle_setup()
927 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_DEVICE) << 8) in handle_setup()
958 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE) << 8) in handle_setup()
975 case ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT) << 8) in handle_setup()
983 if ((w_index & USB_DIR_IN)) { in handle_setup()
1006 if ((w_index & USB_DIR_IN)) { in handle_setup()
1027 if ((w_index & USB_DIR_IN)) { in handle_setup()
H A Datmel_usba_udc.c573 if ((wIndex ^ bEndpointAddress) & USB_DIR_IN) in get_ep_by_addr()
723 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
726 == (USB_DIR_IN | USB_RECIP_INTERFACE)) { in handle_ep0_setup()
729 == (USB_DIR_IN | USB_RECIP_ENDPOINT)) { in handle_ep0_setup()
989 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq()
H A Dether.c559 .bEndpointAddress = USB_DIR_IN,
652 .bEndpointAddress = USB_DIR_IN,
1268 if (ctrl->bRequestType != USB_DIR_IN) in eth_setup()
1318 if (ctrl->bRequestType != USB_DIR_IN) in eth_setup()
1397 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE) in eth_setup()
1461 if ((USB_DIR_IN|USB_TYPE_CLASS|USB_RECIP_INTERFACE) in eth_setup()
H A Dcomposite.c827 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
923 if (ctrl->bRequestType != USB_DIR_IN) in composite_setup()
949 if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE)) in composite_setup()
/rk3399_rockchip-uboot/include/
H A Dusb_defs.h64 #define USB_DIR_IN 0x80 macro
71 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE) << 8)
77 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8)
80 ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8)
H A Dusb.h349 USB_DIR_IN)
354 USB_DIR_IN)
359 USB_DIR_IN)
364 USB_DIR_IN)
369 USB_DIR_IN)
384 #define usb_packetid(pipe) (((pipe) & USB_DIR_IN) ? USB_PID_IN : \
/rk3399_rockchip-uboot/drivers/usb/emul/
H A Dsandbox_hub.c85 .bEndpointAddress = 1 | USB_DIR_IN,
215 case USB_RT_HUB | USB_DIR_IN: in sandbox_hub_submit_control_msg()
232 case USB_RT_PORT | USB_DIR_IN: in sandbox_hub_submit_control_msg()
/rk3399_rockchip-uboot/drivers/serial/
H A Dusbtty.c219 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN,
256 .bEndpointAddress = UDC_IN_ENDPOINT | USB_DIR_IN,
335 .bEndpointAddress = UDC_IN_ENDPOINT | USB_DIR_IN,
345 .bEndpointAddress = UDC_INT_ENDPOINT | USB_DIR_IN,
713 if (endpoint_instance[i].endpoint_address & USB_DIR_IN) in usbtty_init_instances()
/rk3399_rockchip-uboot/drivers/usb/musb-new/
H A Dmusb_gadget_ep0.c98 is_in = epnum & USB_DIR_IN; in service_tx_status_request()
254 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
418 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
613 if (req->bRequestType & USB_DIR_IN) in musb_read_setup()
616 } else if (req->bRequestType & USB_DIR_IN) { in musb_read_setup()
/rk3399_rockchip-uboot/drivers/usb/eth/
H A Dusb_ether.c47 if (ep_addr & USB_DIR_IN && !ep_in_found) { in usb_ether_register()
51 } else if (!(ep_addr & USB_DIR_IN) && !ep_out_found) { in usb_ether_register()
H A Dasix88179.c259 USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in asix_read_cmd()
694 if ((ep_addr & USB_DIR_IN) && !ep_in_found) { in ax88179_eth_probe()
699 if (!(ep_addr & USB_DIR_IN) && !ep_out_found) { in ax88179_eth_probe()
H A Dmcs7830.c114 USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in mcs7830_read_reg()
769 is_input = epaddr & USB_DIR_IN; in mcs7830_eth_probe()
/rk3399_rockchip-uboot/common/
H A Dusb_hub.c98 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN | USB_RT_HUB, in usb_get_hub_descriptor()
119 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_HUB, 0, 0, in usb_get_hub_status()
128 USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, 0, port, in usb_get_port_status()
913 if (!(ep->bEndpointAddress & USB_DIR_IN)) in usb_hub_check()
H A Dusb.c303 if ((pipe & USB_DIR_IN) == 0) in usb_maxpacket()
578 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN, in usb_get_descriptor()
722 USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, in usb_get_report()
733 USB_REQ_GET_DESCRIPTOR, USB_RECIP_INTERFACE | USB_DIR_IN, in usb_get_class_descriptor()
749 USB_REQ_GET_DESCRIPTOR, USB_DIR_IN, in usb_get_string()
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dusb-sandbox.c27 pipe & USB_DIR_IN ? 'i' : 'o', in usbmon_trace()
H A Ddwc2.c547 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_status()
616 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_descriptor()
695 switch (cmd->requesttype & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_in_configuration()
744 switch (bmrtype_breq & ~USB_DIR_IN) { in dwc_otg_submit_rh_msg_out()
813 if (cmd->requesttype & USB_DIR_IN) in dwc_otg_submit_rh_msg()
H A Dxhci-ring.c875 if (req->requesttype & USB_DIR_IN) in xhci_ctrl_tx()
917 if (req->requesttype & USB_DIR_IN) in xhci_ctrl_tx()
937 if (length > 0 && req->requesttype & USB_DIR_IN) in xhci_ctrl_tx()
/rk3399_rockchip-uboot/include/linux/usb/
H A Dch9.h51 #define USB_DIR_IN 0x80 /* to host */ macro
476 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); in usb_endpoint_dir_in()
/rk3399_rockchip-uboot/drivers/usb/cdns3/
H A Dep0.c395 if (!(ctrl->wIndex & ~USB_DIR_IN)) in cdns3_ep0_feature_handle_endpoint()
565 priv_dev->ep0_data_dir = ctrl->bRequestType & USB_DIR_IN; in cdns3_ep0_setup_phase()
872 cdns3_select_ep(priv_dev, USB_DIR_IN); in cdns3_ep0_config()

12