Searched refs:memdup_user (Results 1 - 69 of 69) sorted by relevance

/linux-4.1.27/fs/efivarfs/
H A Dfile.c37 data = memdup_user(userbuf + sizeof(attributes), datasize); efivarfs_file_write()
/linux-4.1.27/mm/
H A Dutil.c121 * memdup_user - duplicate memory region from user space
128 void *memdup_user(const void __user *src, size_t len) memdup_user() function
148 EXPORT_SYMBOL(memdup_user); variable
168 p = memdup_user(s, length); strndup_user()
/linux-4.1.27/include/linux/
H A Dstring.h12 extern void *memdup_user(const void __user *, size_t);
/linux-4.1.27/fs/btrfs/
H A Dioctl.c1491 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_resize()
1670 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_snap_create()
1693 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_snap_create_v2()
1714 inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size); btrfs_ioctl_snap_create_v2()
2283 args = memdup_user(argp, sizeof(*args)); btrfs_ioctl_ino_lookup()
2321 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_snap_destroy()
2618 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_add_dev()
2650 vol_args = memdup_user(arg, sizeof(*vol_args)); btrfs_ioctl_rm_dev()
2720 di_args = memdup_user(arg, sizeof(*di_args)); btrfs_ioctl_dev_info()
2971 same = memdup_user(argp, size); btrfs_ioctl_file_extent_same()
4211 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_scrub()
4252 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_scrub_progress()
4271 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_get_dev_stats()
4297 p = memdup_user(arg, sizeof(*p)); btrfs_ioctl_dev_replace()
4356 ipa = memdup_user(arg, sizeof(*ipa)); btrfs_ioctl_ino_to_path()
4428 loi = memdup_user(arg, sizeof(*loi)); btrfs_ioctl_logical_to_ino()
4562 bargs = memdup_user(arg, sizeof(*bargs)); btrfs_ioctl_balance()
4708 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_quota_ctl()
4759 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_qgroup_assign()
4811 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_qgroup_create()
4862 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_qgroup_limit()
4907 qsa = memdup_user(arg, sizeof(*qsa)); btrfs_ioctl_quota_rescan()
5059 args32 = memdup_user(arg, sizeof(*args32)); btrfs_ioctl_set_received_subvol_32()
5111 sa = memdup_user(arg, sizeof(*sa)); btrfs_ioctl_set_received_subvol()
H A Dsuper.c1968 vol = memdup_user((void __user *)arg, sizeof(*vol)); btrfs_control_ioctl()
H A Dsend.c5724 arg = memdup_user(arg_, sizeof(*arg)); btrfs_ioctl_send()
/linux-4.1.27/drivers/i2c/
H A Di2c-dev.c171 tmp = memdup_user(buf, count); i2cdev_write()
256 rdwr_pa = memdup_user(rdwr_arg.msgs, i2cdev_ioctl_rdrw()
276 rdwr_pa[i].buf = memdup_user(data_ptrs[i], rdwr_pa[i].len); i2cdev_ioctl_rdrw()
/linux-4.1.27/drivers/isdn/sc/
H A Dioctl.c221 spid = memdup_user(data->dataptr, SCIOC_SPIDSIZE); sc_ioctl()
296 dn = memdup_user(data->dataptr, SCIOC_DNSIZE); sc_ioctl()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfad_debugfs.c263 kern_buf = memdup_user(buf, nbytes); bfad_debugfs_write_regrd()
330 kern_buf = memdup_user(buf, nbytes); bfad_debugfs_write_regwr()
/linux-4.1.27/fs/ecryptfs/
H A Dmiscdev.c414 data = memdup_user(buf, count); ecryptfs_miscdev_write()
416 printk(KERN_ERR "%s: memdup_user returned error [%ld]\n", ecryptfs_miscdev_write()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Drtw_android.c162 command = memdup_user(priv_cmd.buf, priv_cmd.total_len); rtw_android_priv_cmd()
/linux-4.1.27/drivers/gpu/drm/r128/
H A Dr128_state.c904 buffer = memdup_user(depth->buffer, buffer_size); r128_cce_dispatch_write_span()
910 mask = memdup_user(depth->mask, mask_size); r128_cce_dispatch_write_span()
1005 buffer = memdup_user(depth->buffer, buffer_size); r128_cce_dispatch_write_pixels()
1014 mask = memdup_user(depth->mask, mask_size); r128_cce_dispatch_write_pixels()
/linux-4.1.27/sound/firewire/fireworks/
H A Dfireworks_hwdep.c136 buf = memdup_user(data, count); hwdep_write()
/linux-4.1.27/sound/isa/wavefront/
H A Dwavefront_fx.c207 page_data = memdup_user((unsigned char __user *) snd_wavefront_fx_ioctl()
H A Dwavefront_synth.c1672 wc = memdup_user(argp, sizeof(*wc)); snd_wavefront_synth_ioctl()
/linux-4.1.27/sound/usb/usx2y/
H A DusX2Yhwdep.c209 buf = memdup_user(dsp->image, dsp->length); snd_usX2Y_hwdep_dsp_load()
H A Dus122l.c392 cfg = memdup_user((void *)arg, sizeof(*cfg)); usb_stream_hwdep_ioctl()
/linux-4.1.27/fs/ncpfs/
H A Dioctl.c662 newname = memdup_user(user.object_name, __ncp_ioctl()
759 new = memdup_user(user.data, user.len); __ncp_ioctl()
/linux-4.1.27/drivers/media/rc/
H A Dir-lirc-codec.c134 txbuf = memdup_user(buf, n); ir_lirc_transmit_ir()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_debugfs.c334 buf = memdup_user(ubuf, len); edid_write()
/linux-4.1.27/drivers/vfio/platform/
H A Dvfio_platform_common.c244 data = memdup_user((void __user *)(arg + minsz), size); vfio_platform_ioctl()
/linux-4.1.27/drivers/mtd/
H A Dmtdchar.c394 ops.oobbuf = memdup_user(ptr, length); mtdchar_writeoob()
565 ops.datbuf = memdup_user(usr_data, ops.len); mtdchar_write_ioctl()
573 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); mtdchar_write_ioctl()
/linux-4.1.27/sound/core/
H A Dpcm_native.c464 params = memdup_user(_params, sizeof(*params)); snd_pcm_hw_refine_user()
608 params = memdup_user(_params, sizeof(*params)); snd_pcm_hw_params_user()
2862 bufs = memdup_user(xfern.bufs, snd_pcm_playback_ioctl1()
2942 bufs = memdup_user(xfern.bufs, snd_pcm_capture_ioctl1()
3601 oparams = memdup_user(_oparams, sizeof(*oparams)); snd_pcm_hw_refine_old_user()
3631 oparams = memdup_user(_oparams, sizeof(*oparams)); snd_pcm_hw_params_old_user()
H A Dcontrol.c897 control = memdup_user(_control, sizeof(*control)); snd_ctl_elem_read_user()
954 control = memdup_user(_control, sizeof(*control)); snd_ctl_elem_write_user()
1121 new_data = memdup_user(tlv, size); snd_ctl_elem_user_tlv()
1164 names = memdup_user((const void __user *)user_ptrval, snd_ctl_elem_init_enum_names()
H A Dtimer.c1486 ginfo = memdup_user(_ginfo, sizeof(*ginfo)); snd_timer_user_ginfo()
/linux-4.1.27/drivers/ide/
H A Dide-taskfile.c483 req_task = memdup_user(buf, tasksize); ide_taskfile_ioctl()
/linux-4.1.27/drivers/staging/media/lirc/
H A Dlirc_parallel.c383 wbuf = memdup_user(buf, n); lirc_write()
H A Dlirc_sasem.c389 data_buf = memdup_user(buf, n_bytes); vfd_write()
H A Dlirc_sir.c250 tx_buf = memdup_user(buf, n); lirc_write()
H A Dlirc_imon.c411 data_buf = memdup_user(buf, n_bytes); vfd_write()
H A Dlirc_serial.c899 wbuf = memdup_user(buf, n); lirc_write()
/linux-4.1.27/fs/xfs/
H A Dxfs_ioctl32.c424 ops = memdup_user(compat_ptr(am_hreq.ops), size); xfs_compat_attrmulti_by_handle()
H A Dxfs_ioctl.c491 kbuf = memdup_user(ubuf, len); xfs_attrmulti_attr_set()
539 ops = memdup_user(am_hreq.ops, size); xfs_attrmulti_by_handle()
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_ioctl_linux.c959 ext = memdup_user(dwrq->pointer, len); r871x_wx_set_priv()
1913 pparmbuf = memdup_user(p->pointer, len); r871x_mp_ioctl_hdl()
2180 param = memdup_user(p->pointer, p->length); wpa_supplicant_ioctl()
/linux-4.1.27/drivers/isdn/pcbit/
H A Ddrv.c414 cbuf = memdup_user(buf, len); pcbit_writecmd()
/linux-4.1.27/drivers/input/misc/
H A Duinput.c394 user_dev = memdup_user(buffer, sizeof(struct uinput_user_dev)); uinput_setup_device()
/linux-4.1.27/drivers/char/
H A Dapplicom.c707 adgl = memdup_user(argp, sizeof(struct st_ram_io)); ac_ioctl()
/linux-4.1.27/fs/autofs4/
H A Ddev-ioctl.c109 res = memdup_user(in, tmp.size); copy_dev_ioctl()
/linux-4.1.27/net/can/
H A Draw.c506 filter = memdup_user(optval, optlen); raw_setsockopt()
/linux-4.1.27/sound/pci/emu10k1/
H A Demufx.c2537 icode = memdup_user(argp, sizeof(*icode)); snd_emu10k1_fx8010_ioctl()
2544 icode = memdup_user(argp, sizeof(*icode)); snd_emu10k1_fx8010_ioctl()
2555 ipcm = memdup_user(argp, sizeof(*ipcm)); snd_emu10k1_fx8010_ioctl()
2562 ipcm = memdup_user(argp, sizeof(*ipcm)); snd_emu10k1_fx8010_ioctl()
/linux-4.1.27/drivers/block/
H A Dcpqarray.c1257 p = memdup_user(io->sg[0].addr, io->sg[0].size); ida_ctlr_ioctl()
1292 p = memdup_user(io->sg[0].addr, io->sg[0].size); ida_ctlr_ioctl()
/linux-4.1.27/arch/x86/kvm/
H A Dx86.c1944 page = memdup_user(blob_addr + (page_num * PAGE_SIZE), PAGE_SIZE); xen_hvm_config()
2733 entries = memdup_user(user_msrs->entries, size); msr_io()
3397 u.lapic = memdup_user(argp, sizeof(*u.lapic)); kvm_arch_vcpu_ioctl()
3565 u.xsave = memdup_user(argp, sizeof(*u.xsave)); kvm_arch_vcpu_ioctl()
3588 u.xcrs = memdup_user(argp, sizeof(*u.xcrs)); kvm_arch_vcpu_ioctl()
3953 chip = memdup_user(argp, sizeof(*chip)); kvm_arch_vm_ioctl()
3977 chip = memdup_user(argp, sizeof(*chip)); kvm_arch_vm_ioctl()
/linux-4.1.27/virt/kvm/
H A Dkvm_main.c2156 kvm_regs = memdup_user(argp, sizeof(*kvm_regs)); kvm_vcpu_ioctl()
2180 kvm_sregs = memdup_user(argp, sizeof(*kvm_sregs)); kvm_vcpu_ioctl()
2272 fpu = memdup_user(argp, sizeof(*fpu)); kvm_vcpu_ioctl()
/linux-4.1.27/drivers/infiniband/core/
H A Ducm.c698 data = memdup_user((void __user *)(unsigned long)src, len); ib_ucm_alloc_data()
H A Ducma.c1190 optval = memdup_user((void __user *) (unsigned long) cmd.optval, ucma_set_option()
/linux-4.1.27/drivers/net/wan/
H A Dsdla.c1221 temp = memdup_user(mem.data, mem.len); sdla_xfer()
H A Dfarsync.c2033 buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write), fst_ioctl()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-vid-out.c926 new_bitmap = memdup_user(win->bitmap, bitmap_size); vidioc_s_fmt_vid_out_overlay()
/linux-4.1.27/drivers/staging/i2o/
H A Di2o_config.c197 ops = memdup_user(kcmd.opbuf, kcmd.oplen); i2o_cfg_parms()
/linux-4.1.27/drivers/vfio/pci/
H A Dvfio_pci.c593 data = memdup_user((void __user *)(arg + minsz), vfio_pci_ioctl()
/linux-4.1.27/drivers/media/dvb-core/
H A Ddvb_demux.c1161 p = memdup_user(buf, count); dvbdmx_write()
/linux-4.1.27/net/bluetooth/hidp/
H A Dcore.c754 session->rd_data = memdup_user(req->rd_data, req->rd_size); hidp_setup_hid()
/linux-4.1.27/net/dccp/
H A Dproto.c476 val = memdup_user(optval, optlen); dccp_setsockopt_ccid()
/linux-4.1.27/sound/isa/sb/
H A Dsb16_csp.c692 kbuf = memdup_user(buf, size); snd_sb_csp_load_user()
/linux-4.1.27/drivers/message/fusion/
H A Dmptctl.c1264 karg = memdup_user(uarg, data_size); mptctl_getiocinfo()
1266 printk(KERN_ERR MYNAM "%s@%d::mpt_ioctl_iocinfo() - memdup_user returned error [%ld]\n", mptctl_getiocinfo()
/linux-4.1.27/fs/nilfs2/
H A Dioctl.c915 kbufs[4] = memdup_user((void __user *)(unsigned long)argv[4].v_base, nilfs_ioctl_clean_segments()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c1601 chanlist = memdup_user(user_chanlist, __comedi_get_user_chanlist()
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dinode.c1785 kbuf = memdup_user(buf, length); dev_config()
/linux-4.1.27/drivers/video/fbdev/via/
H A Dviafbdev.c591 viafb_gamma_table = memdup_user(argp, 256 * sizeof(u32)); viafb_ioctl()
/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_ppp.c463 code = memdup_user(uprog.filter, len); get_filter()
/linux-4.1.27/drivers/net/ppp/
H A Dppp_generic.c555 code = memdup_user(uprog.filter, len); get_filter()
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_core.c2589 ipw = memdup_user(p->pointer, p->length); rtl8192_ioctl()
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_softmac.c3611 param = memdup_user(p->pointer, p->length); rtllib_wpa_supplicant_ioctl()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_softmac.c3164 param = memdup_user(p->pointer, p->length); ieee80211_wpa_supplicant_ioctl()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_main.c2333 fw_data = memdup_user(useraddr + sizeof(t), t.len);
/linux-4.1.27/net/sctp/
H A Dsocket.c3438 hmacs = memdup_user(optval, optlen); sctp_setsockopt_hmac_ident()
3476 authkey = memdup_user(optval, optlen); sctp_setsockopt_auth_key()
/linux-4.1.27/drivers/s390/net/
H A Dqeth_core_main.c4640 ureq = memdup_user(udata, req_len + sizeof(struct qeth_snmp_ureq_hdr)); qeth_snmp_command()
/linux-4.1.27/drivers/staging/rtl8192u/
H A Dr8192U_core.c3468 ipw = memdup_user(p->pointer, p->length); rtl8192_ioctl()
/linux-4.1.27/drivers/tty/vt/
H A Dvt.c4115 font.data = memdup_user(op->data, size); con_font_set()

Completed in 2414 milliseconds