Home
last modified time | relevance | path

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

/drivers/tee/
Dtee_core.c303 struct tee_ioctl_open_session_arg __user *uarg; in tee_ioctl_open_session() local
319 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_open_session()
320 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_open_session()
331 uparams = uarg->params; in tee_ioctl_open_session()
342 if (put_user(arg.session, &uarg->session) || in tee_ioctl_open_session()
343 put_user(arg.ret, &uarg->ret) || in tee_ioctl_open_session()
344 put_user(arg.ret_origin, &uarg->ret_origin)) { in tee_ioctl_open_session()
375 struct tee_ioctl_invoke_arg __user *uarg; in tee_ioctl_invoke() local
390 uarg = u64_to_user_ptr(buf.buf_ptr); in tee_ioctl_invoke()
391 if (copy_from_user(&arg, uarg, sizeof(arg))) in tee_ioctl_invoke()
[all …]
/drivers/char/
Dds1620.c243 } uarg; in ds1620_ioctl() local
246 uarg.i = (int __user *)arg; in ds1620_ioctl()
255 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl()
259 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl()
277 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl()
280 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl()
292 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
297 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
302 return put_user(i, uarg.i) ? -EFAULT : 0; in ds1620_ioctl()
308 if (get_user(i, uarg.i)) in ds1620_ioctl()
/drivers/watchdog/
Dsmsc37b787_wdt.c427 } uarg; in wb_smsc_wdt_ioctl() local
437 uarg.i = (int __user *)arg; in wb_smsc_wdt_ioctl()
441 return copy_to_user(uarg.ident, &ident, sizeof(ident)) in wb_smsc_wdt_ioctl()
444 return put_user(wb_smsc_wdt_status(), uarg.i); in wb_smsc_wdt_ioctl()
446 return put_user(0, uarg.i); in wb_smsc_wdt_ioctl()
451 if (get_user(options, uarg.i)) in wb_smsc_wdt_ioctl()
468 if (get_user(new_timeout, uarg.i)) in wb_smsc_wdt_ioctl()
482 return put_user(new_timeout, uarg.i); in wb_smsc_wdt_ioctl()
Dpc87413_wdt.c386 } uarg; in pc87413_ioctl() local
396 uarg.i = (int __user *)arg; in pc87413_ioctl()
400 return copy_to_user(uarg.ident, &ident, in pc87413_ioctl()
403 return put_user(pc87413_status(), uarg.i); in pc87413_ioctl()
405 return put_user(0, uarg.i); in pc87413_ioctl()
409 if (get_user(options, uarg.i)) in pc87413_ioctl()
428 if (get_user(new_timeout, uarg.i)) in pc87413_ioctl()
439 return put_user(new_timeout, uarg.i); in pc87413_ioctl()
Dw83977f_wdt.c381 } uarg; in wdt_ioctl() local
383 uarg.i = (int __user *)arg; in wdt_ioctl()
387 return copy_to_user(uarg.ident, &ident, in wdt_ioctl()
392 return put_user(status, uarg.i); in wdt_ioctl()
395 return put_user(0, uarg.i); in wdt_ioctl()
398 if (get_user(new_options, uarg.i)) in wdt_ioctl()
418 if (get_user(new_timeout, uarg.i)) in wdt_ioctl()
428 return put_user(timeout, uarg.i); in wdt_ioctl()
Dwdt977.c357 } uarg; in wdt977_ioctl() local
359 uarg.i = (int __user *)arg; in wdt977_ioctl()
363 return copy_to_user(uarg.ident, &ident, in wdt977_ioctl()
368 return put_user(status, uarg.i); in wdt977_ioctl()
371 return put_user(0, uarg.i); in wdt977_ioctl()
374 if (get_user(new_options, uarg.i)) in wdt977_ioctl()
394 if (get_user(new_timeout, uarg.i)) in wdt977_ioctl()
404 return put_user(timeout, uarg.i); in wdt977_ioctl()
Df71808e_wdt.c605 } uarg; in watchdog_ioctl() local
607 uarg.i = (int __user *)arg; in watchdog_ioctl()
611 return copy_to_user(uarg.ident, &watchdog.ident, in watchdog_ioctl()
618 return put_user(status, uarg.i); in watchdog_ioctl()
621 return put_user(0, uarg.i); in watchdog_ioctl()
624 if (get_user(new_options, uarg.i)) in watchdog_ioctl()
639 if (get_user(new_timeout, uarg.i)) in watchdog_ioctl()
649 return put_user(watchdog.timeout, uarg.i); in watchdog_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.c95 void __user *uarg = (void __user *) arg; in pps_cdev_ioctl() local
110 err = copy_to_user(uarg, &params, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
123 err = copy_from_user(&params, uarg, sizeof(struct pps_kparams)); in pps_cdev_ioctl()
181 err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
200 err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); in pps_cdev_ioctl()
215 if (copy_from_user(&bind_args, uarg, in pps_cdev_ioctl()
253 void __user *uarg = (void __user *) arg; in pps_cdev_compat_ioctl() local
264 err = copy_from_user(&compat, uarg, sizeof(struct pps_fdata_compat)); in pps_cdev_compat_ioctl()
289 return copy_to_user(uarg, &compat, in pps_cdev_compat_ioctl()
/drivers/rtc/
Ddev.c210 void __user *uarg = (void __user *)arg; in rtc_dev_ioctl() local
261 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl()
268 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl()
324 if (copy_to_user(uarg, &tm, sizeof(tm))) in rtc_dev_ioctl()
331 if (copy_from_user(&tm, uarg, sizeof(tm))) in rtc_dev_ioctl()
365 err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); in rtc_dev_ioctl()
370 if (copy_from_user(&alarm, uarg, sizeof(alarm))) in rtc_dev_ioctl()
381 if (copy_to_user(uarg, &alarm, sizeof(alarm))) in rtc_dev_ioctl()
/drivers/misc/ocxl/
Dfile.c73 struct ocxl_ioctl_attach __user *uarg) in afu_ioctl_attach() argument
81 if (copy_from_user(&arg, uarg, sizeof(arg))) in afu_ioctl_attach()
94 struct ocxl_ioctl_metadata __user *uarg) in afu_ioctl_get_metadata() argument
108 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_metadata()
116 struct ocxl_ioctl_p9_wait __user *uarg) in afu_ioctl_enable_p9_wait() argument
151 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_enable_p9_wait()
160 struct ocxl_ioctl_features __user *uarg) in afu_ioctl_get_features() argument
171 if (copy_to_user(uarg, &arg, sizeof(arg))) in afu_ioctl_get_features()
/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.h411 void *uarg; /* user callback arg */ member
665 void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa,
668 void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz,
675 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status);
676 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg);
677 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status);
678 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg);
679 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
Dbfa_fcs.c854 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument
856 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogi_comp()
1422 bfa_cb_lps_flogo_comp(void *bfad, void *uarg) in bfa_cb_lps_flogo_comp() argument
1424 struct bfa_fcs_fabric_s *fabric = uarg; in bfa_cb_lps_flogo_comp()
Dbfa_svc.c1742 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1744 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1760 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1762 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1777 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1779 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1794 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1810 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
1828 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event()
1880 bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, in bfa_lps_flogi() argument
[all …]
Dbfa_fcs_lport.c6889 bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_fdisc_comp() argument
6891 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_fdisc_comp()
6957 bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg) in bfa_cb_lps_fdisclogo_comp() argument
6959 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_fdisclogo_comp()
6967 bfa_cb_lps_cvl_event(void *bfad, void *uarg) in bfa_cb_lps_cvl_event() argument
6969 struct bfa_fcs_vport_s *vport = uarg; in bfa_cb_lps_cvl_event()
/drivers/media/mc/
Dmc-device.c386 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument
389 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
395 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument
398 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
424 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
425 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
/drivers/input/serio/
Dserport.c230 void __user *uarg = compat_ptr(arg); in serport_ldisc_compat_ioctl() local
233 if (get_user(compat_type, (compat_ulong_t __user *)uarg)) in serport_ldisc_compat_ioctl()
/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c1262 struct mpt3_ioctl_eventreport __user *uarg = arg; in _ctl_eventreport() local
1285 if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { in _ctl_eventreport()
2082 struct mpt3_diag_read_buffer __user *uarg = arg; in _ctl_diag_read_buffer() local
2146 if (copy_to_user((void __user *)uarg->diagnostic_data, in _ctl_diag_read_buffer()
2260 struct mpt3_ioctl_command32 __user *uarg; in _ctl_compat_mpt_command() local
2266 uarg = (struct mpt3_ioctl_command32 __user *) arg; in _ctl_compat_mpt_command()
2288 return _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_compat_mpt_command()
2353 struct mpt3_ioctl_command __user *uarg; in _ctl_ioctl_main() local
2374 uarg = arg; in _ctl_ioctl_main()
2375 ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); in _ctl_ioctl_main()
/drivers/net/xen-netback/
Dnetback.c1037 struct ubuf_info *uarg; in xenvif_handle_frag_list() local
1080 uarg = skb_shinfo(skb)->destructor_arg; in xenvif_handle_frag_list()
1083 uarg->callback(uarg, true); in xenvif_handle_frag_list()
/drivers/net/
Dtap.c731 struct ubuf_info *uarg = msg_control; in tap_get_user() local
732 uarg->callback(uarg, false); in tap_get_user()
Dtun.c1920 struct ubuf_info *uarg = msg_control; in tun_get_user() local
1921 uarg->callback(uarg, false); in tun_get_user()
/drivers/tty/serial/
Dserial_core.c1385 void __user *uarg = (void __user *)arg; in uart_ioctl() local
1435 ret = uart_get_lsr_info(tty, state, uarg); in uart_ioctl()
1439 ret = uart_get_rs485_config(uport, uarg); in uart_ioctl()
1443 ret = uart_set_rs485_config(uport, uarg); in uart_ioctl()
1447 ret = uart_set_iso7816_config(state->uart_port, uarg); in uart_ioctl()
1451 ret = uart_get_iso7816_config(state->uart_port, uarg); in uart_ioctl()
/drivers/mtd/
Dmtdchar.c1059 struct blkpg_compat_ioctl_arg __user *uarg = argp; in mtdchar_compat_ioctl() local
1063 if (copy_from_user(&compat_arg, uarg, sizeof(compat_arg))) { in mtdchar_compat_ioctl()
/drivers/scsi/cxlflash/
Dmain.c3504 void __user *uarg = (void __user *)arg; in cxlflash_chr_ioctl() local
3545 if (unlikely(copy_from_user(&buf, uarg, size))) { in cxlflash_chr_ioctl()
3548 __func__, size, cmd, decode_hioctl(cmd), uarg); in cxlflash_chr_ioctl()
3569 if (unlikely(copy_to_user(uarg, &buf, size))) { in cxlflash_chr_ioctl()
3572 __func__, size, cmd, decode_hioctl(cmd), uarg); in cxlflash_chr_ioctl()