/drivers/infiniband/sw/rxe/ |
D | rxe_srq.c | 102 struct ib_ucontext *context, struct ib_udata *udata) in rxe_srq_from_init() argument 129 err = do_mmap_info(rxe, udata, false, context, q->buf, in rxe_srq_from_init() 134 if (udata && udata->outlen >= sizeof(struct mminfo) + sizeof(u32)) { in rxe_srq_from_init() 135 if (copy_to_user(udata->outbuf + sizeof(struct mminfo), in rxe_srq_from_init() 144 struct ib_udata *udata) in rxe_srq_from_attr() argument 152 if (udata && udata->inlen >= sizeof(__u64)) { in rxe_srq_from_attr() 156 err = ib_copy_from_udata(&mi_addr, udata, in rxe_srq_from_attr() 161 udata->outbuf = (void __user *)(unsigned long)mi_addr; in rxe_srq_from_attr() 162 udata->outlen = sizeof(mi); in rxe_srq_from_attr() 165 (void __user *)udata->outbuf, in rxe_srq_from_attr() [all …]
|
D | rxe_queue.c | 40 struct ib_udata *udata, in do_mmap_info() argument 51 if (udata) { in do_mmap_info() 53 len = udata->outlen - sizeof(struct mminfo); in do_mmap_info() 56 len = udata->outlen; in do_mmap_info() 67 err = copy_to_user(udata->outbuf + offset, &ip->info, in do_mmap_info() 174 struct ib_udata *udata, in rxe_queue_resize() argument 187 err = do_mmap_info(new_q->rxe, udata, false, context, new_q->buf, in rxe_queue_resize()
|
D | rxe_cq.c | 39 int cqe, int comp_vector, struct ib_udata *udata) in rxe_cq_chk_attr() argument 78 struct ib_udata *udata) in rxe_cq_from_init() argument 89 err = do_mmap_info(rxe, udata, false, context, cq->queue->buf, in rxe_cq_from_init() 97 if (udata) in rxe_cq_from_init() 107 int rxe_cq_resize_queue(struct rxe_cq *cq, int cqe, struct ib_udata *udata) in rxe_cq_resize_queue() argument 114 udata, NULL, &cq->cq_lock); in rxe_cq_resize_queue()
|
D | rxe_loc.h | 57 int cqe, int comp_vector, struct ib_udata *udata); 61 struct ib_udata *udata); 63 int rxe_cq_resize_queue(struct rxe_cq *cq, int new_cqe, struct ib_udata *udata); 112 u64 length, u64 iova, int access, struct ib_udata *udata, 148 struct ib_qp_init_attr *init, struct ib_udata *udata, 157 int mask, struct ib_udata *udata); 218 struct ib_ucontext *context, struct ib_udata *udata); 222 struct ib_udata *udata);
|
D | rxe_verbs.c | 241 struct ib_udata *udata) in rxe_alloc_ucontext() argument 278 struct ib_udata *udata) in rxe_alloc_pd() argument 436 struct ib_udata *udata) in rxe_create_srq() argument 442 struct ib_ucontext *context = udata ? ibpd->uobject->context : NULL; in rxe_create_srq() 458 err = rxe_srq_from_init(rxe, srq, init, context, udata); in rxe_create_srq() 474 struct ib_udata *udata) in rxe_modify_srq() argument 484 err = rxe_srq_from_attr(rxe, srq, attr, mask, udata); in rxe_modify_srq() 547 struct ib_udata *udata) in rxe_create_qp() argument 564 if (udata) { in rxe_create_qp() 565 if (udata->inlen) { in rxe_create_qp() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | srq.c | 77 struct ib_udata *udata) in rvt_create_srq() argument 114 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_srq() 126 err = ib_copy_to_udata(udata, &srq->ip->offset, in rvt_create_srq() 182 struct ib_udata *udata) in rvt_modify_srq() argument 208 if (udata && udata->inlen >= sizeof(__u64)) { in rvt_modify_srq() 212 ret = ib_copy_from_udata(&offset_addr, udata, in rvt_modify_srq() 216 udata->outbuf = (void __user *) in rvt_modify_srq() 218 ret = ib_copy_to_udata(udata, &offset, in rvt_modify_srq() 282 if (udata && udata->inlen >= sizeof(__u64)) { in rvt_modify_srq() 283 ret = ib_copy_to_udata(udata, &ip->offset, in rvt_modify_srq()
|
D | cq.c | 184 struct ib_udata *udata) in rvt_create_cq() argument 212 if (udata && udata->outlen >= sizeof(__u64)) in rvt_create_cq() 216 wc = udata ? in rvt_create_cq() 228 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_create_cq() 237 err = ib_copy_to_udata(udata, &cq->ip->offset, in rvt_create_cq() 352 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) in rvt_resize_cq() argument 369 if (udata && udata->outlen >= sizeof(__u64)) in rvt_resize_cq() 373 wc = udata ? in rvt_resize_cq() 380 if (udata && udata->outlen >= sizeof(__u64)) { in rvt_resize_cq() 383 ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); in rvt_resize_cq() [all …]
|
D | srq.h | 55 struct ib_udata *udata); 58 struct ib_udata *udata);
|
D | cq.h | 57 struct ib_udata *udata); 60 int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata);
|
D | qp.h | 57 struct ib_udata *udata); 59 int attr_mask, struct ib_udata *udata);
|
D | pd.c | 63 struct ib_udata *udata) in rvt_alloc_pd() argument 93 pd->user = udata ? 1 : 0; in rvt_alloc_pd()
|
/drivers/infiniband/core/ |
D | uverbs.h | 50 #define INIT_UDATA(udata, ibuf, obuf, ilen, olen) \ argument 52 (udata)->inbuf = (const void __user *) (ibuf); \ 53 (udata)->outbuf = (void __user *) (obuf); \ 54 (udata)->inlen = (ilen); \ 55 (udata)->outlen = (olen); \ 58 #define INIT_UDATA_BUF_OR_NULL(udata, ibuf, obuf, ilen, olen) \ argument 60 (udata)->inbuf = (ilen) ? (const void __user *) (ibuf) : NULL; \ 61 (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \ 62 (udata)->inlen = (ilen); \ 63 (udata)->outlen = (olen); \
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.h | 55 struct ib_udata *udata); 59 struct ib_udata *udata); 62 int attr_mask, struct ib_udata *udata); 66 struct ib_udata *udata); 70 struct ib_udata *udata); 73 struct ib_udata *udata);
|
D | usnic_ib_verbs.c | 58 struct ib_udata *udata) in usnic_ib_fill_create_qp_resp() argument 135 err = ib_copy_to_udata(udata, &resp, sizeof(resp)); in usnic_ib_fill_create_qp_resp() 437 struct ib_udata *udata) in usnic_ib_alloc_pd() argument 470 struct ib_udata *udata) in usnic_ib_create_qp() argument 489 err = ib_copy_from_udata(&cmd, udata, sizeof(cmd)); in usnic_ib_create_qp() 522 err = usnic_ib_fill_create_qp_resp(qp_grp, udata); in usnic_ib_create_qp() 564 int attr_mask, struct ib_udata *udata) in usnic_ib_modify_qp() argument 593 struct ib_udata *udata) in usnic_ib_create_cq() argument 617 struct ib_udata *udata) in usnic_ib_reg_mr() argument 656 struct ib_udata *udata) in usnic_ib_alloc_ucontext() argument
|
/drivers/xen/ |
D | privcmd.c | 51 static long privcmd_ioctl_hypercall(void __user *udata) in privcmd_ioctl_hypercall() argument 56 if (copy_from_user(&hypercall, udata, sizeof(hypercall))) in privcmd_ioctl_hypercall() 232 static long privcmd_ioctl_mmap(void __user *udata) in privcmd_ioctl_mmap() argument 245 if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) in privcmd_ioctl_mmap() 419 static long privcmd_ioctl_mmap_batch(void __user *udata, int version) in privcmd_ioctl_mmap_batch() argument 431 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch))) in privcmd_ioctl_mmap_batch() 439 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch_v2))) in privcmd_ioctl_mmap_batch() 555 void __user *udata = (void __user *) data; in privcmd_ioctl() local 559 ret = privcmd_ioctl_hypercall(udata); in privcmd_ioctl() 563 ret = privcmd_ioctl_mmap(udata); in privcmd_ioctl() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | srq.c | 77 struct ib_udata *udata, int buf_size) in create_srq_user() argument 89 ucmdlen = min(udata->inlen, sizeof(ucmd)); in create_srq_user() 91 if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) { in create_srq_user() 99 if (udata->inlen > sizeof(ucmd) && in create_srq_user() 100 !ib_is_udata_cleared(udata, sizeof(ucmd), in create_srq_user() 101 udata->inlen - sizeof(ucmd))) in create_srq_user() 106 &ucmd, udata->inlen, &uidx); in create_srq_user() 242 struct ib_udata *udata) in mlx5_ib_create_srq() argument 286 err = create_srq_user(pd, srq, &in, udata, buf_size); in mlx5_ib_create_srq() 323 if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof(__u32))) { in mlx5_ib_create_srq() [all …]
|
D | mlx5_ib.h | 748 struct ib_udata *udata); 750 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); 757 struct ib_udata *udata); 759 int attr_mask, struct ib_udata *udata); 774 struct ib_udata *udata); 779 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); 783 struct ib_udata *udata); 785 struct ib_udata *udata); 791 struct ib_pd *pd, struct ib_udata *udata); 805 struct ib_udata *udata); [all …]
|
D | qp.c | 763 struct mlx5_ib_qp *qp, struct ib_udata *udata, in create_user_qp() argument 782 err = ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)); in create_user_qp() 863 err = ib_copy_to_udata(udata, resp, sizeof(*resp)); in create_user_qp() 1334 struct ib_udata *udata) in create_rss_raw_qp_tir() argument 1358 if (udata->outlen < min_resp_len) in create_rss_raw_qp_tir() 1362 if (udata->inlen < required_cmd_sz) { in create_rss_raw_qp_tir() 1367 if (udata->inlen > sizeof(ucmd) && in create_rss_raw_qp_tir() 1368 !ib_is_udata_cleared(udata, sizeof(ucmd), in create_rss_raw_qp_tir() 1369 udata->inlen - sizeof(ucmd))) { in create_rss_raw_qp_tir() 1374 if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) { in create_rss_raw_qp_tir() [all …]
|
/drivers/infiniband/hw/qedr/ |
D | verbs.h | 36 struct ib_device_attr *attr, struct ib_udata *udata); 61 struct ib_udata *udata); 68 int attr_mask, struct ib_udata *udata);
|
D | verbs.c | 117 struct ib_device_attr *attr, struct ib_udata *udata) in qedr_query_device() argument 338 struct ib_udata *udata) in qedr_alloc_ucontext() argument 346 if (!udata) in qedr_alloc_ucontext() 380 rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_alloc_ucontext() 471 struct ib_ucontext *context, struct ib_udata *udata) in qedr_alloc_pd() argument 479 (udata && context) ? "User Lib" : "Kernel"); in qedr_alloc_pd() 496 if (udata && context) { in qedr_alloc_pd() 501 rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_alloc_pd() 712 struct qedr_cq *cq, struct ib_udata *udata) in qedr_copy_cq_uresp() argument 722 rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_copy_cq_uresp() [all …]
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 419 struct ib_udata *udata) in _ocrdma_alloc_pd() argument 428 if (udata && uctx && dev->attr.max_dpp_pds) { in _ocrdma_alloc_pd() 484 struct ib_udata *udata) in ocrdma_alloc_ucontext_pd() argument 488 uctx->cntxt_pd = _ocrdma_alloc_pd(dev, uctx, udata); in ocrdma_alloc_ucontext_pd() 537 struct ib_udata *udata) in ocrdma_alloc_ucontext() argument 546 if (!udata) in ocrdma_alloc_ucontext() 571 status = ocrdma_alloc_ucontext_pd(dev, ctx, udata); in ocrdma_alloc_ucontext() 582 status = ib_copy_to_udata(udata, &resp, sizeof(resp)); in ocrdma_alloc_ucontext() 664 struct ib_udata *udata) in ocrdma_copy_pd_uresp() argument 694 status = ib_copy_to_udata(udata, &rsp, sizeof(rsp)); in ocrdma_copy_pd_uresp() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 303 struct ib_udata *udata) in mthca_alloc_ucontext() argument 338 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in mthca_alloc_ucontext() 378 struct ib_udata *udata) in mthca_alloc_pd() argument 394 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd() 441 struct ib_udata *udata) in mthca_create_srq() argument 458 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_create_srq() 484 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof (__u32))) { in mthca_create_srq() 517 struct ib_udata *udata) in mthca_create_qp() argument 540 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_create_qp() 652 struct ib_udata *udata) in mthca_create_cq() argument [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | mlx4_ib.h | 723 struct ib_udata *udata); 726 struct ib_udata *udata); 734 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); 738 struct ib_udata *udata); 751 struct ib_udata *udata); 753 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); 762 struct ib_udata *udata); 765 int attr_mask, struct ib_udata *udata); 884 struct ib_udata *udata);
|
/drivers/staging/iio/resolver/ |
D | ad2s1210.c | 290 unsigned char udata; in ad2s1210_store_control() local 294 ret = kstrtou8(buf, 16, &udata); in ad2s1210_store_control() 302 data = udata & AD2S1210_MSB_IS_LOW; in ad2s1210_store_control() 348 unsigned char udata; in ad2s1210_store_resolution() local 351 ret = kstrtou8(buf, 10, &udata); in ad2s1210_store_resolution() 352 if (ret || udata < 10 || udata > 16) { in ad2s1210_store_resolution() 362 data |= (udata - 10) >> 1; in ad2s1210_store_resolution()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 114 struct ib_udata *udata) in iwch_alloc_ucontext() argument 148 struct ib_udata *udata) in iwch_create_cq() argument 171 if (ib_copy_from_udata(&ureq, udata, sizeof (ureq))) { in iwch_create_cq() 227 if (udata->outlen < sizeof uresp) { in iwch_create_cq() 241 if (ib_copy_to_udata(udata, &uresp, resplen)) { in iwch_create_cq() 254 static int iwch_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata) in iwch_resize_cq() argument 426 struct ib_udata *udata) in iwch_allocate_pd() argument 445 if (ib_copy_to_udata(udata, &php->pdid, sizeof (__u32))) { in iwch_allocate_pd() 558 u64 virt, int acc, struct ib_udata *udata) in iwch_reg_user_mr() argument 636 if (udata && !t3a_device(rhp)) { in iwch_reg_user_mr() [all …]
|