Lines Matching refs:cfg

236     u32 cfg;  in hpet_msi_unmask()  local
239 cfg = hpet_read32(HPET_Tn_CFG(ch->idx)); in hpet_msi_unmask()
240 cfg |= HPET_TN_ENABLE; in hpet_msi_unmask()
241 hpet_write32(cfg, HPET_Tn_CFG(ch->idx)); in hpet_msi_unmask()
247 u32 cfg; in hpet_msi_mask() local
250 cfg = hpet_read32(HPET_Tn_CFG(ch->idx)); in hpet_msi_mask()
251 cfg &= ~HPET_TN_ENABLE; in hpet_msi_mask()
252 hpet_write32(cfg, HPET_Tn_CFG(ch->idx)); in hpet_msi_mask()
340 u32 cfg = hpet_read32(HPET_Tn_CFG(ch->idx)); in hpet_setup_msi_irq() local
352 cfg &= ~(HPET_TN_LEVEL | HPET_TN_PERIODIC); in hpet_setup_msi_irq()
353 cfg |= HPET_TN_FSB | HPET_TN_32BIT; in hpet_setup_msi_irq()
354 hpet_write32(cfg, HPET_Tn_CFG(ch->idx)); in hpet_setup_msi_irq()
409 u32 cfg = hpet_read32(HPET_Tn_CFG(i)); in hpet_fsb_cap_lookup() local
412 if ( !(cfg & HPET_TN_FSB_CAP) ) in hpet_fsb_cap_lookup()
554 u32 hpet_id, cfg; in hpet_broadcast_init() local
560 cfg = hpet_read32(HPET_CFG); in hpet_broadcast_init()
566 cfg &= ~HPET_CFG_LEGACY; in hpet_broadcast_init()
582 cfg |= HPET_CFG_LEGACY; in hpet_broadcast_init()
589 hpet_write32(cfg, HPET_CFG); in hpet_broadcast_init()
593 if ( i == 0 && (cfg & HPET_CFG_LEGACY) ) in hpet_broadcast_init()
596 cfg = hpet_read32(HPET_Tn_CFG(0)); in hpet_broadcast_init()
597 cfg &= ~(HPET_TN_LEVEL | HPET_TN_PERIODIC); in hpet_broadcast_init()
598 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_broadcast_init()
599 hpet_write32(cfg, HPET_Tn_CFG(0)); in hpet_broadcast_init()
624 u32 cfg; in hpet_broadcast_resume() local
632 cfg = hpet_read32(HPET_CFG); in hpet_broadcast_resume()
637 cfg &= ~HPET_CFG_LEGACY; in hpet_broadcast_resume()
645 cfg |= HPET_CFG_LEGACY; in hpet_broadcast_resume()
649 hpet_write32(cfg, HPET_CFG); in hpet_broadcast_resume()
657 cfg = hpet_read32(HPET_Tn_CFG(hpet_events[i].idx)); in hpet_broadcast_resume()
658 cfg &= ~(HPET_TN_LEVEL | HPET_TN_PERIODIC); in hpet_broadcast_resume()
659 cfg |= HPET_TN_ENABLE | HPET_TN_32BIT; in hpet_broadcast_resume()
661 cfg |= HPET_TN_FSB; in hpet_broadcast_resume()
662 hpet_write32(cfg, HPET_Tn_CFG(hpet_events[i].idx)); in hpet_broadcast_resume()
670 u32 cfg; in hpet_disable_legacy_broadcast() local
681 cfg = hpet_read32(HPET_Tn_CFG(0)); in hpet_disable_legacy_broadcast()
682 cfg &= ~HPET_TN_ENABLE; in hpet_disable_legacy_broadcast()
683 hpet_write32(cfg, HPET_Tn_CFG(0)); in hpet_disable_legacy_broadcast()
686 cfg = hpet_read32(HPET_CFG); in hpet_disable_legacy_broadcast()
687 cfg &= ~HPET_CFG_LEGACY; in hpet_disable_legacy_broadcast()
688 hpet_write32(cfg, HPET_CFG); in hpet_disable_legacy_broadcast()
811 u32 hpet_id, cfg; in hpet_resume() local
818 cfg = hpet_read32(HPET_CFG); in hpet_resume()
820 *boot_cfg = cfg; in hpet_resume()
821 cfg &= ~(HPET_CFG_ENABLE | HPET_CFG_LEGACY); in hpet_resume()
822 if ( cfg ) in hpet_resume()
826 cfg); in hpet_resume()
827 cfg = 0; in hpet_resume()
829 hpet_write32(cfg, HPET_CFG); in hpet_resume()
835 cfg = hpet_read32(HPET_Tn_CFG(i)); in hpet_resume()
837 boot_cfg[i + 1] = cfg; in hpet_resume()
838 cfg &= ~HPET_TN_ENABLE; in hpet_resume()
839 if ( cfg & HPET_TN_RESERVED ) in hpet_resume()
843 cfg & HPET_TN_RESERVED, i); in hpet_resume()
844 cfg &= ~HPET_TN_RESERVED; in hpet_resume()
846 hpet_write32(cfg, HPET_Tn_CFG(i)); in hpet_resume()
849 cfg = hpet_read32(HPET_CFG); in hpet_resume()
850 cfg |= HPET_CFG_ENABLE; in hpet_resume()
851 hpet_write32(cfg, HPET_CFG); in hpet_resume()