Lines Matching refs:endpt

489 	int ifaceno, endptno, endpt;
544 endpt = ed->bEndpointAddress;
545 dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT;
546 sce = &sc->sc_endpoints[UE_GET_ADDR(endpt)][dir];
547 DPRINTFN(1, "endptno %jd, endpt=0x%02jx (%jd,%jd)",
548 endptno, endpt, UE_GET_ADDR(endpt),
549 UE_GET_DIR(endpt));
575 int endpt = UGENENDPOINT(dev);
586 UGENHIST_CALLARGS("flag=%jd, mode=%jd, unit=%jd endpt=%jd",
587 flag, mode, unit, endpt);
595 if (endpt == USB_CONTROL_ENDPOINT) {
601 if (sc->sc_is_open[endpt]) {
605 opened = sc->sc_is_open[endpt] = 1;
610 sce = &sc->sc_endpoints[endpt][dir];
623 sce = &sc->sc_endpoints[endpt][dir];
626 DPRINTFN(5, "sc=%jx, endpt=%jd, dir=%jd, sce=%jp",
627 (uintptr_t)sc, endpt, dir, (uintptr_t)sce);
646 DPRINTFN(5, "intr endpt=%d, isize=%d",
647 endpt, isize, 0, 0);
696 DPRINTFN(5, "isoc endpt=%d, isize=%d",
697 endpt, isize, 0, 0);
743 sc->sc_is_open[endpt] = 0;
749 ugen_do_close(struct ugen_softc *sc, int flag, int endpt)
756 UGENHIST_CALLARGS("flag=%jd endpt=%jd", flag, endpt, 0, 0);
760 if (!sc->sc_is_open[endpt])
763 if (endpt == USB_CONTROL_ENDPOINT) {
771 sce = &sc->sc_endpoints[endpt][dir];
774 DPRINTFN(5, "endpt=%jd dir=%jd sce=%jx",
775 endpt, dir, (uintptr_t)sce, 0);
813 out: sc->sc_is_open[endpt] = 0;
815 sce = &sc->sc_endpoints[endpt][dir];
827 int endpt = UGENENDPOINT(dev);
831 UGENHIST_CALLARGS("flag=%jd, mode=%jd, unit=%jd, endpt=%jd",
832 flag, mode, UGENUNIT(dev), endpt);
839 KASSERT(sc->sc_is_open[endpt]);
840 ugen_do_close(sc, flag, endpt);
841 KASSERT(!sc->sc_is_open[endpt]);
849 ugen_do_read(struct ugen_softc *sc, int endpt, struct uio *uio, int flag)
851 struct ugen_endpoint *sce = &sc->sc_endpoints[endpt][IN];
858 UGENHIST_CALLARGS("ugen%d: %jd", device_unit(sc->sc_dev), endpt, 0, 0);
860 if (endpt == USB_CONTROL_ENDPOINT)
1045 int endpt = UGENENDPOINT(dev);
1051 error = ugen_do_read(sc, endpt, uio, flag);
1058 ugen_do_write(struct ugen_softc *sc, int endpt, struct uio *uio,
1061 struct ugen_endpoint *sce = &sc->sc_endpoints[endpt][OUT];
1071 device_unit(sc->sc_dev), endpt, 0, 0);
1073 if (endpt == USB_CONTROL_ENDPOINT)
1214 int endpt = UGENENDPOINT(dev);
1220 error = ugen_do_write(sc, endpt, uio, flag);
1577 uint8_t niface, nendpt, endptno, endpt;
1610 endpt = ed->bEndpointAddress;
1611 dir = UE_GET_DIR(endpt) == UE_DIR_IN ? IN : OUT;
1612 sce = &sc->sc_endpoints[UE_GET_ADDR(endpt)][dir];
1671 ugen_do_ioctl(struct ugen_softc *sc, int endpt, u_long cmd,
1691 UGENHIST_CALLARGS("ugen%d: endpt=%ju cmd=%08jx flag=%jx",
1692 device_unit(sc->sc_dev), endpt, cmd, flag);
1701 if (endpt == USB_CONTROL_ENDPOINT)
1704 sce = &sc->sc_endpoints[endpt][IN];
1716 sce = &sc->sc_endpoints[endpt][dir];
1726 if (endpt == USB_CONTROL_ENDPOINT)
1728 sce = &sc->sc_endpoints[endpt][IN];
1788 if (endpt == USB_CONTROL_ENDPOINT)
1790 sce = &sc->sc_endpoints[endpt][OUT];
1839 if (endpt == USB_CONTROL_ENDPOINT)
1843 sce = &sc->sc_endpoints[endpt][IN];
1845 sce = &sc->sc_endpoints[endpt][OUT];
1866 if (endpt != USB_CONTROL_ENDPOINT)
2057 sce = &sc->sc_endpoints[endpt][IN];
2101 int endpt = UGENENDPOINT(dev);
2107 error = ugen_do_ioctl(sc, endpt, cmd, addr, flag, l);