Lines Matching refs:lptdev
483 device_t lptdev; in lptopen() local
489 lptdev = sc->sc_dev; in lptopen()
490 ppbus = device_get_parent(lptdev); in lptopen()
494 lprintf(("%s: still open %x\n", device_get_nameunit(lptdev), in lptopen()
511 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptopen()
518 lprintf(("%s flags 0x%x\n", device_get_nameunit(lptdev), in lptopen()
546 lpt_release_ppbus(lptdev); in lptopen()
553 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lptinit", in lptopen()
555 lpt_release_ppbus(lptdev); in lptopen()
587 lpt_release_ppbus(lptdev); in lptopen()
604 device_t lptdev = sc->sc_dev; in lptclose() local
605 device_t ppbus = device_get_parent(lptdev); in lptclose()
612 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptclose()
621 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lpclose", in lptclose()
632 lpt_release_ppbus(lptdev); in lptclose()
712 device_t lptdev = sc->sc_dev; in lptread() local
713 device_t ppbus = device_get_parent(lptdev); in lptread()
765 device_t lptdev = sc->sc_dev; in lptwrite() local
766 device_t ppbus = device_get_parent(lptdev); in lptwrite()
775 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptwrite()
824 if ((err = ppb_sleep(ppbus, lptdev, in lptwrite()
846 lpt_release_ppbus(lptdev); in lptwrite()
862 device_t lptdev = sc->sc_dev; in lptintr() local
863 device_t ppbus = device_get_parent(lptdev); in lptintr()
900 wakeup(lptdev); in lptintr()