Lines Matching refs:lptdev
484 device_t lptdev; in lptopen() local
490 lptdev = sc->sc_dev; in lptopen()
491 ppbus = device_get_parent(lptdev); in lptopen()
495 lprintf(("%s: still open %x\n", device_get_nameunit(lptdev), in lptopen()
512 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptopen()
519 lprintf(("%s flags 0x%x\n", device_get_nameunit(lptdev), in lptopen()
547 lpt_release_ppbus(lptdev); in lptopen()
554 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lptinit", in lptopen()
556 lpt_release_ppbus(lptdev); in lptopen()
590 lpt_release_ppbus(lptdev); in lptopen()
607 device_t lptdev = sc->sc_dev; in lptclose() local
608 device_t ppbus = device_get_parent(lptdev); in lptclose()
615 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptclose()
626 if (ppb_sleep(ppbus, lptdev, LPPRI | PCATCH, "lpclose", in lptclose()
637 lpt_release_ppbus(lptdev); in lptclose()
717 device_t lptdev = sc->sc_dev; in lptread() local
718 device_t ppbus = device_get_parent(lptdev); in lptread()
770 device_t lptdev = sc->sc_dev; in lptwrite() local
771 device_t ppbus = device_get_parent(lptdev); in lptwrite()
780 if ((err = lpt_request_ppbus(lptdev, PPB_WAIT|PPB_INTR)) != 0) { in lptwrite()
829 if ((err = ppb_sleep(ppbus, lptdev, in lptwrite()
851 lpt_release_ppbus(lptdev); in lptwrite()
867 device_t lptdev = sc->sc_dev; in lptintr() local
868 device_t ppbus = device_get_parent(lptdev); in lptintr()
905 wakeup(lptdev); in lptintr()