Lines Matching refs:wdogcfg
51 if (FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, EN_ALWAYS) == 0 && in sifive_e_aon_wdt_update_wdogcount()
52 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, EN_CORE_AWAKE) == 0) { in sifive_e_aon_wdt_update_wdogcount()
71 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, SCALE)); in sifive_e_aon_wdt_update_state()
75 if (FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, ZEROCMP) == 1) { in sifive_e_aon_wdt_update_state()
82 if (FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, RSTEN) == 1) { in sifive_e_aon_wdt_update_state()
85 r->wdogcfg = FIELD_DP32(r->wdogcfg, AON_WDT_WDOGCFG, IP0, 1); in sifive_e_aon_wdt_update_state()
88 qemu_set_irq(r->wdog_irq, FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, IP0)); in sifive_e_aon_wdt_update_state()
91 (FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, EN_ALWAYS) == 1 || in sifive_e_aon_wdt_update_state()
92 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, EN_CORE_AWAKE) == 1)) { in sifive_e_aon_wdt_update_state()
95 FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, SCALE), in sifive_e_aon_wdt_update_state()
119 return r->wdogcfg; in sifive_e_aon_wdt_read()
126 FIELD_EX32(r->wdogcfg, in sifive_e_aon_wdt_read()
162 old_en_always = FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, EN_ALWAYS); in sifive_e_aon_wdt_write()
163 old_en_core_awake = FIELD_EX32(r->wdogcfg, AON_WDT_WDOGCFG, in sifive_e_aon_wdt_write()
177 r->wdogcfg = value; in sifive_e_aon_wdt_write()
268 r->wdogcfg = FIELD_DP32(r->wdogcfg, AON_WDT_WDOGCFG, RSTEN, 0); in sifive_e_aon_reset()
269 r->wdogcfg = FIELD_DP32(r->wdogcfg, AON_WDT_WDOGCFG, EN_ALWAYS, 0); in sifive_e_aon_reset()
270 r->wdogcfg = FIELD_DP32(r->wdogcfg, AON_WDT_WDOGCFG, EN_CORE_AWAKE, 0); in sifive_e_aon_reset()