• Home
  • Raw
  • Download

Lines Matching full:hpet

36 #include <linux/hpet.h>
44 * See HPET spec revision 1.
49 #define HPET_RANGE_SIZE 1024 /* from HPET spec */
77 .name = "hpet",
86 /* A lock for concurrent access by app and isr hpet activity. */
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()
159 * where t is the interval in hpet ticks for the given freq, in hpet_interrupt()
359 pr_info("HPET mmap %s\n", hpet_mmap_enabled ? "enabled" : "disabled"); in hpet_mmap_enable()
441 struct hpet __iomem *hpet; in hpet_ioctl_ieon() local
448 hpet = devp->hd_hpet; in hpet_ioctl_ieon()
480 write_counter(read_counter(&hpet->hpet_mc), in hpet_ioctl_ieon()
484 writel(isr, &hpet->hpet_isr); in hpet_ioctl_ieon()
487 sprintf(devp->hd_name, "hpet%d", (int)(devp - hpetp->hp_dev)); in hpet_ioctl_ieon()
491 printk(KERN_ERR "hpet: IRQ %d is not free\n", irq); in hpet_ioctl_ieon()
525 m = read_counter(&hpet->hpet_mc); in hpet_ioctl_ieon()
534 m = read_counter(&hpet->hpet_mc); in hpet_ioctl_ieon()
540 writel(isr, &hpet->hpet_isr); in hpet_ioctl_ieon()
749 struct hpet __iomem *hpet; in __hpet_calibrate() local
760 hpet = hpetp->hp_hpet; in __hpet_calibrate()
768 start = read_counter(&hpet->hpet_mc); in __hpet_calibrate()
771 m = read_counter(&hpet->hpet_mc); in __hpet_calibrate()
806 struct hpet __iomem *hpet; in hpet_alloc() local
814 * If platform dependent code has allocated the hpet that in hpet_alloc()
818 printk(KERN_DEBUG "%s: duplicate HPET ignored\n", in hpet_alloc()
838 hpet = hpetp->hp_hpet; in hpet_alloc()
840 cap = readq(&hpet->hpet_cap); in hpet_alloc()
845 printk(KERN_WARNING "hpet: number irqs doesn't agree" in hpet_alloc()
865 printk(KERN_INFO "hpet%d: at MMIO 0x%lx, IRQ%s", in hpet_alloc()
875 "hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n", in hpet_alloc()
880 mcfg = readq(&hpet->hpet_config); in hpet_alloc()
882 write_counter(0L, &hpet->hpet_mc); in hpet_alloc()
884 writeq(mcfg, &hpet->hpet_config); in hpet_alloc()
890 timer = &hpet->hpet_timers[devp - hpetp->hp_dev]; in hpet_alloc()
893 devp->hd_hpet = hpet; in hpet_alloc()
1013 .name = "hpet",
1020 static struct miscdevice hpet_misc = { HPET_MINOR, "hpet", &hpet_fops };
1030 sysctl_header = register_sysctl("dev/hpet", hpet_table); in hpet_init()