Lines Matching +full:cs +full:- +full:enable +full:- +full:shift

1 // SPDX-License-Identifier: GPL-2.0
82 /* Do nothing on Loongson-3 */ in hpet_enable_legacy_int()
139 * 0 : non-periodic(oneshot) interrupt in hpet_set_state_oneshot()
168 res = (s32)(cnt - hpet_read(HPET_COUNTER)); in hpet_next_event()
170 return res < HPET_MIN_CYCLES ? -ETIME : 0; in hpet_next_event()
184 cd->event_handler(cd); in hpet_irq_handler()
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()
229 cd->rating = 100; in setup_hpet_timer()
230 cd->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in setup_hpet_timer()
231 cd->set_state_shutdown = hpet_set_state_shutdown; in setup_hpet_timer()
232 cd->set_state_periodic = hpet_set_state_periodic; in setup_hpet_timer()
233 cd->set_state_oneshot = hpet_set_state_oneshot; in setup_hpet_timer()
234 cd->tick_resume = hpet_tick_resume; in setup_hpet_timer()
235 cd->set_next_event = hpet_next_event; in setup_hpet_timer()
236 cd->irq = HPET_T0_IRQ; in setup_hpet_timer()
237 cd->cpumask = cpumask_of(cpu); in setup_hpet_timer()
239 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in setup_hpet_timer()
240 cd->max_delta_ticks = 0x7fffffff; in setup_hpet_timer()
241 cd->min_delta_ns = clockevent_delta2ns(HPET_MIN_PROG_DELTA, cd); in setup_hpet_timer()
242 cd->min_delta_ticks = HPET_MIN_PROG_DELTA; in setup_hpet_timer()
250 static u64 hpet_read_counter(struct clocksource *cs) in hpet_read_counter() argument
255 static void hpet_suspend(struct clocksource *cs) in hpet_suspend() argument
259 static void hpet_resume(struct clocksource *cs) in hpet_resume() argument
276 .shift = 10,
281 csrc_hpet.mult = clocksource_hz2mult(HPET_FREQ, csrc_hpet.shift); in init_hpet_clocksource()