/freebsd/sys/dev/usb/controller/ |
H A D | avr32dci.c | 284 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_setup_rx() 286 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_setup_rx() 329 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_SETUP); in avr32dci_setup_rx() 335 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_SETUP); in avr32dci_setup_rx() 340 AVR32_WRITE_4(sc, AVR32_EPTSETSTA(td->ep_no), in avr32dci_setup_rx() 366 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_rx() 368 DPRINTFN(5, "EPTSTA(%u)=0x%08x\n", td->ep_no, temp); in avr32dci_data_rx() 421 (td->ep_no << 16) + (td->offset % td->max_packet_size), buf_res.length); in avr32dci_data_rx() 429 AVR32_WRITE_4(sc, AVR32_EPTCLRSTA(td->ep_no), AVR32_EPTSTA_RX_BK_RDY); in avr32dci_data_rx() 463 temp = AVR32_READ_4(sc, AVR32_EPTSTA(td->ep_no)); in avr32dci_data_tx() [all …]
|
H A D | dwc_otg.c | 1673 if (GRXSTSRD_CHNUM_GET(sc->sc_last_rx_status) != td->ep_no) in dwc_otg_data_rx() 1740 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx() 1753 sc->sc_out_ctl[td->ep_no] = temp; in dwc_otg_data_rx() 1768 if (td->ep_no == 0) { in dwc_otg_data_rx() 1775 DWC_OTG_WRITE_4(sc, DOTG_DOEPTSIZ(td->ep_no), in dwc_otg_data_rx() 1781 temp = sc->sc_out_ctl[td->ep_no]; in dwc_otg_data_rx() 1782 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp | in dwc_otg_data_rx() 2138 max_buffer = sc->sc_hw_ep_profile[td->ep_no].max_buffer; in dwc_otg_data_tx() 2145 if ((td->ep_no == 0) && (temp != 0) && in dwc_otg_data_tx() 2168 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no)); in dwc_otg_data_tx() 2723 uint8_t ep_no; dwc_otg_interrupt_poll_locked() local 2775 uint8_t ep_no; dwc_otg_interrupt_poll_locked() local 3655 uint8_t ep_no; dwc_otg_set_stall() local 3705 dwc_otg_clear_stall_sub_locked(struct dwc_otg_softc * sc,uint32_t mps,uint8_t ep_no,uint8_t ep_type,uint8_t ep_dir) dwc_otg_clear_stall_sub_locked() argument 4778 uint8_t ep_no; dwc_otg_xfer_setup() local [all...] |
H A D | uss820dci.c | 1028 uint8_t ep_no = (xfer->endpointno & UE_ADDR); in uss820dci_intr_set() local 1034 if (ep_no > 3) { in uss820dci_intr_set() 1040 ep_no &= 3; in uss820dci_intr_set() 1041 ep_no = 1 << (2 * ep_no); in uss820dci_intr_set() 1045 ep_no <<= 1; /* RX interrupt only */ in uss820dci_intr_set() 1047 ep_no |= (ep_no << 1); /* RX and TX interrupt */ in uss820dci_intr_set() 1051 ep_no <<= 1; in uss820dci_intr_set() 1056 temp |= ep_no; in uss820dci_intr_set() 1058 temp &= ~ep_no; in uss820dci_intr_set() 1251 uint8_t ep_no; in uss820dci_set_stall() local [all …]
|
H A D | atmegadci.c | 253 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_setup_rx() 343 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_rx() 455 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_tx() 535 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, td->ep_no); in atmegadci_data_tx_sync() 1074 uint8_t ep_no; in atmegadci_device_done() local 1082 ep_no = (xfer->endpointno & UE_ADDR); in atmegadci_device_done() 1085 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, ep_no); in atmegadci_device_done() 1107 uint8_t ep_no; in atmegadci_set_stall() local 1115 ep_no = (ep->edesc->bEndpointAddress & UE_ADDR); in atmegadci_set_stall() 1117 ATMEGA_WRITE_1(sc, ATMEGA_UENUM, ep_no); in atmegadci_set_stall() [all …]
|
H A D | musb_otg.c | 177 ep = td->ep_no; in musbotg_channel_alloc() 2393 uint8_t ep_no; in musbotg_setup_standard_chain() local 2404 ep_no = (xfer->endpointno & UE_ADDR); in musbotg_setup_standard_chain() 2467 temp.transfer_type |= ep_no; in musbotg_setup_standard_chain() 2837 uint8_t ep_no; in musbotg_set_stall() local 2846 ep_no = (ep->edesc->bEndpointAddress & UE_ADDR); in musbotg_set_stall() 2849 MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, ep_no); in musbotg_set_stall() 2862 uint8_t ep_no, uint8_t ep_type, uint8_t ep_dir) in musbotg_clear_stall_sub() argument 2873 MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, ep_no); in musbotg_clear_stall_sub() 2933 if (mps <= (sc->sc_hw_ep_profile[ep_no]. in musbotg_clear_stall_sub() [all …]
|
H A D | atmegadci.h | 209 uint8_t ep_no:3; member
|
H A D | dwc_otg.h | 71 uint8_t ep_no; member
|
H A D | avr32dci.h | 176 uint8_t ep_no:3; member
|
H A D | musb_otg.h | 321 uint8_t ep_no; member
|
/freebsd/sys/dev/usb/template/ |
H A D | usb_template.c | 768 uint8_t ep_no; in usb_hw_ep_get_needs() local 826 ep_no = (ed->bEndpointAddress & UE_ADDR); in usb_hw_ep_get_needs() 827 if (ep_no != 0) { in usb_hw_ep_get_needs() 830 (ues->udev, &pf, ep_no); in usb_hw_ep_get_needs() 834 "does not exist\n", ep_no); in usb_hw_ep_get_needs() 839 ues->bmInAlloc[ep_no / 8] |= in usb_hw_ep_get_needs() 840 (1 << (ep_no % 8)); in usb_hw_ep_get_needs() 841 ues->bmOutAlloc[ep_no / 8] |= in usb_hw_ep_get_needs() 842 (1 << (ep_no % 8)); in usb_hw_ep_get_needs() 846 "has too small buffer\n", ep_no); in usb_hw_ep_get_needs() [all …]
|
/freebsd/lib/libusb/ |
H A D | libusb20.c | 163 uint32_t MaxFrameCount, uint8_t ep_no) in libusb20_tr_open() argument 165 return (libusb20_tr_open_stream(xfer, MaxBufSize, MaxFrameCount, ep_no, 0)); in libusb20_tr_open() 170 uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id) in libusb20_tr_open_stream() argument 212 MaxFrameCount / 8, ep_no, stream_id, 1); in libusb20_tr_open_stream() 215 MaxFrameCount, ep_no, stream_id, 0); in libusb20_tr_open_stream()
|
H A D | libusb20.h | 207 …en(struct libusb20_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no); 208 …_transfer *xfer, uint32_t max_buf_size, uint32_t max_frame_count, uint8_t ep_no, uint16_t stream_i…
|
H A D | libusb01.c | 109 usb_get_transfer_by_ep_no(usb_dev_handle * dev, uint8_t ep_no) in usb_get_transfer_by_ep_no() argument 118 x = (ep_no & LIBUSB20_ENDPOINT_ADDRESS_MASK) * 2; in usb_get_transfer_by_ep_no() 120 if (ep_no & LIBUSB20_ENDPOINT_DIR_MASK) { in usb_get_transfer_by_ep_no() 142 err = libusb20_tr_open(xfer, bufsize, 1, ep_no); in usb_get_transfer_by_ep_no()
|
H A D | libusb20_ugen20.c | 798 uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id, in ugen20_tr_open() argument 818 temp.fs_open.ep_no = ep_no; in ugen20_tr_open()
|
H A D | libusb20_int.h | 111 …sb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_i…
|
/freebsd/sys/dev/usb/ |
H A D | usb_ioctl.h | 204 uint8_t ep_no; /* bEndpointNumber */ member
|
H A D | usb_generic.c | 1054 ep = usbd_get_ep_by_addr(f->udev, popen->ep_no); in usb_fs_open()
|