| /Linux-v5.4/security/keys/ |
| D | compat.c | 63 return keyctl_join_session_keyring(compat_ptr(arg2)); in COMPAT_SYSCALL_DEFINE5() 66 return keyctl_update_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5() 72 return keyctl_describe_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5() 84 return keyctl_keyring_search(arg2, compat_ptr(arg3), in COMPAT_SYSCALL_DEFINE5() 85 compat_ptr(arg4), arg5); in COMPAT_SYSCALL_DEFINE5() 88 return keyctl_read_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5() 97 return keyctl_instantiate_key(arg2, compat_ptr(arg3), arg4, in COMPAT_SYSCALL_DEFINE5() 113 return keyctl_get_security(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5() 123 arg2, compat_ptr(arg3), arg4, arg5); in COMPAT_SYSCALL_DEFINE5() 132 return compat_keyctl_dh_compute(compat_ptr(arg2), in COMPAT_SYSCALL_DEFINE5() [all …]
|
| D | compat_dh.c | 29 kdfcopy.hashname = compat_ptr(compat_kdfcopy.hashname); in compat_keyctl_dh_compute() 30 kdfcopy.otherinfo = compat_ptr(compat_kdfcopy.otherinfo); in compat_keyctl_dh_compute()
|
| /Linux-v5.4/block/ |
| D | compat_ioctl.c | 16 return put_user(val, (unsigned short __user *)compat_ptr(arg)); in compat_put_ushort() 21 return put_user(val, (compat_int_t __user *)compat_ptr(arg)); in compat_put_int() 26 return put_user(val, (compat_uint_t __user *)compat_ptr(arg)); in compat_put_uint() 31 return put_user(val, (compat_long_t __user *)compat_ptr(arg)); in compat_put_long() 36 return put_user(val, (compat_ulong_t __user *)compat_ptr(arg)); in compat_put_ulong() 41 return put_user(val, (compat_u64 __user *)compat_ptr(arg)); in compat_put_u64() 90 unsigned int __user *uvp = compat_ptr(arg); in compat_hdio_ioctl() 126 cdread_audio32 = compat_ptr(arg); in compat_cdrom_read_audio() 136 datap = compat_ptr(data); in compat_cdrom_read_audio() 154 cgc32 = compat_ptr(arg); in compat_cdrom_generic_command() [all …]
|
| /Linux-v5.4/ipc/ |
| D | syscall.c | 142 return ksys_semtimedop(first, compat_ptr(ptr), second, NULL); in compat_ksys_ipc() 146 return compat_ksys_semtimedop(first, compat_ptr(ptr), second, in compat_ksys_ipc() 147 compat_ptr(fifth)); in compat_ksys_ipc() 153 if (get_user(pad, (u32 __user *) compat_ptr(ptr))) in compat_ksys_ipc() 161 void __user *uptr = compat_ptr(ptr); in compat_ksys_ipc() 180 return compat_ksys_old_msgctl(first, second, compat_ptr(ptr)); in compat_ksys_ipc() 188 err = do_shmat(first, compat_ptr(ptr), second, &raddr, in compat_ksys_ipc() 192 return put_user(raddr, (compat_ulong_t __user *)compat_ptr(third)); in compat_ksys_ipc() 195 return ksys_shmdt(compat_ptr(ptr)); in compat_ksys_ipc() 199 return compat_ksys_old_shmctl(first, second, compat_ptr(ptr)); in compat_ksys_ipc()
|
| /Linux-v5.4/net/ |
| D | compat.c | 59 kmsg->msg_control = compat_ptr(msg.msg_control); in get_compat_msghdr() 63 *save_addr = compat_ptr(msg.msg_name); in get_compat_msghdr() 67 err = move_addr_to_kernel(compat_ptr(msg.msg_name), in get_compat_msghdr() 84 compat_ptr(msg.msg_iov), msg.msg_iovlen, in get_compat_msghdr() 332 f.filter = compat_ptr(f32.filter); in get_compat_bpf_fprog() 747 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2() 750 ret = __sys_connect(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2() 756 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2() 759 ret = __sys_getsockname(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2() 762 ret = __sys_getpeername(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2() [all …]
|
| /Linux-v5.4/drivers/staging/comedi/ |
| D | comedi_compat32.c | 101 chaninfo32 = compat_ptr(arg); in compat_chaninfo() 113 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->maxdata_list); in compat_chaninfo() 115 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->flaglist); in compat_chaninfo() 117 err |= __put_user(compat_ptr(temp.uptr), &chaninfo->rangelist); in compat_chaninfo() 135 rangeinfo32 = compat_ptr(arg); in compat_rangeinfo() 147 err |= __put_user(compat_ptr(temp.uptr), &rangeinfo->range_ptr); in compat_rangeinfo() 196 err |= __put_user((unsigned int __force *)compat_ptr(temp.uptr), in get_compat_cmd() 201 err |= __put_user(compat_ptr(temp.uptr), &cmd->data); in get_compat_cmd() 265 cmd32 = compat_ptr(arg); in compat_cmd() 290 cmd32 = compat_ptr(arg); in compat_cmdtest() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/r128/ |
| D | r128_ioc32.c | 119 depth.x = compat_ptr(depth32.x); in compat_r128_depth() 120 depth.y = compat_ptr(depth32.y); in compat_r128_depth() 121 depth.buffer = compat_ptr(depth32.buffer); in compat_r128_depth() 122 depth.mask = compat_ptr(depth32.mask); in compat_r128_depth() 140 stipple.mask = compat_ptr(stipple32.mask); in compat_r128_stipple() 160 getparam.value = compat_ptr(getparam32.value); in compat_r128_getparam()
|
| /Linux-v5.4/fs/xfs/ |
| D | xfs_ioctl32.c | 260 bulkreq.lastip = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 264 bulkreq.ubuffer = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 267 bulkreq.ocount = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 333 hreq->path = compat_ptr(hreq32.path); in xfs_compat_handlereq_copyin() 335 hreq->ihandle = compat_ptr(hreq32.ihandle); in xfs_compat_handlereq_copyin() 337 hreq->ohandle = compat_ptr(hreq32.ohandle); in xfs_compat_handlereq_copyin() 338 hreq->ohandlen = compat_ptr(hreq32.ohandlen); in xfs_compat_handlereq_copyin() 349 compat_ptr(hreq->ihandle), hreq->ihandlen); in xfs_compat_handlereq_to_dentry() 399 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle() 440 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle() [all …]
|
| /Linux-v5.4/drivers/video/fbdev/ |
| D | sbuslib.c | 204 ret |= put_user(compat_ptr(addr), &p->red); in fbiogetputcmap() 206 ret |= put_user(compat_ptr(addr), &p->green); in fbiogetputcmap() 208 ret |= put_user(compat_ptr(addr), &p->blue); in fbiogetputcmap() 229 ret |= put_user(compat_ptr(addr), &p->cmap.red); in fbiogscursor() 231 ret |= put_user(compat_ptr(addr), &p->cmap.green); in fbiogscursor() 233 ret |= put_user(compat_ptr(addr), &p->cmap.blue); in fbiogscursor() 235 ret |= put_user(compat_ptr(addr), &p->mask); in fbiogscursor() 237 ret |= put_user(compat_ptr(addr), &p->image); in fbiogscursor()
|
| /Linux-v5.4/drivers/gpu/drm/ |
| D | drm_ioc32.c | 104 .name = compat_ptr(v32.name), in compat_drm_version() 106 .date = compat_ptr(v32.date), in compat_drm_version() 108 .desc = compat_ptr(v32.desc), in compat_drm_version() 142 .unique = compat_ptr(uq32.unique), in compat_drm_getunique() 224 if (map.handle != compat_ptr(m32.handle)) in compat_drm_addmap() 243 map.handle = compat_ptr(handle); in compat_drm_rmmap() 376 drm_buf_desc32_t __user *to = compat_ptr(request->list); in copy_one_buf32() 434 drm_buf_pub32_t __user *to = compat_ptr(request->list) + idx; in map_one_buf32() 497 request.list = compat_ptr(req32.list); in compat_drm_freebufs() 517 request.handle = compat_ptr(req32.handle); in compat_drm_setsareactx() [all …]
|
| /Linux-v5.4/fs/ |
| D | compat.c | 30 dst->data = compat_ptr(src->data); in compat_nfs_string() 64 real->auth_flavours = compat_ptr(raw->auth_flavours); in do_nfs4_super_data_conv() 67 real->host_addr = compat_ptr(raw->host_addr); in do_nfs4_super_data_conv()
|
| D | compat_ioctl.c | 136 put_user(compat_ptr(base), &iov[i].iov_base) || in sg_build_iovec() 184 dxferp = compat_ptr(data); in sg_ioctl_trans() 199 cmdp = compat_ptr(data); in sg_ioctl_trans() 203 sbp = compat_ptr(data); in sg_ioctl_trans() 216 if (put_user(compat_ptr(data), &sgio->usr_ptr)) in sg_ioctl_trans() 294 fptr64 = compat_ptr(fptr32); in ppp_sock_fprog_ioctl_trans() 354 datap = compat_ptr(data); in ppp_scompress() 930 void __user *argp = compat_ptr(arg); in do_ioctl_trans() 1025 error = compat_ioctl_preallocate(f.file, compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3() 1030 error = ioctl_preallocate(f.file, compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3() [all …]
|
| D | fcntl.c | 631 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64() 639 err = put_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64() 643 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64() 648 err = put_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64() 652 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64() 661 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
|
| /Linux-v5.4/sound/core/ |
| D | hwdep_compat.c | 32 put_user(compat_ptr(ptr), &dst->image)) in snd_hwdep_dsp_load_compat() 52 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat()
|
| /Linux-v5.4/drivers/s390/crypto/ |
| D | zcrypt_api.c | 1503 struct compat_ica_rsa_modexpo __user *umex32 = compat_ptr(arg); in trans_modexpo32() 1510 mex64.inputdata = compat_ptr(mex32.inputdata); in trans_modexpo32() 1512 mex64.outputdata = compat_ptr(mex32.outputdata); in trans_modexpo32() 1514 mex64.b_key = compat_ptr(mex32.b_key); in trans_modexpo32() 1515 mex64.n_modulus = compat_ptr(mex32.n_modulus); in trans_modexpo32() 1545 struct compat_ica_rsa_modexpo_crt __user *ucrt32 = compat_ptr(arg); in trans_modexpo_crt32() 1552 crt64.inputdata = compat_ptr(crt32.inputdata); in trans_modexpo_crt32() 1554 crt64.outputdata = compat_ptr(crt32.outputdata); in trans_modexpo_crt32() 1556 crt64.bp_key = compat_ptr(crt32.bp_key); in trans_modexpo_crt32() 1557 crt64.bq_key = compat_ptr(crt32.bq_key); in trans_modexpo_crt32() [all …]
|
| /Linux-v5.4/drivers/s390/char/ |
| D | sclp_ctl.c | 47 return compat_ptr(value); in u64_to_uptr() 99 argp = compat_ptr(arg); in sclp_ctl_ioctl()
|
| /Linux-v5.4/net/atm/ |
| D | ioctl.c | 240 iobuf32 = compat_ptr(arg); in do_atm_iobuf() 245 datap = compat_ptr(data); in do_atm_iobuf() 271 sioc32 = compat_ptr(arg); in do_atmif_sioc() 276 datap = compat_ptr(data); in do_atmif_sioc()
|
| /Linux-v5.4/arch/arm64/kernel/ |
| D | perf_callchain.c | 95 compat_ptr(buftail.fp)) in compat_user_backtrace() 98 return (struct compat_frame_tail __user *)compat_ptr(buftail.fp) - 1; in compat_user_backtrace()
|
| /Linux-v5.4/drivers/media/v4l2-core/ |
| D | v4l2-compat-ioctl32.c | 177 uclips = compat_ptr(p); in get_v4l2_window32() 217 uclips = compat_ptr(p); in put_v4l2_window32() 514 put_user((unsigned long)compat_ptr(p), &p64->m.userptr)) in get_v4l2_plane32() 635 uplane32 = compat_ptr(p); in get_v4l2_buffer32() 669 put_user((unsigned long)compat_ptr(userptr), in get_v4l2_buffer32() 733 uplane32 = compat_ptr(p); in put_v4l2_buffer32() 787 put_user_force(compat_ptr(tmp), &p64->base) || in get_v4l2_framebuffer32() 932 ucontrols = compat_ptr(p); in get_v4l2_ext_controls32() 955 s = compat_ptr(p); in get_v4l2_ext_controls32() 997 ucontrols = compat_ptr(p); in put_v4l2_ext_controls32() [all …]
|
| /Linux-v5.4/drivers/char/ipmi/ |
| D | ipmi_devintf.c | 669 p64->data = compat_ptr(p32->data); in get_compat_ipmi_msg() 675 p64->addr = compat_ptr(p32->addr); in get_compat_ipmi_req() 694 p64->addr = compat_ptr(p32->addr); in get_compat_ipmi_recv() 731 if (copy_from_user(&r32, compat_ptr(arg), sizeof(r32))) in compat_ipmi_ioctl() 749 if (copy_from_user(&sp32, compat_ptr(arg), sizeof(sp32))) in compat_ipmi_ioctl() 763 if (copy_from_user(&recv32, compat_ptr(arg), sizeof(recv32))) in compat_ipmi_ioctl() 770 &recv64, copyout_recv32, compat_ptr(arg)); in compat_ipmi_ioctl()
|
| /Linux-v5.4/net/bluetooth/hidp/ |
| D | sock.c | 149 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() 160 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl() 187 ca.rd_data = compat_ptr(ca32.rd_data); in hidp_sock_compat_ioctl()
|
| /Linux-v5.4/net/bluetooth/bnep/ |
| D | sock.c | 144 void __user *argp = compat_ptr(arg); in bnep_sock_compat_ioctl() 154 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
|
| /Linux-v5.4/net/bluetooth/cmtp/ |
| D | sock.c | 147 void __user *argp = compat_ptr(arg); in cmtp_sock_compat_ioctl() 157 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
|
| /Linux-v5.4/kernel/power/ |
| D | user.c | 413 compat_loff_t __user *uoffset = compat_ptr(arg); in snapshot_compat_ioctl() 429 (unsigned long) compat_ptr(arg)); in snapshot_compat_ioctl() 433 compat_ptr(arg); in snapshot_compat_ioctl()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | ptrace32.c | 284 compat_ptr(data)); in compat_arch_ptrace() 290 compat_ptr(data)); in compat_arch_ptrace()
|