Home
last modified time | relevance | path

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

12

/drivers/tee/
Dtee_core.c287 struct tee_ioctl_open_session_arg __user *uarg; in tee_ioctl_open_session() local
303 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session()
304 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_open_session()
315 uparams = uarg->params; in tee_ioctl_open_session()
326 if (put_user(arg.session, &uarg->session) || in tee_ioctl_open_session()
327 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session()
328 put_user(arg.ret_origin, &uarg->ret_origin)) { in tee_ioctl_open_session()
359 struct tee_ioctl_invoke_arg __user *uarg; in tee_ioctl_invoke() local
374 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke()
375 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_invoke()
[all …]
/drivers/char/
Dds1620.c242 } 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/
Dsmsc37b787_wdt.c431 } 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()
Dwdt977.c361 } 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()
Dpc87413_wdt.c390 } 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()
Dw83977f_wdt.c386 } 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()
Dit87_wdt.c514 } uarg; in wdt_ioctl() local
516 uarg.i = (int __user *)arg; in wdt_ioctl()
520 return copy_to_user(uarg.ident, in wdt_ioctl()
527 return put_user(status, uarg.i); in wdt_ioctl()
530 return put_user(0, uarg.i); in wdt_ioctl()
537 if (get_user(new_options, uarg.i)) in wdt_ioctl()
565 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
569 if (put_user(timeout, uarg.i)) in wdt_ioctl()
Df71808e_wdt.c560 } uarg; in watchdog_ioctl() local
562 uarg.i = (int __user *)arg; in watchdog_ioctl()
566 return copy_to_user(uarg.ident, &watchdog.ident, in watchdog_ioctl()
573 return put_user(status, uarg.i); in watchdog_ioctl()
576 return put_user(0, uarg.i); in watchdog_ioctl()
579 if (get_user(new_options, uarg.i)) in watchdog_ioctl()
594 if (get_user(new_timeout, uarg.i)) in watchdog_ioctl()
604 return put_user(watchdog.timeout, uarg.i); in watchdog_ioctl()
/drivers/staging/dgnc/
Ddgnc_mgmt.c99 void __user *uarg = (void __user *)arg; in dgnc_mgmt_ioctl() local
119 if (copy_to_user(uarg, &ddi, sizeof(ddi))) in dgnc_mgmt_ioctl()
131 if (copy_from_user(&brd, uarg, sizeof(int))) in dgnc_mgmt_ioctl()
156 if (copy_to_user(uarg, &di, sizeof(di))) in dgnc_mgmt_ioctl()
170 if (copy_from_user(&ni, uarg, sizeof(ni))) in dgnc_mgmt_ioctl()
249 if (copy_to_user(uarg, &ni, sizeof(ni))) in dgnc_mgmt_ioctl()
Ddgnc_tty.c2554 void __user *uarg = (void __user *)arg; in dgnc_tty_ioctl() local
2680 return dgnc_get_modem_info(ch, uarg); in dgnc_tty_ioctl()
2686 return dgnc_set_modem_info(tty, cmd, uarg); in dgnc_tty_ioctl()
2784 return dgnc_tty_digigeta(tty, uarg); in dgnc_tty_ioctl()
2805 return dgnc_tty_digiseta(tty, uarg); in dgnc_tty_ioctl()
2891 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl()
2940 if (copy_from_user(&buf, uarg, sizeof(buf))) in dgnc_tty_ioctl()
2983 if (copy_to_user(uarg, &buf, sizeof(buf))) in dgnc_tty_ioctl()
/drivers/message/fusion/
Dmptctl.c1226 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/rtc/
Drtc-dev.c226 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/
Dpps.c72 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local
87 err = copy_to_user(uarg, &params, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
100 err = copy_from_user(&params, uarg, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
159 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
205 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
220 if (copy_from_user(&bind_args, uarg, in pps_cdev_ioctl()
/drivers/scsi/bfa/
Dbfa_svc.h418 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);
Dbfa_fcs.c924 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()
Dbfa_svc.c1807 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/xen/
Devtchn.c435 void __user *uarg = (void __user *) arg; in evtchn_ioctl() local
446 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
467 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
488 if (copy_from_user(&bind, uarg, sizeof(bind))) in evtchn_ioctl()
509 if (copy_from_user(&unbind, uarg, sizeof(unbind))) in evtchn_ioctl()
532 if (copy_from_user(&notify, uarg, sizeof(notify))) in evtchn_ioctl()
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c665 static int lmv_fid2path(struct obd_export *exp, int len, void *karg, void *uarg) in lmv_fid2path() argument
681 rc = obd_iocontrol(OBD_IOC_FID2PATH, tgt->ltd_exp, len, gf, uarg); in lmv_fid2path()
795 struct lustre_kernelcomm *lk, void *uarg) in lmv_hsm_ct_unregister() argument
803 obd_iocontrol(cmd, lmv->tgts[i]->ltd_exp, len, lk, uarg); in lmv_hsm_ct_unregister()
815 struct lustre_kernelcomm *lk, void *uarg) in lmv_hsm_ct_register() argument
827 len, lk, uarg); in lmv_hsm_ct_register()
840 len, lk, uarg); in lmv_hsm_ct_register()
867 int len, void *karg, void *uarg) in lmv_iocontrol() argument
981 rc = obd_iocontrol(cmd, lmv->tgts[0]->ltd_exp, len, karg, uarg); in lmv_iocontrol()
985 rc = lmv_fid2path(exp, len, karg, uarg); in lmv_iocontrol()
[all …]
/drivers/input/serio/
Dserport.c237 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local
240 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c1149 struct mpt3_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local
1172 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport()
1977 struct mpt3_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local
2045 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer()
2168 struct mpt3_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local
2174 uarg = (struct mpt3_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command()
2196 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command()
2261 struct mpt3_ioctl_command __user *uarg; in _ctl_ioctl_main() local
2278 uarg = arg; in _ctl_ioctl_main()
2279 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
/drivers/staging/lustre/lustre/lov/
Dlov_obd.c1388 void *karg, void *uarg) in lov_iocontrol() argument
1423 flags = uarg ? *(__u32 *)uarg : 0; in lov_iocontrol()
1443 if (obd_ioctl_getdata(&buf, &len, uarg)) in lov_iocontrol()
1476 if (copy_to_user(uarg, buf, len)) in lov_iocontrol()
1482 rc = lov_getstripe(exp, karg, uarg); in lov_iocontrol()
1550 len, karg, uarg); in lov_iocontrol()
/drivers/tty/serial/
Dserial_core.c1221 void __user *uarg = (void __user *)arg; in uart_ioctl() local
1230 ret = uart_get_info_user(port, uarg); in uart_ioctl()
1235 ret = uart_set_info_user(tty, state, uarg); in uart_ioctl()
1285 ret = uart_get_lsr_info(tty, state, uarg); in uart_ioctl()
1289 ret = uart_get_rs485_config(state->uart_port, uarg); in uart_ioctl()
1293 ret = uart_set_rs485_config(state->uart_port, uarg); in uart_ioctl()
/drivers/net/
Dmacvtap.c791 struct ubuf_info *uarg = m->msg_control; in macvtap_get_user() local
792 uarg->callback(uarg, false); in macvtap_get_user()
/drivers/net/xen-netback/
Dnetback.c1512 struct ubuf_info *uarg; in xenvif_handle_frag_list() local
1555 uarg = skb_shinfo(skb)->destructor_arg; in xenvif_handle_frag_list()
1558 uarg->callback(uarg, true); in xenvif_handle_frag_list()
/drivers/mtd/
Dmtdchar.c1096 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl() local
1100 if (copy_from_user(&compat_arg, uarg, sizeof(compat_arg))) { in mtdchar_compat_ioctl()

12