Lines Matching refs:endpt
579 int len, error, endpt;
587 endpt = ed->bEndpointAddress;
588 isread = UE_GET_DIR(endpt) == UE_DIR_IN;
589 endpt = UE_GET_ADDR(endpt);
590 KASSERT(endpt < UGEN_NEPTS);
607 rumpcomp_ugenhc_ioctl(sc->sc_ugenfd[endpt],
611 error = rumpuser_iovread(sc->sc_ugenfd[endpt], &iov, 1,
630 error = rumpuser_iovwrite(sc->sc_ugenfd[endpt], &iov, 1,
729 int endpt = pipe->up_endpoint->ue_edesc->bEndpointAddress;
734 endpt = UE_GET_ADDR(endpt);
739 rumpuser_close(sc->sc_ugenfd[endpt]);
740 sc->sc_ugenfd[endpt] = -1;
741 sc->sc_fdmodes[endpt] = -1;
775 int endpt, oflags, error;
799 endpt = pipe->up_endpoint->ue_edesc->bEndpointAddress;
800 if (UE_GET_DIR(endpt) == UE_DIR_IN) {
805 endpt = UE_GET_ADDR(endpt);
812 if (sc->sc_fdmodes[endpt] == oflags
813 || sc->sc_fdmodes[endpt] == O_RDWR)
816 if (sc->sc_fdmodes[endpt] != -1) {
818 error = rumpuser_close(sc->sc_ugenfd[endpt]);
822 makeugendevstr(sc->sc_devnum, endpt, buf, sizeof(buf));
832 sc->sc_ugenfd[endpt] = fd;
833 sc->sc_fdmodes[endpt] = oflags;