Home
last modified time | relevance | path

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

/drivers/message/fusion/
Dmptctl.c126 static int mptctl_do_mpt_command(MPT_ADAPTER *iocp, struct mpt_ioctl_command karg, void __user *mfP…
1225 struct mpt_ioctl_iocinfo *karg; in mptctl_getiocinfo() local
1247 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo()
1248 if (IS_ERR(karg)) { in mptctl_getiocinfo()
1250 __FILE__, __LINE__, PTR_ERR(karg)); in mptctl_getiocinfo()
1251 return PTR_ERR(karg); in mptctl_getiocinfo()
1255 if (karg->hdr.maxDataSize != data_size) { in mptctl_getiocinfo()
1259 kfree(karg); in mptctl_getiocinfo()
1270 karg->adapterType = MPT_IOCTL_INTERFACE_SAS; in mptctl_getiocinfo()
1272 karg->adapterType = MPT_IOCTL_INTERFACE_FC; in mptctl_getiocinfo()
[all …]
/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
639 sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); in _ctl_set_task_mid()
640 if (copy_to_user(karg->reply_frame_buf_ptr, ioc->ctl_cmds.reply, in _ctl_set_task_mid()
661 _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg, in _ctl_do_mpt_command() argument
703 if (karg.data_sge_offset * 4 > ioc->request_sz || in _ctl_do_mpt_command()
704 karg.data_sge_offset > (UINT_MAX / 4)) { in _ctl_do_mpt_command()
710 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command()
734 memcpy(request, mpi_request, karg.data_sge_offset*4); in _ctl_do_mpt_command()
736 data_out_sz = karg.data_out_size; in _ctl_do_mpt_command()
737 data_in_sz = karg.data_in_size; in _ctl_do_mpt_command()
[all …]
/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 …]
/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()
/drivers/media/usb/uvc/
Duvc_v4l2.c1417 } karg; in uvc_v4l2_compat_ioctl32() local
1423 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1426 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1429 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1436 ret = uvc_v4l2_get_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()
1439 ret = uvc_xu_ctrl_query(handle->chain, &karg.xqry); in uvc_v4l2_compat_ioctl32()
1442 ret = uvc_v4l2_put_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()