Home
last modified time | relevance | path

Searched refs:uarg (Results 1 – 25 of 44) sorted by relevance

12

/linux/drivers/tee/
A Dtee_core.c485 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session()
497 uparams = uarg->params; in tee_ioctl_open_session()
516 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session()
563 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke()
575 uparams = uarg->params; in tee_ioctl_invoke()
585 if (put_user(arg.ret, &uarg->ret) || in tee_ioctl_invoke()
697 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_supp_recv()
716 if (put_user(func, &uarg->func) || in tee_ioctl_supp_recv()
795 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_supp_send()
796 if (get_user(ret, &uarg->ret) || in tee_ioctl_supp_send()
[all …]
/linux/block/
A Dbsg.c62 if (copy_from_user(&hdr, uarg, sizeof(hdr))) in bsg_sg_io()
67 if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr))) in bsg_sg_io()
85 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q() argument
87 return put_user(READ_ONCE(bd->max_queue), uarg); in bsg_get_command_q()
90 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) in bsg_set_command_q() argument
94 if (get_user(max_queue, uarg)) in bsg_set_command_q()
106 void __user *uarg = (void __user *) arg; in bsg_ioctl() local
107 int __user *intp = uarg; in bsg_ioctl()
115 return bsg_get_command_q(bd, uarg); in bsg_ioctl()
117 return bsg_set_command_q(bd, uarg); in bsg_ioctl()
[all …]
/linux/drivers/char/
A Dds1620.c243 } uarg; in ds1620_ioctl() local
246 uarg.i = (int __user *)arg; in ds1620_ioctl()
255 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl()
259 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl()
277 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl()
280 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl()
292 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
297 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
302 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
308 if (get_user(i, uarg.i)) in ds1620_ioctl()
/linux/drivers/rtc/
A Ddev.c212 void __user *uarg = (void __user *)arg; in rtc_dev_ioctl() local
264 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl()
271 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl()
327 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl()
334 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl()
372 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl()
383 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl()
388 if (copy_from_user(&param, uarg, sizeof(param))) { in rtc_dev_ioctl()
419 if (copy_to_user(uarg, &param, sizeof(param))) in rtc_dev_ioctl()
425 if (copy_from_user(&param, uarg, sizeof(param))) { in rtc_dev_ioctl()
[all …]
/linux/drivers/watchdog/
A Dsmsc37b787_wdt.c427 } uarg; in wb_smsc_wdt_ioctl() local
437 uarg.i = (int __user *)arg; in wb_smsc_wdt_ioctl()
441 return copy_to_user(uarg.ident, &ident, sizeof(ident)) in wb_smsc_wdt_ioctl()
444 return put_user(wb_smsc_wdt_status(), uarg.i); in wb_smsc_wdt_ioctl()
446 return put_user(0, uarg.i); in wb_smsc_wdt_ioctl()
451 if (get_user(options, uarg.i)) in wb_smsc_wdt_ioctl()
468 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl()
482 return put_user(new_timeout, uarg.i); in wb_smsc_wdt_ioctl()
A Dpc87413_wdt.c386 } uarg; in pc87413_ioctl() local
396 uarg.i = (int __user *)arg; in pc87413_ioctl()
400 return copy_to_user(uarg.ident, &ident, in pc87413_ioctl()
403 return put_user(pc87413_status(), uarg.i); in pc87413_ioctl()
405 return put_user(0, uarg.i); in pc87413_ioctl()
409 if (get_user(options, uarg.i)) in pc87413_ioctl()
428 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl()
439 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
A Dw83977f_wdt.c381 } uarg; in wdt_ioctl() local
383 uarg.i = (int __user *)arg; in wdt_ioctl()
387 return copy_to_user(uarg.ident, &ident, in wdt_ioctl()
392 return put_user(status, uarg.i); in wdt_ioctl()
395 return put_user(0, uarg.i); in wdt_ioctl()
398 if (get_user(new_options, uarg.i)) in wdt_ioctl()
418 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
428 return put_user(timeout, uarg.i); in wdt_ioctl()
A Dwdt977.c357 } uarg; in wdt977_ioctl() local
359 uarg.i = (int __user *)arg; in wdt977_ioctl()
363 return copy_to_user(uarg.ident, &ident, in wdt977_ioctl()
368 return put_user(status, uarg.i); in wdt977_ioctl()
371 return put_user(0, uarg.i); in wdt977_ioctl()
374 if (get_user(new_options, uarg.i)) in wdt977_ioctl()
394 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl()
404 return put_user(timeout, uarg.i); in wdt977_ioctl()
/linux/fs/verity/
A Dmeasure.c26 struct fsverity_digest __user *uarg = _uarg; in fsverity_ioctl_measure() local
42 if (get_user(arg.digest_size, &uarg->digest_size)) in fsverity_ioctl_measure()
51 if (copy_to_user(uarg, &arg, sizeof(arg))) in fsverity_ioctl_measure()
54 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
A Dread_metadata.c152 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg) in fsverity_ioctl_read_metadata() argument
168 if (copy_from_user(&arg, uarg, sizeof(arg))) in fsverity_ioctl_read_metadata()
/linux/drivers/message/fusion/
A Dmptctl.c1247 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo()
1339 ioc->name, __FILE__, __LINE__, uarg); in mptctl_getiocinfo()
1375 __FILE__, __LINE__, uarg); in mptctl_gettargetinfo()
1477 __FILE__, __LINE__, uarg); in mptctl_readtest()
1529 __FILE__, __LINE__, uarg); in mptctl_eventquery()
1559 __FILE__, __LINE__, uarg); in mptctl_eventenable()
1599 __FILE__, __LINE__, uarg); in mptctl_eventreport()
1645 __FILE__, __LINE__, uarg); in mptctl_replace_fw()
1705 __FILE__, __LINE__, uarg); in mptctl_mpt_command()
2344 __FILE__, __LINE__, uarg); in mptctl_hp_hostinfo()
[all …]
/linux/drivers/pps/
A Dpps.c95 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local
110 err = copy_to_user(uarg, &params, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
123 err = copy_from_user(&params, uarg, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
181 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
200 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
215 if (copy_from_user(&bind_args, uarg, in pps_cdev_ioctl()
253 void __user *uarg = (void __user *) arg; in pps_cdev_compat_ioctl() local
264 err = copy_from_user(&compat, uarg, sizeof(struct pps_fdata_compat)); in pps_cdev_compat_ioctl()
289 return copy_to_user(uarg, &compat, in pps_cdev_compat_ioctl()
/linux/fs/crypto/
A Dkeyring.c634 struct fscrypt_add_key_arg __user *uarg = _uarg; in fscrypt_ioctl_add_key() local
639 if (copy_from_user(&arg, uarg, sizeof(arg))) in fscrypt_ioctl_add_key()
670 if (copy_from_user(secret.raw, uarg->raw, secret.size)) in fscrypt_ioctl_add_key()
914 struct fscrypt_remove_key_arg __user *uarg = _uarg; in do_remove_key() local
922 if (copy_from_user(&arg, uarg, sizeof(arg))) in do_remove_key()
1003 err = put_user(status_flags, &uarg->removal_status_flags); in do_remove_key()
1007 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() argument
1009 return do_remove_key(filp, uarg, false); in fscrypt_ioctl_remove_key()
1017 return do_remove_key(filp, uarg, true); in fscrypt_ioctl_remove_key_all_users()
1052 if (copy_from_user(&arg, uarg, sizeof(arg))) in fscrypt_ioctl_get_key_status()
[all …]
/linux/drivers/misc/ocxl/
A Dfile.c73 struct ocxl_ioctl_attach __user *uarg) in afu_ioctl_attach() argument
81 if (copy_from_user(&arg, uarg, sizeof(arg))) in afu_ioctl_attach()
94 struct ocxl_ioctl_metadata __user *uarg) in afu_ioctl_get_metadata() argument
108 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_metadata()
116 struct ocxl_ioctl_p9_wait __user *uarg) in afu_ioctl_enable_p9_wait() argument
151 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_enable_p9_wait()
160 struct ocxl_ioctl_features __user *uarg) in afu_ioctl_get_features() argument
171 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_features()
/linux/drivers/xen/
A Devtchn.c434 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local
449 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
470 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
500 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
521 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl()
544 if (copy_from_user(&notify, uarg, sizeof(notify))) in evtchn_ioctl()
577 if (copy_from_user(&ierd, uarg, sizeof(ierd))) in evtchn_ioctl()
/linux/net/bridge/
A Dbr_ioctl.c316 static int old_deviceless(struct net *net, void __user *uarg) in old_deviceless() argument
320 if (copy_from_user(args, uarg, sizeof(args))) in old_deviceless()
372 struct ifreq *ifr, void __user *uarg) in br_ioctl_stub() argument
381 ret = old_deviceless(net, uarg); in br_ioctl_stub()
393 if (copy_from_user(buf, uarg, IFNAMSIZ)) { in br_ioctl_stub()
/linux/drivers/scsi/bfa/
A Dbfa_svc.h411 void *uarg; /* user callback arg */ member
665 void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa,
668 void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz,
675 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status);
676 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg);
677 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status);
678 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg);
679 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
/linux/net/core/
A Dskbuff.c1191 uarg->len = 1; in msg_zerocopy_alloc()
1193 uarg->zerocopy = 1; in msg_zerocopy_alloc()
1198 return uarg; in msg_zerocopy_alloc()
1210 if (uarg) { in msg_zerocopy_realloc()
1231 if ((u32)(uarg->id + uarg->len) == next) { in msg_zerocopy_realloc()
1234 uarg->len++; in msg_zerocopy_realloc()
1242 return uarg; in msg_zerocopy_realloc()
1290 len = uarg->len; in __msg_zerocopy_callback()
1291 lo = uarg->id; in __msg_zerocopy_callback()
1324 uarg->zerocopy = uarg->zerocopy & success; in msg_zerocopy_callback()
[all …]
/linux/include/linux/
A Dskbuff.h507 struct ubuf_info *uarg);
517 struct ubuf_info *uarg);
1487 refcount_inc(&uarg->refcnt); in net_zcopy_get()
1503 net_zcopy_get(uarg); in skb_zcopy_set()
1504 skb_zcopy_init(skb, uarg); in skb_zcopy_set()
1526 if (uarg) in net_zcopy_put()
1527 uarg->callback(NULL, uarg, true); in net_zcopy_put()
1532 if (uarg) { in net_zcopy_put_abort()
1536 net_zcopy_put(uarg); in net_zcopy_put_abort()
1545 if (uarg) { in skb_zcopy_clear()
[all …]
A Dfsverity.h143 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg);
193 const void __user *uarg) in fsverity_ioctl_read_metadata() argument
A Dif_bridge.h67 void __user *uarg));
69 struct ifreq *ifr, void __user *uarg);
/linux/drivers/media/mc/
A Dmc-device.c387 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument
390 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
396 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument
399 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
425 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
426 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
/linux/net/ipv4/
A Dip_output.c954 struct ubuf_info *uarg = NULL; in __ip_append_data() local
1005 uarg = msg_zerocopy_realloc(sk, length, skb_zcopy(skb)); in __ip_append_data()
1006 if (!uarg) in __ip_append_data()
1013 uarg->zerocopy = 0; in __ip_append_data()
1014 skb_zcopy_set(skb, uarg, &extra_uref); in __ip_append_data()
1144 skb_zcopy_set(skb, uarg, &extra_uref); in __ip_append_data()
1175 } else if (!uarg || !uarg->zerocopy) { in __ip_append_data()
1221 net_zcopy_put_abort(uarg, extra_uref); in __ip_append_data()
/linux/drivers/input/serio/
A Dserport.c233 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local
236 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
/linux/net/ipv6/
A Dip6_output.c1441 struct ubuf_info *uarg = NULL; in __ip6_append_data() local
1520 uarg = msg_zerocopy_realloc(sk, length, skb_zcopy(skb)); in __ip6_append_data()
1521 if (!uarg) in __ip6_append_data()
1528 uarg->zerocopy = 0; in __ip6_append_data()
1529 skb_zcopy_set(skb, uarg, &extra_uref); in __ip6_append_data()
1689 skb_zcopy_set(skb, uarg, &extra_uref); in __ip6_append_data()
1720 } else if (!uarg || !uarg->zerocopy) { in __ip6_append_data()
1766 net_zcopy_put_abort(uarg, extra_uref); in __ip6_append_data()

Completed in 77 milliseconds

12