/linux/security/keys/ |
A D | compat.c | 47 compat_ptr(arg4), arg5); in COMPAT_SYSCALL_DEFINE5() 94 return compat_keyctl_dh_compute(compat_ptr(arg2), in COMPAT_SYSCALL_DEFINE5() 95 compat_ptr(arg3), in COMPAT_SYSCALL_DEFINE5() 96 arg4, compat_ptr(arg5)); in COMPAT_SYSCALL_DEFINE5() 100 compat_ptr(arg4)); in COMPAT_SYSCALL_DEFINE5() 106 compat_ptr(arg4), in COMPAT_SYSCALL_DEFINE5() 107 compat_ptr(arg5)); in COMPAT_SYSCALL_DEFINE5() 113 compat_ptr(arg2), compat_ptr(arg3), in COMPAT_SYSCALL_DEFINE5() 114 compat_ptr(arg4), compat_ptr(arg5)); in COMPAT_SYSCALL_DEFINE5() 117 return keyctl_pkey_verify(compat_ptr(arg2), compat_ptr(arg3), in COMPAT_SYSCALL_DEFINE5() [all …]
|
A 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/net/ |
A D | compat.c | 64 *save_addr = compat_ptr(msg.msg_name); in __get_compat_msghdr() 452 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2() 461 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2() 464 ret = __sys_getsockname(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2() 467 ret = __sys_getpeername(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2() 477 compat_ptr(a[4]), a[5]); in COMPAT_SYSCALL_DEFINE2() 485 compat_ptr(a[4]), in COMPAT_SYSCALL_DEFINE2() 486 compat_ptr(a[5])); in COMPAT_SYSCALL_DEFINE2() 496 compat_ptr(a[4])); in COMPAT_SYSCALL_DEFINE2() 510 compat_ptr(a[4])); in COMPAT_SYSCALL_DEFINE2() [all …]
|
/linux/ipc/ |
A 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/fs/xfs/ |
A D | xfs_ioctl32.c | 262 bulkreq.lastip = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 266 bulkreq.ubuffer = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 269 bulkreq.ocount = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat() 335 hreq->path = compat_ptr(hreq32.path); in xfs_compat_handlereq_copyin() 337 hreq->ihandle = compat_ptr(hreq32.ihandle); in xfs_compat_handlereq_copyin() 339 hreq->ohandle = compat_ptr(hreq32.ohandle); in xfs_compat_handlereq_copyin() 340 hreq->ohandlen = compat_ptr(hreq32.ohandlen); in xfs_compat_handlereq_copyin() 351 compat_ptr(hreq->ihandle), hreq->ihandlen); in xfs_compat_handlereq_to_dentry() 419 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle() 420 compat_ptr(ops[i].am_attrvalue), in xfs_compat_attrmulti_by_handle() [all …]
|
/linux/drivers/gpu/drm/r128/ |
A 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/drivers/video/fbdev/ |
A D | sbuslib.c | 221 if (copy_from_user(&c, compat_ptr(arg), sizeof(c))) in sbusfb_compat_ioctl() 223 ured = compat_ptr(c.red); in sbusfb_compat_ioctl() 224 ugreen = compat_ptr(c.green); in sbusfb_compat_ioctl() 225 ublue = compat_ptr(c.blue); in sbusfb_compat_ioctl() 260 if (copy_from_user(&c, compat_ptr(arg), sizeof(c))) in sbusfb_compat_ioctl() 263 ured = compat_ptr(c.red); in sbusfb_compat_ioctl() 264 ugreen = compat_ptr(c.green); in sbusfb_compat_ioctl() 265 ublue = compat_ptr(c.blue); in sbusfb_compat_ioctl()
|
/linux/drivers/gpu/drm/ |
A D | drm_ioc32.c | 105 .name = compat_ptr(v32.name), in compat_drm_version() 107 .date = compat_ptr(v32.date), in compat_drm_version() 109 .desc = compat_ptr(v32.desc), in compat_drm_version() 146 .unique = compat_ptr(uq32.unique), in compat_drm_getunique() 228 if (map.handle != compat_ptr(m32.handle)) in compat_drm_addmap() 247 map.handle = compat_ptr(handle); in compat_drm_rmmap() 500 request.list = compat_ptr(req32.list); in compat_drm_freebufs() 520 request.handle = compat_ptr(req32.handle); in compat_drm_setsareactx() 565 res.contexts = compat_ptr(res32.contexts); in compat_drm_resctx() 603 d.send_indices = compat_ptr(d32.send_indices); in compat_drm_dma() [all …]
|
/linux/net/atm/ |
A D | ioctl.c | 175 buf = compat_ptr(cbuf); in do_vcc_ioctl() 195 buf = compat_ptr(carg); in do_vcc_ioctl() 277 struct compat_atm_iobuf __user *iobuf32 = compat_ptr(arg); in do_atm_iobuf() 283 return atm_getnames(&iobuf32->length, compat_ptr(data)); in do_atm_iobuf() 289 struct compat_atmif_sioc __user *sioc32 = compat_ptr(arg); in do_atmif_sioc() 295 return atm_dev_ioctl(cmd, compat_ptr(data), &sioc32->length, number, 0); in do_atmif_sioc()
|
/linux/arch/sparc/kernel/ |
A D | process.c | 80 args.pidfd = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone() 81 args.child_tid = compat_ptr(regs->u_regs[UREG_I4]); in sparc_clone() 82 args.parent_tid = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone()
|
/linux/drivers/staging/vc04_services/interface/vchiq_arm/ |
A D | vchiq_dev.c | 389 *buf = compat_ptr(ptr32); in vchiq_get_user_ptr() 921 .callback = compat_ptr(args32.params.callback), in vchiq_compat_ioctl_create_service() 973 .elements = compat_ptr(args32.elements), in vchiq_compat_ioctl_queue_message() 996 compat_ptr(element32[count].data); in vchiq_compat_ioctl_queue_message() 1037 .data = compat_ptr(args32.data), in vchiq_compat_ioctl_queue_bulk() 1039 .userdata = compat_ptr(args32.userdata), in vchiq_compat_ioctl_queue_bulk() 1071 .buf = compat_ptr(args32.buf), in vchiq_compat_ioctl_await_completion() 1074 .msgbufs = compat_ptr(args32.msgbufs), in vchiq_compat_ioctl_await_completion() 1106 .buf = compat_ptr(args32.buf), in vchiq_compat_ioctl_dequeue_message() 1135 ptr = compat_ptr(args32.pconfig); in vchiq_compat_ioctl_get_config() [all …]
|
/linux/sound/core/ |
A D | hwdep_compat.c | 30 info.image = compat_ptr(ptr); in snd_hwdep_dsp_load_compat() 43 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat()
|
A D | pcm_compat.c | 306 err = snd_pcm_lib_write(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat() 308 err = snd_pcm_lib_read(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat() 353 bufptr = compat_ptr(buf); in snd_pcm_ioctl_xfern_compat() 363 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat() 573 void __user *argp = compat_ptr(arg); in snd_pcm_ioctl_compat()
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-compat-ioctl32.c | 68 .clips = (void __force *)compat_ptr(w32.clips), in get_v4l2_window32() 70 .bitmap = compat_ptr(w32.bitmap), in get_v4l2_window32() 355 m.userptr = (unsigned long)compat_ptr(plane32.m.userptr); in get_v4l2_plane32() 436 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32() 445 compat_ptr(vb32.m.planes); in get_v4l2_buffer32() 489 compat_ptr(vb32.m.planes); in get_v4l2_buffer32_time32() 610 p64->base = (void __force *)compat_ptr(tmp); in get_v4l2_framebuffer32() 723 .controls = (void __force *)compat_ptr(ec32.controls), in get_v4l2_ext_controls32() 835 p64->edid = (void __force *)compat_ptr(edid); in get_v4l2_edid32() 1114 ec64->string = compat_ptr(p); in v4l2_compat_get_array_args() [all …]
|
/linux/arch/s390/include/asm/ |
A D | compat.h | 166 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() function 170 #define compat_ptr(uptr) compat_ptr(uptr) macro
|
/linux/drivers/s390/char/ |
A D | sclp_ctl.c | 47 return compat_ptr(value); in u64_to_uptr() 99 argp = compat_ptr(arg); in sclp_ctl_ioctl()
|
/linux/drivers/s390/crypto/ |
A D | zcrypt_api.c | 1741 mex64.inputdata = compat_ptr(mex32.inputdata); in trans_modexpo32() 1745 mex64.b_key = compat_ptr(mex32.b_key); in trans_modexpo32() 1746 mex64.n_modulus = compat_ptr(mex32.n_modulus); in trans_modexpo32() 1795 crt64.bp_key = compat_ptr(crt32.bp_key); in trans_modexpo_crt32() 1796 crt64.bq_key = compat_ptr(crt32.bq_key); in trans_modexpo_crt32() 1797 crt64.np_prime = compat_ptr(crt32.np_prime); in trans_modexpo_crt32() 1798 crt64.nq_prime = compat_ptr(crt32.nq_prime); in trans_modexpo_crt32() 1858 compat_ptr(xcRB32.request_control_blk_addr); in trans_xcRB32() 1862 compat_ptr(xcRB32.request_data_address); in trans_xcRB32() 1866 compat_ptr(xcRB32.reply_control_blk_addr); in trans_xcRB32() [all …]
|
/linux/drivers/char/ipmi/ |
A D | ipmi_devintf.c | 670 p64->data = compat_ptr(p32->data); in get_compat_ipmi_msg() 676 p64->addr = compat_ptr(p32->addr); in get_compat_ipmi_req() 695 p64->addr = compat_ptr(p32->addr); in get_compat_ipmi_recv() 732 if (copy_from_user(&r32, compat_ptr(arg), sizeof(r32))) in compat_ipmi_ioctl() 750 if (copy_from_user(&sp32, compat_ptr(arg), sizeof(sp32))) in compat_ipmi_ioctl() 764 if (copy_from_user(&recv32, compat_ptr(arg), sizeof(recv32))) in compat_ipmi_ioctl() 771 &recv64, copyout_recv32, compat_ptr(arg)); in compat_ipmi_ioctl()
|
/linux/net/bluetooth/hidp/ |
A 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/arch/arm64/kernel/ |
A 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/drivers/scsi/ |
A D | scsi_ioctl.c | 706 .dxferp = compat_ptr(hdr32.dxferp), in get_sg_io_hdr() 707 .cmdp = compat_ptr(hdr32.cmdp), in get_sg_io_hdr() 708 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr() 712 .usr_ptr = compat_ptr(hdr32.usr_ptr), in get_sg_io_hdr() 761 .buffer = compat_ptr(cgc32.buffer), in scsi_get_cdrom_generic_arg() 764 .sense = compat_ptr(cgc32.sense), in scsi_get_cdrom_generic_arg() 768 .unused = compat_ptr(cgc32.unused), in scsi_get_cdrom_generic_arg()
|
/linux/arch/powerpc/kernel/ptrace/ |
A D | ptrace32.c | 271 compat_ptr(data)); in compat_arch_ptrace() 277 compat_ptr(data)); in compat_arch_ptrace()
|
/linux/net/bluetooth/bnep/ |
A 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/net/bluetooth/cmtp/ |
A 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/drivers/comedi/ |
A D | comedi_fops.c | 2908 chaninfo.flaglist = compat_ptr(chaninfo32.flaglist); in compat_chaninfo() 2909 chaninfo.rangelist = compat_ptr(chaninfo32.rangelist); in compat_chaninfo() 2930 rangeinfo.range_ptr = compat_ptr(rangeinfo32.range_ptr); in compat_rangeinfo() 2961 cmd->data = compat_ptr(v32.data); in get_compat_cmd() 3004 rc = get_compat_cmd(&cmd, compat_ptr(arg)); in compat_cmd() 3013 err = put_compat_cmd(compat_ptr(arg), &cmd); in compat_cmd() 3029 rc = get_compat_cmd(&cmd, compat_ptr(arg)); in compat_cmdtest() 3037 err = put_compat_cmd(compat_ptr(arg), &cmd); in compat_cmdtest() 3056 insn->data = compat_ptr(v32.data); in get_compat_insn() 3081 insn32 = compat_ptr(insnlist32.insns); in compat_insnlist() [all …]
|