/linux-6.1.9/arch/sparc/kernel/ |
D | sys_sparc32.c | 69 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64() 70 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 71 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64() 72 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64() 73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64() 75 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64() 76 err |= put_user(0, (unsigned long __user *) &statbuf->__pad3[0]); in cp_compat_stat64() 77 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64() 78 err |= put_user(stat->blksize, &statbuf->st_blksize); in cp_compat_stat64() [all …]
|
D | termios.c | 59 err = put_user(k->c_iflag, &u->c_iflag); in kernel_termios_to_user_termios() 60 err |= put_user(k->c_oflag, &u->c_oflag); in kernel_termios_to_user_termios() 61 err |= put_user(k->c_cflag, &u->c_cflag); in kernel_termios_to_user_termios() 62 err |= put_user(k->c_lflag, &u->c_lflag); in kernel_termios_to_user_termios() 63 err |= put_user(k->c_line, &u->c_line); in kernel_termios_to_user_termios() 66 err |= put_user(k->c_cc[VMIN], &u->c_cc[_VMIN]); in kernel_termios_to_user_termios() 67 err |= put_user(k->c_cc[VTIME], &u->c_cc[_VTIME]); in kernel_termios_to_user_termios() 69 err |= put_user(k->c_cc[VEOF], &u->c_cc[VEOF]); in kernel_termios_to_user_termios() 70 err |= put_user(k->c_cc[VEOL], &u->c_cc[VEOL]); in kernel_termios_to_user_termios() 72 err |= put_user(k->c_ispeed, &u->c_ispeed); in kernel_termios_to_user_termios() [all …]
|
D | apc.c | 95 if (put_user(apc_readb(APC_FANCTL_REG) & APC_REGMASK, arg)) in apc_ioctl() 100 if (put_user(apc_readb(APC_CPOWER_REG) & APC_REGMASK, arg)) in apc_ioctl() 105 if (put_user(apc_readb(APC_BPORT_REG) & APC_BPMASK, arg)) in apc_ioctl()
|
/linux-6.1.9/drivers/firmware/efi/test/ |
D | efi_test.c | 187 if (put_user(status, getvariable.status)) { in efi_runtime_get_variable() 194 if (dz && put_user(datasize, getvariable.data_size)) { in efi_runtime_get_variable() 215 if (at && put_user(attr, getvariable.attributes)) { in efi_runtime_get_variable() 220 if (dz && put_user(datasize, getvariable.data_size)) in efi_runtime_get_variable() 263 if (put_user(status, setvariable.status)) { in efi_runtime_set_variable() 292 if (put_user(status, gettime.status)) in efi_runtime_get_time() 302 if (put_user(cap.resolution, &(cap_local->resolution)) || in efi_runtime_get_time() 303 put_user(cap.accuracy, &(cap_local->accuracy)) || in efi_runtime_get_time() 304 put_user(cap.sets_to_zero, &(cap_local->sets_to_zero))) in efi_runtime_get_time() 330 if (put_user(status, settime.status)) in efi_runtime_set_time() [all …]
|
/linux-6.1.9/fs/xfs/ |
D | xfs_ioctl32.c | 79 if (put_user(igrp->xi_startino, &p32->xi_startino) || in xfs_fsinumbers_fmt_compat() 80 put_user(igrp->xi_alloccount, &p32->xi_alloccount) || in xfs_fsinumbers_fmt_compat() 81 put_user(igrp->xi_allocmask, &p32->xi_allocmask)) in xfs_fsinumbers_fmt_compat() 150 if (put_user(sec32, &p32->tv_sec) || in xfs_bstime_store_compat() 151 put_user(p->tv_nsec, &p32->tv_nsec)) in xfs_bstime_store_compat() 168 if (put_user(buffer->bs_ino, &p32->bs_ino) || in xfs_fsbulkstat_one_fmt_compat() 169 put_user(buffer->bs_mode, &p32->bs_mode) || in xfs_fsbulkstat_one_fmt_compat() 170 put_user(buffer->bs_nlink, &p32->bs_nlink) || in xfs_fsbulkstat_one_fmt_compat() 171 put_user(buffer->bs_uid, &p32->bs_uid) || in xfs_fsbulkstat_one_fmt_compat() 172 put_user(buffer->bs_gid, &p32->bs_gid) || in xfs_fsbulkstat_one_fmt_compat() [all …]
|
/linux-6.1.9/arch/arm/nwfpe/ |
D | fpa11_cpdt.c | 114 put_user(val.i[0], pMem); in storeSingle() 141 put_user(val.i[0], &pMem[0]); /* msw */ in storeDouble() 142 put_user(val.i[1], &pMem[1]); /* lsw */ in storeDouble() 144 put_user(val.i[1], &pMem[0]); /* msw */ in storeDouble() 145 put_user(val.i[0], &pMem[1]); /* lsw */ in storeDouble() 171 put_user(val.i[0], &pMem[0]); /* sign & exp */ in storeExtended() 173 put_user(val.i[1], &pMem[1]); /* msw */ in storeExtended() 174 put_user(val.i[2], &pMem[2]); in storeExtended() 176 put_user(val.i[1], &pMem[2]); in storeExtended() 177 put_user(val.i[2], &pMem[1]); /* msw */ in storeExtended() [all …]
|
/linux-6.1.9/drivers/video/fbdev/ |
D | sbuslib.c | 108 if (put_user(type, &f->fb_type) || in sbusfb_ioctl_helper() 109 put_user(info->var.yres, &f->fb_height) || in sbusfb_ioctl_helper() 110 put_user(info->var.xres, &f->fb_width) || in sbusfb_ioctl_helper() 111 put_user(fb_depth, &f->fb_depth) || in sbusfb_ioctl_helper() 112 put_user(0, &f->fb_cmsize) || in sbusfb_ioctl_helper() 113 put_user(fb_size, &f->fb_cmsize)) in sbusfb_ioctl_helper() 181 if (put_user(red, &ured[i]) || in sbusfb_ioctl_helper() 182 put_user(green, &ugreen[i]) || in sbusfb_ioctl_helper() 183 put_user(blue, &ublue[i])) in sbusfb_ioctl_helper() 274 if (put_user(red, &ured[i]) || in sbusfb_compat_ioctl() [all …]
|
/linux-6.1.9/drivers/pci/ |
D | syscall.c | 55 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-6.1.9/sound/core/ |
D | pcm_compat.c | 21 if (put_user(delay, src)) in snd_pcm_ioctl_delay_compat() 35 if (put_user(err, src)) in snd_pcm_ioctl_rewind_compat() 49 if (put_user(err, src)) in snd_pcm_ioctl_forward_compat() 116 if (boundary && put_user(boundary, &src->boundary)) in snd_pcm_ioctl_sw_params_compat() 142 if (put_user(info.channel, &src->channel) || in snd_pcm_ioctl_channel_info_compat() 143 put_user(info.offset, &src->offset) || in snd_pcm_ioctl_channel_info_compat() 144 put_user(info.first, &src->first) || in snd_pcm_ioctl_channel_info_compat() 145 put_user(info.step, &src->step)) in snd_pcm_ioctl_channel_info_compat() 263 put_user(data->fifo_size, &data32->fifo_size)) { in snd_pcm_ioctl_hw_params_compat() 312 if (put_user(err, &data32->result)) in snd_pcm_ioctl_xferi_compat() [all …]
|
/linux-6.1.9/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 104 return put_user(dp->readq->qlen, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 109 return put_user(snd_seq_oss_writeq_get_free_size(dp->writeq), p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 112 return put_user(snd_seq_oss_timer_cur_tick(dp->timer), p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 120 return put_user(dp->max_synthdev, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 123 return put_user(dp->max_mididev, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 129 return put_user(val, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 169 return put_user(val, p) ? -EFAULT : 0; in snd_seq_oss_ioctl()
|
/linux-6.1.9/kernel/ |
D | uid16.c | 74 if (!(retval = put_user(ruid, ruidp)) && in SYSCALL_DEFINE3() 75 !(retval = put_user(euid, euidp))) in SYSCALL_DEFINE3() 76 retval = put_user(suid, suidp); in SYSCALL_DEFINE3() 97 if (!(retval = put_user(rgid, rgidp)) && in SYSCALL_DEFINE3() 98 !(retval = put_user(egid, egidp))) in SYSCALL_DEFINE3() 99 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3() 125 if (put_user(group, grouplist+i)) in groups16_to_user()
|
/linux-6.1.9/net/bridge/netfilter/ |
D | ebt_mark_m.c | 62 if (put_user(kern->mark, &user->mark) || in mark_mt_compat_to_user() 63 put_user(kern->mask, &user->mask) || in mark_mt_compat_to_user() 64 put_user(kern->invert, &user->invert) || in mark_mt_compat_to_user() 65 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
|
/linux-6.1.9/block/ |
D | bsg.c | 87 return put_user(READ_ONCE(bd->max_queue), uarg); in bsg_get_command_q() 123 return put_user(30527, intp); in bsg_ioctl() 125 return put_user(0, intp); in bsg_ioctl() 127 return put_user(0, intp); in bsg_ioctl() 136 return put_user(min(bd->reserved_size, queue_max_bytes(q)), in bsg_ioctl() 147 return put_user(1, intp); in bsg_ioctl()
|
D | ioctl.c | 197 return put_user(val, argp); in put_ushort() 202 return put_user(val, argp); in put_int() 207 return put_user(val, argp); in put_uint() 212 return put_user(val, argp); in put_long() 217 return put_user(val, argp); in put_ulong() 222 return put_user(val, argp); in put_u64() 228 return put_user(val, argp); in compat_put_long() 233 return put_user(val, argp); in compat_put_ulong() 433 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
|
/linux-6.1.9/arch/powerpc/kernel/ptrace/ |
D | ptrace32.c | 71 ret = put_user(tmp, (u32 __user *)data); in compat_arch_ptrace() 100 ret = put_user((unsigned int)tmp, (u32 __user *)data); in compat_arch_ptrace() 147 ret = put_user(reg32bits, (u32 __user *)data); in compat_arch_ptrace() 257 ret = put_user(child->thread.debug.dac1, (u32 __user *)data); in compat_arch_ptrace() 262 ret = put_user(dabr_fake, (u32 __user *)data); in compat_arch_ptrace()
|
/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 235 put_user(p64->capabilities, &p32->capabilities) || in put_v4l2_create32() 236 put_user(p64->flags, &p32->flags) || in put_v4l2_create32() 261 if (put_user(p64->index, &p32->index) || in put_v4l2_standard32() 262 put_user(p64->id, &p32->id) || in put_v4l2_standard32() 266 put_user(p64->framelines, &p32->framelines) || in put_v4l2_standard32() 618 if (put_user((uintptr_t)p64->base, &p32->base) || in put_v4l2_framebuffer32() 619 put_user(p64->capability, &p32->capability) || in put_v4l2_framebuffer32() 620 put_user(p64->flags, &p32->flags) || in put_v4l2_framebuffer32() 774 if (put_user(p64->type, &p32->type) || in put_v4l2_event32() 776 put_user(p64->pending, &p32->pending) || in put_v4l2_event32() [all …]
|
/linux-6.1.9/drivers/watchdog/ |
D | pika_wdt.c | 185 return put_user(0, p); in pikawdt_ioctl() 188 return put_user(pikawdt_private.bootstatus, p); in pikawdt_ioctl() 201 return put_user(new_value, p); /* return current value */ in pikawdt_ioctl() 204 return put_user(heartbeat, p); in pikawdt_ioctl()
|
D | m54xx_wdt.c | 134 ret = put_user(0, (int *)arg); in m54xx_wdt_ioctl() 138 ret = put_user(0, (int *)arg); in m54xx_wdt_ioctl() 161 ret = put_user(heartbeat, (int *)arg); in m54xx_wdt_ioctl()
|
/linux-6.1.9/sound/pci/hda/ |
D | hda_hwdep.c | 30 if (put_user(res, &arg->res)) in verb_write_ioctl() 52 if (put_user(res, &arg->res)) in get_wcap_ioctl() 68 return put_user(HDA_HWDEP_VERSION, (int __user *)argp); in hda_hwdep_ioctl()
|
/linux-6.1.9/drivers/char/ |
D | dsp56k.c | 202 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()
|
/linux-6.1.9/arch/mips/kernel/ |
D | ptrace32.c | 77 ret = put_user(tmp, (u32 __user *) (unsigned long) data); in compat_arch_ptrace() 164 ret = put_user(tmp, (unsigned __user *) (unsigned long) data); in compat_arch_ptrace() 292 ret = put_user(task_thread_info(child)->tp_value, in compat_arch_ptrace() 297 ret = put_user(task_thread_info(child)->tp_value, in compat_arch_ptrace()
|
/linux-6.1.9/arch/alpha/kernel/ |
D | osf_sys.c | 130 if (put_user(offset, buf->basep)) in osf_filldir() 135 if (put_user(d_ino, &dirent->d_ino) || in osf_filldir() 136 put_user(namlen, &dirent->d_namlen) || in osf_filldir() 137 put_user(reclen, &dirent->d_reclen) || in osf_filldir() 139 put_user(0, dirent->d_name + namlen)) in osf_filldir() 666 error = put_user(0, min_buf_size_ptr); in SYSCALL_DEFINE2() 672 error = put_user(0, min_buf_size_ptr); in SYSCALL_DEFINE2() 715 if (put_user(oss_sp, &uoss->ss_sp) || in SYSCALL_DEFINE2() 716 put_user(oss_os, &uoss->ss_onstack)) in SYSCALL_DEFINE2() 775 if (put_user(w, (unsigned long __user *) buffer)) in SYSCALL_DEFINE5() [all …]
|
/linux-6.1.9/fs/ |
D | binfmt_flat.c | 124 if (put_user(bprm->argc, sp++)) in create_flat_tables() 130 if (put_user(argv, sp++) || put_user(envp, sp++)) in create_flat_tables() 136 if (put_user((unsigned long)p, sp++)) in create_flat_tables() 143 if (put_user(0, sp++)) in create_flat_tables() 149 if (put_user((unsigned long)p, sp++)) in create_flat_tables() 156 if (put_user(0, sp++)) in create_flat_tables() 372 put_user(val, ptr); in old_reloc() 754 if (put_user(addr, rp)) in load_flat_file() 892 if (put_user(val, p)) in load_flat_binary()
|
/linux-6.1.9/include/linux/ |
D | mtio.h | 55 return put_user(k->mt_blkno, (u32 __user *)u); in put_user_mtpos() 57 return put_user(k->mt_blkno, (long __user *)u); in put_user_mtpos()
|
/linux-6.1.9/drivers/net/ppp/ |
D | ppp_synctty.c | 289 if (put_user(ppp_channel_index(&ap->chan), p)) in ppp_synctty_ioctl() 296 if (put_user(ppp_unit_number(&ap->chan), p)) in ppp_synctty_ioctl() 310 if (put_user(val, p)) in ppp_synctty_ioctl() 407 if (put_user(val, (int __user *) argp)) in ppp_sync_ioctl() 422 if (put_user(ap->xaccm[0], p)) in ppp_sync_ioctl() 433 if (put_user(ap->raccm, p)) in ppp_sync_ioctl() 458 if (put_user(ap->mru, (int __user *) argp)) in ppp_sync_ioctl()
|