Home
last modified time | relevance | path

Searched refs:karg (Results 1 – 6 of 6) 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…
1227 struct mpt_ioctl_iocinfo *karg; in mptctl_getiocinfo() local
1249 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo()
1250 if (IS_ERR(karg)) { in mptctl_getiocinfo()
1252 __FILE__, __LINE__, PTR_ERR(karg)); in mptctl_getiocinfo()
1253 return PTR_ERR(karg); in mptctl_getiocinfo()
1257 if (karg->hdr.maxDataSize != data_size) { in mptctl_getiocinfo()
1261 kfree(karg); in mptctl_getiocinfo()
1272 karg->adapterType = MPT_IOCTL_INTERFACE_SAS; in mptctl_getiocinfo()
1274 karg->adapterType = MPT_IOCTL_INTERFACE_FC; in mptctl_getiocinfo()
[all …]
/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c576 _ctl_set_task_mid(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command *karg, in _ctl_set_task_mid() argument
637 sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); in _ctl_set_task_mid()
638 if (copy_to_user(karg->reply_frame_buf_ptr, ioc->ctl_cmds.reply, in _ctl_set_task_mid()
659 _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg, in _ctl_do_mpt_command() argument
701 if (karg.data_sge_offset * 4 > ioc->request_sz || in _ctl_do_mpt_command()
702 karg.data_sge_offset > (UINT_MAX / 4)) { in _ctl_do_mpt_command()
708 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command()
732 memcpy(request, mpi_request, karg.data_sge_offset*4); in _ctl_do_mpt_command()
734 data_out_sz = karg.data_out_size; in _ctl_do_mpt_command()
735 data_in_sz = karg.data_in_size; in _ctl_do_mpt_command()
[all …]
/drivers/staging/media/atomisp/pci/
Datomisp_compat_ioctl32.c727 } __user *karg = (void __user *)(kp + 1); in get_atomisp_parameters32() local
751 if (stp && (get_atomisp_shading_table32(&karg->shading_table, in get_atomisp_parameters32()
753 put_user_force(&karg->shading_table, &kp->shading_table))) in get_atomisp_parameters32()
757 if (mtp && (get_atomisp_morph_table32(&karg->morph_table, in get_atomisp_parameters32()
759 put_user_force(&karg->morph_table, &kp->morph_table))) in get_atomisp_parameters32()
763 if (dcp && (get_atomisp_dis_coefficients32(&karg->dvs2_coefs, in get_atomisp_parameters32()
765 put_user_force(&karg->dvs2_coefs, &kp->dvs2_coefs))) in get_atomisp_parameters32()
770 (get_atomisp_dvs_6axis_config32(&karg->dvs_6axis_config, in get_atomisp_parameters32()
772 put_user_force(&karg->dvs_6axis_config, &kp->dvs_6axis_config))) in get_atomisp_parameters32()
869 } __user *karg; in atomisp_do_compat_ioctl() local
[all …]
/drivers/media/mc/
Dmc-device.c393 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument
396 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
402 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument
405 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
431 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
432 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
451 char __karg[256], *karg = __karg; in media_device_ioctl() local
461 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl()
462 if (!karg) in media_device_ioctl()
467 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl()
[all …]
/drivers/char/
Dlp.c701 s32 karg[2]; in lp_set_timeout32() local
703 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout32()
706 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout32()
711 s64 karg[2]; in lp_set_timeout64() local
713 if (copy_from_user(karg, arg, sizeof(karg))) in lp_set_timeout64()
718 karg[1] >>= 32; in lp_set_timeout64()
720 return lp_set_timeout(minor, karg[0], karg[1]); in lp_set_timeout64()
/drivers/media/usb/uvc/
Duvc_v4l2.c1440 } karg; in uvc_v4l2_compat_ioctl32() local
1446 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1449 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1452 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1459 ret = uvc_v4l2_get_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()
1462 ret = uvc_xu_ctrl_query(handle->chain, &karg.xqry); in uvc_v4l2_compat_ioctl32()
1465 ret = uvc_v4l2_put_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()