Lines Matching refs:hpet
93 struct hpet __iomem *hd_hpet;
107 struct hpet __iomem *hp_hpet;
145 struct hpet __iomem *hpet = devp->hd_hpet; in hpet_interrupt() local
150 mc = read_counter(&hpet->hpet_mc); in hpet_interrupt()
453 struct hpet __iomem *hpet; in hpet_ioctl_ieon() local
460 hpet = devp->hd_hpet; in hpet_ioctl_ieon()
492 write_counter(read_counter(&hpet->hpet_mc), in hpet_ioctl_ieon()
496 writel(isr, &hpet->hpet_isr); in hpet_ioctl_ieon()
537 m = read_counter(&hpet->hpet_mc); in hpet_ioctl_ieon()
546 m = read_counter(&hpet->hpet_mc); in hpet_ioctl_ieon()
552 writel(isr, &hpet->hpet_isr); in hpet_ioctl_ieon()
773 struct hpet __iomem *hpet; in __hpet_calibrate() local
784 hpet = hpetp->hp_hpet; in __hpet_calibrate()
792 start = read_counter(&hpet->hpet_mc); in __hpet_calibrate()
795 m = read_counter(&hpet->hpet_mc); in __hpet_calibrate()
830 struct hpet __iomem *hpet; in hpet_alloc() local
862 hpet = hpetp->hp_hpet; in hpet_alloc()
864 cap = readq(&hpet->hpet_cap); in hpet_alloc()
904 mcfg = readq(&hpet->hpet_config); in hpet_alloc()
906 write_counter(0L, &hpet->hpet_mc); in hpet_alloc()
908 writeq(mcfg, &hpet->hpet_config); in hpet_alloc()
914 timer = &hpet->hpet_timers[devp - hpetp->hp_dev]; in hpet_alloc()
917 devp->hd_hpet = hpet; in hpet_alloc()