Home
last modified time | relevance | path

Searched refs:count_ctl (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/hw/timer/
H A Dallwinner-a10-pit.c72 return s->count_ctl; in a10_pit_read()
164 s->count_ctl = value; in a10_pit_write()
165 if (s->count_ctl & AW_A10_PIT_COUNT_RL_EN) { in a10_pit_write()
170 s->count_ctl &= ~AW_A10_PIT_COUNT_RL_EN; in a10_pit_write()
172 if (s->count_ctl & AW_A10_PIT_COUNT_CLR_EN) { in a10_pit_write()
175 s->count_ctl &= ~AW_A10_PIT_COUNT_CLR_EN; in a10_pit_write()
213 VMSTATE_UINT32(count_ctl, AwA10PITState),
241 s->count_ctl = 0; in a10_pit_reset()
/openbmc/qemu/target/mips/
H A Dkvm.c463 uint64_t count_ctl; in kvm_mips_save_count() local
467 err = kvm_mips_get_one_ureg64(cs, KVM_REG_MIPS_COUNT_CTL, &count_ctl); in kvm_mips_save_count()
471 } else if (!(count_ctl & KVM_REG_MIPS_COUNT_CTL_DC)) { in kvm_mips_save_count()
472 count_ctl |= KVM_REG_MIPS_COUNT_CTL_DC; in kvm_mips_save_count()
473 err = kvm_mips_put_one_ureg64(cs, KVM_REG_MIPS_COUNT_CTL, &count_ctl); in kvm_mips_save_count()
504 uint64_t count_ctl; in kvm_mips_restore_count() local
508 err_dc = kvm_mips_get_one_ureg64(cs, KVM_REG_MIPS_COUNT_CTL, &count_ctl); in kvm_mips_restore_count()
512 } else if (!(count_ctl & KVM_REG_MIPS_COUNT_CTL_DC)) { in kvm_mips_restore_count()
514 count_ctl |= KVM_REG_MIPS_COUNT_CTL_DC; in kvm_mips_restore_count()
515 err = kvm_mips_put_one_ureg64(cs, KVM_REG_MIPS_COUNT_CTL, &count_ctl); in kvm_mips_restore_count()
[all …]
/openbmc/linux/arch/mips/kvm/
H A Demulate.c317 return (vcpu->arch.count_ctl & KVM_REG_MIPS_COUNT_CTL_DC) || in kvm_mips_count_disabled()
369 if (unlikely(vcpu->arch.count_ctl & KVM_REG_MIPS_COUNT_CTL_DC)) in kvm_mips_count_time()
812 if (!(vcpu->arch.count_ctl & KVM_REG_MIPS_COUNT_CTL_DC)) in kvm_mips_count_disable_cause()
853 int kvm_mips_set_count_ctl(struct kvm_vcpu *vcpu, s64 count_ctl) in kvm_mips_set_count_ctl() argument
856 s64 changed = count_ctl ^ vcpu->arch.count_ctl; in kvm_mips_set_count_ctl()
866 vcpu->arch.count_ctl = count_ctl; in kvm_mips_set_count_ctl()
872 if (count_ctl & KVM_REG_MIPS_COUNT_CTL_DC) in kvm_mips_set_count_ctl()
875 } else if (count_ctl & KVM_REG_MIPS_COUNT_CTL_DC) { in kvm_mips_set_count_ctl()
H A Dvz.c2120 *v = vcpu->arch.count_ctl; in kvm_vz_get_one_reg()
/openbmc/qemu/include/hw/timer/
H A Dallwinner-a10-pit.h65 uint32_t count_ctl; member
/openbmc/linux/arch/mips/include/asm/
H A Dkvm_host.h329 u32 count_ctl; member
853 int kvm_mips_set_count_ctl(struct kvm_vcpu *vcpu, s64 count_ctl);