Home
last modified time | relevance | path

Searched refs:deactivating_bit (Results 1 – 2 of 2) sorted by relevance

/qemu/hw/timer/
H A Dhpet.c149 static int deactivating_bit(uint64_t old, uint64_t new, uint64_t mask) in deactivating_bit() function
508 } else if (deactivating_bit(old_val, new_val, HPET_CFG_ENABLE)) { in hpet_ram_write()
521 } else if (deactivating_bit(old_val, new_val, HPET_CFG_LEGACY)) { in hpet_ram_write()
561 if (deactivating_bit(old_val, new_val, HPET_TN_TYPE_LEVEL)) { in hpet_ram_write()
/qemu/rust/hw/timer/hpet/src/
H A Ddevice.rs176 const fn deactivating_bit(old: u64, new: u64, shift: usize) -> bool { in deactivating_bit() function
409 if deactivating_bit(old_val, new_val, HPET_TN_CFG_INT_TYPE_SHIFT) { in set_tn_cfg_reg()
649 } else if deactivating_bit(old_val, new_val, HPET_CFG_ENABLE_SHIFT) { in set_cfg_reg()
663 } else if deactivating_bit(old_val, new_val, HPET_CFG_LEG_RT_SHIFT) { in set_cfg_reg()