/openbmc/qemu/linux-user/ |
H A D | uaccess.c | 28 void unlock_user(void *host_ptr, abi_ulong guest_addr, ssize_t len) in unlock_user() argument 32 if (!host_ptr) { in unlock_user() 36 if (host_ptr == host_ptr_conv) { in unlock_user() 40 memcpy(host_ptr_conv, host_ptr, len); in unlock_user() 42 g_free(host_ptr); in unlock_user()
|
H A D | qemu.h | 342 static inline void unlock_user(void *host_ptr, abi_ulong guest_addr, in unlock_user() argument 348 void unlock_user(void *host_ptr, abi_ulong guest_addr, ssize_t len); 359 #define lock_user_struct(type, host_ptr, guest_addr, copy) \ argument 360 (host_ptr = lock_user(type, guest_addr, sizeof(*host_ptr), copy)) 361 #define unlock_user_struct(host_ptr, guest_addr, copy) \ argument 362 unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
|
H A D | linuxload.c | 15 void *host_ptr; in memcpy_to_target() local 17 host_ptr = lock_user(VERIFY_WRITE, dest, len, 0); in memcpy_to_target() 18 if (!host_ptr) { in memcpy_to_target() 21 memcpy(host_ptr, src, len); in memcpy_to_target() 22 unlock_user(host_ptr, dest, 1); in memcpy_to_target()
|
/openbmc/qemu/bsd-user/ |
H A D | qemu.h | 458 static inline void unlock_user(void *host_ptr, abi_ulong guest_addr, in unlock_user() argument 463 if (!host_ptr) { in unlock_user() 466 if (host_ptr == g2h_untagged(guest_addr)) { in unlock_user() 470 memcpy(g2h_untagged(guest_addr), host_ptr, len); in unlock_user() 472 g_free(host_ptr); in unlock_user() 494 #define lock_user_struct(type, host_ptr, guest_addr, copy) \ argument 495 (host_ptr = lock_user(type, guest_addr, sizeof(*host_ptr), copy)) 496 #define unlock_user_struct(host_ptr, guest_addr, copy) \ argument 497 unlock_user(host_ptr, guest_addr, (copy) ? sizeof(*host_ptr) : 0)
|
H A D | bsdload.c | 26 void *host_ptr; in memcpy_to_target() local 28 host_ptr = lock_user(VERIFY_WRITE, dest, len, 0); in memcpy_to_target() 29 if (!host_ptr) { in memcpy_to_target() 32 memcpy(host_ptr, src, len); in memcpy_to_target() 33 unlock_user(host_ptr, dest, 1); in memcpy_to_target()
|
/openbmc/qemu/target/s390x/ |
H A D | sigp.c | 97 SigpInfo *si = arg.host_ptr; in sigp_start() 111 SigpInfo *si = arg.host_ptr; in sigp_stop() 132 SigpInfo *si = arg.host_ptr; in sigp_stop_and_store_status() 157 SigpInfo *si = arg.host_ptr; in sigp_store_status_at_address() 179 SigpInfo *si = arg.host_ptr; in sigp_store_adtl_status() 231 SigpInfo *si = arg.host_ptr; in sigp_restart() 254 SigpInfo *si = arg.host_ptr; in sigp_initial_cpu_reset() 264 SigpInfo *si = arg.host_ptr; in sigp_cpu_reset() 275 SigpInfo *si = arg.host_ptr; in sigp_set_prefix()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ |
H A D | ia_css_s3a.host.c | 298 struct ia_css_3a_output *host_ptr; in ia_css_s3a_dmem_decode() local 307 host_ptr = host_stats->data; in ia_css_s3a_dmem_decode() 313 memcpy(host_ptr, isp_stats, host_width * sizeof(*host_ptr)); in ia_css_s3a_dmem_decode() 315 host_ptr += host_width; in ia_css_s3a_dmem_decode()
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | apic.c | 140 APICCommonState *s = data.host_ptr; in kvm_apic_put() 161 APICCommonState *s = data.host_ptr; in do_inject_external_nmi()
|
/openbmc/qemu/hw/misc/ |
H A D | mips_cpc.c | 38 MIPSCPCState *cpc = (MIPSCPCState *) data.host_ptr; in mips_cpu_reset_async_work()
|
H A D | imx7_src.c | 136 struct SRCSCRResetInfo *ri = data.host_ptr; in imx7_clear_reset_bit()
|
H A D | imx6_src.c | 131 struct SRCSCRResetInfo *ri = data.host_ptr; in imx6_clear_reset_bit()
|
/openbmc/qemu/hw/i386/ |
H A D | vapic.c | 407 PatchInfo *info = (PatchInfo *) data.host_ptr; in do_patch_instruction() 498 VAPICEnableTPRReporting *info = data.host_ptr; in vapic_do_enable_tpr_reporting() 740 VAPICROMState *s = data.host_ptr; in do_vapic_enable()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppce500_spin.c | 77 SpinInfo *curspin = data.host_ptr; in spin_kick()
|
/openbmc/qemu/include/hw/core/ |
H A D | cpu.h | 382 void *host_ptr; member 386 #define RUN_ON_CPU_HOST_PTR(p) ((run_on_cpu_data){.host_ptr = (p)})
|
/openbmc/qemu/target/arm/ |
H A D | arm-powerctl.c | 65 struct CpuOnInfo *info = (struct CpuOnInfo *) data.host_ptr; in arm_set_cpu_on_async_work()
|
/openbmc/qemu/target/ppc/ |
H A D | compat.c | 217 SetCompatState *s = arg.host_ptr; in do_set_compat()
|
/openbmc/qemu/target/i386/whpx/ |
H A D | whpx-apic.c | 133 APICCommonState *s = data.host_ptr; in whpx_apic_put()
|
/openbmc/qemu/plugins/ |
H A D | loader.c | 387 struct qemu_plugin_reset_data *data = arg.host_ptr; in plugin_flush_destroy()
|
/openbmc/qemu/hw/intc/ |
H A D | xics_kvm.c | 96 icp_get_kvm_state(arg.host_ptr); in do_icp_synchronize_state()
|
H A D | spapr_xive_kvm.c | 130 XiveCpuGetState *s = arg.host_ptr; in kvmppc_xive_cpu_do_synchronize_state()
|
/openbmc/qemu/target/i386/ |
H A D | helper.c | 383 MCEInjectionParams *params = data.host_ptr; in do_inject_x86_mce()
|
/openbmc/qemu/hw/hyperv/ |
H A D | hyperv.c | 266 HvSintRoute *sint_route = data.host_ptr; in cpu_post_msg()
|
/openbmc/qemu/accel/tcg/ |
H A D | cputlb.c | 602 TLBFlushPageByMMUIdxData *d = data.host_ptr; in tlb_flush_page_by_mmuidx_async_2() 769 TLBFlushRangeData *d = data.host_ptr; in tlb_flush_range_by_mmuidx_async_1()
|
/openbmc/qemu/system/ |
H A D | physmem.c | 2588 CPUAddressSpace *cpuas = data.host_ptr; in tcg_commit_cpu()
|
/openbmc/qemu/accel/kvm/ |
H A D | kvm-all.c | 3466 (struct kvm_set_guest_debug_data *) data.host_ptr; in kvm_invoke_set_guest_debug()
|