uarg 135 block/bsg.c static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg) uarg 142 block/bsg.c if (copy_from_user(&hdr, uarg, sizeof(hdr))) uarg 191 block/bsg.c if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr))) uarg 327 block/bsg.c static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) uarg 329 block/bsg.c return put_user(bd->max_queue, uarg); uarg 332 block/bsg.c static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) uarg 336 block/bsg.c if (get_user(queue, uarg)) uarg 350 block/bsg.c void __user *uarg = (void __user *) arg; uarg 357 block/bsg.c return bsg_get_command_q(bd, uarg); uarg 359 block/bsg.c return bsg_set_command_q(bd, uarg); uarg 373 block/bsg.c return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); uarg 375 block/bsg.c return bsg_sg_io(bd->queue, file->f_mode, uarg); uarg 243 drivers/char/ds1620.c } uarg; uarg 246 drivers/char/ds1620.c uarg.i = (int __user *)arg; uarg 255 drivers/char/ds1620.c if (get_user(therm.hi, uarg.i)) uarg 259 drivers/char/ds1620.c if (copy_from_user(&therm, uarg.therm, sizeof(therm))) uarg 277 drivers/char/ds1620.c if (put_user(therm.hi, uarg.i)) uarg 280 drivers/char/ds1620.c if (copy_to_user(uarg.therm, &therm, sizeof(therm))) uarg 292 drivers/char/ds1620.c return put_user(i, uarg.i) ? -EFAULT : 0; uarg 297 drivers/char/ds1620.c return put_user(i, uarg.i) ? -EFAULT : 0; uarg 302 drivers/char/ds1620.c return put_user(i, uarg.i) ? -EFAULT : 0; uarg 308 drivers/char/ds1620.c if (get_user(i, uarg.i)) uarg 230 drivers/input/serio/serport.c void __user *uarg = compat_ptr(arg); uarg 233 drivers/input/serio/serport.c if (get_user(compat_type, (compat_ulong_t __user *)uarg)) uarg 386 drivers/media/mc/mc-device.c static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) uarg 389 drivers/media/mc/mc-device.c copy_from_user(karg, uarg, _IOC_SIZE(cmd))) uarg 395 drivers/media/mc/mc-device.c static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) uarg 398 drivers/media/mc/mc-device.c copy_to_user(uarg, karg, _IOC_SIZE(cmd))) uarg 424 drivers/media/mc/mc-device.c long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); uarg 425 drivers/media/mc/mc-device.c long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd); uarg 1226 drivers/message/fusion/mptctl.c struct mpt_ioctl_iocinfo __user *uarg = (void __user *) arg; uarg 1249 drivers/message/fusion/mptctl.c karg = memdup_user(uarg, data_size); uarg 1341 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 1363 drivers/message/fusion/mptctl.c struct mpt_ioctl_targetinfo __user *uarg = (void __user *) arg; uarg 1375 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_targetinfo))) { uarg 1378 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1448 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 1455 drivers/message/fusion/mptctl.c if (copy_to_user(uarg->targetInfo, pmem, numBytes)) { uarg 1479 drivers/message/fusion/mptctl.c struct mpt_ioctl_test __user *uarg = (void __user *) arg; uarg 1482 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_test))) { uarg 1485 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1510 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 1531 drivers/message/fusion/mptctl.c struct mpt_ioctl_eventquery __user *uarg = (void __user *) arg; uarg 1534 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_eventquery))) { uarg 1537 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1551 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 1561 drivers/message/fusion/mptctl.c struct mpt_ioctl_eventenable __user *uarg = (void __user *) arg; uarg 1564 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_eventenable))) { uarg 1567 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1600 drivers/message/fusion/mptctl.c struct mpt_ioctl_eventreport __user *uarg = (void __user *) arg; uarg 1604 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_eventreport))) { uarg 1607 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1632 drivers/message/fusion/mptctl.c if (copy_to_user(uarg->eventData, ioc->events, numBytes)) { uarg 1646 drivers/message/fusion/mptctl.c struct mpt_ioctl_replace_fw __user *uarg = (void __user *) arg; uarg 1650 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_replace_fw))) { uarg 1653 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1676 drivers/message/fusion/mptctl.c if (copy_from_user(ioc->cached_fw, uarg->newImage, newFwSize)) { uarg 1679 drivers/message/fusion/mptctl.c "@ %p\n", ioc->name, __FILE__, __LINE__, uarg); uarg 1705 drivers/message/fusion/mptctl.c struct mpt_ioctl_command __user *uarg = (void __user *) arg; uarg 1710 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(struct mpt_ioctl_command))) { uarg 1713 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 1717 drivers/message/fusion/mptctl.c rc = mptctl_do_mpt_command (ioc, karg, &uarg->MF); uarg 2326 drivers/message/fusion/mptctl.c hp_host_info_t __user *uarg = (void __user *) arg; uarg 2349 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(hp_host_info_t))) { uarg 2352 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 2537 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 2559 drivers/message/fusion/mptctl.c hp_target_info_t __user *uarg = (void __user *) arg; uarg 2570 drivers/message/fusion/mptctl.c if (copy_from_user(&karg, uarg, sizeof(hp_target_info_t))) { uarg 2573 drivers/message/fusion/mptctl.c __FILE__, __LINE__, uarg); uarg 2682 drivers/message/fusion/mptctl.c ioc->name, __FILE__, __LINE__, uarg); uarg 2756 drivers/message/fusion/mptctl.c struct mpt_ioctl_command32 __user *uarg = (struct mpt_ioctl_command32 __user *) arg; uarg 2798 drivers/message/fusion/mptctl.c ret = mptctl_do_mpt_command (iocp, karg, &uarg->MF); uarg 73 drivers/misc/ocxl/file.c struct ocxl_ioctl_attach __user *uarg) uarg 81 drivers/misc/ocxl/file.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 94 drivers/misc/ocxl/file.c struct ocxl_ioctl_metadata __user *uarg) uarg 108 drivers/misc/ocxl/file.c if (copy_to_user(uarg, &arg, sizeof(arg))) uarg 116 drivers/misc/ocxl/file.c struct ocxl_ioctl_p9_wait __user *uarg) uarg 151 drivers/misc/ocxl/file.c if (copy_to_user(uarg, &arg, sizeof(arg))) uarg 160 drivers/misc/ocxl/file.c struct ocxl_ioctl_features __user *uarg) uarg 171 drivers/misc/ocxl/file.c if (copy_to_user(uarg, &arg, sizeof(arg))) uarg 1059 drivers/mtd/mtdchar.c struct blkpg_compat_ioctl_arg __user *uarg = argp; uarg 1063 drivers/mtd/mtdchar.c if (copy_from_user(&compat_arg, uarg, sizeof(compat_arg))) { uarg 731 drivers/net/tap.c struct ubuf_info *uarg = msg_control; uarg 732 drivers/net/tap.c uarg->callback(uarg, false); uarg 1925 drivers/net/tun.c struct ubuf_info *uarg = msg_control; uarg 1926 drivers/net/tun.c uarg->callback(uarg, false); uarg 1037 drivers/net/xen-netback/netback.c struct ubuf_info *uarg; uarg 1080 drivers/net/xen-netback/netback.c uarg = skb_shinfo(skb)->destructor_arg; uarg 1083 drivers/net/xen-netback/netback.c uarg->callback(uarg, true); uarg 95 drivers/pps/pps.c void __user *uarg = (void __user *) arg; uarg 110 drivers/pps/pps.c err = copy_to_user(uarg, ¶ms, sizeof(struct pps_kparams)); uarg 123 drivers/pps/pps.c err = copy_from_user(¶ms, uarg, sizeof(struct pps_kparams)); uarg 181 drivers/pps/pps.c err = copy_from_user(&fdata, uarg, sizeof(struct pps_fdata)); uarg 200 drivers/pps/pps.c err = copy_to_user(uarg, &fdata, sizeof(struct pps_fdata)); uarg 215 drivers/pps/pps.c if (copy_from_user(&bind_args, uarg, uarg 253 drivers/pps/pps.c void __user *uarg = (void __user *) arg; uarg 264 drivers/pps/pps.c err = copy_from_user(&compat, uarg, sizeof(struct pps_fdata_compat)); uarg 289 drivers/pps/pps.c return copy_to_user(uarg, &compat, uarg 210 drivers/rtc/dev.c void __user *uarg = (void __user *)arg; uarg 261 drivers/rtc/dev.c if (copy_to_user(uarg, &alarm.time, sizeof(tm))) uarg 268 drivers/rtc/dev.c if (copy_from_user(&alarm.time, uarg, sizeof(tm))) uarg 324 drivers/rtc/dev.c if (copy_to_user(uarg, &tm, sizeof(tm))) uarg 331 drivers/rtc/dev.c if (copy_from_user(&tm, uarg, sizeof(tm))) uarg 365 drivers/rtc/dev.c err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); uarg 370 drivers/rtc/dev.c if (copy_from_user(&alarm, uarg, sizeof(alarm))) uarg 381 drivers/rtc/dev.c if (copy_to_user(uarg, &alarm, sizeof(alarm))) uarg 854 drivers/scsi/bfa/bfa_fcs.c bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) uarg 856 drivers/scsi/bfa/bfa_fcs.c struct bfa_fcs_fabric_s *fabric = uarg; uarg 1422 drivers/scsi/bfa/bfa_fcs.c bfa_cb_lps_flogo_comp(void *bfad, void *uarg) uarg 1424 drivers/scsi/bfa/bfa_fcs.c struct bfa_fcs_fabric_s *fabric = uarg; uarg 6889 drivers/scsi/bfa/bfa_fcs_lport.c bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status) uarg 6891 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_vport_s *vport = uarg; uarg 6957 drivers/scsi/bfa/bfa_fcs_lport.c bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg) uarg 6959 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_vport_s *vport = uarg; uarg 6967 drivers/scsi/bfa/bfa_fcs_lport.c bfa_cb_lps_cvl_event(void *bfad, void *uarg) uarg 6969 drivers/scsi/bfa/bfa_fcs_lport.c struct bfa_fcs_vport_s *vport = uarg; uarg 1742 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); uarg 1744 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); uarg 1760 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); uarg 1762 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); uarg 1777 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); uarg 1779 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); uarg 1794 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); uarg 1810 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); uarg 1828 drivers/scsi/bfa/bfa_svc.c bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); uarg 1880 drivers/scsi/bfa/bfa_svc.c bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, uarg 1883 drivers/scsi/bfa/bfa_svc.c lps->uarg = uarg; uarg 1897 drivers/scsi/bfa/bfa_svc.c bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, wwn_t pwwn, uarg 1900 drivers/scsi/bfa/bfa_svc.c lps->uarg = uarg; uarg 411 drivers/scsi/bfa/bfa_svc.h void *uarg; /* user callback arg */ uarg 665 drivers/scsi/bfa/bfa_svc.h void bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, uarg 668 drivers/scsi/bfa/bfa_svc.h void bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, uarg 675 drivers/scsi/bfa/bfa_svc.h void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); uarg 676 drivers/scsi/bfa/bfa_svc.h void bfa_cb_lps_flogo_comp(void *bfad, void *uarg); uarg 677 drivers/scsi/bfa/bfa_svc.h void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); uarg 678 drivers/scsi/bfa/bfa_svc.h void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); uarg 679 drivers/scsi/bfa/bfa_svc.h void bfa_cb_lps_cvl_event(void *bfad, void *uarg); uarg 3504 drivers/scsi/cxlflash/main.c void __user *uarg = (void __user *)arg; uarg 3545 drivers/scsi/cxlflash/main.c if (unlikely(copy_from_user(&buf, uarg, size))) { uarg 3548 drivers/scsi/cxlflash/main.c __func__, size, cmd, decode_hioctl(cmd), uarg); uarg 3569 drivers/scsi/cxlflash/main.c if (unlikely(copy_to_user(uarg, &buf, size))) { uarg 3572 drivers/scsi/cxlflash/main.c __func__, size, cmd, decode_hioctl(cmd), uarg); uarg 1262 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct mpt3_ioctl_eventreport __user *uarg = arg; uarg 1285 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (copy_to_user(uarg->event_data, ioc->event_log, number_bytes)) { uarg 2082 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct mpt3_diag_read_buffer __user *uarg = arg; uarg 2146 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (copy_to_user((void __user *)uarg->diagnostic_data, uarg 2260 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct mpt3_ioctl_command32 __user *uarg; uarg 2266 drivers/scsi/mpt3sas/mpt3sas_ctl.c uarg = (struct mpt3_ioctl_command32 __user *) arg; uarg 2288 drivers/scsi/mpt3sas/mpt3sas_ctl.c return _ctl_do_mpt_command(ioc, karg, &uarg->mf); uarg 2353 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct mpt3_ioctl_command __user *uarg; uarg 2374 drivers/scsi/mpt3sas/mpt3sas_ctl.c uarg = arg; uarg 2375 drivers/scsi/mpt3sas/mpt3sas_ctl.c ret = _ctl_do_mpt_command(ioc, karg, &uarg->mf); uarg 303 drivers/tee/tee_core.c struct tee_ioctl_open_session_arg __user *uarg; uarg 319 drivers/tee/tee_core.c uarg = u64_to_user_ptr(buf.buf_ptr); uarg 320 drivers/tee/tee_core.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 331 drivers/tee/tee_core.c uparams = uarg->params; uarg 342 drivers/tee/tee_core.c if (put_user(arg.session, &uarg->session) || uarg 343 drivers/tee/tee_core.c put_user(arg.ret, &uarg->ret) || uarg 344 drivers/tee/tee_core.c put_user(arg.ret_origin, &uarg->ret_origin)) { uarg 375 drivers/tee/tee_core.c struct tee_ioctl_invoke_arg __user *uarg; uarg 390 drivers/tee/tee_core.c uarg = u64_to_user_ptr(buf.buf_ptr); uarg 391 drivers/tee/tee_core.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 402 drivers/tee/tee_core.c uparams = uarg->params; uarg 412 drivers/tee/tee_core.c if (put_user(arg.ret, &uarg->ret) || uarg 413 drivers/tee/tee_core.c put_user(arg.ret_origin, &uarg->ret_origin)) { uarg 431 drivers/tee/tee_core.c struct tee_ioctl_cancel_arg __user *uarg) uarg 438 drivers/tee/tee_core.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 447 drivers/tee/tee_core.c struct tee_ioctl_close_session_arg __user *uarg) uarg 454 drivers/tee/tee_core.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 509 drivers/tee/tee_core.c struct tee_iocl_supp_recv_arg __user *uarg; uarg 524 drivers/tee/tee_core.c uarg = u64_to_user_ptr(buf.buf_ptr); uarg 525 drivers/tee/tee_core.c if (get_user(num_params, &uarg->num_params)) uarg 528 drivers/tee/tee_core.c if (sizeof(*uarg) + TEE_IOCTL_PARAM_SIZE(num_params) != buf.buf_len) uarg 535 drivers/tee/tee_core.c rc = params_from_user(ctx, params, num_params, uarg->params); uarg 543 drivers/tee/tee_core.c if (put_user(func, &uarg->func) || uarg 544 drivers/tee/tee_core.c put_user(num_params, &uarg->num_params)) { uarg 549 drivers/tee/tee_core.c rc = params_to_supp(ctx, uarg->params, num_params, params); uarg 606 drivers/tee/tee_core.c struct tee_iocl_supp_send_arg __user *uarg; uarg 622 drivers/tee/tee_core.c uarg = u64_to_user_ptr(buf.buf_ptr); uarg 623 drivers/tee/tee_core.c if (get_user(ret, &uarg->ret) || uarg 624 drivers/tee/tee_core.c get_user(num_params, &uarg->num_params)) uarg 627 drivers/tee/tee_core.c if (sizeof(*uarg) + TEE_IOCTL_PARAM_SIZE(num_params) > buf.buf_len) uarg 634 drivers/tee/tee_core.c rc = params_from_supp(params, num_params, uarg->params); uarg 647 drivers/tee/tee_core.c void __user *uarg = (void __user *)arg; uarg 651 drivers/tee/tee_core.c return tee_ioctl_version(ctx, uarg); uarg 653 drivers/tee/tee_core.c return tee_ioctl_shm_alloc(ctx, uarg); uarg 655 drivers/tee/tee_core.c return tee_ioctl_shm_register(ctx, uarg); uarg 657 drivers/tee/tee_core.c return tee_ioctl_open_session(ctx, uarg); uarg 659 drivers/tee/tee_core.c return tee_ioctl_invoke(ctx, uarg); uarg 661 drivers/tee/tee_core.c return tee_ioctl_cancel(ctx, uarg); uarg 663 drivers/tee/tee_core.c return tee_ioctl_close_session(ctx, uarg); uarg 665 drivers/tee/tee_core.c return tee_ioctl_supp_recv(ctx, uarg); uarg 667 drivers/tee/tee_core.c return tee_ioctl_supp_send(ctx, uarg); uarg 1385 drivers/tty/serial/serial_core.c void __user *uarg = (void __user *)arg; uarg 1435 drivers/tty/serial/serial_core.c ret = uart_get_lsr_info(tty, state, uarg); uarg 1439 drivers/tty/serial/serial_core.c ret = uart_get_rs485_config(uport, uarg); uarg 1443 drivers/tty/serial/serial_core.c ret = uart_set_rs485_config(uport, uarg); uarg 1447 drivers/tty/serial/serial_core.c ret = uart_set_iso7816_config(state->uart_port, uarg); uarg 1451 drivers/tty/serial/serial_core.c ret = uart_get_iso7816_config(state->uart_port, uarg); uarg 605 drivers/watchdog/f71808e_wdt.c } uarg; uarg 607 drivers/watchdog/f71808e_wdt.c uarg.i = (int __user *)arg; uarg 611 drivers/watchdog/f71808e_wdt.c return copy_to_user(uarg.ident, &watchdog.ident, uarg 618 drivers/watchdog/f71808e_wdt.c return put_user(status, uarg.i); uarg 621 drivers/watchdog/f71808e_wdt.c return put_user(0, uarg.i); uarg 624 drivers/watchdog/f71808e_wdt.c if (get_user(new_options, uarg.i)) uarg 639 drivers/watchdog/f71808e_wdt.c if (get_user(new_timeout, uarg.i)) uarg 649 drivers/watchdog/f71808e_wdt.c return put_user(watchdog.timeout, uarg.i); uarg 386 drivers/watchdog/pc87413_wdt.c } uarg; uarg 396 drivers/watchdog/pc87413_wdt.c uarg.i = (int __user *)arg; uarg 400 drivers/watchdog/pc87413_wdt.c return copy_to_user(uarg.ident, &ident, uarg 403 drivers/watchdog/pc87413_wdt.c return put_user(pc87413_status(), uarg.i); uarg 405 drivers/watchdog/pc87413_wdt.c return put_user(0, uarg.i); uarg 409 drivers/watchdog/pc87413_wdt.c if (get_user(options, uarg.i)) uarg 428 drivers/watchdog/pc87413_wdt.c if (get_user(new_timeout, uarg.i)) uarg 439 drivers/watchdog/pc87413_wdt.c return put_user(new_timeout, uarg.i); uarg 427 drivers/watchdog/smsc37b787_wdt.c } uarg; uarg 437 drivers/watchdog/smsc37b787_wdt.c uarg.i = (int __user *)arg; uarg 441 drivers/watchdog/smsc37b787_wdt.c return copy_to_user(uarg.ident, &ident, sizeof(ident)) uarg 444 drivers/watchdog/smsc37b787_wdt.c return put_user(wb_smsc_wdt_status(), uarg.i); uarg 446 drivers/watchdog/smsc37b787_wdt.c return put_user(0, uarg.i); uarg 451 drivers/watchdog/smsc37b787_wdt.c if (get_user(options, uarg.i)) uarg 468 drivers/watchdog/smsc37b787_wdt.c if (get_user(new_timeout, uarg.i)) uarg 482 drivers/watchdog/smsc37b787_wdt.c return put_user(new_timeout, uarg.i); uarg 381 drivers/watchdog/w83977f_wdt.c } uarg; uarg 383 drivers/watchdog/w83977f_wdt.c uarg.i = (int __user *)arg; uarg 387 drivers/watchdog/w83977f_wdt.c return copy_to_user(uarg.ident, &ident, uarg 392 drivers/watchdog/w83977f_wdt.c return put_user(status, uarg.i); uarg 395 drivers/watchdog/w83977f_wdt.c return put_user(0, uarg.i); uarg 398 drivers/watchdog/w83977f_wdt.c if (get_user(new_options, uarg.i)) uarg 418 drivers/watchdog/w83977f_wdt.c if (get_user(new_timeout, uarg.i)) uarg 428 drivers/watchdog/w83977f_wdt.c return put_user(timeout, uarg.i); uarg 357 drivers/watchdog/wdt977.c } uarg; uarg 359 drivers/watchdog/wdt977.c uarg.i = (int __user *)arg; uarg 363 drivers/watchdog/wdt977.c return copy_to_user(uarg.ident, &ident, uarg 368 drivers/watchdog/wdt977.c return put_user(status, uarg.i); uarg 371 drivers/watchdog/wdt977.c return put_user(0, uarg.i); uarg 374 drivers/watchdog/wdt977.c if (get_user(new_options, uarg.i)) uarg 394 drivers/watchdog/wdt977.c if (get_user(new_timeout, uarg.i)) uarg 404 drivers/watchdog/wdt977.c return put_user(timeout, uarg.i); uarg 459 drivers/xen/evtchn.c void __user *uarg = (void __user *) arg; uarg 474 drivers/xen/evtchn.c if (copy_from_user(&bind, uarg, sizeof(bind))) uarg 495 drivers/xen/evtchn.c if (copy_from_user(&bind, uarg, sizeof(bind))) uarg 527 drivers/xen/evtchn.c if (copy_from_user(&bind, uarg, sizeof(bind))) uarg 548 drivers/xen/evtchn.c if (copy_from_user(&unbind, uarg, sizeof(unbind))) uarg 571 drivers/xen/evtchn.c if (copy_from_user(¬ify, uarg, sizeof(notify))) uarg 602 drivers/xen/evtchn.c if (copy_from_user(&ierd, uarg, sizeof(ierd))) uarg 2253 fs/btrfs/ioctl.c struct btrfs_ioctl_search_args_v2 __user *uarg; uarg 2264 fs/btrfs/ioctl.c uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; uarg 2265 fs/btrfs/ioctl.c if (copy_from_user(&args, uarg, sizeof(args))) uarg 2276 fs/btrfs/ioctl.c (char __user *)(&uarg->buf[0])); uarg 2277 fs/btrfs/ioctl.c if (ret == 0 && copy_to_user(&uarg->key, &args.key, sizeof(args.key))) uarg 2280 fs/btrfs/ioctl.c copy_to_user(&uarg->buf_size, &buf_size, sizeof(buf_size))) uarg 493 fs/crypto/keyring.c struct fscrypt_add_key_arg __user *uarg = _uarg; uarg 498 fs/crypto/keyring.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 514 fs/crypto/keyring.c if (copy_from_user(secret.raw, uarg->raw, secret.size)) uarg 547 fs/crypto/keyring.c if (copy_to_user(uarg->key_spec.u.identifier, uarg 760 fs/crypto/keyring.c struct fscrypt_remove_key_arg __user *uarg = _uarg; uarg 768 fs/crypto/keyring.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 851 fs/crypto/keyring.c err = put_user(status_flags, &uarg->removal_status_flags); uarg 855 fs/crypto/keyring.c int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) uarg 857 fs/crypto/keyring.c return do_remove_key(filp, uarg, false); uarg 861 fs/crypto/keyring.c int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) uarg 865 fs/crypto/keyring.c return do_remove_key(filp, uarg, true); uarg 892 fs/crypto/keyring.c int fscrypt_ioctl_get_key_status(struct file *filp, void __user *uarg) uarg 900 fs/crypto/keyring.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 950 fs/crypto/keyring.c if (!err && copy_to_user(uarg, &arg, sizeof(arg))) uarg 358 fs/crypto/policy.c int fscrypt_ioctl_get_policy_ex(struct file *filp, void __user *uarg) uarg 376 fs/crypto/policy.c if (copy_from_user(&arg, uarg, sizeof(arg.policy_size))) uarg 383 fs/crypto/policy.c if (copy_to_user(uarg, &arg, sizeof(arg.policy_size) + policy_size)) uarg 299 fs/verity/enable.c int fsverity_ioctl_enable(struct file *filp, const void __user *uarg) uarg 305 fs/verity/enable.c if (copy_from_user(&arg, uarg, sizeof(arg))) uarg 24 fs/verity/measure.c struct fsverity_digest __user *uarg = _uarg; uarg 40 fs/verity/measure.c if (get_user(arg.digest_size, &uarg->digest_size)) uarg 49 fs/verity/measure.c if (copy_to_user(uarg, &arg, sizeof(arg))) uarg 52 fs/verity/measure.c if (copy_to_user(uarg->digest, vi->measurement, hash_alg->digest_size)) uarg 490 include/linux/skbuff.h struct ubuf_info *uarg); uarg 492 include/linux/skbuff.h static inline void sock_zerocopy_get(struct ubuf_info *uarg) uarg 494 include/linux/skbuff.h refcount_inc(&uarg->refcnt); uarg 497 include/linux/skbuff.h void sock_zerocopy_put(struct ubuf_info *uarg); uarg 498 include/linux/skbuff.h void sock_zerocopy_put_abort(struct ubuf_info *uarg, bool have_uref); uarg 500 include/linux/skbuff.h void sock_zerocopy_callback(struct ubuf_info *uarg, bool success); uarg 505 include/linux/skbuff.h struct ubuf_info *uarg); uarg 1419 include/linux/skbuff.h static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, uarg 1422 include/linux/skbuff.h if (skb && uarg && !skb_zcopy(skb)) { uarg 1426 include/linux/skbuff.h sock_zerocopy_get(uarg); uarg 1427 include/linux/skbuff.h skb_shinfo(skb)->destructor_arg = uarg; uarg 1451 include/linux/skbuff.h struct ubuf_info *uarg = skb_zcopy(skb); uarg 1453 include/linux/skbuff.h if (uarg) { uarg 1456 include/linux/skbuff.h } else if (uarg->callback == sock_zerocopy_callback) { uarg 1457 include/linux/skbuff.h uarg->zerocopy = uarg->zerocopy && zerocopy; uarg 1458 include/linux/skbuff.h sock_zerocopy_put(uarg); uarg 1460 include/linux/skbuff.h uarg->callback(uarg, zerocopy); uarg 1470 include/linux/skbuff.h struct ubuf_info *uarg = skb_zcopy(skb); uarg 1472 include/linux/skbuff.h if (uarg) { uarg 1473 include/linux/skbuff.h sock_zerocopy_put_abort(uarg, false); uarg 1646 include/net/tcp.h struct ubuf_info *uarg; uarg 300 net/bridge/br_ioctl.c static int old_deviceless(struct net *net, void __user *uarg) uarg 304 net/bridge/br_ioctl.c if (copy_from_user(args, uarg, sizeof(args))) uarg 354 net/bridge/br_ioctl.c int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) uarg 359 net/bridge/br_ioctl.c return old_deviceless(net, uarg); uarg 369 net/bridge/br_ioctl.c if (copy_from_user(buf, uarg, IFNAMSIZ)) uarg 1097 net/core/skbuff.c struct ubuf_info *uarg; uarg 1106 net/core/skbuff.c BUILD_BUG_ON(sizeof(*uarg) > sizeof(skb->cb)); uarg 1107 net/core/skbuff.c uarg = (void *)skb->cb; uarg 1108 net/core/skbuff.c uarg->mmp.user = NULL; uarg 1110 net/core/skbuff.c if (mm_account_pinned_pages(&uarg->mmp, size)) { uarg 1115 net/core/skbuff.c uarg->callback = sock_zerocopy_callback; uarg 1116 net/core/skbuff.c uarg->id = ((u32)atomic_inc_return(&sk->sk_zckey)) - 1; uarg 1117 net/core/skbuff.c uarg->len = 1; uarg 1118 net/core/skbuff.c uarg->bytelen = size; uarg 1119 net/core/skbuff.c uarg->zerocopy = 1; uarg 1120 net/core/skbuff.c refcount_set(&uarg->refcnt, 1); uarg 1123 net/core/skbuff.c return uarg; uarg 1127 net/core/skbuff.c static inline struct sk_buff *skb_from_uarg(struct ubuf_info *uarg) uarg 1129 net/core/skbuff.c return container_of((void *)uarg, struct sk_buff, cb); uarg 1133 net/core/skbuff.c struct ubuf_info *uarg) uarg 1135 net/core/skbuff.c if (uarg) { uarg 1147 net/core/skbuff.c bytelen = uarg->bytelen + size; uarg 1148 net/core/skbuff.c if (uarg->len == USHRT_MAX - 1 || bytelen > byte_limit) { uarg 1156 net/core/skbuff.c if ((u32)(uarg->id + uarg->len) == next) { uarg 1157 net/core/skbuff.c if (mm_account_pinned_pages(&uarg->mmp, size)) uarg 1159 net/core/skbuff.c uarg->len++; uarg 1160 net/core/skbuff.c uarg->bytelen = bytelen; uarg 1165 net/core/skbuff.c sock_zerocopy_get(uarg); uarg 1167 net/core/skbuff.c return uarg; uarg 1196 net/core/skbuff.c void sock_zerocopy_callback(struct ubuf_info *uarg, bool success) uarg 1198 net/core/skbuff.c struct sk_buff *tail, *skb = skb_from_uarg(uarg); uarg 1206 net/core/skbuff.c mm_unaccount_pinned_pages(&uarg->mmp); uarg 1211 net/core/skbuff.c if (!uarg->len || sock_flag(sk, SOCK_DEAD)) uarg 1214 net/core/skbuff.c len = uarg->len; uarg 1215 net/core/skbuff.c lo = uarg->id; uarg 1216 net/core/skbuff.c hi = uarg->id + len - 1; uarg 1245 net/core/skbuff.c void sock_zerocopy_put(struct ubuf_info *uarg) uarg 1247 net/core/skbuff.c if (uarg && refcount_dec_and_test(&uarg->refcnt)) { uarg 1248 net/core/skbuff.c if (uarg->callback) uarg 1249 net/core/skbuff.c uarg->callback(uarg, uarg->zerocopy); uarg 1251 net/core/skbuff.c consume_skb(skb_from_uarg(uarg)); uarg 1256 net/core/skbuff.c void sock_zerocopy_put_abort(struct ubuf_info *uarg, bool have_uref) uarg 1258 net/core/skbuff.c if (uarg) { uarg 1259 net/core/skbuff.c struct sock *sk = skb_from_uarg(uarg)->sk; uarg 1262 net/core/skbuff.c uarg->len--; uarg 1265 net/core/skbuff.c sock_zerocopy_put(uarg); uarg 1278 net/core/skbuff.c struct ubuf_info *uarg) uarg 1287 net/core/skbuff.c if (orig_uarg && uarg != orig_uarg) uarg 1302 net/core/skbuff.c skb_zcopy_set(skb, uarg, NULL); uarg 964 net/ipv4/ip_output.c struct ubuf_info *uarg = NULL; uarg 1015 net/ipv4/ip_output.c uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); uarg 1016 net/ipv4/ip_output.c if (!uarg) uarg 1023 net/ipv4/ip_output.c uarg->zerocopy = 0; uarg 1024 net/ipv4/ip_output.c skb_zcopy_set(skb, uarg, &extra_uref); uarg 1150 net/ipv4/ip_output.c skb_zcopy_set(skb, uarg, &extra_uref); uarg 1181 net/ipv4/ip_output.c } else if (!uarg || !uarg->zerocopy) { uarg 1227 net/ipv4/ip_output.c if (uarg) uarg 1228 net/ipv4/ip_output.c sock_zerocopy_put_abort(uarg, extra_uref); uarg 1141 net/ipv4/tcp.c struct ubuf_info *uarg) uarg 1161 net/ipv4/tcp.c tp->fastopen_req->uarg = uarg; uarg 1189 net/ipv4/tcp.c struct ubuf_info *uarg = NULL; uarg 1202 net/ipv4/tcp.c uarg = sock_zerocopy_realloc(sk, size, skb_zcopy(skb)); uarg 1203 net/ipv4/tcp.c if (!uarg) { uarg 1210 net/ipv4/tcp.c uarg->zerocopy = 0; uarg 1215 net/ipv4/tcp.c err = tcp_sendmsg_fastopen(sk, msg, &copied_syn, size, uarg); uarg 1361 net/ipv4/tcp.c err = skb_zerocopy_iter_stream(sk, skb, msg, copy, uarg); uarg 1415 net/ipv4/tcp.c sock_zerocopy_put(uarg); uarg 1426 net/ipv4/tcp.c sock_zerocopy_put_abort(uarg, true); uarg 3526 net/ipv4/tcp_output.c skb_zcopy_set(syn_data, fo->uarg, NULL); uarg 1325 net/ipv6/ip6_output.c struct ubuf_info *uarg = NULL; uarg 1404 net/ipv6/ip6_output.c uarg = sock_zerocopy_realloc(sk, length, skb_zcopy(skb)); uarg 1405 net/ipv6/ip6_output.c if (!uarg) uarg 1412 net/ipv6/ip6_output.c uarg->zerocopy = 0; uarg 1413 net/ipv6/ip6_output.c skb_zcopy_set(skb, uarg, &extra_uref); uarg 1571 net/ipv6/ip6_output.c skb_zcopy_set(skb, uarg, &extra_uref); uarg 1602 net/ipv6/ip6_output.c } else if (!uarg || !uarg->zerocopy) { uarg 1648 net/ipv6/ip6_output.c if (uarg) uarg 1649 net/ipv6/ip6_output.c sock_zerocopy_put_abort(uarg, extra_uref);