Home
last modified time | relevance | path

Searched refs:ep_no (Results 1 – 19 of 19) sorted by relevance

/NextBSD/sys/dev/usb/controller/
HDavr32dci.c285 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_setup_rx()
287 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_setup_rx()
330 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_SETUP); in avr32dci_setup_rx()
336 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_SETUP); in avr32dci_setup_rx()
341 AVR32_WRITE_4(sc, AVR32_EPTSETSTA(td->ep_no), in avr32dci_setup_rx()
367 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_rx()
369 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_rx()
422 (td->ep_no << 16) + (td->offset % td->max_packet_size), buf_res.length); in avr32dci_data_rx()
430 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_BK_RDY); in avr32dci_data_rx()
464 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx()
[all …]
HDdwc_otg.c1654 if (GRXSTSRD_CHNUM_GET(sc->sc_last_rx_status) != td->ep_no) in dwc_otg_data_rx()
1721 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1734 sc->sc_out_ctl[td->ep_no] = temp; in dwc_otg_data_rx()
1749 if (td->ep_no == 0) { in dwc_otg_data_rx()
1756 DWC_OTG_WRITE_4(sc, DOTG_DOEPTSIZ(td->ep_no), in dwc_otg_data_rx()
1762 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx()
1763 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp | in dwc_otg_data_rx()
2120 max_buffer = sc->sc_hw_ep_profile[td->ep_no].max_buffer; in dwc_otg_data_tx()
2127 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx()
2153 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx()
[all …]
HDat91dci.c907 uint8_t ep_no; in at91dci_setup_standard_chain() local
931 ep_no = (xfer->endpointno & UE_ADDR); in at91dci_setup_standard_chain()
1055 if (sc->sc_ep_flags[ep_no].fifo_bank) { in at91dci_setup_standard_chain()
1088 uint8_t ep_no = xfer->endpointno & UE_ADDR; in at91dci_start_standard_chain() local
1095 AT91_UDP_WRITE_4(sc, AT91_UDP_IER, AT91_UDP_INT_EP(ep_no)); in at91dci_start_standard_chain()
1097 DPRINTFN(15, "enable interrupts on endpoint %d\n", ep_no); in at91dci_start_standard_chain()
1243 uint8_t ep_no; in at91dci_device_done() local
1253 ep_no = (xfer->endpointno & UE_ADDR); in at91dci_device_done()
1256 AT91_UDP_WRITE_4(sc, AT91_UDP_IDR, AT91_UDP_INT_EP(ep_no)); in at91dci_device_done()
1258 DPRINTFN(15, "disable interrupts on endpoint %d\n", ep_no); in at91dci_device_done()
[all …]
HDatmegadci.c256 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_setup_rx()
346 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_rx()
458 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_tx()
539 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_tx_sync()
788 uint8_t ep_no; in atmegadci_setup_standard_chain() local
812 ep_no = (xfer->endpointno & UE_ADDR); in atmegadci_setup_standard_chain()
1098 uint8_t ep_no; in atmegadci_device_done() local
1106 ep_no = (xfer->endpointno & UE_ADDR); in atmegadci_device_done()
1109 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, ep_no); in atmegadci_device_done()
1131 uint8_t ep_no; in atmegadci_set_stall() local
[all …]
HDuss820dci.c888 uint8_t ep_no; in uss820dci_setup_standard_chain() local
911 ep_no = (xfer->endpointno & UE_ADDR); in uss820dci_setup_standard_chain()
1043 uint8_t ep_no = (xfer->endpointno & UE_ADDR); in uss820dci_intr_set() local
1049 if (ep_no > 3) { in uss820dci_intr_set()
1055 ep_no &= 3; in uss820dci_intr_set()
1056 ep_no = 1 << (2 * ep_no); in uss820dci_intr_set()
1060 ep_no <<= 1; /* RX interrupt only */ in uss820dci_intr_set()
1062 ep_no |= (ep_no << 1); /* RX and TX interrupt */ in uss820dci_intr_set()
1066 ep_no <<= 1; in uss820dci_intr_set()
1071 temp |= ep_no; in uss820dci_intr_set()
[all …]
HDmusb_otg.c157 ep = td->ep_no; in musbotg_channel_alloc()
2401 uint8_t ep_no; in musbotg_setup_standard_chain() local
2412 ep_no = (xfer->endpointno & UE_ADDR); in musbotg_setup_standard_chain()
2475 temp.transfer_type |= ep_no; in musbotg_setup_standard_chain()
2855 uint8_t ep_no; in musbotg_set_stall() local
2864 ep_no = (ep->edesc->bEndpointAddress & UE_ADDR); in musbotg_set_stall()
2867 MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, ep_no); in musbotg_set_stall()
2880 uint8_t ep_no, uint8_t ep_type, uint8_t ep_dir) in musbotg_clear_stall_sub() argument
2891 MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, ep_no); in musbotg_clear_stall_sub()
2952 if (mps <= (sc->sc_hw_ep_profile[ep_no]. in musbotg_clear_stall_sub()
[all …]
HDsaf1761_otg.c1742 uint8_t ep_no; in saf1761_otg_setup_standard_chain() local
1772 ep_no = (xfer->endpointno & UE_ADDR); in saf1761_otg_setup_standard_chain()
1987 uint8_t ep_no = (xfer->endpointno & UE_ADDR); in saf1761_otg_intr_set() local
1992 if (ep_no == 0) { in saf1761_otg_intr_set()
1997 mask = SOTG_DCINTERRUPT_IEPTX(ep_no); in saf1761_otg_intr_set()
1999 mask = SOTG_DCINTERRUPT_IEPRX(ep_no); in saf1761_otg_intr_set()
2213 uint8_t ep_no; in saf1761_otg_set_stall() local
2230 ep_no = (ep->edesc->bEndpointAddress & UE_ADDR); in saf1761_otg_set_stall()
2242 (ep_no << SOTG_EP_INDEX_ENDP_INDEX_SHIFT) | in saf1761_otg_set_stall()
2254 uint8_t ep_no, uint8_t ep_type, uint8_t ep_dir) in saf1761_otg_clear_stall_sub_locked() argument
[all …]
HDatmegadci.h208 uint8_t ep_no:3; member
HDdwc_otg.h70 uint8_t ep_no; member
HDavr32dci.h175 uint8_t ep_no:3; member
HDmusb_otg.h320 uint8_t ep_no; member
/NextBSD/sys/dev/usb/template/
HDusb_template.c687 uint8_t ep_no; in usb_hw_ep_get_needs() local
749 ep_no = (ed->bEndpointAddress & UE_ADDR); in usb_hw_ep_get_needs()
750 if (ep_no != 0) { in usb_hw_ep_get_needs()
754 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs()
758 "does not exist\n", ep_no); in usb_hw_ep_get_needs()
763 ues->bmInAlloc[ep_no / 8] |= in usb_hw_ep_get_needs()
764 (1 << (ep_no % 8)); in usb_hw_ep_get_needs()
765 ues->bmOutAlloc[ep_no / 8] |= in usb_hw_ep_get_needs()
766 (1 << (ep_no % 8)); in usb_hw_ep_get_needs()
770 "has too small buffer\n", ep_no); in usb_hw_ep_get_needs()
[all …]
/NextBSD/lib/libusb/
HDlibusb20.h200 …en(struct libusb20_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no);
201 …_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no, uint16_t stream_i…
HDlibusb01.c108 usb_get_transfer_by_ep_no(usb_dev_handle * dev, uint8_t ep_no) in usb_get_transfer_by_ep_no() argument
117 x = (ep_no & LIBUSB20_ENDPOINT_ADDRESS_MASK) * 2; in usb_get_transfer_by_ep_no()
119 if (ep_no & LIBUSB20_ENDPOINT_DIR_MASK) { in usb_get_transfer_by_ep_no()
141 err = libusb20_tr_open(xfer, bufsize, 1, ep_no); in usb_get_transfer_by_ep_no()
HDlibusb20.c162 uint32_t MaxFrameCount, uint8_t ep_no) in libusb20_tr_open() argument
164 return (libusb20_tr_open_stream(xfer, MaxBufSize, MaxFrameCount, ep_no, 0)); in libusb20_tr_open()
169 uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id) in libusb20_tr_open_stream() argument
204 MaxFrameCount, ep_no, stream_id, pre_scale); in libusb20_tr_open_stream()
HDlibusb20_ugen20.c782 uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id, in ugen20_tr_open() argument
802 temp.fs_open.ep_no = ep_no; in ugen20_tr_open()
HDlibusb20_int.h115 …sb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_i…
/NextBSD/sys/dev/usb/
HDusb_ioctl.h231 uint8_t ep_no; /* bEndpointNumber */ member
HDusb_generic.c1487 ep = usbd_get_ep_by_addr(f->udev, u.popen->ep_no); in ugen_ioctl()