/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | termios.h | 54 err = put_user((termios)->c_iflag, &(termio)->c_iflag); \ 55 err |= put_user((termios)->c_oflag, &(termio)->c_oflag); \ 56 err |= put_user((termios)->c_cflag, &(termio)->c_cflag); \ 57 err |= put_user((termios)->c_lflag, &(termio)->c_lflag); \ 58 err |= put_user((termios)->c_line, &(termio)->c_line); \ 61 err |= put_user((termios)->c_cc[VMIN], &(termio)->c_cc[_VMIN]); \ 62 err |= put_user((termios)->c_cc[VTIME], &(termio)->c_cc[_VTIME]); \ 91 err = put_user((k)->c_iflag, &(u)->c_iflag); \ 92 err |= put_user((k)->c_oflag, &(u)->c_oflag); \ 93 err |= put_user((k)->c_cflag, &(u)->c_cflag); \ [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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() 204 ret |= put_user(compat_ptr(addr), &p->red); in fbiogetputcmap() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
D | atomisp_compat_ioctl32.c | 37 put_user((typeof(*__x) __force *)(__x), __ptr); \ 45 get_user_cast(__assign_tmp, from) || put_user(__assign_tmp, to);\ 56 put_user(compat_ptr(tmp), &kp->data)) in get_atomisp_histogram32() 70 put_user(ptr_to_compat(tmp), &up->data)) in put_atomisp_histogram32() 123 put_user(compat_ptr(hor_prod_odd_real), in get_atomisp_dis_statistics32() 125 put_user(compat_ptr(hor_prod_odd_imag), in get_atomisp_dis_statistics32() 127 put_user(compat_ptr(hor_prod_even_real), in get_atomisp_dis_statistics32() 129 put_user(compat_ptr(hor_prod_even_imag), in get_atomisp_dis_statistics32() 131 put_user(compat_ptr(ver_prod_odd_real), in get_atomisp_dis_statistics32() 133 put_user(compat_ptr(ver_prod_odd_imag), in get_atomisp_dis_statistics32() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_ioctl32.c | 93 if (put_user(igrp->xi_startino, &p32->xi_startino) || in xfs_fsinumbers_fmt_compat() 94 put_user(igrp->xi_alloccount, &p32->xi_alloccount) || in xfs_fsinumbers_fmt_compat() 95 put_user(igrp->xi_allocmask, &p32->xi_allocmask)) in xfs_fsinumbers_fmt_compat() 164 if (put_user(sec32, &p32->tv_sec) || in xfs_bstime_store_compat() 165 put_user(p->tv_nsec, &p32->tv_nsec)) in xfs_bstime_store_compat() 182 if (put_user(buffer->bs_ino, &p32->bs_ino) || in xfs_fsbulkstat_one_fmt_compat() 183 put_user(buffer->bs_mode, &p32->bs_mode) || in xfs_fsbulkstat_one_fmt_compat() 184 put_user(buffer->bs_nlink, &p32->bs_nlink) || in xfs_fsbulkstat_one_fmt_compat() 185 put_user(buffer->bs_uid, &p32->bs_uid) || in xfs_fsbulkstat_one_fmt_compat() 186 put_user(buffer->bs_gid, &p32->bs_gid) || in xfs_fsbulkstat_one_fmt_compat() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | binfmt_aout.c | 70 put_user(0, --sp); in create_aout_tables() 71 put_user(0, --sp); in create_aout_tables() 73 put_user(0, --sp); in create_aout_tables() 74 put_user(1003, --sp); in create_aout_tables() 75 put_user(bprm->loader, --sp); in create_aout_tables() 76 put_user(1002, --sp); in create_aout_tables() 78 put_user(bprm->exec, --sp); in create_aout_tables() 79 put_user(1001, --sp); in create_aout_tables() 86 put_user((unsigned long) envp,--sp); in create_aout_tables() 87 put_user((unsigned long) argv,--sp); in create_aout_tables() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | termios.h | 39 put_user((termios)->c_iflag, &(termio)->c_iflag); \ 40 put_user((termios)->c_oflag, &(termio)->c_oflag); \ 41 put_user((termios)->c_cflag, &(termio)->c_cflag); \ 42 put_user((termios)->c_lflag, &(termio)->c_lflag); \ 43 put_user((termios)->c_line, &(termio)->c_line); \
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | termios.h | 45 put_user((termios)->c_iflag, &(termio)->c_iflag); \ 46 put_user((termios)->c_oflag, &(termio)->c_oflag); \ 47 put_user((termios)->c_cflag, &(termio)->c_cflag); \ 48 put_user((termios)->c_lflag, &(termio)->c_lflag); \ 49 put_user((termios)->c_line, &(termio)->c_line); \
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | syscall.c | 56 err = put_user(byte, (unsigned char __user *)buf); in SYSCALL_DEFINE5() 59 err = put_user(word, (unsigned short __user *)buf); in SYSCALL_DEFINE5() 62 err = put_user(dword, (unsigned int __user *)buf); in SYSCALL_DEFINE5() 74 put_user(-1, (unsigned char __user *)buf); in SYSCALL_DEFINE5() 77 put_user(-1, (unsigned short __user *)buf); in SYSCALL_DEFINE5() 80 put_user(-1, (unsigned int __user *)buf); in SYSCALL_DEFINE5()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | termios-base.h | 54 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()
|
D | termios.h | 59 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()
|
/kernel/linux/linux-5.10/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() 262 put_user(data->fifo_size, &data32->fifo_size)) { in snd_pcm_ioctl_hw_params_compat() 311 if (put_user(err, &data32->result)) in snd_pcm_ioctl_xferi_compat() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/atm/ |
D | uPD98402.c | 97 return (put_user(s[0], arg) || put_user(s[1], arg+1) || in get_sense() 98 put_user(s[2], arg+2) || put_user(0xff, arg+3) || in get_sense() 99 put_user(0xff, arg+4) || put_user(0xff, arg+5)) ? -EFAULT : 0; in get_sense() 146 return put_user(PRIV(dev)->framing,(int __user *)arg) ? in uPD98402_ioctl() 153 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? in uPD98402_ioctl() 156 return put_user(ATM_LM_LOC_PHY | ATM_LM_LOC_ATM | in uPD98402_ioctl()
|
/kernel/linux/linux-5.10/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()
|
D | rseq.c | 88 if (put_user(cpu_id, &t->rseq->cpu_id_start)) in rseq_update_cpu_id() 90 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_update_cpu_id() 103 if (put_user(cpu_id_start, &t->rseq->cpu_id_start)) in rseq_reset_rseq_cpu_id() 110 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_reset_rseq_cpu_id() 213 return put_user(0UL, &t->rseq->rseq_cs); in clear_rseq_cs()
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 42 get_user(__assign_tmp, from) || put_user(__assign_tmp, to); \ 77 put_user((typeof(*__x) __force *)(__x), __ptr); \ 99 get_user_cast(__assign_tmp, from) || put_user(__assign_tmp, to);\ 168 put_user(clipcount, &p64->clipcount)) in get_v4l2_window32() 173 return put_user(NULL, &p64->clips); in get_v4l2_window32() 181 if (put_user(kclips, &p64->clips)) in get_v4l2_window32() 187 if (put_user(clipcount ? kclips + 1 : NULL, &kclips->next)) in get_v4l2_window32() 208 put_user(clipcount, &p32->clipcount)) in put_v4l2_window32() 298 if (get_user(type, &p32->type) || put_user(type, &p64->type)) in __get_v4l2_format32() 544 put_user((unsigned long)compat_ptr(p), &p64->m.userptr)) in get_v4l2_plane32() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/x86/ia32/ |
D | ia32_aout.c | 73 put_user((unsigned long) envp, --sp); in create_aout_tables() 74 put_user((unsigned long) argv, --sp); in create_aout_tables() 75 put_user(argc, --sp); in create_aout_tables() 80 put_user((u32)(unsigned long)p, argv++); in create_aout_tables() 85 put_user(0, argv); in create_aout_tables() 90 put_user((u32)(unsigned long)p, envp++); in create_aout_tables() 95 put_user(0, envp); in create_aout_tables()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
D | ptrace32.c | 69 ret = put_user(tmp, (u32 __user *)data); in compat_arch_ptrace() 99 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() 259 ret = put_user(child->thread.debug.dac1, (u32 __user *)data); in compat_arch_ptrace() 264 ret = put_user(dabr_fake, (u32 __user *)data); in compat_arch_ptrace()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
D | pnx833x_wdt.c | 162 return put_user(0, (int *)arg); in pnx833x_wdt_ioctl() 188 return put_user(new_timeout, (int *)arg); in pnx833x_wdt_ioctl() 194 return put_user(timeout, (int *)arg); in pnx833x_wdt_ioctl() 199 return put_user(timeout_left, (int *)arg); in pnx833x_wdt_ioctl()
|
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()
|
/kernel/linux/linux-5.10/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()
|