/kernel/linux/linux-5.10/kernel/sched/rtg/ |
D | rtg_ctrl.c | 28 static long ctrl_set_enable(int abi, void __user *uarg); 29 static long ctrl_set_rtg(int abi, void __user *uarg); 30 static long ctrl_set_config(int abi, void __user *uarg); 31 static long ctrl_set_rtg_attr(int abi, void __user *uarg); 32 static long ctrl_begin_frame(int abi, void __user *uarg); 33 static long ctrl_end_frame(int abi, void __user *uarg); 34 static long ctrl_end_scene(int abi, void __user *uarg); 35 static long ctrl_set_min_util(int abi, void __user *uarg); 36 static long ctrl_set_margin(int abi, void __user *uarg); 37 static long ctrl_list_rtg(int abi, void __user *uarg); [all …]
|
/kernel/linux/linux-5.10/drivers/accesstokenid/ |
D | access_tokenid.c | 18 int access_tokenid_get_tokenid(struct file *file, void __user *uarg) in access_tokenid_get_tokenid() argument 20 return copy_to_user(uarg, ¤t->token, in access_tokenid_get_tokenid() 45 int access_tokenid_set_tokenid(struct file *file, void __user *uarg) in access_tokenid_set_tokenid() argument 49 if (copy_from_user(&tmp, uarg, sizeof(tmp))) in access_tokenid_set_tokenid() 88 int access_tokenid_get_ftokenid(struct file *file, void __user *uarg) in access_tokenid_get_ftokenid() argument 93 return copy_to_user(uarg, ¤t->ftoken, in access_tokenid_get_ftokenid() 97 int access_tokenid_set_ftokenid(struct file *file, void __user *uarg) in access_tokenid_set_ftokenid() argument 104 if (copy_from_user(&tmp, uarg, sizeof(tmp))) in access_tokenid_set_ftokenid() 124 void __user *uarg = (void __user *)arg; in access_tokenid_ioctl() local 127 if (uarg == NULL) { in access_tokenid_ioctl() [all …]
|
/kernel/linux/linux-5.10/drivers/tee/ |
D | tee_core.c | 475 struct tee_ioctl_open_session_arg __user *uarg; in tee_ioctl_open_session() local 491 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session() 492 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_open_session() 503 uparams = uarg->params; in tee_ioctl_open_session() 521 if (put_user(arg.session, &uarg->session) || in tee_ioctl_open_session() 522 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session() 523 put_user(arg.ret_origin, &uarg->ret_origin)) { in tee_ioctl_open_session() 554 struct tee_ioctl_invoke_arg __user *uarg; in tee_ioctl_invoke() local 569 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke() 570 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_invoke() [all …]
|
/kernel/linux/linux-5.10/drivers/char/ |
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()
|
/kernel/linux/linux-5.10/fs/verity/ |
D | measure.c | 26 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->measurement, hash_alg->digest_size)) in fsverity_ioctl_measure()
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
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()
|
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()
|
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()
|
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()
|
D | f71808e_wdt.c | 590 } uarg; in watchdog_ioctl() local 592 uarg.i = (int __user *)arg; in watchdog_ioctl() 596 return copy_to_user(uarg.ident, &watchdog.ident, in watchdog_ioctl() 603 return put_user(status, uarg.i); in watchdog_ioctl() 606 return put_user(0, uarg.i); in watchdog_ioctl() 609 if (get_user(new_options, uarg.i)) in watchdog_ioctl() 624 if (get_user(new_timeout, uarg.i)) in watchdog_ioctl() 634 return put_user(watchdog.timeout, uarg.i); in watchdog_ioctl()
|
/kernel/linux/linux-5.10/block/ |
D | bsg.c | 135 static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg) in bsg_sg_io() argument 142 if (copy_from_user(&hdr, uarg, sizeof(hdr))) in bsg_sg_io() 193 if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr))) in bsg_sg_io() 329 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q() argument 331 return put_user(bd->max_queue, uarg); in bsg_get_command_q() 334 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) in bsg_set_command_q() argument 338 if (get_user(queue, uarg)) in bsg_set_command_q() 352 void __user *uarg = (void __user *) arg; in bsg_ioctl() local 359 return bsg_get_command_q(bd, uarg); in bsg_ioctl() 361 return bsg_set_command_q(bd, uarg); in bsg_ioctl() [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | dev.c | 211 void __user *uarg = (void __user *)arg; in rtc_dev_ioctl() local 262 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 269 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 325 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl() 332 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl() 365 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); in rtc_dev_ioctl() 370 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl() 381 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl() 411 void __user *uarg = compat_ptr(arg); in rtc_dev_compat_ioctl() local 415 return put_user(rtc->irq_freq, (__u32 __user *)uarg); in rtc_dev_compat_ioctl() [all …]
|
/kernel/linux/common_modules/qos_auth/auth_ctl/ |
D | qos_ctrl.c | 21 typedef long (*qos_ctrl_func)(int abi, void __user *uarg); 23 static long ctrl_qos_operation(int abi, void __user *uarg); 24 static long ctrl_qos_policy(int abi, void __user *uarg); 456 static long ctrl_qos_operation(int abi, void __user *uarg) in ctrl_qos_operation() argument 467 (void __user *)compat_ptr((compat_uptr_t)uarg), in ctrl_qos_operation() 471 ret = copy_from_user(&qos_data, uarg, sizeof(struct qos_ctrl_data)); in ctrl_qos_operation() 619 static long ctrl_qos_policy(int abi, void __user *uarg) in ctrl_qos_policy() argument 630 (void __user *)compat_ptr((compat_uptr_t)uarg), in ctrl_qos_policy() 634 ret = copy_from_user(&policy_datas, uarg, sizeof(struct qos_policy_datas)); in ctrl_qos_policy() 653 void __user *uarg = (void __user *)arg; in do_qos_ctrl_ioctl() local [all …]
|
D | auth_ctrl.c | 32 static long ctrl_auth_basic_operation(int abi, void __user *uarg); 389 static long ctrl_auth_basic_operation(int abi, void __user *uarg) in ctrl_auth_basic_operation() argument 400 (void __user *)compat_ptr((compat_uptr_t)uarg), in ctrl_auth_basic_operation() 404 ret = copy_from_user(&auth_data, uarg, sizeof(struct auth_ctrl_data)); in ctrl_auth_basic_operation() 429 ret = copy_to_user((void __user *)compat_ptr((compat_uptr_t)uarg), in ctrl_auth_basic_operation() 434 ret = copy_to_user(uarg, &auth_data, sizeof(struct auth_ctrl_data)); in ctrl_auth_basic_operation() 453 void __user *uarg = (void __user *)arg; in do_auth_ctrl_ioctl() local 456 if (uarg == NULL) { in do_auth_ctrl_ioctl() 474 return (*g_func_array[func_cmd])(abi, uarg); in do_auth_ctrl_ioctl()
|
/kernel/linux/linux-5.10/drivers/pps/ |
D | pps.c | 95 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local 110 err = copy_to_user(uarg, ¶ms, sizeof(struct pps_kparams)); in pps_cdev_ioctl() 123 err = copy_from_user(¶ms, 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()
|
/kernel/linux/linux-5.10/drivers/message/fusion/ |
D | mptctl.c | 1226 struct mpt_ioctl_iocinfo __user *uarg = (void __user *) arg; in mptctl_getiocinfo() local 1249 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo() 1341 ioc->name, __FILE__, __LINE__, uarg); in mptctl_getiocinfo() 1363 struct mpt_ioctl_targetinfo __user *uarg = (void __user *) arg; in mptctl_gettargetinfo() local 1375 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_targetinfo))) { in mptctl_gettargetinfo() 1378 __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1448 ioc->name, __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1455 if (copy_to_user(uarg->targetInfo, pmem, numBytes)) { in mptctl_gettargetinfo() 1479 struct mpt_ioctl_test __user *uarg = (void __user *) arg; in mptctl_readtest() local 1482 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_test))) { in mptctl_readtest() [all …]
|
/kernel/linux/linux-5.10/fs/crypto/ |
D | keyring.c | 689 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() 970 struct fscrypt_remove_key_arg __user *uarg = _uarg; in do_remove_key() local 977 if (copy_from_user(&arg, uarg, sizeof(arg))) in do_remove_key() 1052 err = put_user(status_flags, &uarg->removal_status_flags); in do_remove_key() 1056 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() argument 1058 return do_remove_key(filp, uarg, false); in fscrypt_ioctl_remove_key() 1062 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key_all_users() argument [all …]
|
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
D | file.c | 73 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()
|
/kernel/linux/linux-5.10/net/bridge/ |
D | br_ioctl.c | 299 static int old_deviceless(struct net *net, void __user *uarg) in old_deviceless() argument 303 if (copy_from_user(args, uarg, sizeof(args))) in old_deviceless() 353 int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_deviceless_stub() argument 358 return old_deviceless(net, uarg); in br_ioctl_deviceless_stub() 368 if (copy_from_user(buf, uarg, IFNAMSIZ)) in br_ioctl_deviceless_stub()
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | evtchn.c | 459 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local 474 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 495 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 527 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 548 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl() 571 if (copy_from_user(¬ify, uarg, sizeof(notify))) in evtchn_ioctl() 602 if (copy_from_user(&ierd, uarg, sizeof(ierd))) in evtchn_ioctl()
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
D | bfa_svc.h | 411 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);
|
/kernel/linux/linux-5.10/net/core/ |
D | skbuff.c | 1106 struct ubuf_info *uarg; in sock_zerocopy_alloc() local 1115 BUILD_BUG_ON(sizeof(*uarg) > sizeof(skb->cb)); in sock_zerocopy_alloc() 1116 uarg = (void *)skb->cb; in sock_zerocopy_alloc() 1117 uarg->mmp.user = NULL; in sock_zerocopy_alloc() 1119 if (mm_account_pinned_pages(&uarg->mmp, size)) { in sock_zerocopy_alloc() 1124 uarg->callback = sock_zerocopy_callback; in sock_zerocopy_alloc() 1125 uarg->id = ((u32)atomic_inc_return(&sk->sk_zckey)) - 1; in sock_zerocopy_alloc() 1126 uarg->len = 1; in sock_zerocopy_alloc() 1127 uarg->bytelen = size; in sock_zerocopy_alloc() 1128 uarg->zerocopy = 1; in sock_zerocopy_alloc() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | skbuff.h | 492 struct ubuf_info *uarg); 494 static inline void sock_zerocopy_get(struct ubuf_info *uarg) in sock_zerocopy_get() argument 496 refcount_inc(&uarg->refcnt); in sock_zerocopy_get() 499 void sock_zerocopy_put(struct ubuf_info *uarg); 500 void sock_zerocopy_put_abort(struct ubuf_info *uarg, bool have_uref); 502 void sock_zerocopy_callback(struct ubuf_info *uarg, bool success); 507 struct ubuf_info *uarg); 1447 static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, in skb_zcopy_set() argument 1450 if (skb && uarg && !skb_zcopy(skb)) { in skb_zcopy_set() 1454 sock_zerocopy_get(uarg); in skb_zcopy_set() [all …]
|
/kernel/linux/linux-5.10/drivers/media/mc/ |
D | mc-device.c | 387 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);
|
/kernel/linux/linux-5.10/drivers/input/serio/ |
D | serport.c | 232 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local 235 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
|