Lines Matching refs:hpet_base

36 struct hpet_base {  struct
62 static struct hpet_base hpet_base; variable
196 hd.hd_nirqs = hpet_base.nr_channels; in hpet_reserve_platform_timers()
206 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_reserve_platform_timers()
207 struct hpet_channel *hc = hpet_base.channels + i; in hpet_reserve_platform_timers()
231 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_select_device_channel()
232 struct hpet_channel *hc = hpet_base.channels + i; in hpet_select_device_channel()
672 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_get_unused_clockevent()
673 struct hpet_channel *hc = hpet_base.channels + i; in hpet_get_unused_clockevent()
708 hpet_base.nr_clockevents = 0; in hpet_select_clockevents()
720 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_select_clockevents()
721 struct hpet_channel *hc = hpet_base.channels + i; in hpet_select_clockevents()
740 if (++hpet_base.nr_clockevents == num_possible_cpus()) in hpet_select_clockevents()
745 hpet_base.nr_channels, hpet_base.nr_clockevents); in hpet_select_clockevents()
1055 hpet_base.channels = hc; in hpet_enable()
1056 hpet_base.nr_channels = channels; in hpet_enable()
1060 hpet_base.boot_cfg = cfg; in hpet_enable()
1099 hpet_legacy_clockevent_register(&hpet_base.channels[0]); in hpet_enable()
1100 hpet_base.channels[0].mode = HPET_MODE_LEGACY; in hpet_enable()
1102 hpet_base.channels[1].mode = HPET_MODE_LEGACY; in hpet_enable()
1108 kfree(hpet_base.channels); in hpet_enable()
1109 hpet_base.channels = NULL; in hpet_enable()
1110 hpet_base.nr_channels = 0; in hpet_enable()
1150 if (!hpet_base.nr_clockevents) in hpet_late_init()
1178 cfg = hpet_base.boot_cfg; in hpet_disable()
1183 for (i = 0; i < hpet_base.nr_channels; i++) in hpet_disable()
1184 hpet_writel(hpet_base.channels[i].boot_cfg, HPET_Tn_CFG(i)); in hpet_disable()
1187 if (hpet_base.boot_cfg & HPET_CFG_ENABLE) in hpet_disable()
1188 hpet_writel(hpet_base.boot_cfg, HPET_CFG); in hpet_disable()
1284 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_rtc_timer_init()
1382 struct clock_event_device *evt = &hpet_base.channels[0].evt; in hpet_set_periodic_freq()