/linux-2.6.39/drivers/char/ |
D | ds1620.c | 241 } uarg; in ds1620_ioctl() local 244 uarg.i = (int __user *)arg; in ds1620_ioctl() 253 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl() 257 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl() 275 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl() 278 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl() 290 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 295 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 300 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl() 306 if (get_user(i, uarg.i)) in ds1620_ioctl()
|
/linux-2.6.39/drivers/watchdog/ |
D | mpcore_wdt.c | 233 } uarg; in mpcore_wdt_ioctl() local 235 if (_IOC_DIR(cmd) && _IOC_SIZE(cmd) > sizeof(uarg)) in mpcore_wdt_ioctl() 239 ret = copy_from_user(&uarg, (void __user *)arg, _IOC_SIZE(cmd)); in mpcore_wdt_ioctl() 246 uarg.ident = ident; in mpcore_wdt_ioctl() 252 uarg.i = 0; in mpcore_wdt_ioctl() 258 if (uarg.i & WDIOS_DISABLECARD) { in mpcore_wdt_ioctl() 262 if (uarg.i & WDIOS_ENABLECARD) { in mpcore_wdt_ioctl() 274 ret = mpcore_wdt_set_heartbeat(uarg.i); in mpcore_wdt_ioctl() 281 uarg.i = mpcore_margin; in mpcore_wdt_ioctl() 290 ret = copy_to_user((void __user *)arg, &uarg, _IOC_SIZE(cmd)); in mpcore_wdt_ioctl()
|
D | smsc37b787_wdt.c | 434 } uarg; in wb_smsc_wdt_ioctl() local 444 uarg.i = (int __user *)arg; in wb_smsc_wdt_ioctl() 448 return copy_to_user(uarg.ident, &ident, sizeof(ident)) in wb_smsc_wdt_ioctl() 451 return put_user(wb_smsc_wdt_status(), uarg.i); in wb_smsc_wdt_ioctl() 453 return put_user(0, uarg.i); in wb_smsc_wdt_ioctl() 458 if (get_user(options, uarg.i)) in wb_smsc_wdt_ioctl() 475 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl() 489 return put_user(new_timeout, uarg.i); in wb_smsc_wdt_ioctl()
|
D | wdt977.c | 363 } uarg; in wdt977_ioctl() local 365 uarg.i = (int __user *)arg; in wdt977_ioctl() 369 return copy_to_user(uarg.ident, &ident, in wdt977_ioctl() 374 return put_user(status, uarg.i); in wdt977_ioctl() 377 return put_user(0, uarg.i); in wdt977_ioctl() 380 if (get_user(new_options, uarg.i)) in wdt977_ioctl() 400 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl() 410 return put_user(timeout, uarg.i); in wdt977_ioctl()
|
D | pc87413_wdt.c | 410 } uarg; in pc87413_ioctl() local 420 uarg.i = (int __user *)arg; in pc87413_ioctl() 424 return copy_to_user(uarg.ident, &ident, in pc87413_ioctl() 427 return put_user(pc87413_status(), uarg.i); in pc87413_ioctl() 429 return put_user(0, uarg.i); in pc87413_ioctl() 433 if (get_user(options, uarg.i)) in pc87413_ioctl() 452 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl() 463 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
|
D | w83977f_wdt.c | 388 } uarg; in wdt_ioctl() local 390 uarg.i = (int __user *)arg; in wdt_ioctl() 394 return copy_to_user(uarg.ident, &ident, in wdt_ioctl() 399 return put_user(status, uarg.i); in wdt_ioctl() 402 return put_user(0, uarg.i); in wdt_ioctl() 405 if (get_user(new_options, uarg.i)) in wdt_ioctl() 425 if (get_user(new_timeout, uarg.i)) in wdt_ioctl() 435 return put_user(timeout, uarg.i); in wdt_ioctl()
|
D | coh901327_wdt.c | 259 } uarg; in coh901327_ioctl() local 267 uarg.i = (int __user *)arg; in coh901327_ioctl() 271 ret = copy_to_user(uarg.ident, &ident, in coh901327_ioctl() 276 ret = put_user(0, uarg.i); in coh901327_ioctl() 280 ret = put_user(boot_status, uarg.i); in coh901327_ioctl() 284 ret = get_user(new_options, uarg.i); in coh901327_ioctl() 300 ret = get_user(time, uarg.i); in coh901327_ioctl() 310 ret = put_user(margin, uarg.i); in coh901327_ioctl() 323 ret = put_user(val, uarg.i); in coh901327_ioctl()
|
D | it87_wdt.c | 477 } uarg; in wdt_ioctl() local 479 uarg.i = (int __user *)arg; in wdt_ioctl() 483 return copy_to_user(uarg.ident, in wdt_ioctl() 488 return put_user(status, uarg.i); in wdt_ioctl() 491 return put_user(0, uarg.i); in wdt_ioctl() 498 if (get_user(new_options, uarg.i)) in wdt_ioctl() 518 if (get_user(new_timeout, uarg.i)) in wdt_ioctl() 522 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()
|
/linux-2.6.39/drivers/rtc/ |
D | rtc-dev.c | 224 void __user *uarg = (void __user *) arg; in rtc_dev_ioctl() local 275 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl() 282 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl() 338 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl() 345 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl() 379 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); in rtc_dev_ioctl() 398 err = put_user(rtc_epoch, (unsigned long __user *)uarg); in rtc_dev_ioctl() 403 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl() 414 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl()
|
/linux-2.6.39/drivers/message/fusion/ |
D | mptctl.c | 1246 struct mpt_ioctl_iocinfo __user *uarg = (void __user *) arg; in mptctl_getiocinfo() local 1279 if (copy_from_user(karg, uarg, data_size)) { in mptctl_getiocinfo() 1282 __FILE__, __LINE__, uarg); in mptctl_getiocinfo() 1381 ioc->name, __FILE__, __LINE__, uarg); in mptctl_getiocinfo() 1403 struct mpt_ioctl_targetinfo __user *uarg = (void __user *) arg; in mptctl_gettargetinfo() local 1417 if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_targetinfo))) { in mptctl_gettargetinfo() 1420 __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1497 ioc->name, __FILE__, __LINE__, uarg); in mptctl_gettargetinfo() 1504 if (copy_to_user(uarg->targetInfo, pmem, numBytes)) { in mptctl_gettargetinfo() 1528 struct mpt_ioctl_test __user *uarg = (void __user *) arg; in mptctl_readtest() local [all …]
|
/linux-2.6.39/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()
|
/linux-2.6.39/drivers/xen/ |
D | evtchn.c | 290 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local 301 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 322 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 343 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl() 363 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl() 392 if (copy_from_user(¬ify, uarg, sizeof(notify))) in evtchn_ioctl()
|
/linux-2.6.39/net/bridge/ |
D | br_ioctl.c | 319 static int old_deviceless(struct net *net, void __user *uarg) in old_deviceless() argument 323 if (copy_from_user(args, uarg, sizeof(args))) in old_deviceless() 373 int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_deviceless_stub() argument 378 return old_deviceless(net, uarg); in br_ioctl_deviceless_stub() 388 if (copy_from_user(buf, uarg, IFNAMSIZ)) in br_ioctl_deviceless_stub()
|
/linux-2.6.39/drivers/scsi/bfa/ |
D | bfa_svc.h | 389 void *uarg; /* user callback arg */ member 607 void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, 610 void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, 616 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); 617 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); 618 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); 619 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
|
D | bfa_svc.c | 1725 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1727 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1743 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1745 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1760 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1775 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp() 1791 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb() 1809 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event() 1861 bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, in bfa_lps_flogi() argument 1864 lps->uarg = uarg; in bfa_lps_flogi() [all …]
|
D | bfa_fcs.c | 729 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument 731 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogi_comp()
|
D | bfa_fcs_lport.c | 5639 bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_fdisc_comp() argument 5641 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_fdisc_comp() 5695 bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg) in bfa_cb_lps_fdisclogo_comp() argument 5697 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_fdisclogo_comp() 5705 bfa_cb_lps_cvl_event(void *bfad, void *uarg) in bfa_cb_lps_cvl_event() argument 5707 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_cvl_event()
|
/linux-2.6.39/block/ |
D | bsg.c | 891 int __user *uarg = (int __user *) arg; in bsg_ioctl() local 899 return put_user(bd->max_queue, uarg); in bsg_ioctl() 903 if (get_user(queue, uarg)) in bsg_ioctl() 926 void __user *uarg = (void __user *) arg; in bsg_ioctl() local 927 return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); in bsg_ioctl() 936 if (copy_from_user(&hdr, uarg, sizeof(hdr))) in bsg_ioctl() 951 if (copy_to_user(uarg, &hdr, sizeof(hdr))) in bsg_ioctl()
|
/linux-2.6.39/drivers/scsi/mpt2sas/ |
D | mpt2sas_ctl.c | 1153 struct mpt2_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local 1178 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport() 1966 struct mpt2_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local 2033 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer() 2166 struct mpt2_ioctl_command __user *uarg; in _ctl_ioctl_main() local 2183 uarg = arg; in _ctl_ioctl_main() 2184 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf, state); in _ctl_ioctl_main() 2280 struct mpt2_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local 2288 uarg = (struct mpt2_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command() 2316 return _ctl_do_mpt_command(ioc, karg, &uarg->mf, state); in _ctl_compat_mpt_command()
|
/linux-2.6.39/drivers/tty/serial/ |
D | serial_core.c | 1107 void __user *uarg = (void __user *)arg; in uart_ioctl() local 1116 ret = uart_get_info(state, uarg); in uart_ioctl() 1120 ret = uart_set_info(tty, state, uarg); in uart_ioctl() 1166 ret = uart_get_lsr_info(tty, state, uarg); in uart_ioctl()
|