Home
last modified time | relevance | path

Searched refs:mmio (Results 1 – 25 of 43) sorted by relevance

12

/arch/arm/include/asm/
Dkvm_mmio.h43 struct kvm_exit_mmio *mmio) in kvm_prepare_mmio() argument
45 run->mmio.phys_addr = mmio->phys_addr; in kvm_prepare_mmio()
46 run->mmio.len = mmio->len; in kvm_prepare_mmio()
47 run->mmio.is_write = mmio->is_write; in kvm_prepare_mmio()
48 memcpy(run->mmio.data, mmio->data, mmio->len); in kvm_prepare_mmio()
/arch/arm64/include/asm/
Dkvm_mmio.h46 struct kvm_exit_mmio *mmio) in kvm_prepare_mmio() argument
48 run->mmio.phys_addr = mmio->phys_addr; in kvm_prepare_mmio()
49 run->mmio.len = mmio->len; in kvm_prepare_mmio()
50 run->mmio.is_write = mmio->is_write; in kvm_prepare_mmio()
51 memcpy(run->mmio.data, mmio->data, mmio->len); in kvm_prepare_mmio()
/arch/arm/kvm/
Dmmio.c102 if (!run->mmio.is_write) { in kvm_handle_mmio_return()
103 len = run->mmio.len; in kvm_handle_mmio_return()
107 data = mmio_read_buf(run->mmio.data, len); in kvm_handle_mmio_return()
115 trace_kvm_mmio(KVM_TRACE_MMIO_READ, len, run->mmio.phys_addr, in kvm_handle_mmio_return()
125 struct kvm_exit_mmio *mmio) in decode_hsr() argument
151 mmio->is_write = is_write; in decode_hsr()
152 mmio->phys_addr = fault_ipa; in decode_hsr()
153 mmio->len = len; in decode_hsr()
168 struct kvm_exit_mmio mmio; in io_mem_abort() local
181 ret = decode_hsr(vcpu, fault_ipa, &mmio); in io_mem_abort()
[all …]
DMakefile22 obj-y += coproc.o coproc_a15.o coproc_a7.o mmio.o psci.o perf.o
/arch/mips/goldfish/
Dranchu.dts13 compatible = "virtio,mmio";
19 compatible = "virtio,mmio";
25 compatible = "virtio,mmio";
31 compatible = "virtio,mmio";
37 compatible = "virtio,mmio";
43 compatible = "virtio,mmio";
49 compatible = "virtio,mmio";
55 compatible = "virtio,mmio";
61 compatible = "virtio,mmio";
67 compatible = "virtio,mmio";
[all …]
/arch/powerpc/boot/
Dcuboot-pq2.c125 struct pci_range *mem = NULL, *mmio = NULL, in fixup_pci() local
167 mmio = &pci_ranges_buf[i]; in fixup_pci()
172 if (!mem || !mmio || !io) in fixup_pci()
174 if (mem->size[1] != mmio->size[1]) in fixup_pci()
181 if (mem->phys_addr + mem->size[1] == mmio->phys_addr) in fixup_pci()
183 else if (mmio->phys_addr + mmio->size[1] == mem->phys_addr) in fixup_pci()
184 mem_base = mmio; in fixup_pci()
189 out_be32(&pci_regs[2][0], ~(mem->size[1] + mmio->size[1] - 1)); in fixup_pci()
198 out_le32(&pci_regs[0][6], mmio->pci_addr[1] >> 12); in fixup_pci()
199 out_le32(&pci_regs[0][8], mmio->phys_addr >> 12); in fixup_pci()
[all …]
/arch/mips/kvm/
Demulate.c1149 void *data = run->mmio.data; in kvm_mips_emulate_store()
1169 if (bytes > sizeof(run->mmio.data)) { in kvm_mips_emulate_store()
1171 run->mmio.len); in kvm_mips_emulate_store()
1173 run->mmio.phys_addr = in kvm_mips_emulate_store()
1176 if (run->mmio.phys_addr == KVM_INVALID_ADDR) { in kvm_mips_emulate_store()
1180 run->mmio.len = bytes; in kvm_mips_emulate_store()
1181 run->mmio.is_write = 1; in kvm_mips_emulate_store()
1193 if (bytes > sizeof(run->mmio.data)) { in kvm_mips_emulate_store()
1195 run->mmio.len); in kvm_mips_emulate_store()
1197 run->mmio.phys_addr = in kvm_mips_emulate_store()
[all …]
/arch/powerpc/kvm/
Dpowerpc.c725 if (run->mmio.len > sizeof(gpr)) { in kvmppc_complete_mmio_load()
726 printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len); in kvmppc_complete_mmio_load()
731 switch (run->mmio.len) { in kvmppc_complete_mmio_load()
732 case 8: gpr = *(u64 *)run->mmio.data; break; in kvmppc_complete_mmio_load()
733 case 4: gpr = *(u32 *)run->mmio.data; break; in kvmppc_complete_mmio_load()
734 case 2: gpr = *(u16 *)run->mmio.data; break; in kvmppc_complete_mmio_load()
735 case 1: gpr = *(u8 *)run->mmio.data; break; in kvmppc_complete_mmio_load()
739 switch (run->mmio.len) { in kvmppc_complete_mmio_load()
740 case 4: gpr = ld_le32((u32 *)run->mmio.data); break; in kvmppc_complete_mmio_load()
741 case 2: gpr = ld_le16((u16 *)run->mmio.data); break; in kvmppc_complete_mmio_load()
[all …]
Dmpic.c194 struct kvm_io_device mmio; member
1380 struct openpic *opp = container_of(this, struct openpic, mmio); in kvm_mpic_read()
1421 struct openpic *opp = container_of(this, struct openpic, mmio); in kvm_mpic_write()
1451 kvm_iodevice_init(&opp->mmio, &mpic_mmio_ops); in map_mmio()
1455 &opp->mmio); in map_mmio()
1460 kvm_io_bus_unregister_dev(opp->kvm, KVM_MMIO_BUS, &opp->mmio); in unmap_mmio()
/arch/powerpc/sysdev/
Ddcr.c55 return dcr_map_ok_mmio(host.host.mmio); in dcr_map_ok_generic()
84 host.host.mmio = dcr_map_mmio(dev, dcr_n, dcr_c); in dcr_map_generic()
97 dcr_unmap_mmio(host.host.mmio, dcr_c); in dcr_unmap_generic()
108 return dcr_read_mmio(host.host.mmio, dcr_n); in dcr_read_generic()
120 dcr_write_mmio(host.host.mmio, dcr_n, value); in dcr_write_generic()
/arch/powerpc/include/asm/
Ddcr-generic.h30 dcr_host_mmio_t mmio; member
/arch/x86/kernel/
Dearly-quirks.c584 #define bcma_aread32(reg) ioread32(mmio + 1 * BCMA_CORE_SIZE + reg)
585 #define bcma_awrite32(reg, val) iowrite32(val, mmio + 1 * BCMA_CORE_SIZE + reg)
589 void __iomem *mmio; in apple_airport_reset() local
616 mmio = early_ioremap(addr, BCM4331_MMIO_SIZE); in apple_airport_reset()
617 if (!mmio) { in apple_airport_reset()
635 early_iounmap(mmio, BCM4331_MMIO_SIZE); in apple_airport_reset()
/arch/openrisc/boot/dts/
Dor1ksim.dts9 bootargs = "console=uart,mmio,0x90000000,115200";
/arch/arm64/kvm/
DMakefile15 kvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/arm.o $(ARM)/mmu.o $(ARM)/mmio.o
/arch/x86/mm/
DMakefile27 mmiotrace-y := kmmio.o pf_in.o mmio-mod.o
/arch/ia64/kvm/
DMakefile63 kvm-intel-objs = vmm.o vmm_ivt.o trampoline.o vcpu.o optvfault.o mmio.o \
Dkvm-ia64.c236 goto mmio; in handle_mmio()
238 vcpu->mmio_fragments[0].gpa = kvm_run->mmio.phys_addr = p->addr; in handle_mmio()
239 vcpu->mmio_fragments[0].len = kvm_run->mmio.len = p->size; in handle_mmio()
240 vcpu->mmio_is_write = kvm_run->mmio.is_write = !p->dir; in handle_mmio()
244 memcpy(kvm_run->mmio.data, &p->data, p->size); in handle_mmio()
247 mmio: in handle_mmio()
745 memcpy(vcpu->arch.mmio_data, kvm_run->mmio.data, 8); in kvm_arch_vcpu_ioctl_run()
/arch/arm/boot/dts/
Dimx6dl.dtsi60 compatible = "mmio-sram";
Dexynos4210.dtsi45 compatible = "mmio-sram";
Dexynos5410.dtsi135 compatible = "mmio-sram";
Dimx6q.dtsi82 compatible = "mmio-sram";
Dimx1.dtsi262 compatible = "mmio-sram";
Dexynos4x12.dtsi35 compatible = "mmio-sram";
/arch/arm64/boot/dts/
Dfoundation-v8.dts226 compatible = "virtio,mmio";
Drtsm_ve-motherboard.dtsi221 compatible = "virtio,mmio";

12