Lines Matching refs:cfg

233 	u32 cfg = hpet_readl(HPET_CFG);  in hpet_stop_counter()  local
234 cfg &= ~HPET_CFG_ENABLE; in hpet_stop_counter()
235 hpet_writel(cfg, HPET_CFG); in hpet_stop_counter()
246 unsigned int cfg = hpet_readl(HPET_CFG); in hpet_start_counter() local
247 cfg |= HPET_CFG_ENABLE; in hpet_start_counter()
248 hpet_writel(cfg, HPET_CFG); in hpet_start_counter()
271 unsigned int cfg = hpet_readl(HPET_CFG); in hpet_enable_legacy_int() local
273 cfg |= HPET_CFG_LEGACY; in hpet_enable_legacy_int()
274 hpet_writel(cfg, HPET_CFG); in hpet_enable_legacy_int()
296 unsigned int cfg, cmp, now; in hpet_set_periodic() local
304 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_periodic()
305 cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC | HPET_TN_SETVAL | in hpet_set_periodic()
307 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_set_periodic()
326 unsigned int cfg; in hpet_set_oneshot() local
328 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_oneshot()
329 cfg &= ~HPET_TN_PERIODIC; in hpet_set_oneshot()
330 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_set_oneshot()
331 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_set_oneshot()
338 unsigned int cfg; in hpet_shutdown() local
340 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_shutdown()
341 cfg &= ~HPET_TN_ENABLE; in hpet_shutdown()
342 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_shutdown()
455 unsigned int cfg; in hpet_msi_unmask() local
458 cfg = hpet_readl(HPET_Tn_CFG(hdev->num)); in hpet_msi_unmask()
459 cfg |= HPET_TN_ENABLE | HPET_TN_FSB; in hpet_msi_unmask()
460 hpet_writel(cfg, HPET_Tn_CFG(hdev->num)); in hpet_msi_unmask()
466 unsigned int cfg; in hpet_msi_mask() local
469 cfg = hpet_readl(HPET_Tn_CFG(hdev->num)); in hpet_msi_mask()
470 cfg &= ~(HPET_TN_ENABLE | HPET_TN_FSB); in hpet_msi_mask()
471 hpet_writel(cfg, HPET_Tn_CFG(hdev->num)); in hpet_msi_mask()
624 unsigned int cfg = hpet_readl(HPET_Tn_CFG(i)); in hpet_msi_capability_lookup() local
627 if (!(cfg & HPET_TN_FSB_CAP)) in hpet_msi_capability_lookup()
631 if (cfg & HPET_TN_PERIODIC_CAP) in hpet_msi_capability_lookup()
818 u32 hpet_period, cfg, id; in hpet_enable() local
883 cfg = hpet_readl(HPET_CFG); in hpet_enable()
887 *hpet_boot_cfg = cfg; in hpet_enable()
890 cfg &= ~(HPET_CFG_ENABLE | HPET_CFG_LEGACY); in hpet_enable()
891 hpet_writel(cfg, HPET_CFG); in hpet_enable()
892 if (cfg) in hpet_enable()
894 cfg); in hpet_enable()
897 cfg = hpet_readl(HPET_Tn_CFG(i)); in hpet_enable()
899 hpet_boot_cfg[i + 1] = cfg; in hpet_enable()
900 cfg &= ~(HPET_TN_ENABLE | HPET_TN_LEVEL | HPET_TN_FSB); in hpet_enable()
901 hpet_writel(cfg, HPET_Tn_CFG(i)); in hpet_enable()
902 cfg &= ~(HPET_TN_PERIODIC | HPET_TN_PERIODIC_CAP in hpet_enable()
905 if (cfg) in hpet_enable()
907 cfg, i); in hpet_enable()
980 unsigned int cfg = hpet_readl(HPET_CFG), id, last; in hpet_disable() local
983 cfg = *hpet_boot_cfg; in hpet_disable()
985 cfg &= ~HPET_CFG_LEGACY; in hpet_disable()
988 cfg &= ~HPET_CFG_ENABLE; in hpet_disable()
989 hpet_writel(cfg, HPET_CFG); in hpet_disable()
1086 unsigned int cfg, cnt, delta; in hpet_rtc_timer_init() local
1111 cfg = hpet_readl(HPET_T1_CFG); in hpet_rtc_timer_init()
1112 cfg &= ~HPET_TN_PERIODIC; in hpet_rtc_timer_init()
1113 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_rtc_timer_init()
1114 hpet_writel(cfg, HPET_T1_CFG); in hpet_rtc_timer_init()
1124 u32 cfg = hpet_readl(HPET_T1_CFG); in hpet_disable_rtc_channel() local
1125 cfg &= ~HPET_TN_ENABLE; in hpet_disable_rtc_channel()
1126 hpet_writel(cfg, HPET_T1_CFG); in hpet_disable_rtc_channel()