/drivers/tee/ |
D | tee_core.c | 253 struct tee_ioctl_open_session_arg __user *uarg; in tee_ioctl_open_session() local 269 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session() 270 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_open_session() 281 uparams = uarg->params; in tee_ioctl_open_session() 292 if (put_user(arg.session, &uarg->session) || in tee_ioctl_open_session() 293 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session() 294 put_user(arg.ret_origin, &uarg->ret_origin)) { in tee_ioctl_open_session() 325 struct tee_ioctl_invoke_arg __user *uarg; in tee_ioctl_invoke() local 340 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke() 341 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_invoke() [all …]
|
/drivers/char/ |
D | ds1620.c | 242 } uarg; in ds1620_ioctl() local 245 uarg.i = (int __user *)arg; in ds1620_ioctl() 254 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl() 258 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl() 276 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl() 279 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl() 291 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 296 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 301 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 307 if (get_user(i, uarg.i)) in ds1620_ioctl()
|
/drivers/watchdog/ |
D | smsc37b787_wdt.c | 431 } uarg; in wb_smsc_wdt_ioctl() local 441 uarg.i = (int __user *)arg; in wb_smsc_wdt_ioctl() 445 return copy_to_user(uarg.ident, &ident, sizeof(ident)) in wb_smsc_wdt_ioctl() 448 return put_user(wb_smsc_wdt_status(), uarg.i); in wb_smsc_wdt_ioctl() 450 return put_user(0, uarg.i); in wb_smsc_wdt_ioctl() 455 if (get_user(options, uarg.i)) in wb_smsc_wdt_ioctl() 472 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl() 486 return put_user(new_timeout, uarg.i); in wb_smsc_wdt_ioctl()
|
D | w83977f_wdt.c | 386 } uarg; in wdt_ioctl() local 388 uarg.i = (int __user *)arg; in wdt_ioctl() 392 return copy_to_user(uarg.ident, &ident, in wdt_ioctl() 397 return put_user(status, uarg.i); in wdt_ioctl() 400 return put_user(0, uarg.i); in wdt_ioctl() 403 if (get_user(new_options, uarg.i)) in wdt_ioctl() 423 if (get_user(new_timeout, uarg.i)) in wdt_ioctl() 433 return put_user(timeout, uarg.i); in wdt_ioctl()
|
D | wdt977.c | 361 } uarg; in wdt977_ioctl() local 363 uarg.i = (int __user *)arg; in wdt977_ioctl() 367 return copy_to_user(uarg.ident, &ident, in wdt977_ioctl() 372 return put_user(status, uarg.i); in wdt977_ioctl() 375 return put_user(0, uarg.i); in wdt977_ioctl() 378 if (get_user(new_options, uarg.i)) in wdt977_ioctl() 398 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl() 408 return put_user(timeout, uarg.i); in wdt977_ioctl()
|
D | pc87413_wdt.c | 390 } uarg; in pc87413_ioctl() local 400 uarg.i = (int __user *)arg; in pc87413_ioctl() 404 return copy_to_user(uarg.ident, &ident, in pc87413_ioctl() 407 return put_user(pc87413_status(), uarg.i); in pc87413_ioctl() 409 return put_user(0, uarg.i); in pc87413_ioctl() 413 if (get_user(options, uarg.i)) in pc87413_ioctl() 432 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl() 443 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
|
D | f71808e_wdt.c | 604 } uarg; in watchdog_ioctl() local 606 uarg.i = (int __user *)arg; in watchdog_ioctl() 610 return copy_to_user(uarg.ident, &watchdog.ident, in watchdog_ioctl() 617 return put_user(status, uarg.i); in watchdog_ioctl() 620 return put_user(0, uarg.i); in watchdog_ioctl() 623 if (get_user(new_options, uarg.i)) in watchdog_ioctl() 638 if (get_user(new_timeout, uarg.i)) in watchdog_ioctl() 648 return put_user(watchdog.timeout, uarg.i); in watchdog_ioctl()
|
/drivers/staging/dgnc/ |
D | dgnc_mgmt.c | 93 void __user *uarg = (void __user *)arg; in dgnc_mgmt_ioctl() local 113 if (copy_to_user(uarg, &ddi, sizeof(ddi))) in dgnc_mgmt_ioctl() 125 if (copy_from_user(&brd, uarg, sizeof(int))) in dgnc_mgmt_ioctl() 150 if (copy_to_user(uarg, &di, sizeof(di))) in dgnc_mgmt_ioctl() 164 if (copy_from_user(&ni, uarg, sizeof(ni))) in dgnc_mgmt_ioctl() 241 if (copy_to_user(uarg, &ni, sizeof(ni))) in dgnc_mgmt_ioctl()
|
D | dgnc_tty.c | 2175 void __user *uarg = (void __user *)arg; in dgnc_tty_ioctl() local 2302 return dgnc_get_modem_info(ch, uarg); in dgnc_tty_ioctl() 2308 return dgnc_set_modem_info(ch, cmd, uarg); in dgnc_tty_ioctl() 2396 return dgnc_tty_digigeta(tty, uarg); in dgnc_tty_ioctl() 2416 return dgnc_tty_digiseta(tty, uarg); in dgnc_tty_ioctl() 2503 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl() 2548 if (copy_from_user(&buf, uarg, sizeof(buf))) in dgnc_tty_ioctl() 2591 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl()
|
/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 …]
|
/drivers/pps/ |
D | pps.c | 109 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local 124 err = copy_to_user(uarg, ¶ms, sizeof(struct pps_kparams)); in pps_cdev_ioctl() 137 err = copy_from_user(¶ms, uarg, sizeof(struct pps_kparams)); in pps_cdev_ioctl() 195 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl() 214 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl() 229 if (copy_from_user(&bind_args, uarg, in pps_cdev_ioctl() 267 void __user *uarg = (void __user *) arg; in pps_cdev_compat_ioctl() local 278 err = copy_from_user(&compat, uarg, sizeof(struct pps_fdata_compat)); in pps_cdev_compat_ioctl() 303 return copy_to_user(uarg, &compat, in pps_cdev_compat_ioctl()
|
/drivers/rtc/ |
D | rtc-dev.c | 217 void __user *uarg = (void __user *) arg; in rtc_dev_ioctl() local 268 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 275 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 331 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl() 338 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl() 372 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); in rtc_dev_ioctl() 377 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl() 388 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl()
|
/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()
|
/drivers/scsi/bfa/ |
D | bfa_svc.h | 419 void *uarg; /* user callback arg */ member 673 void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, 676 void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, 683 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); 684 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg); 685 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); 686 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); 687 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
|
D | bfa_fcs.c | 862 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument 864 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogi_comp() 1430 bfa_cb_lps_flogo_comp(void *bfad, void *uarg) in bfa_cb_lps_flogo_comp() argument 1432 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogo_comp()
|
D | bfa_svc.c | 1762 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1764 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1780 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1782 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1797 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1799 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1814 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp() 1830 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb() 1848 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event() 1900 bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, in bfa_lps_flogi() argument [all …]
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 609 void __user *uarg) in lmv_fid2path() argument 625 rc = obd_iocontrol(OBD_IOC_FID2PATH, tgt->ltd_exp, len, gf, uarg); in lmv_fid2path() 747 void __user *uarg) in lmv_hsm_ct_unregister() argument 761 obd_iocontrol(cmd, lmv->tgts[i]->ltd_exp, len, lk, uarg); in lmv_hsm_ct_unregister() 772 struct lustre_kernelcomm *lk, void __user *uarg) in lmv_hsm_ct_register() argument 790 err = obd_iocontrol(cmd, tgt->ltd_exp, len, lk, uarg); in lmv_hsm_ct_register() 805 lk, uarg); in lmv_hsm_ct_register() 839 int len, void *karg, void __user *uarg) in lmv_iocontrol() argument 953 rc = obd_iocontrol(cmd, tgt->ltd_exp, len, karg, uarg); in lmv_iocontrol() 968 *(__u32 *)uarg = mdt_index; in lmv_iocontrol() [all …]
|
/drivers/media/ |
D | media-device.c | 363 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument 366 if (copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 372 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument 375 if (copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 401 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); 402 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
|
/drivers/input/serio/ |
D | serport.c | 234 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local 237 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 1197 struct mpt3_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local 1220 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport() 2020 struct mpt3_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local 2088 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer() 2210 struct mpt3_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local 2216 uarg = (struct mpt3_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command() 2238 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command() 2303 struct mpt3_ioctl_command __user *uarg; in _ctl_ioctl_main() local 2320 uarg = arg; in _ctl_ioctl_main() 2321 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 1027 void *karg, void __user *uarg) in lov_iocontrol() argument 1084 if (obd_ioctl_getdata(&buf, &len, uarg)) in lov_iocontrol() 1117 if (copy_to_user(uarg, buf, len)) in lov_iocontrol() 1189 len, karg, uarg); in lov_iocontrol()
|
/drivers/net/xen-netback/ |
D | netback.c | 1039 struct ubuf_info *uarg; in xenvif_handle_frag_list() local 1082 uarg = skb_shinfo(skb)->destructor_arg; in xenvif_handle_frag_list() 1085 uarg->callback(uarg, true); in xenvif_handle_frag_list()
|
/drivers/tty/serial/ |
D | serial_core.c | 1347 void __user *uarg = (void __user *)arg; in uart_ioctl() local 1356 ret = uart_get_info_user(port, uarg); in uart_ioctl() 1361 ret = uart_set_info_user(tty, state, uarg); in uart_ioctl() 1412 ret = uart_get_lsr_info(tty, state, uarg); in uart_ioctl() 1416 ret = uart_get_rs485_config(uport, uarg); in uart_ioctl() 1420 ret = uart_set_rs485_config(uport, uarg); in uart_ioctl()
|
/drivers/net/ |
D | tap.c | 734 struct ubuf_info *uarg = m->msg_control; in tap_get_user() local 735 uarg->callback(uarg, false); in tap_get_user()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | cl_object.c | 327 struct lov_user_md __user *uarg) in cl_object_getstripe() argument 335 result = obj->co_ops->coo_getstripe(env, obj, uarg); in cl_object_getstripe()
|