Home
last modified time | relevance | path

Searched refs:karg (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/drivers/message/fusion/
Dmptctl.c126 static int mptctl_do_mpt_command(MPT_ADAPTER *iocp, struct mpt_ioctl_command karg, void __user *mfP…
1229 struct mpt_ioctl_iocinfo *karg; in mptctl_getiocinfo() local
1251 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo()
1252 if (IS_ERR(karg)) { in mptctl_getiocinfo()
1254 __FILE__, __LINE__, PTR_ERR(karg)); in mptctl_getiocinfo()
1255 return PTR_ERR(karg); in mptctl_getiocinfo()
1259 if (karg->hdr.maxDataSize != data_size) { in mptctl_getiocinfo()
1263 kfree(karg); in mptctl_getiocinfo()
1274 karg->adapterType = MPT_IOCTL_INTERFACE_SAS; in mptctl_getiocinfo()
1276 karg->adapterType = MPT_IOCTL_INTERFACE_FC; in mptctl_getiocinfo()
[all …]
/Linux-v6.1/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c578 _ctl_set_task_mid(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command *karg, in _ctl_set_task_mid() argument
640 sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); in _ctl_set_task_mid()
641 if (copy_to_user(karg->reply_frame_buf_ptr, ioc->ctl_cmds.reply, in _ctl_set_task_mid()
662 _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg, in _ctl_do_mpt_command() argument
704 if (karg.data_sge_offset * 4 > ioc->request_sz || in _ctl_do_mpt_command()
705 karg.data_sge_offset > (UINT_MAX / 4)) { in _ctl_do_mpt_command()
711 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command()
735 memcpy(request, mpi_request, karg.data_sge_offset*4); in _ctl_do_mpt_command()
737 data_out_sz = karg.data_out_size; in _ctl_do_mpt_command()
738 data_in_sz = karg.data_in_size; in _ctl_do_mpt_command()
[all …]
/Linux-v6.1/drivers/media/mc/
Dmc-device.c387 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument
390 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
396 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument
399 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
425 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
426 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
445 char __karg[256], *karg = __karg; in media_device_ioctl() local
455 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl()
456 if (!karg) in media_device_ioctl()
461 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl()
[all …]
/Linux-v6.1/drivers/char/
Dlp.c700 s32 karg[2]; in lp_set_timeout32() local
702 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout32()
705 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout32()
710 s64 karg[2]; in lp_set_timeout64() local
712 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout64()
717 karg[1] >>= 32; in lp_set_timeout64()
719 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout64()
/Linux-v6.1/drivers/scsi/mpi3mr/
Dmpi3mr_app.c956 struct mpi3mr_bsg_mptcmd *karg; in mpi3mr_bsg_process_mpt_cmds() local
975 karg = (struct mpi3mr_bsg_mptcmd *)&bsg_req->cmd.mptcmd; in mpi3mr_bsg_process_mpt_cmds()
977 mrioc = mpi3mr_bsg_verify_adapter(karg->mrioc_id); in mpi3mr_bsg_process_mpt_cmds()
981 if (karg->timeout < MPI3MR_APP_DEFAULT_TIMEOUT) in mpi3mr_bsg_process_mpt_cmds()
982 karg->timeout = MPI3MR_APP_DEFAULT_TIMEOUT; in mpi3mr_bsg_process_mpt_cmds()
989 bufcnt = karg->buf_entry_list.num_of_entries; in mpi3mr_bsg_process_mpt_cmds()
1014 buf_entries = karg->buf_entry_list.buf_entry; in mpi3mr_bsg_process_mpt_cmds()
1284 (karg->timeout * HZ)); in mpi3mr_bsg_process_mpt_cmds()
1294 karg->timeout); in mpi3mr_bsg_process_mpt_cmds()
/Linux-v6.1/drivers/media/usb/uvc/
Duvc_v4l2.c1423 } karg; in uvc_v4l2_compat_ioctl32() local
1429 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1432 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1435 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1442 ret = uvc_v4l2_get_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()
1445 ret = uvc_xu_ctrl_query(handle->chain, &karg.xqry); in uvc_v4l2_compat_ioctl32()
1448 ret = uvc_v4l2_put_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()