/qemu/hw/timer/ |
H A D | hpet.c | 498 uint64_t old_val, new_val, val, index; in hpet_ram_write() local 502 old_val = hpet_ram_read(opaque, addr, 4); in hpet_ram_write() 518 if (activating_bit(old_val, new_val, HPET_TN_FSB_ENABLE)) { in hpet_ram_write() 521 val = hpet_fixup_reg(new_val, old_val, HPET_TN_CFG_WRITE_MASK); in hpet_ram_write() 527 if (activating_bit(old_val, new_val, HPET_TN_ENABLE) && in hpet_ram_write() 530 } else if (deactivating_bit(old_val, new_val, HPET_TN_ENABLE)) { in hpet_ram_write() 595 val = hpet_fixup_reg(new_val, old_val, HPET_CFG_WRITE_MASK); in hpet_ram_write() 597 if (activating_bit(old_val, new_val, HPET_CFG_ENABLE)) { in hpet_ram_write() 606 } else if (deactivating_bit(old_val, new_val, HPET_CFG_ENABLE)) { in hpet_ram_write() 615 if (activating_bit(old_val, new_val, HPET_CFG_LEGACY)) { in hpet_ram_write() [all …]
|
H A D | exynos4210_mct.c | 1179 uint32_t old_val; in exynos4210_mct_write() local 1247 old_val = s->g_timer.reg.tcon; in exynos4210_mct_write() 1256 if ((value & G_TCON_TIMER_ENABLE) > (old_val & in exynos4210_mct_write() 1260 if ((value & G_TCON_TIMER_ENABLE) < (old_val & in exynos4210_mct_write() 1267 if ((value & G_TCON_COMP_ENABLE(i)) != (old_val & in exynos4210_mct_write() 1319 old_val = s->l_timer[lt_i].reg.tcon; in exynos4210_mct_write() 1327 (old_val & L_TCON_TICK_START)) { in exynos4210_mct_write() 1334 (old_val & L_TCON_INT_START)) { in exynos4210_mct_write() 1341 (old_val & L_TCON_TICK_START)) { in exynos4210_mct_write() 1348 (old_val & L_TCON_INT_START)) { in exynos4210_mct_write() [all …]
|
/qemu/tests/tcg/hexagon/ |
H A D | preg_alias.c | 103 uint32_t old_val = 0x0000001c; in test_packet() local 106 result = old_val; in test_packet() 116 check32(result, old_val); in test_packet()
|
H A D | misc.c | 225 static inline int32_t test_clrtnew(int32_t arg1, int32_t old_val) in test_clrtnew() argument 235 : "r"(arg1), "r"(old_val) in test_clrtnew()
|
/qemu/hw/intc/ |
H A D | riscv_imsic.c | 81 target_ulong old_val = imsic->eidelivery[page]; in riscv_imsic_eidelivery_rmw() local 84 *val = old_val; in riscv_imsic_eidelivery_rmw() 88 imsic->eidelivery[page] = (old_val & ~wr_mask) | (new_val & wr_mask); in riscv_imsic_eidelivery_rmw() 99 target_ulong old_val = imsic->eithreshold[page]; in riscv_imsic_eithreshold_rmw() local 102 *val = old_val; in riscv_imsic_eithreshold_rmw() 106 imsic->eithreshold[page] = (old_val & ~wr_mask) | (new_val & wr_mask); in riscv_imsic_eithreshold_rmw()
|
/qemu/hw/core/ |
H A D | register.c | 74 uint64_t old_val, new_val, test, no_w_mask; in register_write() local 87 old_val = reg->data ? register_read_val(reg) : ac->reset; in register_write() 89 test = (old_val ^ val) & ac->rsvd; in register_write() 107 new_val = (val & ~no_w_mask) | (old_val & no_w_mask); in register_write()
|
H A D | qdev-properties-system.c | 41 const void *old_val, const char *new_val, in check_prop_still_unset() argument 46 if (!old_val || (!prop && allow_override)) { in check_prop_still_unset()
|
/qemu/tests/tcg/multiarch/gdbstub/ |
H A D | registers.py | 184 old_val = e["initial"] 192 if new_val != old_val:
|
/qemu/hw/net/ |
H A D | e1000x_common.c | 331 uint32_t old_val = mac[TIMINCA]; in e1000x_set_timinca() local 332 uint32_t old_incvalue = old_val & E1000_TIMINCA_INCVALUE_MASK; in e1000x_set_timinca() 333 uint32_t old_incperiod = MAX(old_val >> E1000_TIMINCA_INCPERIOD_SHIFT, 1); in e1000x_set_timinca()
|
H A D | opencores_eth.c | 315 uint32_t old_val = s->regs[INT_SOURCE]; in open_eth_int_source_write() local 318 open_eth_update_irq(s, old_val & s->regs[INT_MASK], in open_eth_int_source_write()
|
H A D | tulip.c | 711 static void tulip_csr9_write(TULIPState *s, uint32_t old_val, in tulip_csr9_write() argument
|
/qemu/hw/watchdog/ |
H A D | allwinner-wdt.c | 237 uint32_t old_val; in allwinner_wdt_write() local 257 old_val = s->regs[REG_MODE]; in allwinner_wdt_write() 261 if ((s->regs[REG_MODE] & ~old_val) & WDT_EN_MASK) { in allwinner_wdt_write()
|
/qemu/target/arm/ |
H A D | ptw.c | 716 static uint64_t arm_casq_ptw(CPUARMState *env, uint64_t old_val, in arm_casq_ptw() argument 746 return old_val; in arm_casq_ptw() 748 if (cur_val == old_val) { in arm_casq_ptw() 756 return old_val; in arm_casq_ptw() 768 return old_val; in arm_casq_ptw() 770 if (cur_val == old_val) { in arm_casq_ptw() 778 return old_val; in arm_casq_ptw() 824 old_val = cpu_to_be64(old_val); in arm_casq_ptw() 829 old_val = cpu_to_le64(old_val); in arm_casq_ptw() 850 if (cur_val == old_val) { in arm_casq_ptw() [all …]
|
/qemu/target/riscv/ |
H A D | csr.c | 1764 target_ulong old_val; in rmw_iprio() local 1776 old_val = 0; in rmw_iprio() 1778 old_val |= ((target_ulong)iprio[firq + i]) << (IPRIO_IRQ_BITS * i); in rmw_iprio() 1782 *val = old_val; in rmw_iprio() 1786 new_val = (old_val & ~wr_mask) | (new_val & wr_mask); in rmw_iprio()
|