/drivers/message/fusion/ |
D | mptctl.c | 126 static int mptctl_do_mpt_command(struct mpt_ioctl_command karg, void __user *mfPtr); 1244 struct mpt_ioctl_iocinfo *karg; in mptctl_getiocinfo() local 1268 karg = memdup_user(uarg, data_size); in mptctl_getiocinfo() 1269 if (IS_ERR(karg)) { in mptctl_getiocinfo() 1271 __FILE__, __LINE__, PTR_ERR(karg)); in mptctl_getiocinfo() 1272 return PTR_ERR(karg); in mptctl_getiocinfo() 1275 if (((iocnum = mpt_verify_adapter(karg->hdr.iocnum, &ioc)) < 0) || in mptctl_getiocinfo() 1279 kfree(karg); in mptctl_getiocinfo() 1284 if (karg->hdr.maxDataSize != data_size) { in mptctl_getiocinfo() 1288 kfree(karg); in mptctl_getiocinfo() [all …]
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 562 _ctl_set_task_mid(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command *karg, in _ctl_set_task_mid() argument 616 sz = min_t(u32, karg->max_reply_bytes, ioc->reply_sz); in _ctl_set_task_mid() 617 if (copy_to_user(karg->reply_frame_buf_ptr, ioc->ctl_cmds.reply, in _ctl_set_task_mid() 638 _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg, in _ctl_do_mpt_command() argument 698 if (karg.data_sge_offset * 4 > ioc->request_sz || in _ctl_do_mpt_command() 699 karg.data_sge_offset > (UINT_MAX / 4)) { in _ctl_do_mpt_command() 705 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 …]
|
/drivers/media/ |
D | media-device.c | 367 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument 370 if (copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 376 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument 379 if (copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 405 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd); 406 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd); 424 char __karg[256], *karg = __karg; in media_device_ioctl() local 434 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl() 435 if (!karg) in media_device_ioctl() 440 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl() [all …]
|
/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 647 static int lmv_fid2path(struct obd_export *exp, int len, void *karg, in lmv_fid2path() argument 658 gf = (struct getinfo_fid2path *)karg; in lmv_fid2path() 675 ori_gf = (struct getinfo_fid2path *)karg; in lmv_fid2path() 881 int len, void *karg, void __user *uarg) in lmv_iocontrol() argument 896 struct obd_ioctl_data *data = karg; in lmv_iocontrol() 931 struct if_quotactl *qctl = karg; in lmv_iocontrol() 979 struct ioc_changelog *icc = karg; in lmv_iocontrol() 995 rc = obd_iocontrol(cmd, tgt->ltd_exp, len, karg, uarg); in lmv_iocontrol() 999 struct lu_fid *fid = karg; in lmv_iocontrol() 1014 rc = lmv_fid2path(exp, len, karg, uarg); in lmv_iocontrol() [all …]
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 2157 void *karg, void __user *uarg) in mdc_iocontrol() argument 2160 struct obd_ioctl_data *data = karg; in mdc_iocontrol() 2171 rc = mdc_ioc_changelog_send(obd, karg); in mdc_iocontrol() 2174 struct ioc_changelog *icc = karg; in mdc_iocontrol() 2186 rc = mdc_ioc_fid2path(exp, karg); in mdc_iocontrol() 2189 rc = mdc_ioc_hsm_ct_start(exp, karg); in mdc_iocontrol() 2195 rc = mdc_ioc_hsm_progress(exp, karg); in mdc_iocontrol() 2198 rc = mdc_ioc_hsm_state_get(exp, karg); in mdc_iocontrol() 2201 rc = mdc_ioc_hsm_state_set(exp, karg); in mdc_iocontrol() 2204 rc = mdc_ioc_hsm_current_action(exp, karg); in mdc_iocontrol() [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 1376 } karg; in uvc_v4l2_compat_ioctl32() local 1382 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32() 1385 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32() 1388 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32() 1395 ret = uvc_v4l2_get_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32() 1398 ret = uvc_xu_ctrl_query(handle->chain, &karg.xqry); in uvc_v4l2_compat_ioctl32() 1401 ret = uvc_v4l2_put_xu_query(&karg.xqry, up); in uvc_v4l2_compat_ioctl32()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 1207 void *karg, void __user *uarg) in lov_iocontrol() argument 1216 struct obd_ioctl_data *data = karg; in lov_iocontrol() 1303 struct if_quotactl *qctl = karg; in lov_iocontrol() 1369 len, karg, uarg); in lov_iocontrol()
|
/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 1492 void *karg, void __user *uarg) in echo_client_iocontrol() argument 1498 struct obd_ioctl_data *data = karg; in echo_client_iocontrol()
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 1144 int len, void *karg, void __user *uarg) in obd_iocontrol() argument 1151 rc = OBP(exp->exp_obd, iocontrol)(cmd, exp, len, karg, uarg); in obd_iocontrol()
|
D | obd.h | 840 void *karg, void __user *uarg);
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 2507 void *karg, void __user *uarg) in osc_iocontrol() argument 2510 struct obd_ioctl_data *data = karg; in osc_iocontrol() 2530 err = osc_quota_poll_check(exp, karg); in osc_iocontrol()
|