Home
last modified time | relevance | path

Searched refs:copy_from_user (Results 1 – 25 of 1056) sorted by relevance

12345678910>>...43

/openbmc/linux/drivers/input/
H A Dinput-compat.c20 if (copy_from_user(&compat_event, buffer, in input_event_from_user()
31 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
78 if (copy_from_user(compat_effect, buffer, in input_ff_effect_from_user()
90 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
102 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
123 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
/openbmc/linux/drivers/firmware/efi/test/
H A Defi_test.c153 if (copy_from_user(&getvariable, getvariable_user, in efi_runtime_get_variable()
243 if (copy_from_user(&vendor_guid, setvariable.vendor_guid, in efi_runtime_set_variable()
325 if (copy_from_user(&efi_time, settime.time, in efi_runtime_set_time()
345 if (copy_from_user(&getwakeuptime, getwakeuptime_user, in efi_runtime_get_waketime()
383 if (copy_from_user(&setwakeuptime, setwakeuptime_user, in efi_runtime_set_waketime()
389 if (copy_from_user(&efi_time, setwakeuptime.time, in efi_runtime_set_waketime()
428 if (copy_from_user(&vendor_guid, in efi_runtime_get_nextvariablename()
514 if (copy_from_user(&getnexthighmonocount, in efi_runtime_get_nexthighmonocount()
542 if (copy_from_user(&resetsystem, resetsystem_user, in efi_runtime_reset_system()
607 if (copy_from_user(&qcaps, qcaps_user, sizeof(qcaps))) in efi_runtime_query_capsulecaps()
[all …]
/openbmc/linux/drivers/char/ipmi/
H A Dipmi_devintf.c175 if (copy_from_user(msg.data, in handle_send_req()
310 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl()
328 if (copy_from_user(&req, arg, sizeof(req))) { in ipmi_ioctl()
345 if (copy_from_user(&rsp, arg, sizeof(rsp))) in ipmi_ioctl()
357 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
371 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
385 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
399 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
413 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
427 if (copy_from_user(&val, arg, sizeof(val))) { in ipmi_ioctl()
[all …]
/openbmc/linux/drivers/s390/crypto/
H A Dzcrypt_cca_key.h131 if (copy_from_user(ptr, mex->b_key, mex->inputdatalength)) in zcrypt_type6_mex_key_en()
135 if (copy_from_user(ptr, mex->n_modulus, mex->inputdatalength)) in zcrypt_type6_mex_key_en()
212 if (copy_from_user(key->key_parts, crt->np_prime, long_len) || in zcrypt_type6_crt_key()
213 copy_from_user(key->key_parts + long_len, in zcrypt_type6_crt_key()
215 copy_from_user(key->key_parts + long_len + short_len, in zcrypt_type6_crt_key()
217 copy_from_user(key->key_parts + 2 * long_len + short_len, in zcrypt_type6_crt_key()
219 copy_from_user(key->key_parts + 2 * long_len + 2 * short_len, in zcrypt_type6_crt_key()
H A Dzcrypt_msgtype50.c241 if (copy_from_user(mod, mex->n_modulus, mod_len) || in ICAMEX_msg_to_type50MEX_msg()
242 copy_from_user(exp, mex->b_key, mod_len) || in ICAMEX_msg_to_type50MEX_msg()
243 copy_from_user(inp, mex->inputdata, mod_len)) in ICAMEX_msg_to_type50MEX_msg()
325 if (copy_from_user(p, crt->np_prime + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
326 copy_from_user(q, crt->nq_prime, short_len) || in ICACRT_msg_to_type50CRT_msg()
327 copy_from_user(dp, crt->bp_key + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
328 copy_from_user(dq, crt->bq_key, short_len) || in ICACRT_msg_to_type50CRT_msg()
329 copy_from_user(u, crt->u_mult_inv + MSGTYPE_ADJUSTMENT, short_len) || in ICACRT_msg_to_type50CRT_msg()
330 copy_from_user(inp, crt->inputdata, mod_len)) in ICACRT_msg_to_type50CRT_msg()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_psp_ta.c159 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
165 ret = copy_from_user((void *)&ta_bin_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
177 if (copy_from_user((void *)ta_bin, &buf[copy_pos], ta_bin_len)) { in ta_if_load_debugfs_write()
261 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
267 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
310 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
315 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
320 ret = copy_from_user((void *)&cmd_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
325 ret = copy_from_user((void *)&shared_buf_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
333 if (copy_from_user((void *)shared_buf, &buf[copy_pos], shared_buf_len)) { in ta_if_invoke_debugfs_write()
/openbmc/linux/drivers/mtd/
H A Dmtdchar.c247 if (copy_from_user(kbuf, buf, len)) { in mtdchar_write()
549 if (copy_from_user(&p, arg->data, sizeof(p))) in mtdchar_blkpg_ioctl()
603 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
702 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_read_ioctl()
931 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
941 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
962 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
976 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
989 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
1003 if (copy_from_user(&buf, argp, sizeof(buf))) in mtdchar_ioctl()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_ioc32.c184 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap()
212 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
269 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient()
359 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
404 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
468 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
496 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
516 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx()
533 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_getsareactx()
598 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma()
[all …]
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_host.c374 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram()
430 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram()
465 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
487 if (copy_from_user(&alloc_info, uptr, sizeof(alloc_info))) in vmci_host_do_alloc_queuepair()
578 if (copy_from_user(&page_file_info, uptr, sizeof(*info))) in vmci_host_do_queuepair_setpf()
676 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_add_notify()
699 if (copy_from_user(&ar_info, uptr, sizeof(ar_info))) in vmci_host_do_ctx_remove_notify()
723 if (copy_from_user(&get_info, uptr, sizeof(get_info))) in vmci_host_do_ctx_get_cpt_state()
755 if (copy_from_user(&set_info, uptr, sizeof(set_info))) in vmci_host_do_ctx_set_cpt_state()
826 if (copy_from_user(&info, uptr, sizeof(info))) in vmci_host_do_notify_resource()
[all …]
/openbmc/linux/drivers/misc/lkdtm/
H A Dusercopy.c112 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack()
119 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack()
177 if (copy_from_user(test_kern_addr, test_user_addr, size / 2)) { in do_usercopy_slab_size()
183 if (copy_from_user(test_kern_addr, test_user_addr, size)) { in do_usercopy_slab_size()
254 if (copy_from_user(buf + offset, user_addr, size)) { in do_usercopy_slab_whitelist()
260 if (copy_from_user(buf + offset - 1, user_addr, size)) { in do_usercopy_slab_whitelist()
/openbmc/linux/drivers/char/
H A Dppdev.c431 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
461 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl()
502 if (copy_from_user(&uflags, argp, sizeof(uflags))) in pp_do_ioctl()
559 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
565 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
571 if (copy_from_user(&mask, argp, in pp_do_ioctl()
581 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
590 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
605 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
622 if (copy_from_user(time32, argp, sizeof(time32))) in pp_do_ioctl()
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c56 if (copy_from_user(&w32, p32, sizeof(w32))) in get_v4l2_window32()
140 return copy_from_user(&p64->fmt.pix, &p32->fmt.pix, in get_v4l2_format32()
151 return copy_from_user(&p64->fmt.vbi, &p32->fmt.vbi, in get_v4l2_format32()
159 return copy_from_user(&p64->fmt.sdr, &p32->fmt.sdr, in get_v4l2_format32()
173 if (copy_from_user(p64, p32, in get_v4l2_create32()
397 if (copy_from_user(&vb32, arg, sizeof(vb32))) in get_v4l2_buffer32()
443 if (copy_from_user(&vb32, arg, sizeof(vb32))) in get_v4l2_buffer32_time32()
630 if (copy_from_user(p64, p32, sizeof(*p32))) in get_v4l2_input32()
698 if (copy_from_user(&ec32, p32, sizeof(ec32))) in get_v4l2_ext_controls32()
1069 if (copy_from_user(ec64, ec32, sizeof(*ec32))) in v4l2_compat_get_array_args()
[all …]
/openbmc/linux/net/ethtool/
H A Dioctl.c124 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features()
265 if (copy_from_user(&edata, useraddr, sizeof(edata))) in ethtool_set_one_feature()
531 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_get_link_ksettings()
589 if (copy_from_user(&link_ksettings.base, useraddr, in ethtool_set_link_ksettings()
692 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_settings()
878 if (copy_from_user(rxnfc, useraddr, size)) in ethtool_rxnfc_copy_from_user()
1075 if (copy_from_user(&user_size, in ethtool_get_rxfh_indir()
1127 if (copy_from_user(&user_size, in ethtool_set_rxfh_indir()
1330 if (copy_from_user(hkey, in ethtool_set_rxfh()
1453 if (copy_from_user(&wol, useraddr, sizeof(wol))) in ethtool_set_wol()
[all …]
/openbmc/linux/drivers/char/agp/
H A Dcompat_ioctl.c69 if (copy_from_user(&ureserve, arg, sizeof(ureserve))) in compat_agpioc_reserve_wrap()
115 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, in compat_agpioc_reserve_wrap()
158 if (copy_from_user(&alloc, arg, sizeof(alloc))) in compat_agpioc_allocate_wrap()
182 if (copy_from_user(&bind_info, arg, sizeof(bind_info))) in compat_agpioc_bind_wrap()
199 if (copy_from_user(&unbind, arg, sizeof(unbind))) in compat_agpioc_unbind_wrap()
/openbmc/linux/sound/core/
H A Dcontrol_compat.c30 if (copy_from_user(&data, data32, 4 * sizeof(u32))) in snd_ctl_elem_list_compat()
91 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) in snd_ctl_elem_info_compat()
227 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) in copy_ctl_value_from_user()
252 if (copy_from_user(data->value.bytes.data, valuep, size)) in copy_ctl_value_from_user()
378 if (copy_from_user(&data->id, &data32->id, sizeof(data->id)) || in snd_ctl_elem_add_compat()
379 copy_from_user(&data->type, &data32->type, 3 * sizeof(u32))) in snd_ctl_elem_add_compat()
392 if (copy_from_user(&data->value.integer64, in snd_ctl_elem_add_compat()
398 if (copy_from_user(&data->value.enumerated, in snd_ctl_elem_add_compat()
/openbmc/linux/arch/sparc/kernel/
H A Dsigutil_64.c48 err |= copy_from_user(fpregs, &fpu->si_float_regs[0], in restore_fpu_state()
51 err |= copy_from_user(fpregs+16, &fpu->si_float_regs[32], in restore_fpu_state()
88 err |= copy_from_user(&t->reg_window[i], in restore_rwin_state()
/openbmc/linux/net/bluetooth/cmtp/
H A Dsock.c82 if (copy_from_user(&ca, argp, sizeof(ca))) in do_cmtp_sock_ioctl()
107 if (copy_from_user(&cd, argp, sizeof(cd))) in do_cmtp_sock_ioctl()
113 if (copy_from_user(&cl, argp, sizeof(cl))) in do_cmtp_sock_ioctl()
126 if (copy_from_user(&ci, argp, sizeof(ci))) in do_cmtp_sock_ioctl()
/openbmc/linux/net/bluetooth/bnep/
H A Dsock.c70 if (copy_from_user(&ca, argp, sizeof(ca))) in do_bnep_sock_ioctl()
96 if (copy_from_user(&cd, argp, sizeof(cd))) in do_bnep_sock_ioctl()
102 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl()
115 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl()
/openbmc/linux/scripts/coccinelle/api/
H A Dmemdup_user.cocci44 - if (copy_from_user(to, from, size) != 0) {
67 - if (copy_from_user(to, from, size) != 0) {
83 if (copy_from_user(to, from, size) != 0)
94 if (copy_from_user(to, from, size) != 0)
/openbmc/linux/net/bluetooth/hidp/
H A Dsock.c67 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl()
94 if (copy_from_user(&cd, argp, sizeof(cd))) in do_hidp_sock_ioctl()
100 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl()
113 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl()
181 if (copy_from_user(&ca32, (void __user *) arg, sizeof(ca32))) in hidp_sock_compat_ioctl()
/openbmc/linux/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_dev.c92 if (copy_from_user(dest + total_bytes_copied, in vchiq_ioc_copy_element_data()
642 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl()
732 if (copy_from_user(elements, args.elements, in vchiq_ioctl()
753 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl()
767 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl()
967 if (copy_from_user(&args32, arg, sizeof(args32))) in vchiq_compat_ioctl_queue_message()
988 if (copy_from_user(&element32, args.elements, in vchiq_compat_ioctl_queue_message()
1032 if (copy_from_user(&args32, argp, sizeof(args32))) in vchiq_compat_ioctl_queue_bulk()
1066 if (copy_from_user(&args32, argp, sizeof(args32))) in vchiq_compat_ioctl_await_completion()
1099 if (copy_from_user(&args32, arg, sizeof(args32))) in vchiq_compat_ioctl_dequeue_message()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_ioctl.c162 if (copy_from_user(&handle, uhandle, hlen)) in xfs_handle_to_dentry()
452 if (copy_from_user(&al_hreq, p, sizeof(al_hreq))) in xfs_attrlist_by_handle()
962 if (copy_from_user(&ageo, arg, sizeof(ageo))) in xfs_ioc_ag_geometry()
1479 if (copy_from_user(&bmx, arg, recsize)) in xfs_ioc_getbmap()
1653 if (copy_from_user(&scrub, arg, sizeof(scrub))) in xfs_ioc_scrub_metadata()
1972 if (copy_from_user(&hreq, arg, sizeof(hreq))) in xfs_file_ioctl()
2068 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl()
2082 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl()
2096 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl()
2125 if (copy_from_user(&in, arg, sizeof(in))) in xfs_file_ioctl()
[all …]
/openbmc/linux/arch/riscv/kvm/
H A Daia_device.c336 if (copy_from_user(&nr, uaddr, sizeof(nr))) in aia_set_attr()
346 if (copy_from_user(&addr, uaddr, sizeof(addr))) in aia_set_attr()
371 if (copy_from_user(&nr, uaddr, sizeof(nr))) in aia_set_attr()
380 if (copy_from_user(&v, uaddr, sizeof(v))) in aia_set_attr()
403 if (copy_from_user(&nr, uaddr, sizeof(nr))) in aia_get_attr()
417 if (copy_from_user(&addr, uaddr, sizeof(addr))) in aia_get_attr()
436 if (copy_from_user(&nr, uaddr, sizeof(nr))) in aia_get_attr()
450 if (copy_from_user(&v, uaddr, sizeof(v))) in aia_get_attr()
/openbmc/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c204 if (copy_from_user(&user, (struct oabi_flock64 __user *)arg, in get_oabi_flock()
292 copy_from_user(&user, event, sizeof(user))) in sys_oabi_epoll_ctl()
360 err |= copy_from_user(&osb, tsops, sizeof(osb)); in sys_oabi_semtimedop()
495 if (copy_from_user(a, args, 3 * sizeof(long)) == 0) in sys_oabi_socketcall()
499 if (copy_from_user(a, args, 3 * sizeof(long)) == 0) in sys_oabi_socketcall()
503 if (copy_from_user(a, args, 6 * sizeof(long)) == 0) in sys_oabi_socketcall()
508 if (copy_from_user(a, args, 3 * sizeof(long)) == 0) in sys_oabi_socketcall()
/openbmc/linux/fs/nilfs2/
H A Dioctl.c86 copy_from_user(buf, base + argv->v_size * i, in nilfs_ioctl_wrap_copy()
203 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
258 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
504 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_get_bdescs()
868 if (copy_from_user(argv, argp, sizeof(argv))) in nilfs_ioctl_clean_segments()
914 if (copy_from_user(kbufs[n], base, len)) { in nilfs_ioctl_clean_segments()
1064 if (copy_from_user(&range, argp, sizeof(range))) in nilfs_ioctl_trim_fs()
1106 if (copy_from_user(range, argp, sizeof(__u64[2]))) in nilfs_ioctl_set_alloc_range()
1167 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_get_info()
1225 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_set_suinfo()
[all …]

12345678910>>...43