/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_exit.c | 70 old_hstatus = csr_swap(CSR_HSTATUS, vcpu->arch.guest_context.hstatus); in kvm_riscv_vcpu_unpriv_read() 188 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) { in kvm_riscv_vcpu_exit() 194 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit() 200 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit() 204 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit() 217 vcpu->arch.guest_context.hstatus); in kvm_riscv_vcpu_exit()
|
H A D | vcpu.c | 122 cntx->hstatus = 0; in kvm_arch_vcpu_create() 123 cntx->hstatus |= HSTATUS_VTW; in kvm_arch_vcpu_create() 124 cntx->hstatus |= HSTATUS_SPVP; in kvm_arch_vcpu_create() 125 cntx->hstatus |= HSTATUS_SPV; in kvm_arch_vcpu_create()
|
H A D | aia_imsic.c | 828 vcpu->arch.guest_context.hstatus &= ~HSTATUS_VGEIN; in kvm_riscv_vcpu_aia_imsic_update() 830 vcpu->arch.guest_context.hstatus |= in kvm_riscv_vcpu_aia_imsic_update()
|
/openbmc/qemu/target/riscv/ |
H A D | op_helper.c | 280 if (env->virt_enabled && get_field(env->hstatus, HSTATUS_VTSR)) { in helper_sret() 297 target_ulong hstatus = env->hstatus; in helper_sret() local 299 prev_virt = get_field(hstatus, HSTATUS_SPV); in helper_sret() 301 hstatus = set_field(hstatus, HSTATUS_SPV, 0); in helper_sret() 303 env->hstatus = hstatus; in helper_sret() 384 (prv_u || (prv_s && get_field(env->hstatus, HSTATUS_VTW)))) { in helper_wfi() 396 get_field(env->hstatus, HSTATUS_VTW) && in helper_wrs_nto() 412 (env->priv == PRV_U || get_field(env->hstatus, HSTATUS_VTVM))) { in helper_tlb_flush() 458 } else if (env->priv == PRV_U && !get_field(env->hstatus, HSTATUS_HU)) { in check_access_hlsv() 462 int mode = get_field(env->hstatus, HSTATUS_SPVP); in check_access_hlsv()
|
H A D | cpu_helper.c | 461 uint32_t gein = get_field(env->hstatus, HSTATUS_VGEIN); in riscv_cpu_all_pending() 721 gein = get_field(env->hstatus, HSTATUS_VGEIN); in riscv_cpu_interrupt() 1934 env->hstatus = set_field(env->hstatus, HSTATUS_SPVP, in riscv_cpu_do_interrupt() 1936 env->hstatus = set_field(env->hstatus, HSTATUS_SPV, true); in riscv_cpu_do_interrupt() 1943 env->hstatus = set_field(env->hstatus, HSTATUS_SPV, false); in riscv_cpu_do_interrupt() 1946 env->hstatus = set_field(env->hstatus, HSTATUS_GVA, write_gva); in riscv_cpu_do_interrupt()
|
H A D | machine.c | 86 VMSTATE_UINTTL(env.hstatus, RISCVCPU),
|
H A D | csr.c | 517 get_field(env->hstatus, HSTATUS_VTVM)) { in satp() 2092 vgein = (virt) ? get_field(env->hstatus, HSTATUS_VGEIN) : 0; in rmw_xireg() 2163 vgein = (virt) ? get_field(env->hstatus, HSTATUS_VGEIN) : 0; in rmw_xtopei() 2777 gin = get_field(env->hstatus, HSTATUS_VGEIN); in rmw_mip64() 3414 gein = get_field(env->hstatus, HSTATUS_VGEIN); in read_vstopi() 3526 *val = env->hstatus; in read_hstatus() 3539 env->hstatus = val; in write_hstatus()
|
H A D | cpu.h | 319 target_ulong hstatus; member
|
/openbmc/linux/drivers/ata/ |
H A D | sata_fsl.c | 1057 u32 hstatus, dereg=0, cereg = 0, SError = 0; in sata_fsl_error_intr() local 1064 hstatus = ioread32(hcr_base + HSTATUS); in sata_fsl_error_intr() 1081 hstatus, cereg, ioread32(hcr_base + DE), SError); in sata_fsl_error_intr() 1084 if (hstatus & FATAL_ERROR_DECODE) { in sata_fsl_error_intr() 1092 if (hstatus & INT_ON_SNOTIFY_UPDATE) in sata_fsl_error_intr() 1096 if (hstatus & INT_ON_PHYRDY_CHG) { in sata_fsl_error_intr() 1183 u32 hstatus, done_mask = 0; in sata_fsl_host_intr() local 1189 hstatus = ioread32(hcr_base + HSTATUS); in sata_fsl_host_intr() 1197 if (unlikely(hstatus & INT_ON_DATA_LENGTH_MISMATCH)) { in sata_fsl_host_intr() 1227 if (unlikely(hstatus & status_mask)) { in sata_fsl_host_intr()
|
/openbmc/u-boot/drivers/ata/ |
H A D | fsl_sata.c | 165 ata_wait_register(®->hstatus, HSTATUS_ONOFF, 0, 1000); in init_sata() 181 val32 = in_le32(®->hstatus); in init_sata() 182 out_le32(®->hstatus, val32); in init_sata() 225 ata_wait_register(®->hstatus, HSTATUS_PHY_RDY, in init_sata() 229 val32 = in_le32(®->hstatus); in init_sata() 239 ata_wait_register(®->hstatus, HSTATUS_SIGNATURE, in init_sata() 273 printf("HStatus: %08x\n\r", in_le32(®->hstatus)); in fsl_sata_dump_regs()
|
H A D | fsl_sata.h | 29 u32 hstatus; /* Host status register */ member
|
/openbmc/linux/drivers/misc/sgi-gru/ |
H A D | grukservices.c | 118 long hstatus[2]; member 134 #define HSTATUS(mq, h) ((mq) + offsetof(struct message_queue, hstatus[h])) 556 mq->hstatus[0] = 0; in gru_create_message_queue() 557 mq->hstatus[1] = 1; in gru_create_message_queue() 857 mq->hstatus[half] = 1; in gru_free_message()
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ohci.h | 80 uint32_t hstatus; member
|
H A D | hcd-ohci.c | 1608 retval = ohci->hstatus & ohci->hmask; in ohci_mem_read() 1745 ohci->hstatus &= ~(val & ohci->hmask); in ohci_mem_write() 2022 VMSTATE_UINT32(hstatus, OHCIState),
|
/openbmc/qemu/target/riscv/insn_trans/ |
H A D | trans_rvzawrs.c.inc | 50 * Depending on the mode of execution, mstatus.TW and hstatus.VTW, wrs.nto
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | kvm_host.h | 149 unsigned long hstatus; member
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | asm-offsets.c | 157 OFFSET(KVM_ARCH_GUEST_HSTATUS, kvm_vcpu_arch, guest_context.hstatus); in asm_offsets() 194 OFFSET(KVM_ARCH_HOST_HSTATUS, kvm_vcpu_arch, host_context.hstatus); in asm_offsets()
|