Home
last modified time | relevance | path

Searched refs:udata (Results 1 – 25 of 49) sorted by relevance

12

/drivers/staging/crystalhd/
Dcrystalhd_cmds.c85 if (idata->udata.u.NotifyMode.Mode == DTS_MONITOR_MODE) { in bc_cproc_notify_mode()
86 ctx->user[idata->u_id].mode = idata->udata.u.NotifyMode.Mode; in bc_cproc_notify_mode()
103 ctx->user[idata->u_id].mode = idata->udata.u.NotifyMode.Mode; in bc_cproc_notify_mode()
121 idata->udata.u.VerInfo.DriverMajor = crystalhd_kmod_major; in bc_cproc_get_version()
122 idata->udata.u.VerInfo.DriverMinor = crystalhd_kmod_minor; in bc_cproc_get_version()
123 idata->udata.u.VerInfo.DriverRevision = crystalhd_kmod_rev; in bc_cproc_get_version()
137 (uint32_t *)&idata->udata.u.hwType.PciVenId); in bc_cproc_get_hwtype()
139 (uint32_t *)&idata->udata.u.hwType.PciDevId); in bc_cproc_get_hwtype()
141 (uint32_t *)&idata->udata.u.hwType.HwRev); in bc_cproc_get_hwtype()
151 idata->udata.u.regAcc.Value = bc_dec_reg_rd(ctx->adp, in bc_cproc_reg_rd()
[all …]
Dcrystalhd_lnx.c152 ua_off = ua + sizeof(io->udata); in chd_dec_fetch_cdata()
177 ua_off = ua + sizeof(io->udata); in chd_dec_release_cdata()
207 rc = crystalhd_user_data(ua, &io->udata, sizeof(io->udata), set); in chd_dec_proc_user_data()
217 m_sz = io->udata.u.devMem.NumDwords * 4; in chd_dec_proc_user_data()
251 temp->udata.RetSts = sts; in chd_dec_api_cmd()
/drivers/infiniband/hw/qib/
Dqib_cq.c209 struct ib_udata *udata) in qib_create_cq() argument
237 if (udata && udata->outlen >= sizeof(__u64)) in qib_create_cq()
251 if (udata && udata->outlen >= sizeof(__u64)) { in qib_create_cq()
260 err = ib_copy_to_udata(udata, &cq->ip->offset, in qib_create_cq()
378 int qib_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in qib_resize_cq() argument
396 if (udata && udata->outlen >= sizeof(__u64)) in qib_resize_cq()
407 if (udata && udata->outlen >= sizeof(__u64)) { in qib_resize_cq()
410 ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); in qib_resize_cq()
463 if (udata && udata->outlen >= sizeof(__u64)) { in qib_resize_cq()
464 ret = ib_copy_to_udata(udata, &ip->offset, in qib_resize_cq()
Dqib_srq.c103 struct ib_udata *udata) in qib_create_srq() argument
146 if (udata && udata->outlen >= sizeof(__u64)) { in qib_create_srq()
158 err = ib_copy_to_udata(udata, &srq->ip->offset, in qib_create_srq()
213 struct ib_udata *udata) in qib_modify_srq() argument
242 if (udata && udata->inlen >= sizeof(__u64)) { in qib_modify_srq()
246 ret = ib_copy_from_udata(&offset_addr, udata, in qib_modify_srq()
250 udata->outbuf = in qib_modify_srq()
252 ret = ib_copy_to_udata(udata, &offset, in qib_modify_srq()
316 if (udata && udata->inlen >= sizeof(__u64)) { in qib_modify_srq()
317 ret = ib_copy_to_udata(udata, &ip->offset, in qib_modify_srq()
Dqib_verbs.h875 struct ib_udata *udata);
882 int attr_mask, struct ib_udata *udata);
943 struct ib_udata *udata);
947 struct ib_udata *udata);
959 struct ib_udata *udata);
965 int qib_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
975 struct ib_udata *udata);
Dqib_qp.c565 int attr_mask, struct ib_udata *udata) in qib_modify_qp() argument
972 struct ib_udata *udata) in qib_create_qp() argument
1106 if (udata && udata->outlen >= sizeof(__u64)) { in qib_create_qp()
1110 err = ib_copy_to_udata(udata, &offset, in qib_create_qp()
1127 err = ib_copy_to_udata(udata, &(qp->ip->offset), in qib_create_qp()
/drivers/infiniband/hw/ipath/
Dipath_cq.c202 struct ib_udata *udata) in ipath_create_cq() argument
230 if (udata && udata->outlen >= sizeof(__u64)) in ipath_create_cq()
244 if (udata && udata->outlen >= sizeof(__u64)) { in ipath_create_cq()
253 err = ib_copy_to_udata(udata, &cq->ip->offset, in ipath_create_cq()
371 int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in ipath_resize_cq() argument
389 if (udata && udata->outlen >= sizeof(__u64)) in ipath_resize_cq()
400 if (udata && udata->outlen >= sizeof(__u64)) { in ipath_resize_cq()
403 ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); in ipath_resize_cq()
456 if (udata && udata->outlen >= sizeof(__u64)) { in ipath_resize_cq()
457 ret = ib_copy_to_udata(udata, &ip->offset, in ipath_resize_cq()
Dipath_srq.c103 struct ib_udata *udata) in ipath_create_srq() argument
149 if (udata && udata->outlen >= sizeof(__u64)) { in ipath_create_srq()
162 err = ib_copy_to_udata(udata, &srq->ip->offset, in ipath_create_srq()
217 struct ib_udata *udata) in ipath_modify_srq() argument
246 if (udata && udata->inlen >= sizeof(__u64)) { in ipath_modify_srq()
250 ret = ib_copy_from_udata(&offset_addr, udata, in ipath_modify_srq()
254 udata->outbuf = in ipath_modify_srq()
256 ret = ib_copy_to_udata(udata, &offset, in ipath_modify_srq()
320 if (udata && udata->inlen >= sizeof(__u64)) { in ipath_modify_srq()
321 ret = ib_copy_to_udata(udata, &ip->offset, in ipath_modify_srq()
Dipath_verbs.h738 struct ib_udata *udata);
745 int attr_mask, struct ib_udata *udata);
796 struct ib_udata *udata);
800 struct ib_udata *udata);
812 struct ib_udata *udata);
818 int ipath_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
828 struct ib_udata *udata);
Dipath_qp.c451 int attr_mask, struct ib_udata *udata) in ipath_modify_qp() argument
743 struct ib_udata *udata) in ipath_create_qp() argument
885 if (udata && udata->outlen >= sizeof(__u64)) { in ipath_create_qp()
889 err = ib_copy_to_udata(udata, &offset, in ipath_create_qp()
908 err = ib_copy_to_udata(udata, &(qp->ip->offset), in ipath_create_qp()
/drivers/infiniband/hw/ehca/
Dehca_iverbs.h65 struct ib_udata *udata);
86 struct ib_udata *udata);
131 struct ib_udata *udata);
135 int ehca_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata);
145 struct ib_udata *udata);
150 struct ib_udata *udata);
167 struct ib_udata *udata);
170 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
184 struct ib_udata *udata);
Dehca_cq.c118 struct ib_udata *udata) in ehca_create_cq() argument
297 if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { in ehca_create_cq()
381 int ehca_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata) in ehca_resize_cq() argument
Dehca_pd.c49 struct ib_ucontext *context, struct ib_udata *udata) in ehca_alloc_pd() argument
/drivers/xen/
Dprivcmd.c45 static long privcmd_ioctl_hypercall(void __user *udata) in privcmd_ioctl_hypercall() argument
50 if (copy_from_user(&hypercall, udata, sizeof(hypercall))) in privcmd_ioctl_hypercall()
190 static long privcmd_ioctl_mmap(void __user *udata) in privcmd_ioctl_mmap() argument
202 if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) in privcmd_ioctl_mmap()
279 static long privcmd_ioctl_mmap_batch(void __user *udata) in privcmd_ioctl_mmap_batch() argument
292 if (copy_from_user(&m, udata, sizeof(m))) in privcmd_ioctl_mmap_batch()
345 void __user *udata = (void __user *) data; in privcmd_ioctl() local
349 ret = privcmd_ioctl_hypercall(udata); in privcmd_ioctl()
353 ret = privcmd_ioctl_mmap(udata); in privcmd_ioctl()
357 ret = privcmd_ioctl_mmap_batch(udata); in privcmd_ioctl()
/drivers/infiniband/hw/mlx4/
Dmlx4_ib.h285 struct ib_udata *udata);
294 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata);
297 struct ib_udata *udata);
310 struct ib_udata *udata);
312 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
321 struct ib_udata *udata);
324 int attr_mask, struct ib_udata *udata);
Dsrq.c73 struct ib_udata *udata) in mlx4_ib_create_srq() argument
111 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mlx4_ib_create_srq()
193 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { in mlx4_ib_create_srq()
228 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in mlx4_ib_modify_srq() argument
Dcq.c168 struct ib_udata *udata) in mlx4_ib_create_cq() argument
192 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mlx4_ib_create_cq()
234 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { in mlx4_ib_create_cq()
288 int entries, struct ib_udata *udata) in mlx4_alloc_resize_umem() argument
296 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) in mlx4_alloc_resize_umem()
345 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx4_ib_resize_cq() argument
367 err = mlx4_alloc_resize_umem(dev, cq, entries, udata); in mlx4_ib_resize_cq()
/drivers/infiniband/core/
Duverbs_cmd.c52 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument
54 (udata)->inbuf = (void __user *) (ibuf); \
55 (udata)->outbuf = (void __user *) (obuf); \
56 (udata)->inlen = (ilen); \
57 (udata)->outlen = (olen); \
290 struct ib_udata udata; in ib_uverbs_get_context() local
309 INIT_UDATA(&udata, buf + sizeof cmd, in ib_uverbs_get_context()
313 ucontext = ibdev->alloc_ucontext(ibdev, &udata); in ib_uverbs_get_context()
506 struct ib_udata udata; in ib_uverbs_alloc_pd() local
517 INIT_UDATA(&udata, buf + sizeof cmd, in ib_uverbs_alloc_pd()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_provider.c298 struct ib_udata *udata) in mthca_alloc_ucontext() argument
333 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in mthca_alloc_ucontext()
373 struct ib_udata *udata) in mthca_alloc_pd() argument
389 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd()
436 struct ib_udata *udata) in mthca_create_srq() argument
453 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_create_srq()
479 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof (__u32))) { in mthca_create_srq()
512 struct ib_udata *udata) in mthca_create_qp() argument
535 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_create_qp()
647 struct ib_udata *udata) in mthca_create_cq() argument
[all …]
/drivers/staging/iio/resolver/
Dad2s1210.c303 unsigned long udata; in ad2s1210_store_control() local
307 ret = strict_strtoul(buf, 16, &udata); in ad2s1210_store_control()
315 data = udata & AD2S1210_MSB_IS_LOW; in ad2s1210_store_control()
358 unsigned long udata; in ad2s1210_store_resolution() local
361 ret = strict_strtoul(buf, 10, &udata); in ad2s1210_store_resolution()
362 if (ret || udata < 10 || udata > 16) { in ad2s1210_store_resolution()
372 data |= (udata - 10) >> 1; in ad2s1210_store_resolution()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c110 struct ib_udata *udata) in iwch_alloc_ucontext() argument
143 struct ib_udata *udata) in iwch_create_cq() argument
162 if (ib_copy_from_udata(&ureq, udata, sizeof (ureq))) { in iwch_create_cq()
218 if (udata->outlen < sizeof uresp) { in iwch_create_cq()
231 if (ib_copy_to_udata(udata, &uresp, resplen)) { in iwch_create_cq()
244 static int iwch_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata) in iwch_resize_cq() argument
416 struct ib_udata *udata) in iwch_allocate_pd() argument
435 if (ib_copy_to_udata(udata, &php->pdid, sizeof (__u32))) { in iwch_allocate_pd()
616 u64 virt, int acc, struct ib_udata *udata) in iwch_reg_user_mr() argument
699 if (udata && !t3a_device(rhp)) { in iwch_reg_user_mr()
[all …]
/drivers/infiniband/hw/amso1100/
Dc2_provider.c126 struct ib_udata *udata) in c2_alloc_ucontext() argument
153 struct ib_udata *udata) in c2_alloc_pd() argument
171 if (ib_copy_to_udata(udata, &pd->pd_id, sizeof(__u32))) { in c2_alloc_pd()
234 struct ib_udata *udata) in c2_create_qp() argument
291 struct ib_udata *udata) in c2_create_cq() argument
429 u64 virt, int acc, struct ib_udata *udata) in c2_reg_user_mr() argument
564 int attr_mask, struct ib_udata *udata) in c2_modify_qp() argument
/drivers/infiniband/hw/cxgb4/
Diw_cxgb4.h745 struct ib_udata *udata);
763 struct ib_udata *udata);
764 int c4iw_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata);
769 struct ib_udata *udata);
771 int attr_mask, struct ib_udata *udata);
/drivers/media/video/uvc/
Duvc_v4l2.c1128 u8 __user *udata; in uvc_v4l2_get_xu_query() local
1143 udata = compat_ptr(p); in uvc_v4l2_get_xu_query()
1144 if (!access_ok(VERIFY_READ, udata, kp->size)) in uvc_v4l2_get_xu_query()
1152 if (copy_in_user(kdata, udata, kp->size)) in uvc_v4l2_get_xu_query()
1161 u8 __user *udata; in uvc_v4l2_put_xu_query() local
1174 udata = compat_ptr(p); in uvc_v4l2_put_xu_query()
1175 if (!access_ok(VERIFY_READ, udata, kp->size)) in uvc_v4l2_put_xu_query()
1178 if (copy_in_user(udata, kdata, kp->size)) in uvc_v4l2_put_xu_query()
/drivers/s390/char/
Dvmur.c414 static ssize_t do_write(struct urdev *urd, const char __user *udata, in do_write() argument
420 cpa = alloc_chan_prog(udata, count / reclen, reclen); in do_write()
440 static ssize_t ur_write(struct file *file, const char __user *udata, in ur_write() argument
456 return do_write(urf->urd, udata, count, urf->dev_reclen, ppos); in ur_write()

12