Lines Matching refs:lptdev
490 device_t lptdev; in lptopen() local
496 lptdev = sc->sc_dev; in lptopen()
497 ppbus = device_get_parent(lptdev); in lptopen()
501 lprintf(("%s: still open %x\n", device_get_nameunit(lptdev), in lptopen()
518 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptopen()
525 lprintf(("%s flags 0x%x\n", device_get_nameunit(lptdev), in lptopen()
553 lpt_release_ppbus(lptdev); in lptopen()
560 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lptinit", in lptopen()
562 lpt_release_ppbus(lptdev); in lptopen()
596 lpt_release_ppbus(lptdev); in lptopen()
613 device_t lptdev = sc->sc_dev; in lptclose() local
614 device_t ppbus = device_get_parent(lptdev); in lptclose()
621 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptclose()
632 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lpclose", in lptclose()
643 lpt_release_ppbus(lptdev); in lptclose()
724 device_t lptdev = sc->sc_dev; in lptread() local
725 device_t ppbus = device_get_parent(lptdev); in lptread()
777 device_t lptdev = sc->sc_dev; in lptwrite() local
778 device_t ppbus = device_get_parent(lptdev); in lptwrite()
787 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptwrite()
836 if ((err = ppb_sleep(ppbus, lptdev, in lptwrite()
858 lpt_release_ppbus(lptdev); in lptwrite()
874 device_t lptdev = sc->sc_dev; in lptintr() local
875 device_t ppbus = device_get_parent(lptdev); in lptintr()
912 wakeup(lptdev); in lptintr()