/openbmc/linux/arch/sparc/kernel/ |
H A 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 …]
|
H A 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 …]
|
H A 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()
|
/openbmc/linux/drivers/firmware/efi/test/ |
H A 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 …]
|
/openbmc/linux/fs/xfs/ |
H A 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 …]
|
/openbmc/linux/arch/arm/nwfpe/ |
H A 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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 …]
|
/openbmc/linux/drivers/pci/ |
H A D | syscall.c | 55 err = put_user(byte, (u8 __user *)buf); in SYSCALL_DEFINE5() 58 err = put_user(word, (u16 __user *)buf); in SYSCALL_DEFINE5() 61 err = put_user(dword, (u32 __user *)buf); in SYSCALL_DEFINE5() 73 put_user(-1, (u8 __user *)buf); in SYSCALL_DEFINE5() 76 put_user(-1, (u16 __user *)buf); in SYSCALL_DEFINE5() 79 put_user(-1, (u32 __user *)buf); in SYSCALL_DEFINE5()
|
/openbmc/qemu/linux-user/ |
H A D | qemu.h | 261 #define put_user(x, gaddr, target_type) \ macro 290 #define put_user_ual(x, gaddr) put_user((x), (gaddr), abi_ulong) 291 #define put_user_sal(x, gaddr) put_user((x), (gaddr), abi_long) 292 #define put_user_u64(x, gaddr) put_user((x), (gaddr), uint64_t) 293 #define put_user_s64(x, gaddr) put_user((x), (gaddr), int64_t) 294 #define put_user_u32(x, gaddr) put_user((x), (gaddr), uint32_t) 295 #define put_user_s32(x, gaddr) put_user((x), (gaddr), int32_t) 296 #define put_user_u16(x, gaddr) put_user((x), (gaddr), uint16_t) 297 #define put_user_s16(x, gaddr) put_user((x), (gaddr), int16_t) 298 #define put_user_u8(x, gaddr) put_user((x), (gaddr), uint8_t) [all …]
|
/openbmc/linux/sound/core/ |
H A 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() 267 put_user(data->fifo_size, &data32->fifo_size)) { in snd_pcm_ioctl_hw_params_compat() 316 if (put_user(err, &data32->result)) in snd_pcm_ioctl_xferi_compat() [all …]
|
/openbmc/linux/sound/core/seq/oss/ |
H A 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()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_chrdev.c | 237 err |= put_user(data, &fix32->smem_start); in do_fscreeninfo_to_user() 239 err |= put_user(fix->smem_len, &fix32->smem_len); in do_fscreeninfo_to_user() 240 err |= put_user(fix->type, &fix32->type); in do_fscreeninfo_to_user() 241 err |= put_user(fix->type_aux, &fix32->type_aux); in do_fscreeninfo_to_user() 242 err |= put_user(fix->visual, &fix32->visual); in do_fscreeninfo_to_user() 243 err |= put_user(fix->xpanstep, &fix32->xpanstep); in do_fscreeninfo_to_user() 244 err |= put_user(fix->ypanstep, &fix32->ypanstep); in do_fscreeninfo_to_user() 245 err |= put_user(fix->ywrapstep, &fix32->ywrapstep); in do_fscreeninfo_to_user() 246 err |= put_user(fix->line_length, &fix32->line_length); in do_fscreeninfo_to_user() 249 err |= put_user(data, &fix32->mmio_start); in do_fscreeninfo_to_user() [all …]
|
/openbmc/linux/kernel/ |
H A 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()
|
H A D | rseq.c | 125 if (put_user(cpu_id_start, &t->rseq->cpu_id_start)) in rseq_reset_rseq_cpu_node_id() 132 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_reset_rseq_cpu_node_id() 137 if (put_user(node_id, &t->rseq->node_id)) in rseq_reset_rseq_cpu_node_id() 142 if (put_user(mm_cid, &t->rseq->mm_cid)) in rseq_reset_rseq_cpu_node_id() 257 return put_user(0UL, &t->rseq->rseq_cs); in clear_rseq_cs()
|
/openbmc/qemu/bsd-user/ |
H A D | qemu.h | 360 #define put_user(x, gaddr, target_type) \ macro 390 #define put_user_ual(x, gaddr) put_user((x), (gaddr), abi_ulong) 391 #define put_user_sal(x, gaddr) put_user((x), (gaddr), abi_long) 392 #define put_user_u64(x, gaddr) put_user((x), (gaddr), uint64_t) 393 #define put_user_s64(x, gaddr) put_user((x), (gaddr), int64_t) 394 #define put_user_u32(x, gaddr) put_user((x), (gaddr), uint32_t) 395 #define put_user_s32(x, gaddr) put_user((x), (gaddr), int32_t) 396 #define put_user_u16(x, gaddr) put_user((x), (gaddr), uint16_t) 397 #define put_user_s16(x, gaddr) put_user((x), (gaddr), int16_t) 398 #define put_user_u8(x, gaddr) put_user((x), (gaddr), uint8_t) [all …]
|
/openbmc/linux/net/bridge/netfilter/ |
H A 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()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-compat-ioctl32.c | 222 put_user(p64->capabilities, &p32->capabilities) || in put_v4l2_create32() 223 put_user(p64->flags, &p32->flags) || in put_v4l2_create32() 248 if (put_user(p64->index, &p32->index) || in put_v4l2_standard32() 249 put_user(p64->id, &p32->id) || in put_v4l2_standard32() 253 put_user(p64->framelines, &p32->framelines) || in put_v4l2_standard32() 602 if (put_user((uintptr_t)p64->base, &p32->base) || in put_v4l2_framebuffer32() 603 put_user(p64->capability, &p32->capability) || in put_v4l2_framebuffer32() 604 put_user(p64->flags, &p32->flags) || in put_v4l2_framebuffer32() 758 if (put_user(p64->type, &p32->type) || in put_v4l2_event32() 760 put_user(p64->pending, &p32->pending) || in put_v4l2_event32() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ptrace/ |
H A 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()
|
/openbmc/linux/block/ |
H A D | bsg.c | 89 return put_user(READ_ONCE(bd->max_queue), uarg); in bsg_get_command_q() 125 return put_user(30527, intp); in bsg_ioctl() 127 return put_user(0, intp); in bsg_ioctl() 129 return put_user(0, intp); in bsg_ioctl() 138 return put_user(min(bd->reserved_size, queue_max_bytes(q)), in bsg_ioctl() 149 return put_user(1, intp); in bsg_ioctl()
|
/openbmc/linux/drivers/watchdog/ |
H A 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()
|
/openbmc/linux/sound/pci/hda/ |
H A 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()
|
/openbmc/linux/drivers/char/ |
H A D | dsp56k.c | 204 put_user(dsp56k_host_interface.data.b[3], buf+n++)); in dsp56k_read() 214 put_user(dsp56k_host_interface.data.w[1], data+n++)); in dsp56k_read() 221 put_user(dsp56k_host_interface.data.b[1], buf+n++); in dsp56k_read() 222 put_user(dsp56k_host_interface.data.b[2], buf+n++); in dsp56k_read() 223 put_user(dsp56k_host_interface.data.b[3], buf+n++)); in dsp56k_read() 233 put_user(dsp56k_host_interface.data.l, data+n++)); in dsp56k_read() 385 return put_user(status, &hf->status); in dsp56k_ioctl()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_onereg.c | 653 if (put_user(reg, uindices)) in copy_config_reg_indices() 684 if (put_user(reg, uindices)) in copy_core_reg_indices() 717 if (put_user(reg, uindices)) in copy_csr_reg_indices() 734 if (put_user(reg, uindices)) in copy_csr_reg_indices() 758 if (put_user(reg, uindices)) in copy_timer_reg_indices() 787 if (put_user(reg, uindices)) in copy_fp_f_reg_indices() 819 if (put_user(reg, uindices)) in copy_fp_d_reg_indices() 828 if (put_user(reg, uindices)) in copy_fp_d_reg_indices() 852 if (put_user(reg, uindices)) in copy_isa_ext_reg_indices() 890 if (put_user(reg, uindices)) in copy_sbi_ext_reg_indices() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A 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()
|
/openbmc/linux/arch/alpha/kernel/ |
H A 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 …]
|