/Linux-v5.4/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 253 unsigned int cmd, void __user *uptr) in vmci_host_get_version() argument 256 int __user *vptr = uptr; in vmci_host_get_version() 288 void __user *uptr) in vmci_host_do_init_context() argument 294 if (copy_from_user(&init_block, uptr, sizeof(init_block))) { in vmci_host_do_init_context() 330 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context() 350 void __user *uptr) in vmci_host_do_send_datagram() argument 361 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram() 400 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram() 405 void __user *uptr) in vmci_host_do_receive_datagram() argument 417 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram() [all …]
|
/Linux-v5.4/arch/s390/kernel/ |
D | uprobes.c | 274 void *uptr; in handle_insn_ril() local 279 uptr = (void *)(regs->psw.addr + (insn->disp * 2)); in handle_insn_ril() 286 rx->u64 = (unsigned long)uptr; in handle_insn_ril() 293 rc = emu_load_ril((u16 __user *)uptr, &rx->u32[1]); in handle_insn_ril() 296 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); in handle_insn_ril() 299 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); in handle_insn_ril() 302 rc = emu_load_ril((u16 __user *)uptr, &rx->u64); in handle_insn_ril() 305 rc = emu_load_ril((u64 __user *)uptr, &rx->u64); in handle_insn_ril() 308 rc = emu_load_ril((s32 __user *)uptr, &rx->u64); in handle_insn_ril() 311 rc = emu_load_ril((u32 __user *)uptr, &rx->u32[1]); in handle_insn_ril() [all …]
|
/Linux-v5.4/drivers/staging/comedi/ |
D | comedi_compat32.c | 98 compat_uptr_t uptr; in compat_chaninfo() member 112 err |= __get_user(temp.uptr, &chaninfo32->maxdata_list); in compat_chaninfo() 113 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->maxdata_list); in compat_chaninfo() 114 err |= __get_user(temp.uptr, &chaninfo32->flaglist); in compat_chaninfo() 115 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->flaglist); in compat_chaninfo() 116 err |= __get_user(temp.uptr, &chaninfo32->rangelist); in compat_chaninfo() 117 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->rangelist); in compat_chaninfo() 132 compat_uptr_t uptr; in compat_rangeinfo() member 146 err |= __get_user(temp.uptr, &rangeinfo32->range_ptr); in compat_rangeinfo() 147 err |= __put_user(compat_ptr(temp.uptr), &rangeinfo->range_ptr); in compat_rangeinfo() [all …]
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | compat.h | 106 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 108 return (void __user *)(unsigned long)uptr; in compat_ptr() 111 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 113 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/sparc/include/asm/ |
D | compat.h | 135 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 137 return (void __user *)(unsigned long)uptr; in compat_ptr() 140 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 142 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/arm64/include/asm/ |
D | compat.h | 123 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 125 return (void __user *)(unsigned long)uptr; in compat_ptr() 128 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 130 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | compat.h | 183 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 185 return (void __user *)(unsigned long)uptr; in compat_ptr() 188 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 190 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | compat.h | 110 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 113 return (void __user *)(unsigned long)(long)uptr; in compat_ptr() 116 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 118 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/x86/include/asm/ |
D | compat.h | 187 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 189 return (void __user *)(unsigned long)uptr; in compat_ptr() 192 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 194 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/s390/include/asm/ |
D | compat.h | 176 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument 178 return (void __user *)(unsigned long)(uptr & 0x7fffffffUL); in compat_ptr() 181 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument 183 return (u32)(unsigned long)uptr; in ptr_to_compat()
|
/Linux-v5.4/arch/s390/pci/ |
D | pci_clp.c | 552 void __user *uptr; in clp_normal_command() local 565 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_normal_command() 566 if (copy_from_user(lpcb, uptr, PAGE_SIZE) != 0) in clp_normal_command() 585 if (copy_to_user(uptr, lpcb, PAGE_SIZE) != 0) in clp_normal_command() 598 void __user *uptr; in clp_immediate_command() local 605 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_immediate_command() 609 return put_user(exists, (int __user *) uptr); in clp_immediate_command() 612 return put_user(ilp, (unsigned long __user *) uptr); in clp_immediate_command()
|
/Linux-v5.4/ipc/ |
D | syscall.c | 161 void __user *uptr = compat_ptr(ptr); in compat_ksys_ipc() local 168 if (!uptr) in compat_ksys_ipc() 170 if (copy_from_user(&ipck, uptr, sizeof(ipck))) in compat_ksys_ipc()
|
D | msg.c | 704 static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version) in compat_ksys_msgctl() argument 722 if (copy_to_user(uptr, &msginfo, sizeof(struct msginfo))) in compat_ksys_msgctl() 732 if (copy_compat_msqid_to_user(uptr, &msqid64, version)) in compat_ksys_msgctl() 736 if (copy_compat_msqid_from_user(&msqid64, uptr, version)) in compat_ksys_msgctl() 746 COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 748 return compat_ksys_msgctl(msqid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3() 752 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr) in compat_ksys_old_msgctl() argument 756 return compat_ksys_msgctl(msqid, cmd, uptr, version); in compat_ksys_old_msgctl() 759 COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 761 return compat_ksys_old_msgctl(msqid, cmd, uptr); in COMPAT_SYSCALL_DEFINE3()
|
D | shm.c | 1335 long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) in compat_ksys_shmctl() argument 1352 if (copy_compat_shminfo_to_user(uptr, &shminfo, version)) in compat_ksys_shmctl() 1361 if (put_compat_shm_info(&shm_info, uptr)) in compat_ksys_shmctl() 1371 if (copy_compat_shmid_to_user(uptr, &sem64, version)) in compat_ksys_shmctl() 1376 if (copy_compat_shmid_from_user(&sem64, uptr, version)) in compat_ksys_shmctl() 1391 COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument 1393 return compat_ksys_shmctl(shmid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3() 1397 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr) in compat_ksys_old_shmctl() argument 1401 return compat_ksys_shmctl(shmid, cmd, uptr, version); in compat_ksys_old_shmctl() 1404 COMPAT_SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument [all …]
|
D | util.h | 281 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr); 286 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bo_list.c | 226 const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr); in amdgpu_bo_create_list_entry_array() local 241 if (copy_from_user(info, uptr, bytes)) in amdgpu_bo_create_list_entry_array() 250 if (copy_from_user(&info[i], uptr, bytes)) in amdgpu_bo_create_list_entry_array() 253 uptr += in->bo_info_size; in amdgpu_bo_create_list_entry_array()
|
/Linux-v5.4/drivers/usb/mon/ |
D | mon_bin.c | 1077 struct mon_bin_mfetch __user *uptr; in mon_bin_ioctl() local 1079 uptr = (struct mon_bin_mfetch __user *)arg; in mon_bin_ioctl() 1081 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_ioctl() 1088 if (put_user(ret, &uptr->nflush)) in mon_bin_ioctl() 1094 if (put_user(ret, &uptr->nfetch)) in mon_bin_ioctl() 1156 struct mon_bin_mfetch32 __user *uptr; in mon_bin_compat_ioctl() local 1158 uptr = (struct mon_bin_mfetch32 __user *) compat_ptr(arg); in mon_bin_compat_ioctl() 1160 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_compat_ioctl() 1167 if (put_user(ret, &uptr->nflush32)) in mon_bin_compat_ioctl() 1174 if (put_user(ret, &uptr->nfetch32)) in mon_bin_compat_ioctl()
|
/Linux-v5.4/arch/arm64/kvm/ |
D | guest.c | 389 char __user *uptr = (char __user *)reg->addr; in get_sve_reg() local 403 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg() 405 clear_user(uptr + region.klen, region.upad)) in get_sve_reg() 415 const char __user *uptr = (const char __user *)reg->addr; in set_sve_reg() local 429 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
|
/Linux-v5.4/net/batman-adv/ |
D | tvlv.h | 33 int (*uptr)(struct batadv_priv *bat_priv,
|
D | tvlv.c | 512 int (*uptr)(struct batadv_priv *bat_priv, in batadv_tvlv_handler_register() 536 tvlv_handler->unicast_handler = uptr; in batadv_tvlv_handler_register()
|
/Linux-v5.4/include/uapi/xen/ |
D | privcmd.h | 82 void __user *uptr; member
|
/Linux-v5.4/drivers/xen/ |
D | privcmd.c | 594 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in lock_pages() 600 (unsigned long) kbufs[i].uptr, in lock_pages() 665 if (!access_ok(kbufs[i].uptr, in privcmd_ioctl_dm_op() 672 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in privcmd_ioctl_dm_op() 693 set_xen_guest_handle(xbufs[i].h, kbufs[i].uptr); in privcmd_ioctl_dm_op()
|
/Linux-v5.4/net/ipv4/netfilter/ |
D | arp_tables.c | 841 static int get_entries(struct net *net, struct arpt_get_entries __user *uptr, in get_entries() argument 850 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries() 863 t, uptr->entrytable); in get_entries() 1384 struct compat_arpt_get_entries __user *uptr, in compat_get_entries() argument 1393 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries() 1409 t, uptr->entrytable); in compat_get_entries()
|
D | ip_tables.c | 1005 get_entries(struct net *net, struct ipt_get_entries __user *uptr, in get_entries() argument 1014 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries() 1025 t, uptr->entrytable); in get_entries() 1598 compat_get_entries(struct net *net, struct compat_ipt_get_entries __user *uptr, in compat_get_entries() argument 1608 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries() 1624 t, uptr->entrytable); in compat_get_entries()
|
/Linux-v5.4/drivers/android/ |
D | binder_alloc.c | 132 void __user *uptr; in binder_alloc_prepare_to_free_locked() local 134 uptr = (void __user *)user_ptr; in binder_alloc_prepare_to_free_locked() 140 if (uptr < buffer->user_data) in binder_alloc_prepare_to_free_locked() 142 else if (uptr > buffer->user_data) in binder_alloc_prepare_to_free_locked()
|