| /linux/block/ |
| H A D | bsg.c | 58 void __user *uarg) in bsg_sg_io() argument 63 if (copy_from_user(&hdr, uarg, sizeof(hdr))) in bsg_sg_io() 69 if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr))) in bsg_sg_io() 87 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q() argument 89 return put_user(READ_ONCE(bd->max_queue), uarg); in bsg_get_command_q() 92 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) in bsg_set_command_q() argument 96 if (get_user(max_queue, uarg)) in bsg_set_command_q() 108 void __user *uarg = (void __user *) arg; in bsg_ioctl() local 109 int __user *intp = uarg; in bsg_ioctl() 117 return bsg_get_command_q(bd, uarg); in bsg_ioctl() [all …]
|
| /linux/drivers/char/ |
| H A D | ds1620.c | 243 } 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/ |
| H A D | dev.c | 212 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() 367 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); 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(¶m, uarg, sizeof(param))) { in rtc_dev_ioctl() 419 if (copy_to_user(uarg, ¶m, sizeof(param))) in rtc_dev_ioctl() [all …]
|
| /linux/drivers/watchdog/ |
| H A D | smsc37b787_wdt.c | 427 } 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()
|
| H A D | w83977f_wdt.c | 381 } 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()
|
| H A D | wdt977.c | 357 } 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()
|
| H A D | pc87413_wdt.c | 386 } 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()
|
| /linux/drivers/message/fusion/ |
| H A D | mptctl.c | 1228 struct mpt_ioctl_iocinfo __user *uarg = (void __user *) arg; in mptctl_getiocinfo() local 1251 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo() 1343 ioc->name, __FILE__, __LINE__, uarg); in mptctl_getiocinfo() 1365 struct mpt_ioctl_targetinfo __user *uarg = (void __user *) arg; in mptctl_gettargetinfo() local 1376 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_targetinfo))) { in mptctl_gettargetinfo() 1379 __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1444 ioc->name, __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1451 if (copy_to_user(uarg->targetInfo, pmem, numBytes)) { in mptctl_gettargetinfo() 1475 struct mpt_ioctl_test __user *uarg = (void __user *) arg; in mptctl_readtest() local 1478 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_test))) { in mptctl_readtest() [all …]
|
| /linux/io_uring/ |
| H A D | notif.h | 15 struct ubuf_info uarg; member 27 void io_tx_ubuf_complete(struct sk_buff *skb, struct ubuf_info *uarg, 40 io_tx_ubuf_complete(NULL, &nd->uarg, true); in io_notif_flush()
|
| /linux/fs/verity/ |
| H A D | measure.c | 29 struct fsverity_digest __user *uarg = _uarg; in fsverity_ioctl_measure() local 45 if (get_user(arg.digest_size, &uarg->digest_size)) in fsverity_ioctl_measure() 54 if (copy_to_user(uarg, &arg, sizeof(arg))) in fsverity_ioctl_measure() 57 if (copy_to_user(uarg->digest, vi->file_digest, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
| H A D | read_metadata.c | 152 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/fs/crypto/ |
| H A D | keyring.c | 755 struct fscrypt_add_key_arg __user *uarg = _uarg; in fscrypt_ioctl_add_key() local 760 if (copy_from_user(&arg, uarg, sizeof(arg))) in fscrypt_ioctl_add_key() 800 if (copy_from_user(secret.bytes, uarg->raw, secret.size)) in fscrypt_ioctl_add_key() 811 copy_to_user(uarg->key_spec.u.identifier, arg.key_spec.u.identifier, in fscrypt_ioctl_add_key() 1070 struct fscrypt_remove_key_arg __user *uarg = _uarg; in do_remove_key() local 1077 if (copy_from_user(&arg, uarg, sizeof(arg))) in do_remove_key() 1151 err = put_user(status_flags, &uarg->removal_status_flags); in do_remove_key() 1155 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() argument 1157 return do_remove_key(filp, uarg, false); in fscrypt_ioctl_remove_key() 1161 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key_all_users() argument [all …]
|
| /linux/drivers/misc/ocxl/ |
| H A D | file.c | 72 struct ocxl_ioctl_attach __user *uarg) in afu_ioctl_attach() argument 79 if (copy_from_user(&arg, uarg, sizeof(arg))) in afu_ioctl_attach() 91 struct ocxl_ioctl_metadata __user *uarg) in afu_ioctl_get_metadata() argument 105 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_metadata() 113 struct ocxl_ioctl_p9_wait __user *uarg) in afu_ioctl_enable_p9_wait() argument 148 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_enable_p9_wait() 157 struct ocxl_ioctl_features __user *uarg) in afu_ioctl_get_features() argument 168 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_features()
|
| /linux/drivers/xen/ |
| H A D | evtchn.c | 440 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local 455 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 476 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 506 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 527 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl() 550 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 567 if (copy_from_user(¬ify, uarg, sizeof(notify))) in evtchn_ioctl() 600 if (copy_from_user(&ierd, uarg, sizeof(ierd))) in evtchn_ioctl()
|
| /linux/drivers/vfio/cdx/ |
| H A D | main.c | 211 void __user *uarg = (void __user *)arg; in vfio_cdx_ioctl() local 215 return vfio_cdx_ioctl_get_info(vdev, uarg); in vfio_cdx_ioctl() 217 return vfio_cdx_ioctl_get_irq_info(vdev, uarg); in vfio_cdx_ioctl() 219 return vfio_cdx_ioctl_set_irqs(vdev, uarg); in vfio_cdx_ioctl()
|
| /linux/net/bridge/ |
| H A D | br_ioctl.c | 397 int br_ioctl_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_stub() argument 409 if (get_user_ifreq(&ifr, &data, uarg)) in br_ioctl_stub() 423 ret = old_deviceless(net, uarg); in br_ioctl_stub() 435 if (copy_from_user(buf, uarg, IFNAMSIZ)) { in br_ioctl_stub()
|
| /linux/include/linux/ |
| H A D | fsverity.h | 206 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg); 267 const void __user *uarg) in fsverity_ioctl_read_metadata() argument
|
| H A D | skbuff.h | 535 int (*link_skb)(struct sk_buff *skb, struct ubuf_info *uarg); 1756 struct ubuf_info *uarg, bool devmem); 1758 void msg_zerocopy_put_abort(struct ubuf_info *uarg, bool have_uref); 1779 struct ubuf_info *uarg, 1813 static inline void net_zcopy_get(struct ubuf_info *uarg) in net_zcopy_get() argument 1815 refcount_inc(&uarg->refcnt); in net_zcopy_get() 1818 static inline void skb_zcopy_init(struct sk_buff *skb, struct ubuf_info *uarg) in skb_zcopy_init() argument 1820 skb_shinfo(skb)->destructor_arg = uarg; in skb_zcopy_init() 1821 skb_shinfo(skb)->flags |= uarg->flags; in skb_zcopy_init() 1824 static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, in skb_zcopy_set() argument [all …]
|
| H A D | if_bridge.h | 69 void __user *uarg)); 70 int br_ioctl_call(struct net *net, unsigned int cmd, void __user *uarg);
|
| /linux/drivers/iommu/iommufd/ |
| H A D | vfio_compat.c | 516 void __user *uarg = (void __user *)arg; in iommufd_vfio_ioctl() local 526 return iommufd_vfio_iommu_get_info(ictx, uarg); in iommufd_vfio_ioctl() 528 return iommufd_vfio_map_dma(ictx, cmd, uarg); in iommufd_vfio_ioctl() 530 return iommufd_vfio_unmap_dma(ictx, cmd, uarg); in iommufd_vfio_ioctl()
|
| /linux/net/core/ |
| H A D | skbuff.c | 1699 struct ubuf_info_msgzc *uarg; in msg_zerocopy_alloc() local 1708 BUILD_BUG_ON(sizeof(*uarg) > sizeof(skb->cb)); in msg_zerocopy_alloc() 1709 uarg = (void *)skb->cb; in msg_zerocopy_alloc() 1710 uarg->mmp.user = NULL; in msg_zerocopy_alloc() 1712 if (likely(!devmem) && mm_account_pinned_pages(&uarg->mmp, size)) { in msg_zerocopy_alloc() 1717 uarg->ubuf.ops = &msg_zerocopy_ubuf_ops; in msg_zerocopy_alloc() 1718 uarg->id = ((u32)atomic_inc_return(&sk->sk_zckey)) - 1; in msg_zerocopy_alloc() 1719 uarg->len = 1; in msg_zerocopy_alloc() 1720 uarg->bytelen = size; in msg_zerocopy_alloc() 1721 uarg->zerocopy = 1; in msg_zerocopy_alloc() [all …]
|
| /linux/drivers/media/mc/ |
| H A D | mc-device.c | 383 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument 386 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 392 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument 395 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 421 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); 422 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
|
| /linux/fs/fuse/ |
| H A D | ioctl.c | 127 struct fsverity_digest __user *uarg = (void __user *)arg; in fuse_setup_measure_verity() local 129 if (copy_from_user(&digest_size, &uarg->digest_size, sizeof(digest_size))) in fuse_setup_measure_verity() 144 struct fsverity_enable_arg __user *uarg = (void __user *)arg; in fuse_setup_enable_verity() local 147 if (copy_from_user(&enable, uarg, sizeof(enable))) in fuse_setup_enable_verity()
|
| /linux/drivers/input/serio/ |
| H A D | serport.c | 224 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local 227 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
|
| /linux/kernel/trace/ |
| H A D | trace_events_user.c | 2450 unsigned long uarg) in user_events_ioctl_reg() argument 2452 struct user_reg __user *ureg = (struct user_reg __user *)uarg; in user_events_ioctl_reg() 2529 unsigned long uarg) in user_events_ioctl_del() argument 2531 void __user *ubuf = (void __user *)uarg; in user_events_ioctl_del() 2610 static long user_events_ioctl_unreg(unsigned long uarg) in user_events_ioctl_unreg() argument 2612 struct user_unreg __user *ureg = (struct user_unreg __user *)uarg; in user_events_ioctl_unreg() 2669 unsigned long uarg) in user_events_ioctl() argument 2678 ret = user_events_ioctl_reg(info, uarg); in user_events_ioctl() 2684 ret = user_events_ioctl_del(info, uarg); in user_events_ioctl() 2690 ret = user_events_ioctl_unreg(uarg); in user_events_ioctl()
|