Lines Matching +full:interrupt +full:- +full:counter
1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include <linux/interrupt.h>
36 /* disable counter */
43 /* enable counter, comparator2 to event mode, 14.318MHz clock */
55 outw(0, MFGPT0_CNT); /* set counter to 0 */ in mfgpt_timer_set_periodic()
113 cd->cpumask = cpumask_of(cpu); in setup_mfgpt0_timer()
115 cd->max_delta_ns = clockevent_delta2ns(0xffff, cd); in setup_mfgpt0_timer()
116 cd->max_delta_ticks = 0xffff; in setup_mfgpt0_timer()
117 cd->min_delta_ns = clockevent_delta2ns(0xf, cd); in setup_mfgpt0_timer()
118 cd->min_delta_ticks = 0xf; in setup_mfgpt0_timer()
120 /* Enable MFGPT0 Comparator 2 Output to the Interrupt Mapper */ in setup_mfgpt0_timer()
123 /* Enable Interrupt Gate 5 */ in setup_mfgpt0_timer()
133 pr_err("Failed to register timer interrupt\n"); in setup_mfgpt0_timer()
139 * running counter:
159 * the counter may underflow between the last point where in mfgpt_read()
171 * The timer counter underflows, but we haven't handled the resulting in mfgpt_read()
172 * interrupt and incremented jiffies yet. in mfgpt_read()