Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/security/keys/
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 …]
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-6.1.9/net/
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()
98 err = import_iovec(save_addr ? READ : WRITE, compat_ptr(msg.msg_iov), msg.msg_iovlen, in get_compat_msghdr()
449 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
452 ret = __sys_connect(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
458 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2()
461 ret = __sys_getsockname(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2()
464 ret = __sys_getpeername(a0, compat_ptr(a1), compat_ptr(a[2])); in COMPAT_SYSCALL_DEFINE2()
467 ret = __sys_socketpair(a0, a1, a[2], compat_ptr(a[3])); in COMPAT_SYSCALL_DEFINE2()
[all …]
/linux-6.1.9/ipc/
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-6.1.9/fs/xfs/
Dxfs_ioctl32.c248 bulkreq.lastip = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
252 bulkreq.ubuffer = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
255 bulkreq.ocount = compat_ptr(addr); in xfs_compat_ioc_fsbulkstat()
321 hreq->path = compat_ptr(hreq32.path); in xfs_compat_handlereq_copyin()
323 hreq->ihandle = compat_ptr(hreq32.ihandle); in xfs_compat_handlereq_copyin()
325 hreq->ohandle = compat_ptr(hreq32.ohandle); in xfs_compat_handlereq_copyin()
326 hreq->ohandlen = compat_ptr(hreq32.ohandlen); in xfs_compat_handlereq_copyin()
337 compat_ptr(hreq->ihandle), hreq->ihandlen); in xfs_compat_handlereq_to_dentry()
359 compat_ptr(al_hreq.buffer), al_hreq.buflen, in xfs_compat_attrlist_by_handle()
395 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle()
[all …]
/linux-6.1.9/drivers/gpu/drm/r128/
Dr128_ioc32.c119 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-6.1.9/drivers/video/fbdev/
Dsbuslib.c221 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-6.1.9/net/atm/
Dioctl.c175 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-6.1.9/arch/sparc/kernel/
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-6.1.9/drivers/gpu/drm/
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()
228 if (map.handle != compat_ptr(m32.handle)) in compat_drm_addmap()
247 map.handle = compat_ptr(handle); in compat_drm_rmmap()
378 drm_buf_desc32_t __user *to = compat_ptr(request->list); in copy_one_buf32()
437 drm_buf_pub32_t __user *to = compat_ptr(request->list) + idx; in map_one_buf32()
500 request.list = compat_ptr(req32.list); in compat_drm_freebufs()
520 request.handle = compat_ptr(req32.handle); in compat_drm_setsareactx()
[all …]
/linux-6.1.9/arch/s390/include/asm/
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-6.1.9/sound/core/
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()
Dpcm_compat.c306 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-6.1.9/drivers/s390/char/
Dsclp_ctl.c47 return compat_ptr(value); in u64_to_uptr()
99 argp = compat_ptr(arg); in sclp_ctl_ioctl()
/linux-6.1.9/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_dev.c387 *buf = compat_ptr(ptr32); in vchiq_get_user_ptr()
920 .callback = compat_ptr(args32.params.callback), in vchiq_compat_ioctl_create_service()
921 .userdata = compat_ptr(args32.params.userdata), 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()
[all …]
/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c68 .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()
480 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32_time32()
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()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Dperf_callchain.c95 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-6.1.9/drivers/s390/crypto/
Dzcrypt_api.c1814 struct compat_ica_rsa_modexpo __user *umex32 = compat_ptr(arg); in trans_modexpo32()
1823 mex64.inputdata = compat_ptr(mex32.inputdata); in trans_modexpo32()
1825 mex64.outputdata = compat_ptr(mex32.outputdata); in trans_modexpo32()
1827 mex64.b_key = compat_ptr(mex32.b_key); in trans_modexpo32()
1828 mex64.n_modulus = compat_ptr(mex32.n_modulus); in trans_modexpo32()
1864 struct compat_ica_rsa_modexpo_crt __user *ucrt32 = compat_ptr(arg); in trans_modexpo_crt32()
1873 crt64.inputdata = compat_ptr(crt32.inputdata); in trans_modexpo_crt32()
1875 crt64.outputdata = compat_ptr(crt32.outputdata); in trans_modexpo_crt32()
1877 crt64.bp_key = compat_ptr(crt32.bp_key); in trans_modexpo_crt32()
1878 crt64.bq_key = compat_ptr(crt32.bq_key); in trans_modexpo_crt32()
[all …]
/linux-6.1.9/drivers/char/ipmi/
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-6.1.9/drivers/scsi/
Dscsi_ioctl.c673 .dxferp = compat_ptr(hdr32.dxferp), in get_sg_io_hdr()
674 .cmdp = compat_ptr(hdr32.cmdp), in get_sg_io_hdr()
675 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr()
679 .usr_ptr = compat_ptr(hdr32.usr_ptr), in get_sg_io_hdr()
728 .buffer = compat_ptr(cgc32.buffer), in scsi_get_cdrom_generic_arg()
731 .sense = compat_ptr(cgc32.sense), in scsi_get_cdrom_generic_arg()
735 .unused = compat_ptr(cgc32.unused), in scsi_get_cdrom_generic_arg()
/linux-6.1.9/net/bluetooth/hidp/
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-6.1.9/arch/powerpc/kernel/ptrace/
Dptrace32.c271 compat_ptr(data)); in compat_arch_ptrace()
277 compat_ptr(data)); in compat_arch_ptrace()
/linux-6.1.9/net/bluetooth/cmtp/
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-6.1.9/net/bluetooth/bnep/
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-6.1.9/fs/
Dfcntl.c622 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
630 err = put_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
634 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
639 err = put_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()
643 err = get_compat_flock(&flock, compat_ptr(arg)); in do_compat_fcntl64()
652 err = get_compat_flock64(&flock, compat_ptr(arg)); in do_compat_fcntl64()

1234567