Home
last modified time | relevance | path

Searched refs:compat_ptr (Results 1 – 25 of 146) sorted by relevance

123456

/linux/security/keys/
H A Dcompat.c25 return keyctl_join_session_keyring(compat_ptr(arg2)); in COMPAT_SYSCALL_DEFINE5()
28 return keyctl_update_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5()
34 return keyctl_describe_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5()
46 return keyctl_keyring_search(arg2, compat_ptr(arg3), in COMPAT_SYSCALL_DEFINE5()
47 compat_ptr(arg4), arg5); in COMPAT_SYSCALL_DEFINE5()
50 return keyctl_read_key(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5()
59 return keyctl_instantiate_key(arg2, compat_ptr(arg3), arg4, in COMPAT_SYSCALL_DEFINE5()
75 return keyctl_get_security(arg2, compat_ptr(arg3), arg4); in COMPAT_SYSCALL_DEFINE5()
84 return keyctl_instantiate_key_iov(arg2, compat_ptr(arg3), arg4, in COMPAT_SYSCALL_DEFINE5()
94 return compat_keyctl_dh_compute(compat_ptr(arg2), in COMPAT_SYSCALL_DEFINE5()
[all …]
H A Dcompat_dh.c29 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/
H A Dcompat.c56 kmsg->msg_control_user = compat_ptr(msg->msg_control); in __get_compat_msghdr()
60 *save_addr = compat_ptr(msg->msg_name); in __get_compat_msghdr()
64 err = move_addr_to_kernel(compat_ptr(msg->msg_name), in __get_compat_msghdr()
99 compat_ptr(msg.msg_iov), msg.msg_iovlen, in get_compat_msghdr()
451 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
454 ret = __sys_connect(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
460 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2()
463 ret = __sys_getsockname(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2()
466 ret = __sys_getpeername(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2()
469 ret = __sys_socketpair(a0, a1, a[2], compat_ptr(a[3])); in COMPAT_SYSCALL_DEFINE2()
[all …]
/linux/ipc/
H A Dsyscall.c142 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/drivers/video/fbdev/
H A Dsbuslib.c222 if (copy_from_user(&c, compat_ptr(arg), sizeof(c))) in sbusfb_compat_ioctl()
224 ured = compat_ptr(c.red); in sbusfb_compat_ioctl()
225 ugreen = compat_ptr(c.green); in sbusfb_compat_ioctl()
226 ublue = compat_ptr(c.blue); in sbusfb_compat_ioctl()
261 if (copy_from_user(&c, compat_ptr(arg), sizeof(c))) in sbusfb_compat_ioctl()
264 ured = compat_ptr(c.red); in sbusfb_compat_ioctl()
265 ugreen = compat_ptr(c.green); in sbusfb_compat_ioctl()
266 ublue = compat_ptr(c.blue); in sbusfb_compat_ioctl()
/linux/arch/sparc/kernel/
H A Dprocess.c80 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/net/atm/
H A Dioctl.c178 buf = compat_ptr(cbuf); in do_vcc_ioctl()
198 buf = compat_ptr(carg); in do_vcc_ioctl()
280 struct compat_atm_iobuf __user *iobuf32 = compat_ptr(arg); in do_atm_iobuf()
286 return atm_getnames(&iobuf32->length, compat_ptr(data)); in do_atm_iobuf()
292 struct compat_atmif_sioc __user *sioc32 = compat_ptr(arg); in do_atmif_sioc()
298 return atm_dev_ioctl(cmd, compat_ptr(data), &sioc32->length, number, 0); in do_atmif_sioc()
/linux/arch/s390/include/asm/
H A Dcompat.h125 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() function
129 #define compat_ptr(uptr) compat_ptr(uptr) macro
/linux/drivers/video/fbdev/core/
H A Dfb_chrdev.c206 if (copy_from_user(&cmap32, compat_ptr(arg), sizeof(cmap32))) in fb_getput_cmap()
212 .red = compat_ptr(cmap32.red), in fb_getput_cmap()
213 .green = compat_ptr(cmap32.green), in fb_getput_cmap()
214 .blue = compat_ptr(cmap32.blue), in fb_getput_cmap()
215 .transp = compat_ptr(cmap32.transp), in fb_getput_cmap()
271 return do_fscreeninfo_to_user(&fix, compat_ptr(arg)); in fb_get_fscreeninfo()
290 arg = (unsigned long) compat_ptr(arg); in fb_compat_ioctl()
/linux/sound/core/
H A Dhwdep_compat.c30 info.image = compat_ptr(ptr); in snd_hwdep_dsp_load_compat()
43 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat()
H A Dpcm_compat.c304 err = snd_pcm_lib_write(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
306 err = snd_pcm_lib_read(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
351 bufptr = compat_ptr(buf); in snd_pcm_ioctl_xfern_compat()
359 bufs[i] = compat_ptr(ptr); in snd_pcm_ioctl_xfern_compat()
566 void __user *argp = compat_ptr(arg); in snd_pcm_ioctl_compat()
/linux/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_dev.c394 *buf = compat_ptr(ptr32); in vchiq_get_user_ptr()
925 .callback = compat_ptr(args32.params.callback), in vchiq_compat_ioctl_create_service()
926 .userdata = compat_ptr(args32.params.userdata), in vchiq_compat_ioctl_create_service()
978 .elements = compat_ptr(args32.elements), in vchiq_compat_ioctl_queue_message()
1001 compat_ptr(element32[count].data); in vchiq_compat_ioctl_queue_message()
1042 .data = compat_ptr(args32.data), in vchiq_compat_ioctl_queue_bulk()
1044 .userdata = compat_ptr(args32.userdata), in vchiq_compat_ioctl_queue_bulk()
1076 .buf = compat_ptr(args32.buf), in vchiq_compat_ioctl_await_completion()
1079 .msgbufs = compat_ptr(args32.msgbufs), in vchiq_compat_ioctl_await_completion()
1111 .buf = compat_ptr(args32.buf), in vchiq_compat_ioctl_dequeue_message()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_ioc32.c105 .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()
/linux/drivers/s390/crypto/
H A Dzcrypt_api.c1724 struct compat_ica_rsa_modexpo __user *umex32 = compat_ptr(arg); in trans_modexpo32()
1733 mex64.inputdata = compat_ptr(mex32.inputdata); in trans_modexpo32()
1735 mex64.outputdata = compat_ptr(mex32.outputdata); in trans_modexpo32()
1737 mex64.b_key = compat_ptr(mex32.b_key); in trans_modexpo32()
1738 mex64.n_modulus = compat_ptr(mex32.n_modulus); in trans_modexpo32()
1771 struct compat_ica_rsa_modexpo_crt __user *ucrt32 = compat_ptr(arg); in trans_modexpo_crt32()
1780 crt64.inputdata = compat_ptr(crt32.inputdata); in trans_modexpo_crt32()
1782 crt64.outputdata = compat_ptr(crt32.outputdata); in trans_modexpo_crt32()
1784 crt64.bp_key = compat_ptr(crt32.bp_key); in trans_modexpo_crt32()
1785 crt64.bq_key = compat_ptr(crt32.bq_key); in trans_modexpo_crt32()
[all …]
/linux/drivers/scsi/
H A Dscsi_ioctl.c676 .dxferp = compat_ptr(hdr32.dxferp), in get_sg_io_hdr()
677 .cmdp = compat_ptr(hdr32.cmdp), in get_sg_io_hdr()
678 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr()
682 .usr_ptr = compat_ptr(hdr32.usr_ptr), in get_sg_io_hdr()
731 .buffer = compat_ptr(cgc32.buffer), in scsi_get_cdrom_generic_arg()
734 .sense = compat_ptr(cgc32.sense), in scsi_get_cdrom_generic_arg()
738 .unused = compat_ptr(cgc32.unused), in scsi_get_cdrom_generic_arg()
/linux/drivers/char/ipmi/
H A Dipmi_devintf.c670 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/
H A Dsock.c150 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl()
161 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
188 ca.rd_data = compat_ptr(ca32.rd_data); in hidp_sock_compat_ioctl()
/linux/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c350 m.userptr = (unsigned long)compat_ptr(plane32.m.userptr); in get_v4l2_plane32()
431 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32()
440 compat_ptr(vb32.m.planes); in get_v4l2_buffer32()
475 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32_time32()
484 compat_ptr(vb32.m.planes); in get_v4l2_buffer32_time32()
715 .controls = (void __force *)compat_ptr(ec32.controls), in get_v4l2_ext_controls32()
827 p64->edid = (void __force *)compat_ptr(edid); in get_v4l2_edid32()
1085 ec64->string = compat_ptr(p); in v4l2_compat_get_array_args()
1201 (unsigned long)compat_ptr(arg)); in v4l2_compat_ioctl32()
/linux/net/bluetooth/cmtp/
H A Dsock.c147 void __user *argp = compat_ptr(arg); in cmtp_sock_compat_ioctl()
157 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
/linux/net/bluetooth/bnep/
H A Dsock.c145 void __user *argp = compat_ptr(arg); in bnep_sock_compat_ioctl()
155 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace32.c271 compat_ptr(data)); in compat_arch_ptrace()
277 compat_ptr(data)); in compat_arch_ptrace()
/linux/drivers/comedi/
H A Dcomedi_fops.c2907 if (copy_from_user(&chaninfo32, compat_ptr(arg), sizeof(chaninfo32))) in compat_chaninfo()
2912 chaninfo.maxdata_list = compat_ptr(chaninfo32.maxdata_list); in compat_chaninfo()
2913 chaninfo.flaglist = compat_ptr(chaninfo32.flaglist); in compat_chaninfo()
2914 chaninfo.rangelist = compat_ptr(chaninfo32.rangelist); in compat_chaninfo()
2931 if (copy_from_user(&rangeinfo32, compat_ptr(arg), sizeof(rangeinfo32))) in compat_rangeinfo()
2935 rangeinfo.range_ptr = compat_ptr(rangeinfo32.range_ptr); in compat_rangeinfo()
2964 cmd->chanlist = (unsigned int __force *)compat_ptr(v32.chanlist); in get_compat_cmd()
2966 cmd->data = compat_ptr(v32.data); in get_compat_cmd()
3009 rc = get_compat_cmd(&cmd, compat_ptr(arg)); in compat_cmd()
3018 err = put_compat_cmd(compat_ptr(arg), &cmd); in compat_cmd()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_ioc32.c57 req.value = compat_ptr(req32.value); in compat_i915_getparam()
/linux/fs/
H A Dfcntl.c754 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
762 err = put_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
766 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
771 err = put_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
775 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
784 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
H A Dioctl.c946 return file->f_op->unlocked_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in compat_ptr_ioctl()
973 error = compat_ioctl_preallocate(fd_file(f), 0, compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3()
978 compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3()
982 compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3()
1002 (unsigned long)compat_ptr(arg)); in COMPAT_SYSCALL_DEFINE3()

123456