Home
last modified time | relevance | path

Searched full:hpet (Results 1 – 25 of 126) sorted by relevance

123456

/kernel/linux/linux-5.10/arch/x86/kernel/
Dhpet.c6 #include <linux/hpet.h>
10 #include <asm/hpet.h>
15 #define pr_fmt(fmt) "hpet: " fmt
48 * HPET address is set in acpi/boot.c, when an ACPI entry exists
98 * HPET command line enable / disable
117 __setup("hpet=", hpet_setup);
132 * is_hpet_enabled - Check whether the legacy HPET timer interrupt is enabled
182 * When the HPET driver (/dev/hpet) is enabled, we need to reserve
233 /* Associate the first unused channel to /dev/hpet */ in hpet_select_device_channel()
246 /* Common HPET functions */
[all …]
Dquirks.c9 #include <asm/hpet.h>
85 /* HPET disabled in HPTC. Trying to enable */ in ich_force_hpet_resume()
93 printk(KERN_DEBUG "Force enabled HPET at resume\n"); in ich_force_hpet_resume()
109 "cannot force enable HPET\n"); in ich_force_enable_hpet()
117 "cannot force enable HPET\n"); in ich_force_enable_hpet()
125 /* HPET is enabled in HPTC. Just not reported by BIOS */ in ich_force_enable_hpet()
128 dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " in ich_force_enable_hpet()
134 /* HPET disabled in HPTC. Trying to enable */ in ich_force_enable_hpet()
149 "Failed to force enable HPET\n"); in ich_force_enable_hpet()
152 dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " in ich_force_enable_hpet()
[all …]
Dtsc.c18 #include <asm/hpet.h>
316 static u64 tsc_read_refs(u64 *p, int hpet) in tsc_read_refs() argument
324 if (hpet) in tsc_read_refs()
336 * Calculate the TSC frequency from HPET reference
713 * calibrate cpu using pit, hpet, and ptimer methods. They are available
721 int hpet = is_hpet_enabled(), i, loopmin; in pit_hpet_ptimer_calibrate_cpu() local
739 * 2) Reference counter. If available we use the HPET or the in pit_hpet_ptimer_calibrate_cpu()
758 * hpet/pmtimer when available. Then do the PIT in pit_hpet_ptimer_calibrate_cpu()
763 tsc1 = tsc_read_refs(&ref1, hpet); in pit_hpet_ptimer_calibrate_cpu()
765 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu()
[all …]
Dtime.c25 #include <asm/hpet.h>
53 * Default timer interrupt handler for PIT/HPET
88 * Before PIT/HPET init, select the interrupt mode. This is required in x86_late_time_init()
97 * After PIT/HPET timers init, set up the final interrupt mode for in x86_late_time_init()
Di8253.c12 #include <asm/hpet.h>
17 * HPET replaces the PIT, when enabled. So we need to know, which of
57 * - when HPET is enabled in init_pit_clocksource()
/kernel/linux/linux-6.6/arch/x86/kernel/
Dhpet.c6 #include <linux/hpet.h>
11 #include <asm/hpet.h>
16 #define pr_fmt(fmt) "hpet: " fmt
49 * HPET address is set in acpi/boot.c, when an ACPI entry exists
99 * HPET command line enable / disable
118 __setup("hpet=", hpet_setup);
133 * is_hpet_enabled - Check whether the legacy HPET timer interrupt is enabled
183 * When the HPET driver (/dev/hpet) is enabled, we need to reserve
234 /* Associate the first unused channel to /dev/hpet */ in hpet_select_device_channel()
247 /* Common HPET functions */
[all …]
Dquirks.c9 #include <asm/hpet.h>
85 /* HPET disabled in HPTC. Trying to enable */ in ich_force_hpet_resume()
93 printk(KERN_DEBUG "Force enabled HPET at resume\n"); in ich_force_hpet_resume()
109 "cannot force enable HPET\n"); in ich_force_enable_hpet()
117 "cannot force enable HPET\n"); in ich_force_enable_hpet()
125 /* HPET is enabled in HPTC. Just not reported by BIOS */ in ich_force_enable_hpet()
128 dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " in ich_force_enable_hpet()
134 /* HPET disabled in HPTC. Trying to enable */ in ich_force_enable_hpet()
149 "Failed to force enable HPET\n"); in ich_force_enable_hpet()
152 dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at " in ich_force_enable_hpet()
[all …]
Dtsc.c19 #include <asm/hpet.h>
353 static u64 tsc_read_refs(u64 *p, int hpet) in tsc_read_refs() argument
361 if (hpet) in tsc_read_refs()
373 * Calculate the TSC frequency from HPET reference
750 * calibrate cpu using pit, hpet, and ptimer methods. They are available
758 int hpet = is_hpet_enabled(), i, loopmin; in pit_hpet_ptimer_calibrate_cpu() local
776 * 2) Reference counter. If available we use the HPET or the in pit_hpet_ptimer_calibrate_cpu()
795 * hpet/pmtimer when available. Then do the PIT in pit_hpet_ptimer_calibrate_cpu()
800 tsc1 = tsc_read_refs(&ref1, hpet); in pit_hpet_ptimer_calibrate_cpu()
802 tsc2 = tsc_read_refs(&ref2, hpet); in pit_hpet_ptimer_calibrate_cpu()
[all …]
Dtime.c25 #include <asm/hpet.h>
53 * Default timer interrupt handler for PIT/HPET
88 * Before PIT/HPET init, select the interrupt mode. This is required in x86_late_time_init()
97 * After PIT/HPET timers init, set up the final interrupt mode for in x86_late_time_init()
Di8253.c12 #include <asm/hpet.h>
17 * HPET replaces the PIT, when enabled. So we need to know, which of
57 * - when HPET is enabled in init_pit_clocksource()
/kernel/linux/linux-5.10/drivers/char/
Dhpet.c35 #include <linux/hpet.h>
43 * See HPET spec revision 1.
48 #define HPET_RANGE_SIZE 1024 /* from HPET spec */
76 .name = "hpet",
85 /* A lock for concurrent access by app and isr hpet activity. */
92 struct hpet __iomem *hd_hpet;
106 struct hpet __iomem *hp_hpet;
160 struct hpet __iomem *hpet = devp->hd_hpet; in hpet_interrupt() local
165 mc = read_counter(&hpet->hpet_mc); in hpet_interrupt()
174 * where t is the interval in hpet ticks for the given freq, in hpet_interrupt()
[all …]
/kernel/linux/linux-6.6/drivers/char/
Dhpet.c36 #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()
[all …]
DKconfig350 config HPET config
351 bool "HPET - High Precision Event Timer" if (X86 || IA64)
355 If you say Y here, you will have a miscdevice named "/dev/hpet/". Each
356 open selects one of the timers supported by the HPET. The timers are
360 bool "Allow mmap of HPET"
362 depends on HPET
365 the HPET registers.
368 bool "Enable HPET MMAP access by default"
372 In some hardware implementations, the page containing HPET
/kernel/linux/linux-6.6/Documentation/timers/
Dhpet.rst5 The High Precision Event Timer (HPET) hardware follows a specification
8 Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")
15 HPET devices can support two interrupt routing modes. In one mode, the
17 role. Many x86 BIOS writers don't route HPET interrupts at all, which
22 The driver supports detection of HPET driver allocation and initialization
23 of the HPET before the driver module_init routine is called. This enables
24 platform code which uses timer 0 or 1 as the main timer to intercept HPET
26 arch/x86/kernel/hpet.c.
/kernel/linux/linux-5.10/Documentation/timers/
Dhpet.rst5 The High Precision Event Timer (HPET) hardware follows a specification
8 Each HPET has one fixed-rate counter (at 10+ MHz, hence "High Precision")
15 HPET devices can support two interrupt routing modes. In one mode, the
17 role. Many x86 BIOS writers don't route HPET interrupts at all, which
22 The driver supports detection of HPET driver allocation and initialization
23 of the HPET before the driver module_init routine is called. This enables
24 platform code which uses timer 0 or 1 as the main timer to intercept HPET
26 arch/x86/kernel/hpet.c.
/kernel/linux/linux-5.10/arch/mips/loongson64/
Dhpet.c9 #include <asm/hpet.h>
191 * hpet address assignation and irq setting should be done in bios.
207 /* set hpet base address */ in hpet_setup()
210 /* enable decoding of access to HPET MMIO*/ in hpet_setup()
213 /* HPET irq enable */ in hpet_setup()
228 cd->name = "hpet"; in setup_hpet_timer()
245 if (request_irq(HPET_T0_IRQ, hpet_irq_handler, flags, "hpet", NULL)) in setup_hpet_timer()
246 pr_err("Failed to request irq %d (hpet)\n", HPET_T0_IRQ); in setup_hpet_timer()
247 pr_info("hpet clock event device register\n"); in setup_hpet_timer()
266 .name = "hpet",
[all …]
/kernel/linux/linux-6.6/arch/mips/loongson64/
Dhpet.c9 #include <asm/hpet.h>
191 * hpet address assignation and irq setting should be done in bios.
207 /* set hpet base address */ in hpet_setup()
210 /* enable decoding of access to HPET MMIO*/ in hpet_setup()
213 /* HPET irq enable */ in hpet_setup()
228 cd->name = "hpet"; in setup_hpet_timer()
245 if (request_irq(HPET_T0_IRQ, hpet_irq_handler, flags, "hpet", NULL)) in setup_hpet_timer()
246 pr_err("Failed to request irq %d (hpet)\n", HPET_T0_IRQ); in setup_hpet_timer()
247 pr_info("hpet clock event device register\n"); in setup_hpet_timer()
266 .name = "hpet",
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhpet.h5 #include <uapi/linux/hpet.h>
9 * Offsets into HPET Registers
12 struct hpet { struct
43 * HPET general capabilities register
56 * HPET general configuration register
/kernel/linux/linux-6.6/include/linux/
Dhpet.h5 #include <uapi/linux/hpet.h>
9 * Offsets into HPET Registers
12 struct hpet { struct
43 * HPET general capabilities register
56 * HPET general configuration register
/kernel/linux/linux-6.6/arch/x86/include/asm/
Dhpet.h56 /* Max HPET Period is 10^8 femto sec as in HPET spec */
59 * Min HPET period is 10^5 femto sec just for safety. If it is less than this,
60 * then 32 bit HPET counter wrapsaround in less than 0.5 sec.
64 /* hpet memory map physical address */
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dhpet.h56 /* Max HPET Period is 10^8 femto sec as in HPET spec */
59 * Min HPET period is 10^5 femto sec just for safety. If it is less than this,
60 * then 32 bit HPET counter wrapsaround in less than 0.5 sec.
64 /* hpet memory map physical address */
/kernel/linux/linux-6.6/arch/mips/include/asm/
Dhpet.h58 /* Max HPET Period is 10^8 femto sec as in HPET spec */
61 * Min HPET period is 10^5 femto sec just for safety. If it is less than this,
62 * then 32 bit HPET counter wrapsaround in less than 0.5 sec.
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dhpet.h58 /* Max HPET Period is 10^8 femto sec as in HPET spec */
61 * Min HPET period is 10^5 femto sec just for safety. If it is less than this,
62 * then 32 bit HPET counter wrapsaround in less than 0.5 sec.
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/x86/
Dtimer.txt4 * High Precision Event Timer (HPET)
6 compatible = "intel,ce4100-hpet";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/x86/
Dtimer.txt4 * High Precision Event Timer (HPET)
6 compatible = "intel,ce4100-hpet";

123456