Searched refs:KVM_REG_SIZE (Results 1 – 6 of 6) sorted by relevance
/arch/arm64/kvm/ |
D | guest.c | 83 if (KVM_REG_SIZE(reg->id) == size && in validate_core_offset() 106 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg() 112 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) in get_core_reg() 131 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg() 137 if (KVM_REG_SIZE(reg->id) > sizeof(tmp)) in set_core_reg() 140 if (copy_from_user(valp, uaddr, KVM_REG_SIZE(reg->id))) { in set_core_reg() 172 memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id)); in set_core_reg() 229 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg() 242 return copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; in get_timer_reg()
|
D | sys_regs.c | 267 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bvr() 277 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bvr() 309 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bcr() 320 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bcr() 353 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wvr() 363 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wvr() 395 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wcr() 405 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wcr() 1389 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user() 1396 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user() [all …]
|
/arch/arm/kvm/ |
D | guest.c | 55 if (KVM_REG_SIZE(reg->id) != 4) in get_core_reg() 60 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in get_core_reg() 72 if (KVM_REG_SIZE(reg->id) != 4) in set_core_reg() 77 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in set_core_reg() 145 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg() 158 return copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; in get_timer_reg()
|
D | coproc.c | 674 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user() 685 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user() 704 if (KVM_REG_SIZE(id) == 4) { in get_invariant_cp15() 708 } else if (KVM_REG_SIZE(id) == 8) { in get_invariant_cp15() 728 if (KVM_REG_SIZE(id) == 4) { in set_invariant_cp15() 734 } else if (KVM_REG_SIZE(id) == 8) { in set_invariant_cp15() 802 if (KVM_REG_SIZE(id) != 4) in demux_c15_get() 827 if (KVM_REG_SIZE(id) != 4) in demux_c15_set() 902 if (KVM_REG_SIZE(id) != 8) in vfp_get_reg() 909 if (KVM_REG_SIZE(id) != 4) in vfp_get_reg() [all …]
|
/arch/arm64/include/uapi/asm/ |
D | kvm.h | 42 #define KVM_REG_SIZE(id) \ macro
|
/arch/arm/include/uapi/asm/ |
D | kvm.h | 30 #define KVM_REG_SIZE(id) \ macro
|