Home
last modified time | relevance | path

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

123

/Linux-v6.6/io_uring/
Dnotif.c27 static void io_tx_ubuf_callback(struct sk_buff *skb, struct ubuf_info *uarg, in io_tx_ubuf_callback() argument
30 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); in io_tx_ubuf_callback()
33 if (refcount_dec_and_test(&uarg->refcnt)) in io_tx_ubuf_callback()
37 static void io_tx_ubuf_callback_ext(struct sk_buff *skb, struct ubuf_info *uarg, in io_tx_ubuf_callback_ext() argument
40 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); in io_tx_ubuf_callback_ext()
48 io_tx_ubuf_callback(skb, uarg, success); in io_tx_ubuf_callback_ext()
55 if (nd->uarg.callback != io_tx_ubuf_callback_ext) { in io_notif_set_extended()
60 nd->uarg.callback = io_tx_ubuf_callback_ext; in io_notif_set_extended()
82 nd->uarg.flags = IO_NOTIF_UBUF_FLAGS; in io_alloc_notif()
83 nd->uarg.callback = io_tx_ubuf_callback; in io_alloc_notif()
[all …]
Dnotif.h15 struct ubuf_info uarg; member
36 if (refcount_dec_and_test(&nd->uarg.refcnt)) in io_notif_flush()
/Linux-v6.6/drivers/tee/
Dtee_core.c470 struct tee_ioctl_open_session_arg __user *uarg; in tee_ioctl_open_session() local
486 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session()
487 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_open_session()
498 uparams = uarg->params; in tee_ioctl_open_session()
516 if (put_user(arg.session, &uarg->session) || in tee_ioctl_open_session()
517 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session()
518 put_user(arg.ret_origin, &uarg->ret_origin)) { in tee_ioctl_open_session()
549 struct tee_ioctl_invoke_arg __user *uarg; in tee_ioctl_invoke() local
564 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke()
565 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_invoke()
[all …]
/Linux-v6.6/block/
Dbsg.c58 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-v6.6/drivers/char/
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-v6.6/drivers/rtc/
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()
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(&param, uarg, sizeof(param))) { in rtc_dev_ioctl()
419 if (copy_to_user(uarg, &param, sizeof(param))) in rtc_dev_ioctl()
[all …]
/Linux-v6.6/drivers/watchdog/
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()
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()
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()
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-v6.6/fs/verity/
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()
Dread_metadata.c151 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg) in fsverity_ioctl_read_metadata() argument
167 if (copy_from_user(&arg, uarg, sizeof(arg))) in fsverity_ioctl_read_metadata()
/Linux-v6.6/drivers/pps/
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-v6.6/drivers/message/fusion/
Dmptctl.c1228 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-v6.6/fs/crypto/
Dkeyring.c689 struct fscrypt_add_key_arg __user *uarg = _uarg; in fscrypt_ioctl_add_key() local
694 if (copy_from_user(&arg, uarg, sizeof(arg))) in fscrypt_ioctl_add_key()
725 if (copy_from_user(secret.raw, uarg->raw, secret.size)) in fscrypt_ioctl_add_key()
736 copy_to_user(uarg->key_spec.u.identifier, arg.key_spec.u.identifier, in fscrypt_ioctl_add_key()
1002 struct fscrypt_remove_key_arg __user *uarg = _uarg; in do_remove_key() local
1009 if (copy_from_user(&arg, uarg, sizeof(arg))) in do_remove_key()
1084 err = put_user(status_flags, &uarg->removal_status_flags); in do_remove_key()
1088 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() argument
1090 return do_remove_key(filp, uarg, false); in fscrypt_ioctl_remove_key()
1094 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key_all_users() argument
[all …]
/Linux-v6.6/drivers/misc/ocxl/
Dfile.c73 struct ocxl_ioctl_attach __user *uarg) in afu_ioctl_attach() argument
80 if (copy_from_user(&arg, uarg, sizeof(arg))) in afu_ioctl_attach()
92 struct ocxl_ioctl_metadata __user *uarg) in afu_ioctl_get_metadata() argument
106 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_metadata()
114 struct ocxl_ioctl_p9_wait __user *uarg) in afu_ioctl_enable_p9_wait() argument
149 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_enable_p9_wait()
158 struct ocxl_ioctl_features __user *uarg) in afu_ioctl_get_features() argument
169 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_features()
/Linux-v6.6/drivers/xen/
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(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
561 if (copy_from_user(&notify, uarg, sizeof(notify))) in evtchn_ioctl()
594 if (copy_from_user(&ierd, uarg, sizeof(ierd))) in evtchn_ioctl()
/Linux-v6.6/drivers/scsi/bfa/
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-v6.6/drivers/vfio/cdx/
Dmain.c106 void __user *uarg = (void __user *)arg; in vfio_cdx_ioctl() local
110 return vfio_cdx_ioctl_get_info(vdev, uarg); in vfio_cdx_ioctl()
112 return vfio_cdx_ioctl_get_region_info(vdev, uarg); in vfio_cdx_ioctl()
/Linux-v6.6/include/linux/
Dfsverity.h169 int fsverity_ioctl_read_metadata(struct file *filp, const void __user *uarg);
230 const void __user *uarg) in fsverity_ioctl_read_metadata() argument
Dskbuff.h1639 struct ubuf_info *uarg);
1641 void msg_zerocopy_put_abort(struct ubuf_info *uarg, bool have_uref);
1643 void msg_zerocopy_callback(struct sk_buff *skb, struct ubuf_info *uarg,
1658 struct ubuf_info *uarg);
1691 static inline void net_zcopy_get(struct ubuf_info *uarg) in net_zcopy_get() argument
1693 refcount_inc(&uarg->refcnt); in net_zcopy_get()
1696 static inline void skb_zcopy_init(struct sk_buff *skb, struct ubuf_info *uarg) in skb_zcopy_init() argument
1698 skb_shinfo(skb)->destructor_arg = uarg; in skb_zcopy_init()
1699 skb_shinfo(skb)->flags |= uarg->flags; in skb_zcopy_init()
1702 static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, in skb_zcopy_set() argument
[all …]
Dif_bridge.h70 void __user *uarg));
72 struct ifreq *ifr, void __user *uarg);
/Linux-v6.6/drivers/iommu/iommufd/
Dvfio_compat.c521 void __user *uarg = (void __user *)arg; in iommufd_vfio_ioctl() local
531 return iommufd_vfio_iommu_get_info(ictx, uarg); in iommufd_vfio_ioctl()
533 return iommufd_vfio_map_dma(ictx, cmd, uarg); in iommufd_vfio_ioctl()
535 return iommufd_vfio_unmap_dma(ictx, cmd, uarg); in iommufd_vfio_ioctl()
/Linux-v6.6/net/core/
Dskbuff.c1542 struct ubuf_info_msgzc *uarg; in msg_zerocopy_alloc() local
1551 BUILD_BUG_ON(sizeof(*uarg) > sizeof(skb->cb)); in msg_zerocopy_alloc()
1552 uarg = (void *)skb->cb; in msg_zerocopy_alloc()
1553 uarg->mmp.user = NULL; in msg_zerocopy_alloc()
1555 if (mm_account_pinned_pages(&uarg->mmp, size)) { in msg_zerocopy_alloc()
1560 uarg->ubuf.callback = msg_zerocopy_callback; in msg_zerocopy_alloc()
1561 uarg->id = ((u32)atomic_inc_return(&sk->sk_zckey)) - 1; in msg_zerocopy_alloc()
1562 uarg->len = 1; in msg_zerocopy_alloc()
1563 uarg->bytelen = size; in msg_zerocopy_alloc()
1564 uarg->zerocopy = 1; in msg_zerocopy_alloc()
[all …]
/Linux-v6.6/drivers/media/mc/
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);

123