/external/crosvm/devices/src/usb/host_backend/ |
D | usb_endpoint.rs | 55 fn ep_addr(&self) -> u8 { in ep_addr() method 110 bulk_transfer(self.ep_addr(), 0, buffer.len().map_err(Error::BufferLen)?); in handle_bulk_transfer() 120 interrupt_transfer(self.ep_addr(), 0, buffer.len().map_err(Error::BufferLen)?); in handle_interrupt_transfer() 140 self.ep_addr(), in do_handle_transfer() 191 self.ep_addr(), in do_handle_transfer() 194 let _addr = self.ep_addr(); in do_handle_transfer()
|
/external/u-boot/drivers/usb/gadget/ |
D | designware_udc.c | 308 int ep_addr = endpoint->endpoint_address; in dw_udc_setup() local 311 usbgetpckfromfifo(ep_addr, datap, 8); in dw_udc_setup() 348 writel(0x0, &inep_regs_p[ep_addr].write_done); in dw_udc_setup() 396 int ep_addr; in dw_udc_ep0_tx() local 444 ep_addr = endpoint->endpoint_address; in dw_udc_ep0_tx() 445 writel(0x0, &inep_regs_p[ep_addr].write_done); in dw_udc_ep0_tx() 594 int ep_addr; in udc_setup_ep() local 609 ep_addr = endpoint->endpoint_address; in udc_setup_ep() 610 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep() 612 if ((ep_addr & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) { in udc_setup_ep() [all …]
|
D | pxa27x_udc.c | 372 int ep_addr = endpoint->endpoint_address; in udc_handle_ep() local 373 int ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_handle_ep() 374 int ep_isout = (ep_addr & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT; in udc_handle_ep() 526 int ep_num, ep_addr, ep_isout, ep_type, ep_size; in udc_setup_ep() local 556 ep_addr = endpoint->endpoint_address; in udc_setup_ep() 557 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep() 558 ep_isout = (ep_addr & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT; in udc_setup_ep() 563 ep_addr, ep_num, in udc_setup_ep()
|
D | fotg210.c | 77 static inline int ep_reset(struct fotg210_chip *chip, uint8_t ep_addr) in ep_reset() argument 79 int ep = ep_addr & USB_ENDPOINT_NUMBER_MASK; in ep_reset() 82 if (ep_addr & USB_DIR_IN) { in ep_reset()
|
/external/u-boot/drivers/usb/eth/ |
D | usb_ether.c | 41 int ep_addr = iface->ep_desc[i].bEndpointAddress; in usb_ether_register() local 46 if (ep_addr & USB_DIR_IN && !ep_in_found) { in usb_ether_register() 47 ueth->ep_in = ep_addr & in usb_ether_register() 50 } else if (!(ep_addr & USB_DIR_IN) && !ep_out_found) { in usb_ether_register() 51 ueth->ep_out = ep_addr & in usb_ether_register()
|
D | asix88179.c | 692 u8 ep_addr = iface->ep_desc[i].bEndpointAddress; in ax88179_eth_probe() local 693 if ((ep_addr & USB_DIR_IN) && !ep_in_found) { in ax88179_eth_probe() 694 ss->ep_in = ep_addr & in ax88179_eth_probe() 698 if (!(ep_addr & USB_DIR_IN) && !ep_out_found) { in ax88179_eth_probe() 699 ss->ep_out = ep_addr & in ax88179_eth_probe()
|
D | asix.c | 673 u8 ep_addr = iface->ep_desc[i].bEndpointAddress; in asix_eth_probe() local 674 if (ep_addr & USB_DIR_IN) { in asix_eth_probe() 676 ss->ep_in = ep_addr & in asix_eth_probe() 682 ss->ep_out = ep_addr & in asix_eth_probe()
|
D | r8152.c | 1398 u8 ep_addr = iface->ep_desc[i].bEndpointAddress; in r8152_eth_probe() local 1399 if ((ep_addr & USB_DIR_IN) && !ep_in_found) { in r8152_eth_probe() 1400 ss->ep_in = ep_addr & in r8152_eth_probe() 1405 ss->ep_out = ep_addr & in r8152_eth_probe()
|
/external/libusb/libusb/os/ |
D | sunos_usb.c | 424 sunos_usb_ep_index(uint8_t ep_addr) in sunos_usb_ep_index() argument 426 return ((ep_addr & LIBUSB_ENDPOINT_ADDRESS_MASK) + in sunos_usb_ep_index() 427 ((ep_addr & LIBUSB_ENDPOINT_DIR_MASK) ? 16 : 0)); in sunos_usb_ep_index() 474 uint8_t ep_addr, int ep_type) in sunos_check_device_and_status_open() argument 483 usbi_dbg("open ep 0x%02x", ep_addr); in sunos_check_device_and_status_open() 485 ep_index = sunos_usb_ep_index(ep_addr); in sunos_check_device_and_status_open() 490 ep_addr); in sunos_check_device_and_status_open() 495 if (sunos_find_interface(hdl, ep_addr, &ifc) < 0) { in sunos_check_device_and_status_open() 497 ep_addr); in sunos_check_device_and_status_open() 519 (ep_addr & LIBUSB_ENDPOINT_DIR_MASK) ? "in" : in sunos_check_device_and_status_open() [all …]
|
/external/u-boot/drivers/usb/musb/ |
D | musb_udc.c | 871 int ep_addr; in udc_setup_ep() local 874 ep_addr = endpoint->endpoint_address; in udc_setup_ep() 875 if (USB_DIR_IN == (ep_addr & USB_ENDPOINT_DIR_MASK)) { in udc_setup_ep()
|
/external/u-boot/drivers/usb/cdns3/ |
D | gadget.c | 97 u8 cdns3_ep_addr_to_index(u8 ep_addr) in cdns3_ep_addr_to_index() argument 99 return (((ep_addr & 0x7F)) + ((ep_addr & USB_DIR_IN) ? 16 : 0)); in cdns3_ep_addr_to_index()
|
D | gadget.h | 1317 u8 cdns3_ep_addr_to_index(u8 ep_addr);
|