Home
last modified time | relevance | path

Searched refs:copy_to_user (Results 1 – 25 of 1038) sorted by relevance

12345678910>>...42

/linux/drivers/misc/lkdtm/
A Dusercopy.c79 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack()
86 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack()
153 if (copy_to_user(test_user_addr, test_kern_addr, size / 2)) { in do_usercopy_heap_size()
159 if (copy_to_user(test_user_addr, test_kern_addr, size)) { in do_usercopy_heap_size()
230 if (copy_to_user(user_addr, buf + offset, size)) { in do_usercopy_heap_whitelist()
236 if (copy_to_user(user_addr, buf + offset - 1, size)) { in do_usercopy_heap_whitelist()
313 if (copy_to_user((void __user *)user_addr, test_text, in lkdtm_USERCOPY_KERNEL()
321 if (copy_to_user((void __user *)user_addr, function_nocfi(vm_mmap), in lkdtm_USERCOPY_KERNEL()
/linux/drivers/media/v4l2-core/
A Dv4l2-compat-ioctl32.c100 copy_to_user(&p32->clipcount, &w32.clipcount, in put_v4l2_window32()
200 return copy_to_user(&p32->fmt.pix, &p64->fmt.pix, in put_v4l2_format32()
211 return copy_to_user(&p32->fmt.vbi, &p64->fmt.vbi, in put_v4l2_format32()
233 if (copy_to_user(p32, p64, in put_v4l2_create32()
533 if (copy_to_user(arg, &vb32, sizeof(vb32))) in put_v4l2_buffer32()
577 if (copy_to_user(arg, &vb32, sizeof(vb32))) in put_v4l2_buffer32_time32()
654 if (copy_to_user(p32, p64, sizeof(*p32))) in put_v4l2_input32()
744 if (copy_to_user(p32, &ec32, sizeof(ec32))) in put_v4l2_ext_controls32()
1152 if (copy_to_user(c32, c64, sizeof(c64->c))) in v4l2_compat_put_array_args()
1208 if (copy_to_user(ec32, ec64, size)) in v4l2_compat_put_array_args()
[all …]
/linux/drivers/misc/habanalabs/common/
A Dhabanalabs_ioctl.c40 return copy_to_user(out, &dev_stat, in device_status_info()
99 return copy_to_user(out, &hw_ip, in hw_ip_info()
138 return copy_to_user(out, &dram_usage, in dram_usage_info()
157 return copy_to_user(out, &hw_idle, in hw_idle()
240 return copy_to_user(out, &device_util, in device_utilization()
259 return copy_to_user(out, &clk_rate, in get_clk_rate()
275 return copy_to_user(out, &reset_count, in get_reset_count()
291 return copy_to_user(out, &time_sync, in time_sync_info()
377 return copy_to_user(out, &cs_counters, in cs_counters_info()
442 return copy_to_user(out, &freq_info, in pll_frequency_info()
[all …]
/linux/sound/firewire/motu/
A Dmotu-hwdep.c54 if (copy_to_user(buf, &event, count)) in hwdep_read()
63 if (copy_to_user(buf, &event, count)) in hwdep_read()
86 if (copy_to_user(buf, &event, sizeof(event.motu_register_dsp_change))) in hwdep_read()
126 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
206 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl()
228 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl()
250 err = copy_to_user((void __user *)arg, param, sizeof(*param)); in hwdep_ioctl()
/linux/arch/arm64/lib/
A D.copy_to_user.o.cmd1copy_to_user.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64…
3 source_arch/arm64/lib/copy_to_user.o := arch/arm64/lib/copy_to_user.S
5 deps_arch/arm64/lib/copy_to_user.o := \
148 arch/arm64/lib/copy_to_user.o: $(deps_arch/arm64/lib/copy_to_user.o)
150 $(deps_arch/arm64/lib/copy_to_user.o):
/linux/include/asm-generic/
A Dtermios.h64 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0) in kernel_termios_to_user_termio()
80 return copy_to_user(u, k, sizeof(struct termios2)); in kernel_termios_to_user_termios()
92 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios_1()
104 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios()
A Dtermios-base.h59 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0) in kernel_termios_to_user_termio()
70 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))
74 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
/linux/virt/kvm/
A Dbinary_stats.c87 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
107 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
125 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
137 if (copy_to_user(dest, src, copylen)) in kvm_stats_read()
/linux/net/ethtool/
A Dioctl.c112 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features()
115 if (copy_to_user(useraddr, features, in ethtool_get_features()
928 ret = copy_to_user(useraddr, rxnfc, size); in ethtool_rxnfc_copy_to_user()
936 if (copy_to_user(useraddr, rule_buf, in ethtool_rxnfc_copy_to_user()
1102 if (copy_to_user(useraddr + in ethtool_get_rxfh_indir()
1242 } else if (copy_to_user(useraddr + in ethtool_get_rxfh()
1399 if (copy_to_user(useraddr, regbuf, reglen)) in ethtool_get_regs()
1958 copy_to_user(useraddr, data, in ethtool_get_strings()
2302 if (copy_to_user(useraddr, data, len)) in ethtool_get_dump_data()
2437 if (copy_to_user(useraddr, data, tuna.len)) in ethtool_get_tunable()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_kms.c668 return copy_to_user(out, &fw_info, in amdgpu_info_ioctl()
697 return copy_to_user(out, &gds_info, in amdgpu_info_ioctl()
713 return copy_to_user(out, &vram_gtt, in amdgpu_info_ioctl()
750 return copy_to_user(out, &mem, in amdgpu_info_ioctl()
883 ret = copy_to_user(out, dev_info, in amdgpu_info_ioctl()
911 return copy_to_user(out, &bios_size, in amdgpu_info_ioctl()
922 return copy_to_user(out, bios, in amdgpu_info_ioctl()
938 return copy_to_user(out, &vbios_info, in amdgpu_info_ioctl()
957 return copy_to_user(out, &handle, in amdgpu_info_ioctl()
1068 return copy_to_user(out, &ras_mask, in amdgpu_info_ioctl()
[all …]
/linux/drivers/vfio/pci/
A Dvfio_pci_igd.c54 if (copy_to_user(dst + (*off), src, bytes)) in igd_opregion_shift_copy()
142 copy_to_user(buf + off, opregionvbt->vbt_ex + (pos - OPREGION_SIZE), in vfio_pci_igd_rw()
303 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw()
318 if (copy_to_user(buf + count - size, &val, 2)) in vfio_pci_igd_cfg_rw()
333 if (copy_to_user(buf + count - size, &val, 4)) in vfio_pci_igd_cfg_rw()
348 if (copy_to_user(buf + count - size, &val, 2)) in vfio_pci_igd_cfg_rw()
362 if (copy_to_user(buf + count - size, &val, 1)) in vfio_pci_igd_cfg_rw()
/linux/arch/parisc/include/asm/
A Dtermios.h44 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
48 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2))
50 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
/linux/arch/ia64/include/asm/
A Dtermios.h50 copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \
54 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2))
56 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))
/linux/fs/xfs/
A Dxfs_ioctl.c115 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle()
432 if (copy_to_user(ubuf, buffer, bufsize) || in xfs_ioc_attr_list()
621 if (copy_to_user(am_hreq.ops, ops, size)) in xfs_attrmulti_by_handle()
1025 if (copy_to_user(arg, &fsgeo, len)) in xfs_ioc_fsgeometry()
1049 if (copy_to_user(arg, &ageo, sizeof(ageo))) in xfs_ioc_ag_geometry()
1560 if (copy_to_user(arg, &bmx, recsize)) in xfs_ioc_getbmap()
1663 if (copy_to_user(user_recs, recs, in xfs_ioc_getfsmap()
1724 if (copy_to_user(arg, &scrub, sizeof(scrub))) in xfs_ioc_scrub_metadata()
1982 if (copy_to_user(arg, &da, sizeof(da))) in xfs_file_ioctl()
2072 if (copy_to_user(arg, &out, sizeof(out))) in xfs_file_ioctl()
[all …]
/linux/drivers/misc/vmw_vmci/
A Dvmci_host.c210 *retval = copy_to_user(user_buf_uva, in drv_cp_harray_to_user()
333 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context()
405 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
431 retval = copy_to_user(ubuf, dg, VMCI_DG_SIZE(dg)); in vmci_host_do_receive_datagram()
437 return copy_to_user(uptr, &recv_info, sizeof(recv_info)) ? -EFAULT : 0; in vmci_host_do_receive_datagram()
723 retval = copy_to_user(ubuf, cpt_buf, get_info.buf_size); in vmci_host_do_ctx_get_cpt_state()
730 return copy_to_user(uptr, &get_info, sizeof(get_info)) ? -EFAULT : 0; in vmci_host_do_ctx_get_cpt_state()
797 return copy_to_user(uptr, &notify_info, sizeof(notify_info)) ? in vmci_host_do_set_notify()
848 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_notify_resource()
885 return copy_to_user(uptr, &info, sizeof(info)) ? -EFAULT : 0; in vmci_host_do_recv_notifications()
[all …]
/linux/drivers/gpu/drm/i915/
A Di915_query.c71 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr), in query_topology_info()
75 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + sizeof(topo)), in query_topology_info()
79 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info()
84 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + in query_topology_info()
131 if (copy_to_user(info_ptr, &info, sizeof(info))) in query_engine_info()
138 if (copy_to_user(query_ptr, &query, sizeof(query))) in query_engine_info()
305 if (copy_to_user(user_config_ptr, &user_config, sizeof(user_config))) { in query_perf_config_data()
399 ret = copy_to_user(user_query_config_ptr + 1, in query_perf_config_list()
/linux/sound/firewire/tascam/
A Dtascam-hwdep.c32 if (copy_to_user(buf, &event, count)) in tscm_hwdep_read_locked()
78 if (copy_to_user(pos, &entries[head_pos], length)) in tscm_hwdep_read_queue()
92 if (copy_to_user(buf, &type, sizeof(type))) in tscm_hwdep_read_queue()
160 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
204 if (copy_to_user(arg, tscm->state, sizeof(tscm->state))) in tscm_hwdep_state()
/linux/drivers/char/
A Duv_mmtimer.c106 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl()
112 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl()
127 if (copy_to_user((unsigned long __user *)arg, in uv_mmtimer_ioctl()
A Dppdev.c185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read()
446 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl()
473 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl()
487 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl()
506 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl()
523 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
528 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
533 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
609 if (copy_to_user(argp, &ret, sizeof(ret))) in pp_do_ioctl()
640 if (copy_to_user(argp, time32, sizeof(time32))) in pp_do_ioctl()
[all …]
/linux/drivers/sbus/char/
A Denvctrl.c555 if (copy_to_user(buf, data, ret)) in envctrl_read()
565 if (copy_to_user(buf, data, ret)) in envctrl_read()
573 if (copy_to_user(buf, data, ret)) in envctrl_read()
583 if (copy_to_user(buf, data, ret)) in envctrl_read()
593 if (copy_to_user(buf, data, ret)) in envctrl_read()
601 if (copy_to_user(buf, data, ret)) in envctrl_read()
609 if (copy_to_user(buf, data, ret)) in envctrl_read()
618 if (copy_to_user(buf, data, ret)) in envctrl_read()
627 if (copy_to_user(buf, data, ret)) in envctrl_read()
638 if (copy_to_user(buf, data, ret)) in envctrl_read()
/linux/drivers/input/
A Dinput-compat.c50 if (copy_to_user(buffer, &compat_event, in input_event_to_user()
55 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
111 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
/linux/net/atm/
A Dresources.c185 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats()
220 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_getnames()
244 if (copy_to_user(buf, dev->type, size)) { in atm_dev_ioctl()
251 if (copy_to_user(buf, dev->esi, size)) { in atm_dev_ioctl()
297 if (copy_to_user(buf, &dev->ci_range, size)) { in atm_dev_ioctl()
304 if (copy_to_user(buf, &dev->link_rate, size)) { in atm_dev_ioctl()
/linux/arch/alpha/kernel/
A Dosf_sys.c137 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir()
299 return copy_to_user(osf_stat, &tmp, sizeof(tmp)) ? -EFAULT : 0; in linux_to_osf_stat()
542 if (copy_to_user(name, tmp, sizeof(tmp))) in SYSCALL_DEFINE1()
576 if (copy_to_user(name, tmp, len)) in SYSCALL_DEFINE2()
756 if (copy_to_user(buf, tmp, len)) in SYSCALL_DEFINE3()
807 if (copy_to_user(buffer, hwrpb, nbytes) != 0) in SYSCALL_DEFINE5()
959 return copy_to_user(o, &(struct timeval32){ in put_tv32()
968 return copy_to_user(o, &(struct timeval32){ in put_tv_to_tv32()
992 if (copy_to_user(tz, &sys_tz, sizeof(sys_tz))) in SYSCALL_DEFINE2()
1108 return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0; in SYSCALL_DEFINE2()
[all …]
/linux/net/bluetooth/bnep/
A Dsock.c84 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl()
108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl()
118 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl()
124 if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) in do_bnep_sock_ioctl()
/linux/drivers/gpu/drm/
A Ddrm_ioc32.c122 if (copy_to_user((void __user *)arg, &v32, sizeof(v32))) in compat_drm_version()
154 if (copy_to_user((void __user *)arg, &uq32, sizeof(uq32))) in compat_drm_getunique()
198 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
232 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
287 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
444 if (copy_to_user(to, &v, sizeof(v))) in map_one_buf32()
542 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_getsareactx()
571 if (copy_to_user(argp, &res32, sizeof(res32))) in compat_drm_resctx()
675 if (copy_to_user(argp, &i32, sizeof(i32))) in compat_drm_agp_info()
708 if (copy_to_user(argp, &req32, sizeof(req32))) { in compat_drm_agp_alloc()
[all …]

Completed in 80 milliseconds

12345678910>>...42