Home
last modified time | relevance | path

Searched refs:ghc (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/ata/
H A Ddwc_ahsata.c50 u32 ghc; member
124 tmp = readl(&host_mmio->ghc); in ahci_host_init()
126 writel_with_flush(tmp | SATA_HOST_GHC_HR, &host_mmio->ghc); in ahci_host_init()
128 while ((readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) && --timeout) in ahci_host_init()
141 writel_with_flush(SATA_HOST_GHC_AE, &host_mmio->ghc); in ahci_host_init()
260 tmp = readl(&host_mmio->ghc); in ahci_host_init()
262 writel(tmp | SATA_HOST_GHC_IE, &host_mmio->ghc); in ahci_host_init()
263 tmp = readl(&host_mmio->ghc); in ahci_host_init()
919 setbits_le32(&host_mmio->ghc, SATA_HOST_GHC_HR); in reset_sata()
920 while (readl(&host_mmio->ghc) & SATA_HOST_GHC_HR) in reset_sata()
[all …]
/openbmc/linux/virt/kvm/
H A Dkvm_main.c3207 struct gfn_to_hva_cache *ghc, in __kvm_gfn_to_hva_cache_init() argument
3217 ghc->generation = slots->generation; in __kvm_gfn_to_hva_cache_init()
3220 ghc->hva = KVM_HVA_ERR_BAD; in __kvm_gfn_to_hva_cache_init()
3229 ghc->memslot = __gfn_to_memslot(slots, start_gfn); in __kvm_gfn_to_hva_cache_init()
3230 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in __kvm_gfn_to_hva_cache_init()
3232 if (kvm_is_error_hva(ghc->hva)) in __kvm_gfn_to_hva_cache_init()
3238 ghc->hva += offset; in __kvm_gfn_to_hva_cache_init()
3240 ghc->memslot = NULL; in __kvm_gfn_to_hva_cache_init()
3242 ghc->gpa = gpa; in __kvm_gfn_to_hva_cache_init()
3243 ghc->len = len; in __kvm_gfn_to_hva_cache_init()
[all …]
/openbmc/qemu/include/hw/ide/
H A Dahci.h33 uint32_t ghc; member
/openbmc/linux/arch/x86/kvm/vmx/
H A Dnested.c675 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_cache_shadow_vmcs12() local
681 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_cache_shadow_vmcs12()
682 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_cache_shadow_vmcs12()
686 kvm_read_guest_cached(vmx->vcpu.kvm, ghc, get_shadow_vmcs12(vcpu), in nested_cache_shadow_vmcs12()
694 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_flush_cached_shadow_vmcs12() local
700 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_flush_cached_shadow_vmcs12()
701 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_flush_cached_shadow_vmcs12()
705 kvm_write_guest_cached(vmx->vcpu.kvm, ghc, get_shadow_vmcs12(vcpu), in nested_flush_cached_shadow_vmcs12()
2996 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_vmx_check_vmcs_link_ptr() local
3005 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_vmx_check_vmcs_link_ptr()
[all …]
/openbmc/qemu/hw/ide/
H A Dahci.c224 (s->control_regs.ghc & HOST_CTL_IRQ_EN)) { in ahci_check_irq()
409 val = s->control_regs.ghc; in ahci_mem_read_32()
496 s->control_regs.ghc = (val & 0x3) | HOST_CTL_AHCI_EN; in ahci_mem_write()
1676 s->control_regs.ghc = HOST_CTL_AHCI_EN; in ahci_reset()
1827 VMSTATE_UINT32(control_regs.ghc, AHCIState),
/openbmc/linux/include/linux/
H A Dkvm_host.h1207 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1209 int kvm_read_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1216 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1218 int kvm_write_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1221 int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
/openbmc/linux/arch/x86/kvm/
H A Dlapic.c3287 struct gfn_to_hva_cache *ghc = &vcpu->arch.pv_eoi.data; in kvm_lapic_set_pv_eoi() local
3295 if (addr == ghc->gpa && len <= ghc->len) in kvm_lapic_set_pv_eoi()
3296 new_len = ghc->len; in kvm_lapic_set_pv_eoi()
3300 ret = kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, addr, new_len); in kvm_lapic_set_pv_eoi()
H A Dx86.c3524 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in record_steal_time() local
3544 if (unlikely(slots->generation != ghc->generation || in record_steal_time()
3545 gpa != ghc->gpa || in record_steal_time()
3546 kvm_is_error_hva(ghc->hva) || !ghc->memslot)) { in record_steal_time()
3550 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st)) || in record_steal_time()
3551 kvm_is_error_hva(ghc->hva) || !ghc->memslot) in record_steal_time()
3555 st = (struct kvm_steal_time __user *)ghc->hva; in record_steal_time()
3617 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in record_steal_time()
4864 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in kvm_steal_time_set_preempted() local
4895 if (unlikely(slots->generation != ghc->generation || in kvm_steal_time_set_preempted()
[all …]