Searched refs:hpet (Results 1 - 31 of 31) sorted by relevance

/linux-4.1.27/arch/mips/loongson/loongson-3/
H A Dhpet.c8 #include <asm/hpet.h>
166 .name = "hpet",
170 * hpet address assignation and irq setting should be done in bios.
186 /* set hpet base address */ hpet_setup()
206 cd->name = "hpet"; setup_hpet_timer()
219 pr_info("hpet clock event device register\n"); setup_hpet_timer()
238 .name = "hpet",
239 /* mips clocksource rating is less than 300, so hpet is better. */
/linux-4.1.27/include/uapi/linux/
H A Dhpet.h23 #define MAX_HPET_TBS 8 /* maximum hpet timer blocks */
/linux-4.1.27/drivers/char/
H A Dhpet.c38 #include <linux/hpet.h>
79 .name = "hpet",
88 /* A lock for concurrent access by app and isr hpet activity. */
95 struct hpet __iomem *hd_hpet;
109 struct hpet __iomem *hp_hpet;
163 struct hpet __iomem *hpet = devp->hd_hpet; hpet_interrupt() local
168 mc = read_counter(&hpet->hpet_mc); hpet_interrupt()
177 * where t is the interval in hpet ticks for the given freq, hpet_interrupt()
459 struct hpet __iomem *hpet; hpet_ioctl_ieon() local
466 hpet = devp->hd_hpet; hpet_ioctl_ieon()
498 write_counter(read_counter(&hpet->hpet_mc), hpet_ioctl_ieon()
502 writel(isr, &hpet->hpet_isr); hpet_ioctl_ieon()
505 sprintf(devp->hd_name, "hpet%d", (int)(devp - hpetp->hp_dev)); hpet_ioctl_ieon()
509 printk(KERN_ERR "hpet: IRQ %d is not free\n", irq); hpet_ioctl_ieon()
543 m = read_counter(&hpet->hpet_mc); hpet_ioctl_ieon()
552 m = read_counter(&hpet->hpet_mc); hpet_ioctl_ieon()
558 writel(isr, &hpet->hpet_isr); hpet_ioctl_ieon()
582 struct hpet __iomem *hpet; hpet_ioctl_common() local
594 hpet = devp->hd_hpet; hpet_ioctl_common()
757 .procname = "hpet",
790 struct hpet __iomem *hpet; __hpet_calibrate() local
801 hpet = hpetp->hp_hpet; __hpet_calibrate()
809 start = read_counter(&hpet->hpet_mc); __hpet_calibrate()
812 m = read_counter(&hpet->hpet_mc); __hpet_calibrate()
848 struct hpet __iomem *hpet; hpet_alloc() local
856 * If platform dependent code has allocated the hpet that hpet_alloc()
882 hpet = hpetp->hp_hpet; hpet_alloc()
884 cap = readq(&hpet->hpet_cap); hpet_alloc()
889 printk(KERN_WARNING "hpet: number irqs doesn't agree" hpet_alloc()
909 printk(KERN_INFO "hpet%d: at MMIO 0x%lx, IRQ%s", hpet_alloc()
919 "hpet%u: %u comparators, %d-bit %u.%06u MHz counter\n", hpet_alloc()
924 mcfg = readq(&hpet->hpet_config); hpet_alloc()
926 write_counter(0L, &hpet->hpet_mc); hpet_alloc()
928 writeq(mcfg, &hpet->hpet_config); hpet_alloc()
934 timer = &hpet->hpet_timers[devp - hpetp->hp_dev]; hpet_alloc()
937 devp->hd_hpet = hpet; hpet_alloc()
1059 .name = "hpet",
1067 static struct miscdevice hpet_misc = { HPET_MINOR, "hpet", &hpet_fops };
H A DMakefile28 obj-$(CONFIG_HPET) += hpet.o
H A Drtc.c88 #include <asm/hpet.h>
/linux-4.1.27/arch/x86/kernel/
H A Di8253.c10 #include <asm/hpet.h>
H A Dhpet.c9 #include <linux/hpet.h>
16 #include <asm/hpet.h>
109 __setup("hpet=", hpet_setup);
129 * is_hpet_enabled - check whether the hpet timer interrupt is enabled
140 printk(KERN_INFO "hpet: %s(%d):\n", function, line); _hpet_print_config()
144 printk(KERN_INFO "hpet: ID: 0x%x, PERIOD: 0x%x\n", l, h); _hpet_print_config()
147 printk(KERN_INFO "hpet: CFG: 0x%x, STATUS: 0x%x\n", l, h); _hpet_print_config()
150 printk(KERN_INFO "hpet: COUNTER_l: 0x%x, COUNTER_h: 0x%x\n", l, h); _hpet_print_config()
155 printk(KERN_INFO "hpet: T%d: CFG_l: 0x%x, CFG_h: 0x%x\n", _hpet_print_config()
159 printk(KERN_INFO "hpet: T%d: CMP_l: 0x%x, CMP_h: 0x%x\n", _hpet_print_config()
163 printk(KERN_INFO "hpet: T%d ROUTE_l: 0x%x, ROUTE_h: 0x%x\n", _hpet_print_config()
175 * When the hpet driver (/dev/hpet) is enabled, we need to reserve
184 struct hpet __iomem *hpet = hpet_virt_address; hpet_reserve_platform_timers() local
185 struct hpet_timer __iomem *timer = &hpet->hpet_timers[2]; hpet_reserve_platform_timers()
193 hd.hd_address = hpet; hpet_reserve_platform_timers()
224 * Common hpet info hpet_reserve_platform_timers()
234 * The hpet clock event device hpet_reserve_platform_timers()
237 .name = "hpet", hpet_reserve_platform_timers()
298 * Start hpet with the boot cpu mask and make it hpet_legacy_clockevent_register()
305 printk(KERN_DEBUG "hpet clockevent registered\n"); hpet_legacy_clockevent_register()
528 printk(KERN_DEBUG "hpet: %s irq %d for MSI\n", hpet_setup_irq()
566 /* Reserve at least one timer for userspace (/dev/hpet) */
609 sprintf(hdev->name, "hpet%d", i); hpet_msi_capability_lookup()
745 .name = "hpet",
762 /* Verify whether hpet counter works */ hpet_clocksource_register()
1017 * Check that the hpet counter c1 is ahead of the c2
H A Dtsc.c16 #include <asm/hpet.h>
370 static u64 tsc_read_refs(u64 *p, int hpet) tsc_read_refs() argument
377 if (hpet) tsc_read_refs()
652 int hpet = is_hpet_enabled(), i, loopmin; native_calibrate_tsc() local
702 * hpet/pmtimer when available. Then do the PIT native_calibrate_tsc()
707 tsc1 = tsc_read_refs(&ref1, hpet); native_calibrate_tsc()
709 tsc2 = tsc_read_refs(&ref2, hpet); native_calibrate_tsc()
715 /* hpet or pmtimer available ? */ native_calibrate_tsc()
724 if (hpet) native_calibrate_tsc()
743 hpet ? "HPET" : "PMTIMER", i + 1); native_calibrate_tsc()
768 if (!hpet && !ref1 && !ref2) { native_calibrate_tsc()
781 hpet ? "HPET" : "PMTIMER"); native_calibrate_tsc()
787 if (!hpet && !ref1 && !ref2) { native_calibrate_tsc()
804 hpet ? "HPET" : "PMTIMER", tsc_pit_min, tsc_ref_min); native_calibrate_tsc()
1076 static int hpet; tsc_refine_calibration_work() local
1091 * Only set hpet once, to avoid mixing hardware tsc_refine_calibration_work()
1092 * if the hpet becomes enabled later. tsc_refine_calibration_work()
1094 hpet = is_hpet_enabled(); tsc_refine_calibration_work()
1096 tsc_start = tsc_read_refs(&ref_start, hpet); tsc_refine_calibration_work()
1100 tsc_stop = tsc_read_refs(&ref_stop, hpet); tsc_refine_calibration_work()
1102 /* hpet or pmtimer available ? */ tsc_refine_calibration_work()
1112 if (hpet) tsc_refine_calibration_work()
1160 * We use device_initcall here, to ensure we run after the hpet
H A Dtime.c22 #include <asm/hpet.h>
H A Ddevicetree.c20 #include <asm/hpet.h>
126 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); dtb_setup_hpet()
H A Dx86_init.c22 #include <asm/hpet.h>
H A DMakefile86 obj-$(CONFIG_HPET_TIMER) += hpet.o
H A Dquirks.c7 #include <asm/hpet.h>
181 "You might try hpet=force boot option\n"); hpet_print_force_info()
H A Dearly-quirks.c20 #include <asm/hpet.h>
587 pr_info("x86/hpet: Will disable the HPET for this platform because it's not reliable\n"); force_disable_hpet()
H A Dcrash.c32 #include <asm/hpet.h>
H A Dreboot.c17 #include <asm/hpet.h>
/linux-4.1.27/arch/mips/loongson/common/
H A Dtime.c15 #include <asm/hpet.h>
/linux-4.1.27/include/linux/
H A Dhpet.h4 #include <uapi/linux/hpet.h>
11 struct hpet { struct
/linux-4.1.27/Documentation/timers/
H A Dhpet_example.c15 #include <linux/hpet.h>
58 fprintf(stderr, "-hpet: requires command\n"); main()
67 fprintf(stderr, "-hpet: executing %s\n", main()
/linux-4.1.27/arch/x86/include/asm/
H A Dhpet.h63 /* hpet memory map physical address */
/linux-4.1.27/arch/x86/kernel/apic/
H A Dmsi.c15 #include <linux/hpet.h>
18 #include <asm/hpet.h>
H A Dapic.c50 #include <asm/hpet.h>
/linux-4.1.27/drivers/iommu/
H A Dirq_remapping.c15 #include <asm/hpet.h>
H A Dintel_irq_remapping.c6 #include <linux/hpet.h>
H A Damd_iommu_init.c217 /* Early ioapic and hpet maps from kernel command line */
/linux-4.1.27/arch/x86/vdso/
H A Dvclock_gettime.c16 #include <asm/hpet.h>
H A Dvma.c20 #include <asm/hpet.h>
/linux-4.1.27/drivers/rtc/
H A Drtc-cmos.c98 #include <asm/hpet.h>
810 is_hpet_enabled() ? ", hpet irqs" : ""); cmos_do_probe()
/linux-4.1.27/arch/x86/kvm/
H A Dtrace.h795 {VCLOCK_HPET, "hpet"} \
/linux-4.1.27/arch/x86/pci/
H A Dfixup.c9 #include <asm/hpet.h>
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dboot.c862 #include <asm/hpet.h>
899 "try hpet=force on the kernel command line to " acpi_parse_hpet()

Completed in 587 milliseconds