/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 | 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 | 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 | 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 | it87_wdt.c | 513 } uarg; in wdt_ioctl() local 515 uarg.i = (int __user *)arg; in wdt_ioctl() 519 return copy_to_user(uarg.ident, in wdt_ioctl() 526 return put_user(status, uarg.i); in wdt_ioctl() 529 return put_user(0, uarg.i); in wdt_ioctl() 536 if (get_user(new_options, uarg.i)) in wdt_ioctl() 564 if (get_user(new_timeout, uarg.i)) in wdt_ioctl() 568 if (put_user(timeout, uarg.i)) in wdt_ioctl()
|
D | f71808e_wdt.c | 557 } uarg; in watchdog_ioctl() local 559 uarg.i = (int __user *)arg; in watchdog_ioctl() 563 return copy_to_user(uarg.ident, &watchdog.ident, in watchdog_ioctl() 570 return put_user(status, uarg.i); in watchdog_ioctl() 573 return put_user(0, uarg.i); in watchdog_ioctl() 576 if (get_user(new_options, uarg.i)) in watchdog_ioctl() 591 if (get_user(new_timeout, uarg.i)) in watchdog_ioctl() 601 return put_user(watchdog.timeout, uarg.i); in watchdog_ioctl()
|
/drivers/staging/dgnc/ |
D | dgnc_mgmt.c | 121 void __user *uarg = (void __user *) arg; in dgnc_mgmt_ioctl() local 141 if (copy_to_user(uarg, &ddi, sizeof(ddi))) in dgnc_mgmt_ioctl() 153 if (copy_from_user(&brd, uarg, sizeof(int))) in dgnc_mgmt_ioctl() 178 if (copy_to_user(uarg, &di, sizeof(di))) in dgnc_mgmt_ioctl() 192 if (copy_from_user(&ni, uarg, sizeof(ni))) in dgnc_mgmt_ioctl() 271 if (copy_to_user(uarg, &ni, sizeof(ni))) in dgnc_mgmt_ioctl()
|
D | dgnc_tty.c | 2766 void __user *uarg = (void __user *) arg; in dgnc_tty_ioctl() local 2892 return dgnc_get_modem_info(ch, uarg); in dgnc_tty_ioctl() 2898 return dgnc_set_modem_info(tty, cmd, uarg); in dgnc_tty_ioctl() 2995 return dgnc_tty_digigeta(tty, uarg); in dgnc_tty_ioctl() 3017 return dgnc_tty_digiseta(tty, uarg); in dgnc_tty_ioctl() 3101 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl() 3148 if (copy_from_user(&buf, uarg, sizeof(buf))) in dgnc_tty_ioctl() 3191 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl()
|
/drivers/message/fusion/ |
D | mptctl.c | 1239 struct mpt_ioctl_iocinfo __user *uarg = (void __user *) arg; in mptctl_getiocinfo() local 1264 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo() 1364 ioc->name, __FILE__, __LINE__, uarg); in mptctl_getiocinfo() 1386 struct mpt_ioctl_targetinfo __user *uarg = (void __user *) arg; in mptctl_gettargetinfo() local 1400 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_targetinfo))) { in mptctl_gettargetinfo() 1403 __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1480 ioc->name, __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1487 if (copy_to_user(uarg->targetInfo, pmem, numBytes)) { in mptctl_gettargetinfo() 1511 struct mpt_ioctl_test __user *uarg = (void __user *) arg; in mptctl_readtest() local 1516 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_test))) { in mptctl_readtest() [all …]
|
/drivers/rtc/ |
D | rtc-dev.c | 226 void __user *uarg = (void __user *) arg; in rtc_dev_ioctl() local 277 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 284 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 340 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl() 347 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl() 381 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); in rtc_dev_ioctl() 386 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl() 397 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl()
|
/drivers/pps/ |
D | pps.c | 72 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local 87 err = copy_to_user(uarg, ¶ms, sizeof(struct pps_kparams)); in pps_cdev_ioctl() 100 err = copy_from_user(¶ms, uarg, sizeof(struct pps_kparams)); in pps_cdev_ioctl() 151 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl() 197 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl() 212 if (copy_from_user(&bind_args, uarg, in pps_cdev_ioctl()
|
/drivers/xen/ |
D | evtchn.c | 342 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local 353 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 374 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 395 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 416 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl() 439 if (copy_from_user(¬ify, uarg, sizeof(notify))) in evtchn_ioctl()
|
/drivers/scsi/bfa/ |
D | bfa_svc.h | 418 void *uarg; /* user callback arg */ member 672 void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, 675 void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, 682 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); 683 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg); 684 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); 685 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); 686 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
|
D | bfa_fcs.c | 924 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument 926 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogi_comp() 1548 bfa_cb_lps_flogo_comp(void *bfad, void *uarg) in bfa_cb_lps_flogo_comp() argument 1550 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogo_comp()
|
D | bfa_svc.c | 1807 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1809 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1825 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1827 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1842 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1844 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1859 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp() 1875 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb() 1893 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event() 1945 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 | 701 static int lmv_fid2path(struct obd_export *exp, int len, void *karg, void *uarg) in lmv_fid2path() argument 717 rc = obd_iocontrol(OBD_IOC_FID2PATH, tgt->ltd_exp, len, gf, uarg); in lmv_fid2path() 832 struct lustre_kernelcomm *lk, void *uarg) in lmv_hsm_ct_unregister() argument 840 obd_iocontrol(cmd, lmv->tgts[i]->ltd_exp, len, lk, uarg); in lmv_hsm_ct_unregister() 852 struct lustre_kernelcomm *lk, void *uarg) in lmv_hsm_ct_register() argument 864 len, lk, uarg); in lmv_hsm_ct_register() 878 len, lk, uarg); in lmv_hsm_ct_register() 908 int len, void *karg, void *uarg) in lmv_iocontrol() argument 1022 rc = obd_iocontrol(cmd, lmv->tgts[0]->ltd_exp, len, karg, uarg); in lmv_iocontrol() 1026 rc = lmv_fid2path(exp, len, karg, uarg); in lmv_iocontrol() [all …]
|
/drivers/input/serio/ |
D | serport.c | 238 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local 241 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 1129 struct mpt3_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local 1152 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport() 1956 struct mpt3_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local 2024 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer() 2147 struct mpt3_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local 2153 uarg = (struct mpt3_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command() 2175 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command() 2228 struct mpt3_ioctl_command __user *uarg; in _ctl_ioctl_main() local 2245 uarg = arg; in _ctl_ioctl_main() 2246 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_ctl.c | 1140 struct mpt2_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local 1163 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport() 1928 struct mpt2_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local 1992 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer() 2112 struct mpt2_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local 2118 uarg = (struct mpt2_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command() 2140 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command() 2192 struct mpt2_ioctl_command __user *uarg; in _ctl_ioctl_main() local 2208 uarg = arg; in _ctl_ioctl_main() 2209 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 1402 void *karg, void *uarg) in lov_iocontrol() argument 1437 flags = uarg ? *(__u32 *)uarg : 0; in lov_iocontrol() 1457 if (obd_ioctl_getdata(&buf, &len, (void *)uarg)) in lov_iocontrol() 1490 if (copy_to_user((void *)uarg, buf, len)) in lov_iocontrol() 1496 rc = lov_getstripe(exp, karg, uarg); in lov_iocontrol() 1564 len, karg, uarg); in lov_iocontrol()
|
/drivers/net/ |
D | macvtap.c | 718 struct ubuf_info *uarg = m->msg_control; in macvtap_get_user() local 719 uarg->callback(uarg, false); in macvtap_get_user()
|
/drivers/net/xen-netback/ |
D | netback.c | 1538 struct ubuf_info *uarg; in xenvif_handle_frag_list() local 1586 uarg = skb_shinfo(skb)->destructor_arg; in xenvif_handle_frag_list() 1589 uarg->callback(uarg, true); in xenvif_handle_frag_list()
|
/drivers/tty/serial/ |
D | serial_core.c | 1166 void __user *uarg = (void __user *)arg; in uart_ioctl() local 1175 ret = uart_get_info_user(port, uarg); in uart_ioctl() 1179 ret = uart_set_info_user(tty, state, uarg); in uart_ioctl() 1225 ret = uart_get_lsr_info(tty, state, uarg); in uart_ioctl()
|
/drivers/staging/dgap/ |
D | dgap.c | 3629 void __user *uarg = (void __user *) arg; in dgap_tty_ioctl() local 3785 return dgap_get_modem_info(ch, uarg); in dgap_tty_ioctl() 3792 return dgap_set_modem_info(ch, bd, un, cmd, uarg); in dgap_tty_ioctl() 3940 return dgap_tty_digigeta(ch, uarg); in dgap_tty_ioctl() 3962 return dgap_tty_digiseta(ch, bd, un, uarg); in dgap_tty_ioctl() 3967 return dgap_tty_digigetedelay(tty, uarg); in dgap_tty_ioctl() 3972 return dgap_tty_digisetedelay(ch, bd, un, uarg); in dgap_tty_ioctl() 3977 return dgap_tty_digigetcustombaud(ch, un, uarg); in dgap_tty_ioctl() 3982 return dgap_tty_digisetcustombaud(ch, bd, un, uarg); in dgap_tty_ioctl()
|