Home
last modified time | relevance | path

Searched refs:put_user (Results 1 – 25 of 99) sorted by relevance

1234

/linux-4.19.296/block/
Dcompat_ioctl.c17 return put_user(val, (unsigned short __user *)compat_ptr(arg)); in compat_put_ushort()
22 return put_user(val, (compat_int_t __user *)compat_ptr(arg)); in compat_put_int()
27 return put_user(val, (compat_uint_t __user *)compat_ptr(arg)); in compat_put_uint()
32 return put_user(val, (compat_long_t __user *)compat_ptr(arg)); in compat_put_long()
37 return put_user(val, (compat_ulong_t __user *)compat_ptr(arg)); in compat_put_ulong()
42 return put_user(val, (compat_u64 __user *)compat_ptr(arg)); in compat_put_u64()
74 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
93 if (get_user(v, p) || put_user(v, uvp)) in compat_hdio_ioctl()
138 if (put_user(datap, &cdread_audio->buf)) in compat_cdrom_read_audio()
159 put_user(compat_ptr(data), &cgc->buffer) || in compat_cdrom_generic_command()
[all …]
Dioctl.c269 return put_user(val, (unsigned short __user *)arg); in put_ushort()
274 return put_user(val, (int __user *)arg); in put_int()
279 return put_user(val, (unsigned int __user *)arg); in put_uint()
284 return put_user(val, (long __user *)arg); in put_long()
289 return put_user(val, (unsigned long __user *)arg); in put_ulong()
294 return put_user(val, (u64 __user *)arg); in put_u64()
Dscsi_ioctl.c57 return put_user(sg_version_num, p); in sg_get_version()
62 return put_user(0, p); in scsi_get_idlun()
67 return put_user(0, p); in scsi_get_bus()
98 return put_user(val, p); in sg_get_reserved_size()
121 return put_user(1, p); in sg_emulated_host()
/linux-4.19.296/drivers/pci/
Dsyscall.c55 err = put_user(byte, (unsigned char __user *)buf); in SYSCALL_DEFINE5()
58 err = put_user(word, (unsigned short __user *)buf); in SYSCALL_DEFINE5()
61 err = put_user(dword, (unsigned int __user *)buf); in SYSCALL_DEFINE5()
73 put_user(-1, (unsigned char __user *)buf); in SYSCALL_DEFINE5()
76 put_user(-1, (unsigned short __user *)buf); in SYSCALL_DEFINE5()
79 put_user(-1, (unsigned int __user *)buf); in SYSCALL_DEFINE5()
/linux-4.19.296/fs/
Dbinfmt_aout.c152 put_user(0, --sp); in create_aout_tables()
153 put_user(0, --sp); in create_aout_tables()
155 put_user(0, --sp); in create_aout_tables()
156 put_user(1003, --sp); in create_aout_tables()
157 put_user(bprm->loader, --sp); in create_aout_tables()
158 put_user(1002, --sp); in create_aout_tables()
160 put_user(bprm->exec, --sp); in create_aout_tables()
161 put_user(1001, --sp); in create_aout_tables()
168 put_user((unsigned long) envp,--sp); in create_aout_tables()
169 put_user((unsigned long) argv,--sp); in create_aout_tables()
[all …]
Dcompat_ioctl.c122 get_user(val, srcptr) || put_user(val, dstptr); \
193 err = put_user(compat_ptr(fp), &up_native->iFrame); in do_video_stillpicture()
194 err |= put_user(size, &up_native->size); in do_video_stillpicture()
246 put_user(compat_ptr(base), &iov[i].iov_base) || in sg_build_iovec()
247 put_user(len, &iov[i].iov_len)) in sg_build_iovec()
251 if (put_user(iov, &sgio->dxferp)) in sg_build_iovec()
299 if (put_user(dxferp, &sgio->dxferp)) in sg_ioctl_trans()
315 if (put_user(cmdp, &sgio->cmdp) || in sg_ioctl_trans()
316 put_user(sbp, &sgio->sbp)) in sg_ioctl_trans()
326 if (put_user(compat_ptr(data), &sgio->usr_ptr)) in sg_ioctl_trans()
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_ioctl32.c100 if (put_user(buffer[i].xi_startino, &p32[i].xi_startino) || in xfs_inumbers_fmt_compat()
101 put_user(buffer[i].xi_alloccount, &p32[i].xi_alloccount) || in xfs_inumbers_fmt_compat()
102 put_user(buffer[i].xi_allocmask, &p32[i].xi_allocmask)) in xfs_inumbers_fmt_compat()
169 if (put_user(sec32, &p32->tv_sec) || in xfs_bstime_store_compat()
170 put_user(p->tv_nsec, &p32->tv_nsec)) in xfs_bstime_store_compat()
188 if (put_user(buffer->bs_ino, &p32->bs_ino) || in xfs_bulkstat_one_fmt_compat()
189 put_user(buffer->bs_mode, &p32->bs_mode) || in xfs_bulkstat_one_fmt_compat()
190 put_user(buffer->bs_nlink, &p32->bs_nlink) || in xfs_bulkstat_one_fmt_compat()
191 put_user(buffer->bs_uid, &p32->bs_uid) || in xfs_bulkstat_one_fmt_compat()
192 put_user(buffer->bs_gid, &p32->bs_gid) || in xfs_bulkstat_one_fmt_compat()
[all …]
/linux-4.19.296/include/asm-generic/
Dtermios-base.h54 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio()
55 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio()
56 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio()
57 put_user(termios->c_lflag, &termio->c_lflag) < 0 || in kernel_termios_to_user_termio()
58 put_user(termios->c_line, &termio->c_line) < 0 || in kernel_termios_to_user_termio()
Dtermios.h59 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 || in kernel_termios_to_user_termio()
60 put_user(termios->c_oflag, &termio->c_oflag) < 0 || in kernel_termios_to_user_termio()
61 put_user(termios->c_cflag, &termio->c_cflag) < 0 || in kernel_termios_to_user_termio()
62 put_user(termios->c_lflag, &termio->c_lflag) < 0 || in kernel_termios_to_user_termio()
63 put_user(termios->c_line, &termio->c_line) < 0 || in kernel_termios_to_user_termio()
Dfutex.h66 if (ret == 0 && unlikely(put_user(tmp, uaddr) != 0)) in arch_futex_atomic_op_inuser()
106 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) { in futex_atomic_cmpxchg_inatomic()
/linux-4.19.296/fs/quota/
Dcompat.c68 put_user(data, &compat_dqblk->dqb_valid)) in COMPAT_SYSCALL_DEFINE4()
77 put_user(data, &dqblk->dqb_valid)) in COMPAT_SYSCALL_DEFINE4()
97 put_user(data, &compat_fsqstat->qs_uquota.qfs_nextents)) in COMPAT_SYSCALL_DEFINE4()
104 put_user(data, &compat_fsqstat->qs_gquota.qfs_nextents)) in COMPAT_SYSCALL_DEFINE4()
112 put_user(xdata, &compat_fsqstat->qs_iwarnlimit)) in COMPAT_SYSCALL_DEFINE4()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c41 get_user(__assign_tmp, from) || put_user(__assign_tmp, to); \
76 put_user((typeof(*__x) __force *)(__x), __ptr); \
98 get_user_cast(__assign_tmp, from) || put_user(__assign_tmp, to);\
167 put_user(clipcount, &p64->clipcount)) in get_v4l2_window32()
172 return put_user(NULL, &p64->clips); in get_v4l2_window32()
180 if (put_user(kclips, &p64->clips)) in get_v4l2_window32()
186 if (put_user(clipcount ? kclips + 1 : NULL, &kclips->next)) in get_v4l2_window32()
207 put_user(clipcount, &p32->clipcount)) in put_v4l2_window32()
295 if (get_user(type, &p32->type) || put_user(type, &p64->type)) in __get_v4l2_format32()
508 put_user((unsigned long)compat_ptr(p), &p64->m.userptr)) in get_v4l2_plane32()
[all …]
/linux-4.19.296/drivers/char/
Ddsp56k.c202 put_user(dsp56k_host_interface.data.b[3], buf+n++)); in dsp56k_read()
212 put_user(dsp56k_host_interface.data.w[1], data+n++)); in dsp56k_read()
219 put_user(dsp56k_host_interface.data.b[1], buf+n++); in dsp56k_read()
220 put_user(dsp56k_host_interface.data.b[2], buf+n++); in dsp56k_read()
221 put_user(dsp56k_host_interface.data.b[3], buf+n++)); in dsp56k_read()
231 put_user(dsp56k_host_interface.data.l, data+n++)); in dsp56k_read()
383 return put_user(status, &hf->status); in dsp56k_ioctl()
Dds1620.c276 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl()
291 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
296 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
301 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
/linux-4.19.296/fs/ext2/
Dioctl.c34 return put_user(flags, (int __user *) arg); in ext2_ioctl()
91 return put_user(inode->i_generation, (int __user *) arg); in ext2_ioctl()
120 return put_user(rsv_window_size, (int __user *)arg); in ext2_ioctl()
/linux-4.19.296/drivers/misc/vmw_vmci/
Dvmci_host.c511 if (put_user(vmci_status, retptr)) { in vmci_host_do_alloc_queuepair()
560 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_queuepair_setva()
602 if (put_user(VMCI_SUCCESS, &info->result)) { in vmci_host_do_queuepair_setpf()
616 if (put_user(result, &info->result)) { in vmci_host_do_queuepair_setpf()
664 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_qp_detach()
687 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_add_notify()
711 return put_user(result, &info->result) ? -EFAULT : 0; in vmci_host_do_ctx_remove_notify()
794 return put_user(VMCI_HOST_CONTEXT_ID, u32ptr) ? -EFAULT : 0; in vmci_host_do_get_context_id()
/linux-4.19.296/fs/proc/
Dpage.c56 if (put_user(pcount, out)) { in kpagecount_read()
227 if (put_user(stable_page_flags(ppage), out)) { in kpageflags_read()
278 if (put_user(ino, out)) { in kpagecgroup_read()
/linux-4.19.296/drivers/s390/char/
Dkeyboard.c389 return put_user(val, &user_kbe->kb_value); in do_kdsk_ioctl()
461 if (put_user('\0', u_kbs->kb_string + len)) in do_kdgkb_ioctl()
496 return put_user(KB_101, (char __user *)argp); in kbd_ioctl()
509 if (put_user(kbd->accent_table_size, &a->kb_cnt)) in kbd_ioctl()
525 if (put_user(ct, &a->kb_cnt)) in kbd_ioctl()
/linux-4.19.296/fs/fat/
Ddir.c724 if (put_user(0, d2->d_name) || \
725 put_user(0, &d2->d_reclen) || \
727 put_user(0, d1->d_name + name_len) || \
728 put_user(name_len, &d1->d_reclen)) \
743 put_user(0, d2->d_name + long_len) || \
744 put_user(long_len, &d2->d_reclen) || \
745 put_user(ino, &d2->d_ino) || \
746 put_user(offset, &d2->d_off) || \
748 put_user(0, d1->d_name + short_len) || \
749 put_user(short_len, &d1->d_reclen)) \
[all …]
/linux-4.19.296/lib/
Dtest_user_copy.c95 ret |= test(put_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
163 ret |= test(!put_user(val_##size, (size __user *)kmem), \ in test_user_copy_init()
/linux-4.19.296/fs/reiserfs/
Dioctl.c50 err = put_user(flags, (int __user *)arg); in reiserfs_ioctl()
103 err = put_user(inode->i_generation, (int __user *)arg); in reiserfs_ioctl()
/linux-4.19.296/drivers/xen/
Dmcelog.c162 return put_user(sizeof(struct xen_mce), p); in xen_mce_chrdev_ioctl()
164 return put_user(XEN_MCE_LOG_LEN, p); in xen_mce_chrdev_ioctl()
172 return put_user(flags, p); in xen_mce_chrdev_ioctl()
/linux-4.19.296/drivers/isdn/mISDN/
Dtimerdev.c133 if (put_user(timer->id, (int __user *)buf)) in mISDN_read()
250 if (put_user(id, (int __user *)arg)) in mISDN_ioctl()
261 if (put_user(id, (int __user *)arg)) in mISDN_ioctl()
/linux-4.19.296/virt/kvm/arm/vgic/
Dvgic-kvm-device.c248 r = put_user(dev->kvm->arch.vgic.nr_spis + in vgic_get_common_attr()
440 return put_user(reg, uaddr); in vgic_v2_get_attr()
680 return put_user(tmp32, uaddr); in vgic_v3_get_attr()
689 return put_user(reg, uaddr); in vgic_v3_get_attr()
700 return put_user(tmp32, uaddr); in vgic_v3_get_attr()
/linux-4.19.296/fs/cifs/
Dioctl.c149 rc = put_user(ExtAttrBits & in cifs_ioctl()
160 rc = put_user(ExtAttrBits & FS_FL_USER_VISIBLE, in cifs_ioctl()

1234