/linux-4.1.27/arch/mips/loongson/loongson-3/ |
H A D | hpet.c | 8 #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 D | hpet.h | 23 #define MAX_HPET_TBS 8 /* maximum hpet timer blocks */
|
/linux-4.1.27/drivers/char/ |
H A D | hpet.c | 38 #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 D | Makefile | 28 obj-$(CONFIG_HPET) += hpet.o
|
H A D | rtc.c | 88 #include <asm/hpet.h>
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | i8253.c | 10 #include <asm/hpet.h>
|
H A D | hpet.c | 9 #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 D | tsc.c | 16 #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 D | time.c | 22 #include <asm/hpet.h>
|
H A D | devicetree.c | 20 #include <asm/hpet.h> 126 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); dtb_setup_hpet()
|
H A D | x86_init.c | 22 #include <asm/hpet.h>
|
H A D | Makefile | 86 obj-$(CONFIG_HPET_TIMER) += hpet.o
|
H A D | quirks.c | 7 #include <asm/hpet.h> 181 "You might try hpet=force boot option\n"); hpet_print_force_info()
|
H A D | early-quirks.c | 20 #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 D | crash.c | 32 #include <asm/hpet.h>
|
H A D | reboot.c | 17 #include <asm/hpet.h>
|
/linux-4.1.27/arch/mips/loongson/common/ |
H A D | time.c | 15 #include <asm/hpet.h>
|
/linux-4.1.27/include/linux/ |
H A D | hpet.h | 4 #include <uapi/linux/hpet.h> 11 struct hpet { struct
|
/linux-4.1.27/Documentation/timers/ |
H A D | hpet_example.c | 15 #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 D | hpet.h | 63 /* hpet memory map physical address */
|
/linux-4.1.27/arch/x86/kernel/apic/ |
H A D | msi.c | 15 #include <linux/hpet.h> 18 #include <asm/hpet.h>
|
H A D | apic.c | 50 #include <asm/hpet.h>
|
/linux-4.1.27/drivers/iommu/ |
H A D | irq_remapping.c | 15 #include <asm/hpet.h>
|
H A D | intel_irq_remapping.c | 6 #include <linux/hpet.h>
|
H A D | amd_iommu_init.c | 217 /* Early ioapic and hpet maps from kernel command line */
|
/linux-4.1.27/arch/x86/vdso/ |
H A D | vclock_gettime.c | 16 #include <asm/hpet.h>
|
H A D | vma.c | 20 #include <asm/hpet.h>
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-cmos.c | 98 #include <asm/hpet.h> 810 is_hpet_enabled() ? ", hpet irqs" : ""); cmos_do_probe()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | trace.h | 795 {VCLOCK_HPET, "hpet"} \
|
/linux-4.1.27/arch/x86/pci/ |
H A D | fixup.c | 9 #include <asm/hpet.h>
|
/linux-4.1.27/arch/x86/kernel/acpi/ |
H A D | boot.c | 862 #include <asm/hpet.h> 899 "try hpet=force on the kernel command line to " acpi_parse_hpet()
|