Home
last modified time | relevance | path

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

12

/drivers/tee/
Dtee_core.c253 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/
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()
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()
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()
Df71808e_wdt.c604 } 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/
Ddgnc_mgmt.c93 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()
Ddgnc_tty.c2175 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/
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/pps/
Dpps.c109 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local
124 err = copy_to_user(uarg, &params, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
137 err = copy_from_user(&params, 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/
Drtc-dev.c217 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/
Devtchn.c459 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(&notify, uarg, sizeof(notify))) in evtchn_ioctl()
602 if (copy_from_user(&ierd, uarg, sizeof(ierd))) in evtchn_ioctl()
/drivers/scsi/bfa/
Dbfa_svc.h419 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);
Dbfa_fcs.c862 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()
Dbfa_svc.c1762 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/
Dlmv_obd.c609 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/
Dmedia-device.c363 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/
Dserport.c234 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/
Dmpt3sas_ctl.c1197 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/
Dlov_obd.c1027 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/
Dnetback.c1039 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/
Dserial_core.c1347 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/
Dtap.c734 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/
Dcl_object.c327 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()

12