Lines Matching refs:lptdev
488 device_t lptdev; in lptopen() local
494 lptdev = sc->sc_dev; in lptopen()
495 ppbus = device_get_parent(lptdev); in lptopen()
499 lprintf(("%s: still open %x\n", device_get_nameunit(lptdev), in lptopen()
516 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptopen()
523 lprintf(("%s flags 0x%x\n", device_get_nameunit(lptdev), in lptopen()
551 lpt_release_ppbus(lptdev); in lptopen()
558 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lptinit", in lptopen()
560 lpt_release_ppbus(lptdev); in lptopen()
594 lpt_release_ppbus(lptdev); in lptopen()
611 device_t lptdev = sc->sc_dev; in lptclose() local
612 device_t ppbus = device_get_parent(lptdev); in lptclose()
619 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptclose()
630 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lpclose", in lptclose()
641 lpt_release_ppbus(lptdev); in lptclose()
721 device_t lptdev = sc->sc_dev; in lptread() local
722 device_t ppbus = device_get_parent(lptdev); in lptread()
774 device_t lptdev = sc->sc_dev; in lptwrite() local
775 device_t ppbus = device_get_parent(lptdev); in lptwrite()
784 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptwrite()
833 if ((err = ppb_sleep(ppbus, lptdev, in lptwrite()
855 lpt_release_ppbus(lptdev); in lptwrite()
871 device_t lptdev = sc->sc_dev; in lptintr() local
872 device_t ppbus = device_get_parent(lptdev); in lptintr()
909 wakeup(lptdev); in lptintr()