udata 593 arch/powerpc/platforms/cell/spufs/file.c u32 mbox_data, __user *udata; udata 602 arch/powerpc/platforms/cell/spufs/file.c udata = (void __user *)buf; udata 608 arch/powerpc/platforms/cell/spufs/file.c for (count = 0; (count + 4) <= len; count += 4, udata++) { udata 619 arch/powerpc/platforms/cell/spufs/file.c ret = __put_user(mbox_data, udata); udata 701 arch/powerpc/platforms/cell/spufs/file.c u32 ibox_data, __user *udata; udata 710 arch/powerpc/platforms/cell/spufs/file.c udata = (void __user *)buf; udata 730 arch/powerpc/platforms/cell/spufs/file.c count = __put_user(ibox_data, udata); udata 734 arch/powerpc/platforms/cell/spufs/file.c for (count = 4, udata++; (count + 4) <= len; count += 4, udata++) { udata 744 arch/powerpc/platforms/cell/spufs/file.c ret = __put_user(ibox_data, udata); udata 839 arch/powerpc/platforms/cell/spufs/file.c u32 wbox_data, __user *udata; udata 845 arch/powerpc/platforms/cell/spufs/file.c udata = (void __user *)buf; udata 849 arch/powerpc/platforms/cell/spufs/file.c if (__get_user(wbox_data, udata)) udata 874 arch/powerpc/platforms/cell/spufs/file.c for (count = 4, udata++; (count + 4) <= len; count += 4, udata++) { udata 876 arch/powerpc/platforms/cell/spufs/file.c ret = __get_user(wbox_data, udata); udata 73 arch/s390/hypfs/hypfs_sprp.c void __user *udata; udata 91 arch/s390/hypfs/hypfs_sprp.c udata = (void __user *)(unsigned long) diag304->data; udata 94 arch/s390/hypfs/hypfs_sprp.c if (copy_from_user(data, udata, PAGE_SIZE)) udata 101 arch/s390/hypfs/hypfs_sprp.c if (copy_to_user(udata, data, PAGE_SIZE)) { udata 188 block/compat_ioctl.c compat_caddr_t udata; udata 198 block/compat_ioctl.c err |= get_user(udata, &ua32->data); udata 199 block/compat_ioctl.c err |= put_user(compat_ptr(udata), &a->data); udata 230 drivers/infiniband/core/core_priv.h struct ib_udata *udata); udata 257 drivers/infiniband/core/core_priv.h struct ib_udata *udata) udata 262 drivers/infiniband/core/core_priv.h udata); udata 323 drivers/infiniband/core/core_priv.h struct ib_udata *udata, udata 333 drivers/infiniband/core/core_priv.h qp = dev->ops.create_qp(pd, attr, udata); udata 186 drivers/infiniband/core/cq.c const char *caller, struct ib_udata *udata) udata 246 drivers/infiniband/core/cq.c cq->device->ops.destroy_cq(cq, udata); udata 288 drivers/infiniband/core/cq.c void ib_free_cq_user(struct ib_cq *cq, struct ib_udata *udata) udata 308 drivers/infiniband/core/cq.c cq->device->ops.destroy_cq(cq, udata); udata 222 drivers/infiniband/core/rdma_core.h struct ib_udata *udata, unsigned int attr_in, udata 574 drivers/infiniband/core/security.c struct ib_udata *udata) udata 628 drivers/infiniband/core/security.c udata); udata 193 drivers/infiniband/core/umem.c struct ib_umem *ib_umem_get(struct ib_udata *udata, unsigned long addr, udata 209 drivers/infiniband/core/umem.c if (!udata) udata 212 drivers/infiniband/core/umem.c context = container_of(udata, struct uverbs_attr_bundle, driver_udata) udata 293 drivers/infiniband/core/umem_odp.c struct ib_umem_odp *ib_umem_odp_alloc_implicit(struct ib_udata *udata, udata 297 drivers/infiniband/core/umem_odp.c container_of(udata, struct uverbs_attr_bundle, driver_udata) udata 385 drivers/infiniband/core/umem_odp.c struct ib_umem_odp *ib_umem_odp_get(struct ib_udata *udata, unsigned long addr, udata 393 drivers/infiniband/core/umem_odp.c if (!udata) udata 396 drivers/infiniband/core/umem_odp.c context = container_of(udata, struct uverbs_attr_bundle, driver_udata) udata 55 drivers/infiniband/core/uverbs.h ib_uverbs_init_udata(struct ib_udata *udata, udata 60 drivers/infiniband/core/uverbs.h udata->inbuf = ibuf; udata 61 drivers/infiniband/core/uverbs.h udata->outbuf = obuf; udata 62 drivers/infiniband/core/uverbs.h udata->inlen = ilen; udata 63 drivers/infiniband/core/uverbs.h udata->outlen = olen; udata 67 drivers/infiniband/core/uverbs.h ib_uverbs_init_udata_buf_or_null(struct ib_udata *udata, udata 72 drivers/infiniband/core/uverbs.h ib_uverbs_init_udata(udata, udata 3354 drivers/infiniband/core/uverbs_cmd.c struct ib_udata *udata) udata 3429 drivers/infiniband/core/uverbs_cmd.c ret = pd->device->ops.create_srq(srq, &attr, udata); udata 706 drivers/infiniband/core/uverbs_ioctl.c struct ib_udata *udata, unsigned int attr_in, udata 717 drivers/infiniband/core/uverbs_ioctl.c udata->inlen = in->ptr_attr.len; udata 719 drivers/infiniband/core/uverbs_ioctl.c udata->inbuf = udata 723 drivers/infiniband/core/uverbs_ioctl.c udata->inbuf = u64_to_user_ptr(in->ptr_attr.data); udata 725 drivers/infiniband/core/uverbs_ioctl.c udata->inbuf = NULL; udata 726 drivers/infiniband/core/uverbs_ioctl.c udata->inlen = 0; udata 730 drivers/infiniband/core/uverbs_ioctl.c udata->outbuf = u64_to_user_ptr(out->ptr_attr.data); udata 731 drivers/infiniband/core/uverbs_ioctl.c udata->outlen = out->ptr_attr.len; udata 733 drivers/infiniband/core/uverbs_ioctl.c udata->outbuf = NULL; udata 734 drivers/infiniband/core/uverbs_ioctl.c udata->outlen = 0; udata 328 drivers/infiniband/core/verbs.c void ib_dealloc_pd_user(struct ib_pd *pd, struct ib_udata *udata) udata 343 drivers/infiniband/core/verbs.c pd->device->ops.dealloc_pd(pd, udata); udata 500 drivers/infiniband/core/verbs.c struct ib_udata *udata) udata 522 drivers/infiniband/core/verbs.c ret = device->ops.create_ah(ah, ah_attr, flags, udata); udata 576 drivers/infiniband/core/verbs.c struct ib_udata *udata) udata 594 drivers/infiniband/core/verbs.c ah = _rdma_create_ah(pd, ah_attr, RDMA_CREATE_AH_SLEEPABLE, udata); udata 946 drivers/infiniband/core/verbs.c int rdma_destroy_ah_user(struct ib_ah *ah, u32 flags, struct ib_udata *udata) udata 1029 drivers/infiniband/core/verbs.c int ib_destroy_srq_user(struct ib_srq *srq, struct ib_udata *udata) udata 1034 drivers/infiniband/core/verbs.c srq->device->ops.destroy_srq(srq, udata); udata 1126 drivers/infiniband/core/verbs.c struct ib_udata *udata) udata 1150 drivers/infiniband/core/verbs.c struct ib_udata *udata) udata 1185 drivers/infiniband/core/verbs.c create_xrc_qp_user(qp, qp_init_attr, udata); udata 1618 drivers/infiniband/core/verbs.c int attr_mask, struct ib_udata *udata) udata 1660 drivers/infiniband/core/verbs.c if (udata && (attr_mask & IB_QP_AV) && udata 1692 drivers/infiniband/core/verbs.c ret = ib_security_modify_qp(qp, attr, attr_mask, udata); udata 1726 drivers/infiniband/core/verbs.c int attr_mask, struct ib_udata *udata) udata 1728 drivers/infiniband/core/verbs.c return _ib_modify_qp(ib_qp->real_qp, attr, attr_mask, udata); udata 1856 drivers/infiniband/core/verbs.c int ib_destroy_qp_user(struct ib_qp *qp, struct ib_udata *udata) udata 1889 drivers/infiniband/core/verbs.c ret = qp->device->ops.destroy_qp(qp, udata); udata 1960 drivers/infiniband/core/verbs.c int ib_destroy_cq_user(struct ib_cq *cq, struct ib_udata *udata) udata 1966 drivers/infiniband/core/verbs.c cq->device->ops.destroy_cq(cq, udata); udata 1981 drivers/infiniband/core/verbs.c int ib_dereg_mr_user(struct ib_mr *mr, struct ib_udata *udata) udata 1989 drivers/infiniband/core/verbs.c ret = mr->device->ops.dereg_mr(mr, udata); udata 2015 drivers/infiniband/core/verbs.c u32 max_num_sg, struct ib_udata *udata) udata 2025 drivers/infiniband/core/verbs.c mr = pd->device->ops.alloc_mr(pd, mr_type, max_num_sg, udata); udata 2239 drivers/infiniband/core/verbs.c int ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata) udata 2255 drivers/infiniband/core/verbs.c return xrcd->device->ops.dealloc_xrcd(xrcd, udata); udata 2303 drivers/infiniband/core/verbs.c int ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata) udata 2311 drivers/infiniband/core/verbs.c wq->device->ops.destroy_wq(wq, udata); udata 124 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 556 drivers/infiniband/hw/bnxt_re/ib_verbs.c void bnxt_re_dealloc_pd(struct ib_pd *ib_pd, struct ib_udata *udata) udata 568 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 573 drivers/infiniband/hw/bnxt_re/ib_verbs.c udata, struct bnxt_re_ucontext, ib_uctx); udata 584 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 604 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 612 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (!udata) udata 653 drivers/infiniband/hw/bnxt_re/ib_verbs.c u32 flags, struct ib_udata *udata) udata 701 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 703 drivers/infiniband/hw/bnxt_re/ib_verbs.c udata, struct bnxt_re_ucontext, ib_uctx); udata 764 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata) udata 837 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct bnxt_re_qp *qp, struct ib_udata *udata) udata 844 drivers/infiniband/hw/bnxt_re/ib_verbs.c udata, struct bnxt_re_ucontext, ib_uctx); udata 846 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) udata 858 drivers/infiniband/hw/bnxt_re/ib_verbs.c umem = ib_umem_get(udata, ureq.qpsva, bytes, IB_ACCESS_LOCAL_WRITE, 1); udata 871 drivers/infiniband/hw/bnxt_re/ib_verbs.c umem = ib_umem_get(udata, ureq.qprva, bytes, udata 1003 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 1165 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 1166 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_re_init_user_qp(rdev, pd, qp, udata); udata 1184 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 1189 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 1291 drivers/infiniband/hw/bnxt_re/ib_verbs.c void bnxt_re_destroy_srq(struct ib_srq *ib_srq, struct ib_udata *udata) udata 1311 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 1318 drivers/infiniband/hw/bnxt_re/ib_verbs.c udata, struct bnxt_re_ucontext, ib_uctx); udata 1320 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) udata 1325 drivers/infiniband/hw/bnxt_re/ib_verbs.c umem = ib_umem_get(udata, ureq.srqva, bytes, IB_ACCESS_LOCAL_WRITE, 1); udata 1341 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 1380 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 1381 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = bnxt_re_init_user_srq(rdev, pd, srq, udata); udata 1392 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 1396 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 1418 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 1536 drivers/infiniband/hw/bnxt_re/ib_verbs.c int qp_attr_mask, struct ib_udata *udata) udata 2515 drivers/infiniband/hw/bnxt_re/ib_verbs.c void bnxt_re_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) udata 2534 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 2557 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 2560 drivers/infiniband/hw/bnxt_re/ib_verbs.c udata, struct bnxt_re_ucontext, ib_uctx); udata 2561 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (ib_copy_from_udata(&req, udata, sizeof(req))) { udata 2566 drivers/infiniband/hw/bnxt_re/ib_verbs.c cq->umem = ib_umem_get(udata, req.cq_va, udata 2611 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (udata) { udata 2618 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 3319 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 3366 drivers/infiniband/hw/bnxt_re/ib_verbs.c u32 max_num_sg, struct ib_udata *udata) udata 3422 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 3503 drivers/infiniband/hw/bnxt_re/ib_verbs.c struct ib_udata *udata) udata 3535 drivers/infiniband/hw/bnxt_re/ib_verbs.c umem = ib_umem_get(udata, start, length, mr_access_flags, 0); udata 3603 drivers/infiniband/hw/bnxt_re/ib_verbs.c int bnxt_re_alloc_ucontext(struct ib_ucontext *ctx, struct ib_udata *udata) udata 3649 drivers/infiniband/hw/bnxt_re/ib_verbs.c rc = ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp))); udata 147 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 164 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 165 drivers/infiniband/hw/bnxt_re/ib_verbs.h void bnxt_re_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 167 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 173 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 176 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 178 drivers/infiniband/hw/bnxt_re/ib_verbs.h void bnxt_re_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); udata 183 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 185 drivers/infiniband/hw/bnxt_re/ib_verbs.h int qp_attr_mask, struct ib_udata *udata); udata 188 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); udata 194 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 195 drivers/infiniband/hw/bnxt_re/ib_verbs.h void bnxt_re_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); udata 203 drivers/infiniband/hw/bnxt_re/ib_verbs.h u32 max_num_sg, struct ib_udata *udata); udata 204 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); udata 206 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 210 drivers/infiniband/hw/bnxt_re/ib_verbs.h struct ib_udata *udata); udata 211 drivers/infiniband/hw/bnxt_re/ib_verbs.h int bnxt_re_alloc_ucontext(struct ib_ucontext *ctx, struct ib_udata *udata); udata 78 drivers/infiniband/hw/cxgb3/iwch_provider.c struct ib_udata *udata) udata 91 drivers/infiniband/hw/cxgb3/iwch_provider.c static void iwch_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) udata 107 drivers/infiniband/hw/cxgb3/iwch_provider.c struct ib_udata *udata) udata 122 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata) { udata 124 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) udata 147 drivers/infiniband/hw/cxgb3/iwch_provider.c if (cxio_create_cq(&rhp->rdev, &chp->cq, !udata)) udata 161 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata) { udata 164 drivers/infiniband/hw/cxgb3/iwch_provider.c udata, struct iwch_ucontext, ibucontext); udata 168 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_cq(&chp->ibcq, udata); udata 179 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata->outlen < sizeof(uresp)) { udata 192 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, resplen)) { udata 194 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_cq(&chp->ibcq, udata); udata 293 drivers/infiniband/hw/cxgb3/iwch_provider.c static void iwch_deallocate_pd(struct ib_pd *pd, struct ib_udata *udata) udata 304 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_allocate_pd(struct ib_pd *pd, struct ib_udata *udata) udata 319 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata) { udata 322 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { udata 323 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_deallocate_pd(&php->ibpd, udata); udata 331 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 434 drivers/infiniband/hw/cxgb3/iwch_provider.c u64 virt, int acc, struct ib_udata *udata) udata 454 drivers/infiniband/hw/cxgb3/iwch_provider.c mhp->umem = ib_umem_get(udata, start, length, acc, 0); udata 507 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata && !t3a_device(rhp)) { udata 513 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 514 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_dereg_mr(&mhp->ibmr, udata); udata 532 drivers/infiniband/hw/cxgb3/iwch_provider.c struct ib_udata *udata) udata 586 drivers/infiniband/hw/cxgb3/iwch_provider.c u32 max_num_sg, struct ib_udata *udata) udata 665 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata) udata 684 drivers/infiniband/hw/cxgb3/iwch_provider.c ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, udata 697 drivers/infiniband/hw/cxgb3/iwch_provider.c struct ib_udata *udata) udata 745 drivers/infiniband/hw/cxgb3/iwch_provider.c ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, udata 758 drivers/infiniband/hw/cxgb3/iwch_provider.c if (cxio_create_qp(&rhp->rdev, !udata, &qhp->wq, udata 802 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata) { udata 808 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); udata 815 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); udata 829 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 832 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); udata 854 drivers/infiniband/hw/cxgb3/iwch_provider.c int attr_mask, struct ib_udata *udata) udata 970 drivers/infiniband/hw/cxgb4/cq.c void c4iw_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) udata 982 drivers/infiniband/hw/cxgb4/cq.c ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, udata 991 drivers/infiniband/hw/cxgb4/cq.c struct ib_udata *udata) udata 1004 drivers/infiniband/hw/cxgb4/cq.c udata, struct c4iw_ucontext, ibucontext); udata 1013 drivers/infiniband/hw/cxgb4/cq.c if (udata) { udata 1014 drivers/infiniband/hw/cxgb4/cq.c if (udata->inlen < sizeof(ucmd)) udata 1061 drivers/infiniband/hw/cxgb4/cq.c if (udata) udata 1110 drivers/infiniband/hw/cxgb4/cq.c ret = ib_copy_to_udata(udata, &uresp, udata 983 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u32 max_num_sg, struct ib_udata *udata); udata 989 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 992 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 994 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata); udata 995 drivers/infiniband/hw/cxgb4/iw_cxgb4.h void c4iw_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata); udata 997 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 1001 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 1002 drivers/infiniband/hw/cxgb4/iw_cxgb4.h void c4iw_destroy_srq(struct ib_srq *ib_srq, struct ib_udata *udata); udata 1004 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 1005 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata); udata 1008 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_udata *udata); udata 1010 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int attr_mask, struct ib_udata *udata); udata 509 drivers/infiniband/hw/cxgb4/mem.c u64 virt, int acc, struct ib_udata *udata) udata 546 drivers/infiniband/hw/cxgb4/mem.c mhp->umem = ib_umem_get(udata, start, length, acc, 0); udata 616 drivers/infiniband/hw/cxgb4/mem.c struct ib_udata *udata) udata 694 drivers/infiniband/hw/cxgb4/mem.c u32 max_num_sg, struct ib_udata *udata) udata 795 drivers/infiniband/hw/cxgb4/mem.c int c4iw_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 76 drivers/infiniband/hw/cxgb4/provider.c struct ib_udata *udata) udata 90 drivers/infiniband/hw/cxgb4/provider.c if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { udata 107 drivers/infiniband/hw/cxgb4/provider.c ret = ib_copy_to_udata(udata, &uresp, udata 193 drivers/infiniband/hw/cxgb4/provider.c static void c4iw_deallocate_pd(struct ib_pd *pd, struct ib_udata *udata) udata 207 drivers/infiniband/hw/cxgb4/provider.c static int c4iw_allocate_pd(struct ib_pd *pd, struct ib_udata *udata) udata 222 drivers/infiniband/hw/cxgb4/provider.c if (udata) { udata 225 drivers/infiniband/hw/cxgb4/provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 226 drivers/infiniband/hw/cxgb4/provider.c c4iw_deallocate_pd(&php->ibpd, udata); udata 2070 drivers/infiniband/hw/cxgb4/qp.c int c4iw_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata) udata 2112 drivers/infiniband/hw/cxgb4/qp.c struct ib_udata *udata) udata 2122 drivers/infiniband/hw/cxgb4/qp.c udata, struct c4iw_ucontext, ibucontext); udata 2224 drivers/infiniband/hw/cxgb4/qp.c if (udata && ucontext) { udata 2289 drivers/infiniband/hw/cxgb4/qp.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 2368 drivers/infiniband/hw/cxgb4/qp.c int attr_mask, struct ib_udata *udata) udata 2436 drivers/infiniband/hw/cxgb4/qp.c struct ib_udata *udata) udata 2444 drivers/infiniband/hw/cxgb4/qp.c if (udata && !srq_attr_mask) { udata 2455 drivers/infiniband/hw/cxgb4/qp.c if (!udata && (srq_attr_mask & IB_SRQ_LIMIT)) { udata 2670 drivers/infiniband/hw/cxgb4/qp.c struct ib_udata *udata) udata 2701 drivers/infiniband/hw/cxgb4/qp.c ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, udata 2740 drivers/infiniband/hw/cxgb4/qp.c if (udata) { udata 2764 drivers/infiniband/hw/cxgb4/qp.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 2800 drivers/infiniband/hw/cxgb4/qp.c void c4iw_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 2810 drivers/infiniband/hw/cxgb4/qp.c ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, udata 121 drivers/infiniband/hw/efa/efa.h struct ib_udata *udata); udata 131 drivers/infiniband/hw/efa/efa.h int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); udata 132 drivers/infiniband/hw/efa/efa.h void efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); udata 133 drivers/infiniband/hw/efa/efa.h int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); udata 136 drivers/infiniband/hw/efa/efa.h struct ib_udata *udata); udata 137 drivers/infiniband/hw/efa/efa.h void efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); udata 139 drivers/infiniband/hw/efa/efa.h struct ib_udata *udata); udata 142 drivers/infiniband/hw/efa/efa.h struct ib_udata *udata); udata 143 drivers/infiniband/hw/efa/efa.h int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); udata 146 drivers/infiniband/hw/efa/efa.h int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata); udata 153 drivers/infiniband/hw/efa/efa.h struct ib_udata *udata); udata 156 drivers/infiniband/hw/efa/efa.h int qp_attr_mask, struct ib_udata *udata); udata 277 drivers/infiniband/hw/efa/efa_verbs.c struct ib_udata *udata) udata 284 drivers/infiniband/hw/efa/efa_verbs.c if (udata && udata->inlen && udata 285 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, 0, udata->inlen)) { udata 310 drivers/infiniband/hw/efa/efa_verbs.c if (udata && udata->outlen) { udata 316 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 317 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 428 drivers/infiniband/hw/efa/efa_verbs.c int efa_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 436 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen && udata 437 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, 0, udata->inlen)) { udata 451 drivers/infiniband/hw/efa/efa_verbs.c if (udata->outlen) { udata 452 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 453 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 472 drivers/infiniband/hw/efa/efa_verbs.c void efa_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 488 drivers/infiniband/hw/efa/efa_verbs.c int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 630 drivers/infiniband/hw/efa/efa_verbs.c struct ib_udata *udata) udata 642 drivers/infiniband/hw/efa/efa_verbs.c ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext, udata 653 drivers/infiniband/hw/efa/efa_verbs.c if (!field_avail(cmd, driver_qp_type, udata->inlen)) { udata 660 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen > sizeof(cmd) && udata 661 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, sizeof(cmd), udata 662 drivers/infiniband/hw/efa/efa_verbs.c udata->inlen - sizeof(cmd))) { udata 669 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_from_udata(&cmd, udata, udata 670 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(cmd), udata->inlen)); udata 755 drivers/infiniband/hw/efa/efa_verbs.c if (udata->outlen) { udata 756 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 757 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 822 drivers/infiniband/hw/efa/efa_verbs.c int qp_attr_mask, struct ib_udata *udata) udata 831 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen && udata 832 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, 0, udata->inlen)) { udata 888 drivers/infiniband/hw/efa/efa_verbs.c void efa_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 916 drivers/infiniband/hw/efa/efa_verbs.c struct ib_udata *udata) udata 919 drivers/infiniband/hw/efa/efa_verbs.c udata, struct efa_ucontext, ibucontext); udata 941 drivers/infiniband/hw/efa/efa_verbs.c if (!field_avail(cmd, num_sub_cqs, udata->inlen)) { udata 948 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen > sizeof(cmd) && udata 949 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, sizeof(cmd), udata 950 drivers/infiniband/hw/efa/efa_verbs.c udata->inlen - sizeof(cmd))) { udata 957 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_from_udata(&cmd, udata, udata 958 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(cmd), udata->inlen)); udata 1018 drivers/infiniband/hw/efa/efa_verbs.c if (udata->outlen) { udata 1019 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 1020 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 1393 drivers/infiniband/hw/efa/efa_verbs.c struct ib_udata *udata) udata 1404 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen && udata 1405 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, 0, sizeof(udata->inlen))) { udata 1426 drivers/infiniband/hw/efa/efa_verbs.c mr->umem = ib_umem_get(udata, start, length, access_flags, 0); udata 1494 drivers/infiniband/hw/efa/efa_verbs.c int efa_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 1541 drivers/infiniband/hw/efa/efa_verbs.c int efa_alloc_ucontext(struct ib_ucontext *ibucontext, struct ib_udata *udata) udata 1567 drivers/infiniband/hw/efa/efa_verbs.c if (udata && udata->outlen) { udata 1568 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 1569 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 1684 drivers/infiniband/hw/efa/efa_verbs.c struct ib_udata *udata) udata 1700 drivers/infiniband/hw/efa/efa_verbs.c if (udata->inlen && udata 1701 drivers/infiniband/hw/efa/efa_verbs.c !ib_is_udata_cleared(udata, 0, udata->inlen)) { udata 1719 drivers/infiniband/hw/efa/efa_verbs.c if (udata->outlen) { udata 1720 drivers/infiniband/hw/efa/efa_verbs.c err = ib_copy_to_udata(udata, &resp, udata 1721 drivers/infiniband/hw/efa/efa_verbs.c min(sizeof(resp), udata->outlen)); udata 217 drivers/infiniband/hw/hfi1/qp.c int attr_mask, struct ib_udata *udata) udata 279 drivers/infiniband/hw/hfi1/qp.c int attr_mask, struct ib_udata *udata) udata 127 drivers/infiniband/hw/hfi1/qp.h struct ib_udata *udata); udata 429 drivers/infiniband/hw/hfi1/verbs.h int attr_mask, struct ib_udata *udata); udata 432 drivers/infiniband/hw/hfi1/verbs.h int attr_mask, struct ib_udata *udata); udata 43 drivers/infiniband/hw/hns/hns_roce_ah.c u32 flags, struct ib_udata *udata) udata 208 drivers/infiniband/hw/hns/hns_roce_cq.c struct ib_udata *udata, udata 216 drivers/infiniband/hw/hns/hns_roce_cq.c *umem = ib_umem_get(udata, buf_addr, cqe * hr_dev->caps.cq_entry_sz, udata 301 drivers/infiniband/hw/hns/hns_roce_cq.c struct ib_udata *udata, udata 309 drivers/infiniband/hw/hns/hns_roce_cq.c udata, struct hns_roce_ucontext, ibucontext); udata 311 drivers/infiniband/hw/hns/hns_roce_cq.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 317 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_ib_get_cq_umem(hr_dev, udata, &hr_cq->hr_buf, udata 326 drivers/infiniband/hw/hns/hns_roce_cq.c (udata->outlen >= sizeof(*resp))) { udata 327 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_db_map_user(context, udata, ucmd.db_addr, udata 385 drivers/infiniband/hw/hns/hns_roce_cq.c struct ib_udata *udata, udata 389 drivers/infiniband/hw/hns/hns_roce_cq.c udata, struct hns_roce_ucontext, ibucontext); udata 392 drivers/infiniband/hw/hns/hns_roce_cq.c (udata->outlen >= sizeof(*resp))) udata 411 drivers/infiniband/hw/hns/hns_roce_cq.c struct ib_udata *udata) udata 434 drivers/infiniband/hw/hns/hns_roce_cq.c if (udata) { udata 435 drivers/infiniband/hw/hns/hns_roce_cq.c ret = create_user_cq(hr_dev, hr_cq, udata, &resp, cq_entries); udata 462 drivers/infiniband/hw/hns/hns_roce_cq.c if (!udata && hr_cq->tptr_addr) udata 470 drivers/infiniband/hw/hns/hns_roce_cq.c if (udata) { udata 472 drivers/infiniband/hw/hns/hns_roce_cq.c ret = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 483 drivers/infiniband/hw/hns/hns_roce_cq.c if (udata) udata 484 drivers/infiniband/hw/hns/hns_roce_cq.c destroy_user_cq(hr_dev, hr_cq, udata, &resp); udata 492 drivers/infiniband/hw/hns/hns_roce_cq.c void hns_roce_ib_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) udata 498 drivers/infiniband/hw/hns/hns_roce_cq.c hr_dev->hw->destroy_cq(ib_cq, udata); udata 506 drivers/infiniband/hw/hns/hns_roce_cq.c if (udata) { udata 509 drivers/infiniband/hw/hns/hns_roce_cq.c udata, udata 12 drivers/infiniband/hw/hns/hns_roce_db.c struct ib_udata *udata, unsigned long virt, udata 34 drivers/infiniband/hw/hns/hns_roce_db.c page->umem = ib_umem_get(udata, page_addr, PAGE_SIZE, 0, 0); udata 966 drivers/infiniband/hw/hns/hns_roce_device.h int (*destroy_qp)(struct ib_qp *ibqp, struct ib_udata *udata); udata 976 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 977 drivers/infiniband/hw/hns/hns_roce_device.h void (*destroy_cq)(struct ib_cq *ibcq, struct ib_udata *udata); udata 988 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1181 drivers/infiniband/hw/hns/hns_roce_device.h u32 flags, struct ib_udata *udata); udata 1185 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 1186 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 1191 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1194 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1196 drivers/infiniband/hw/hns/hns_roce_device.h u32 max_num_sg, struct ib_udata *udata); udata 1199 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); udata 1206 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1231 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1234 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1235 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); udata 1239 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1241 drivers/infiniband/hw/hns/hns_roce_device.h int attr_mask, struct ib_udata *udata); udata 1261 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata); udata 1263 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_ib_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata); udata 1267 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_udata *udata, unsigned long virt, udata 1098 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_mr *mr, struct ib_udata *udata) udata 3602 drivers/infiniband/hw/hns/hns_roce_hw_v1.c int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 3617 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!udata) { udata 3635 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!udata) { udata 3649 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static void hns_roce_v1_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 3687 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!udata) { udata 1097 drivers/infiniband/hw/hns/hns_roce_hw_v1.h int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); udata 4651 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_udata *udata) udata 4670 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!udata) { udata 4691 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (udata) { udata 4694 drivers/infiniband/hw/hns/hns_roce_hw_v2.c udata, udata 4721 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 4727 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_destroy_qp_common(hr_dev, hr_qp, udata); udata 6124 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct ib_udata *udata) udata 311 drivers/infiniband/hw/hns/hns_roce_main.c struct ib_udata *udata) udata 332 drivers/infiniband/hw/hns/hns_roce_main.c ret = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 1132 drivers/infiniband/hw/hns/hns_roce_mr.c struct ib_udata *udata) udata 1146 drivers/infiniband/hw/hns/hns_roce_mr.c mr->umem = ib_umem_get(udata, start, length, access_flags, 0); udata 1212 drivers/infiniband/hw/hns/hns_roce_mr.c u32 pdn, struct ib_udata *udata) udata 1231 drivers/infiniband/hw/hns/hns_roce_mr.c mr->umem = ib_umem_get(udata, start, length, mr_access_flags, 0); udata 1287 drivers/infiniband/hw/hns/hns_roce_mr.c struct ib_udata *udata) udata 1324 drivers/infiniband/hw/hns/hns_roce_mr.c mailbox, pdn, udata); udata 1356 drivers/infiniband/hw/hns/hns_roce_mr.c int hns_roce_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 1363 drivers/infiniband/hw/hns/hns_roce_mr.c ret = hr_dev->hw->dereg_mr(hr_dev, mr, udata); udata 1375 drivers/infiniband/hw/hns/hns_roce_mr.c u32 max_num_sg, struct ib_udata *udata) udata 1513 drivers/infiniband/hw/hns/hns_roce_mr.c struct ib_udata *udata) udata 60 drivers/infiniband/hw/hns/hns_roce_pd.c int hns_roce_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 74 drivers/infiniband/hw/hns/hns_roce_pd.c if (udata) { udata 77 drivers/infiniband/hw/hns/hns_roce_pd.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 87 drivers/infiniband/hw/hns/hns_roce_pd.c void hns_roce_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 687 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_udata *udata, unsigned long sqpn, udata 695 drivers/infiniband/hw/hns/hns_roce_qp.c udata, struct hns_roce_ucontext, ibucontext); udata 716 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_rq_size(hr_dev, &init_attr->cap, udata, udata 733 drivers/infiniband/hw/hns/hns_roce_qp.c if (udata) { udata 734 drivers/infiniband/hw/hns/hns_roce_qp.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 747 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->umem = ib_umem_get(udata, ucmd.buf_addr, udata 779 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->inlen >= sizeof(ucmd)) && udata 780 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->outlen >= sizeof(resp)) && udata 782 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_db_map_user(uctx, udata, ucmd.sdb_addr, udata 795 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->outlen >= sizeof(resp)) && udata 797 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_db_map_user(uctx, udata, ucmd.db_addr, udata 939 drivers/infiniband/hw/hns/hns_roce_qp.c if (udata) { udata 940 drivers/infiniband/hw/hns/hns_roce_qp.c ret = ib_copy_to_udata(udata, &resp, udata 941 drivers/infiniband/hw/hns/hns_roce_qp.c min(udata->outlen, sizeof(resp))); udata 972 drivers/infiniband/hw/hns/hns_roce_qp.c if (udata) { udata 974 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->outlen >= sizeof(resp)) && udata 983 drivers/infiniband/hw/hns/hns_roce_qp.c if (udata) udata 985 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->inlen >= sizeof(ucmd)) && udata 986 drivers/infiniband/hw/hns/hns_roce_qp.c (udata->outlen >= sizeof(resp)) && udata 991 drivers/infiniband/hw/hns/hns_roce_qp.c if (!udata) udata 1003 drivers/infiniband/hw/hns/hns_roce_qp.c if (!udata && hns_roce_qp_has_rq(init_attr) && udata 1018 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_udata *udata) udata 1032 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, 0, udata 1047 drivers/infiniband/hw/hns/hns_roce_qp.c if (udata) { udata 1067 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, udata 1175 drivers/infiniband/hw/hns/hns_roce_qp.c int attr_mask, struct ib_udata *udata) udata 178 drivers/infiniband/hw/hns/hns_roce_srq.c static int create_user_srq(struct hns_roce_srq *srq, struct ib_udata *udata, udata 186 drivers/infiniband/hw/hns/hns_roce_srq.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) udata 189 drivers/infiniband/hw/hns/hns_roce_srq.c srq->umem = ib_umem_get(udata, ucmd.buf_addr, srq_buf_size, 0, 0); udata 208 drivers/infiniband/hw/hns/hns_roce_srq.c srq->idx_que.umem = ib_umem_get(udata, ucmd.que_addr, udata 362 drivers/infiniband/hw/hns/hns_roce_srq.c struct ib_udata *udata) udata 394 drivers/infiniband/hw/hns/hns_roce_srq.c if (udata) { udata 395 drivers/infiniband/hw/hns/hns_roce_srq.c ret = create_user_srq(srq, udata, srq_buf_size); udata 421 drivers/infiniband/hw/hns/hns_roce_srq.c if (udata) { udata 422 drivers/infiniband/hw/hns/hns_roce_srq.c if (ib_copy_to_udata(udata, &resp, udata 423 drivers/infiniband/hw/hns/hns_roce_srq.c min(udata->outlen, sizeof(resp)))) { udata 435 drivers/infiniband/hw/hns/hns_roce_srq.c if (udata) udata 444 drivers/infiniband/hw/hns/hns_roce_srq.c void hns_roce_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 452 drivers/infiniband/hw/hns/hns_roce_srq.c if (udata) { udata 59 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_udata *udata) udata 63 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata->inlen || udata->outlen) udata 120 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_udata *udata) udata 128 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_from_udata(&req, udata, sizeof(req))) udata 144 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) udata 285 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 307 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata) { udata 309 drivers/infiniband/hw/i40iw/i40iw_verbs.c udata, struct i40iw_ucontext, ibucontext); udata 313 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 334 drivers/infiniband/hw/i40iw/i40iw_verbs.c static void i40iw_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 404 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 519 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_udata *udata) udata 526 drivers/infiniband/hw/i40iw/i40iw_verbs.c udata, struct i40iw_ucontext, ibucontext); udata 627 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata) { udata 628 drivers/infiniband/hw/i40iw/i40iw_verbs.c err_code = ib_copy_from_udata(&req, udata, sizeof(req)); udata 726 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata) { udata 732 drivers/infiniband/hw/i40iw/i40iw_verbs.c err_code = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 735 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_destroy_qp(&iwqp->ibqp, udata); udata 838 drivers/infiniband/hw/i40iw/i40iw_verbs.c int attr_mask, struct ib_udata *udata) udata 1058 drivers/infiniband/hw/i40iw/i40iw_verbs.c static void i40iw_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) udata 1080 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_udata *udata) udata 1124 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata) { udata 1126 drivers/infiniband/hw/i40iw/i40iw_verbs.c udata, struct i40iw_ucontext, ibucontext); udata 1132 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_from_udata(&req, udata, sizeof(struct i40iw_create_cq_req))) { udata 1201 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (udata) { udata 1207 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { udata 1551 drivers/infiniband/hw/i40iw/i40iw_verbs.c u32 max_num_sg, struct ib_udata *udata) udata 1740 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct ib_udata *udata) udata 1745 drivers/infiniband/hw/i40iw/i40iw_verbs.c udata, struct i40iw_ucontext, ibucontext); udata 1766 drivers/infiniband/hw/i40iw/i40iw_verbs.c region = ib_umem_get(udata, start, length, acc, 0); udata 1770 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_from_udata(&req, udata, sizeof(req))) { udata 1984 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 2005 drivers/infiniband/hw/i40iw/i40iw_verbs.c udata, udata 145 drivers/infiniband/hw/mlx4/ah.c u32 flags, struct ib_udata *udata) udata 138 drivers/infiniband/hw/mlx4/cq.c static int mlx4_ib_get_cq_umem(struct mlx4_ib_dev *dev, struct ib_udata *udata, udata 147 drivers/infiniband/hw/mlx4/cq.c *umem = ib_umem_get(udata, buf_addr, cqe * cqe_size, udata 176 drivers/infiniband/hw/mlx4/cq.c struct ib_udata *udata) udata 187 drivers/infiniband/hw/mlx4/cq.c udata, struct mlx4_ib_ucontext, ibucontext); udata 205 drivers/infiniband/hw/mlx4/cq.c if (udata) { udata 208 drivers/infiniband/hw/mlx4/cq.c if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { udata 214 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_get_cq_umem(dev, udata, &cq->buf, &cq->umem, udata 219 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &cq->db); udata 252 drivers/infiniband/hw/mlx4/cq.c buf_addr, !!udata); udata 256 drivers/infiniband/hw/mlx4/cq.c if (udata) udata 262 drivers/infiniband/hw/mlx4/cq.c if (udata) udata 263 drivers/infiniband/hw/mlx4/cq.c if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { udata 274 drivers/infiniband/hw/mlx4/cq.c if (udata) udata 281 drivers/infiniband/hw/mlx4/cq.c if (!udata) udata 285 drivers/infiniband/hw/mlx4/cq.c if (!udata) udata 316 drivers/infiniband/hw/mlx4/cq.c int entries, struct ib_udata *udata) udata 324 drivers/infiniband/hw/mlx4/cq.c if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) udata 331 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_get_cq_umem(dev, udata, &cq->resize_buf->buf, udata 380 drivers/infiniband/hw/mlx4/cq.c int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) udata 406 drivers/infiniband/hw/mlx4/cq.c err = mlx4_alloc_resize_umem(dev, cq, entries, udata); udata 478 drivers/infiniband/hw/mlx4/cq.c void mlx4_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) udata 486 drivers/infiniband/hw/mlx4/cq.c if (udata) { udata 489 drivers/infiniband/hw/mlx4/cq.c udata, udata 45 drivers/infiniband/hw/mlx4/doorbell.c int mlx4_ib_db_map_user(struct ib_udata *udata, unsigned long virt, udata 51 drivers/infiniband/hw/mlx4/doorbell.c udata, struct mlx4_ib_ucontext, ibucontext); udata 67 drivers/infiniband/hw/mlx4/doorbell.c page->umem = ib_umem_get(udata, virt & PAGE_MASK, PAGE_SIZE, 0, 0); udata 1093 drivers/infiniband/hw/mlx4/main.c struct ib_udata *udata) udata 1129 drivers/infiniband/hw/mlx4/main.c err = ib_copy_to_udata(udata, &resp_v3, sizeof(resp_v3)); udata 1131 drivers/infiniband/hw/mlx4/main.c err = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 1194 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 1204 drivers/infiniband/hw/mlx4/main.c if (udata && ib_copy_to_udata(udata, &pd->pdn, sizeof(__u32))) { udata 1211 drivers/infiniband/hw/mlx4/main.c static void mlx4_ib_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 1217 drivers/infiniband/hw/mlx4/main.c struct ib_udata *udata) udata 1258 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata) udata 1707 drivers/infiniband/hw/mlx4/main.c int domain, struct ib_udata *udata) udata 1725 drivers/infiniband/hw/mlx4/main.c if (udata && udata 1726 drivers/infiniband/hw/mlx4/main.c udata->inlen && !ib_is_udata_cleared(udata, 0, udata->inlen)) udata 726 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_db_map_user(struct ib_udata *udata, unsigned long virt, udata 735 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 736 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); udata 738 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 741 drivers/infiniband/hw/mlx4/mlx4_ib.h u32 max_num_sg, struct ib_udata *udata); udata 745 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); udata 747 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 748 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); udata 755 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 762 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 764 drivers/infiniband/hw/mlx4/mlx4_ib.h enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); udata 766 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); udata 773 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 774 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); udata 778 drivers/infiniband/hw/mlx4/mlx4_ib.h int attr_mask, struct ib_udata *udata); udata 897 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 908 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 909 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata); udata 911 drivers/infiniband/hw/mlx4/mlx4_ib.h u32 wq_attr_mask, struct ib_udata *udata); udata 916 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_udata *udata); udata 370 drivers/infiniband/hw/mlx4/mr.c static struct ib_umem *mlx4_get_umem_mr(struct ib_udata *udata, u64 start, udata 401 drivers/infiniband/hw/mlx4/mr.c return ib_umem_get(udata, start, length, access_flags, 0); udata 406 drivers/infiniband/hw/mlx4/mr.c struct ib_udata *udata) udata 418 drivers/infiniband/hw/mlx4/mr.c mr->umem = mlx4_get_umem_mr(udata, start, length, access_flags); udata 462 drivers/infiniband/hw/mlx4/mr.c struct ib_udata *udata) udata 507 drivers/infiniband/hw/mlx4/mr.c mmr->umem = mlx4_get_umem_mr(udata, start, length, udata 597 drivers/infiniband/hw/mlx4/mr.c int mlx4_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 615 drivers/infiniband/hw/mlx4/mr.c struct ib_udata *udata) udata 658 drivers/infiniband/hw/mlx4/mr.c u32 max_num_sg, struct ib_udata *udata) udata 57 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata); udata 701 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 708 drivers/infiniband/hw/mlx4/qp.c if (!udata) { udata 713 drivers/infiniband/hw/mlx4/qp.c if (udata->outlen) udata 718 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen < required_cmd_sz) { udata 723 drivers/infiniband/hw/mlx4/qp.c if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) { udata 734 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen > sizeof(ucmd) && udata 735 drivers/infiniband/hw/mlx4/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 736 drivers/infiniband/hw/mlx4/qp.c udata->inlen - sizeof(ucmd))) { udata 859 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata, struct mlx4_ib_qp *qp) udata 865 drivers/infiniband/hw/mlx4/qp.c udata, struct mlx4_ib_ucontext, ibucontext); udata 884 drivers/infiniband/hw/mlx4/qp.c copy_len = min(sizeof(struct mlx4_ib_create_wq), udata->inlen); udata 886 drivers/infiniband/hw/mlx4/qp.c if (ib_copy_from_udata(&wq, udata, copy_len)) { udata 919 drivers/infiniband/hw/mlx4/qp.c qp->umem = ib_umem_get(udata, wq.buf_addr, qp->buf_size, 0, 0); udata 936 drivers/infiniband/hw/mlx4/qp.c err = mlx4_ib_db_map_user(udata, wq.db_addr, &qp->db); udata 991 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata, int sqpn, udata 1000 drivers/infiniband/hw/mlx4/qp.c udata, struct mlx4_ib_ucontext, ibucontext); udata 1076 drivers/infiniband/hw/mlx4/qp.c if (udata) { udata 1084 drivers/infiniband/hw/mlx4/qp.c if (ib_copy_from_udata(&ucmd, udata, copy_len)) { udata 1102 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, udata 1114 drivers/infiniband/hw/mlx4/qp.c ib_umem_get(udata, ucmd.buf_addr, qp->buf_size, 0, 0); udata 1132 drivers/infiniband/hw/mlx4/qp.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &qp->db); udata 1138 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, udata 1275 drivers/infiniband/hw/mlx4/qp.c if (udata) { udata 1292 drivers/infiniband/hw/mlx4/qp.c if (!udata && qp_has_rq(init_attr)) udata 1418 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 1460 drivers/infiniband/hw/mlx4/qp.c if (!udata) { udata 1480 drivers/infiniband/hw/mlx4/qp.c udata, udata 1490 drivers/infiniband/hw/mlx4/qp.c if (udata) { udata 1494 drivers/infiniband/hw/mlx4/qp.c udata, udata 1534 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 1542 drivers/infiniband/hw/mlx4/qp.c return _mlx4_ib_create_qp_rss(pd, init_attr, udata); udata 1562 drivers/infiniband/hw/mlx4/qp.c if (udata && init_attr->create_flags & ~(sup_u_create_flags)) udata 1598 drivers/infiniband/hw/mlx4/qp.c err = create_qp_common(pd, init_attr, udata, 0, &qp); udata 1615 drivers/infiniband/hw/mlx4/qp.c if (udata) udata 1628 drivers/infiniband/hw/mlx4/qp.c err = create_qp_common(pd, init_attr, udata, sqpn, &qp); udata 1647 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) { udata 1652 drivers/infiniband/hw/mlx4/qp.c ibqp = _mlx4_ib_create_qp(pd, init_attr, udata); udata 1679 drivers/infiniband/hw/mlx4/qp.c static int _mlx4_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 1700 drivers/infiniband/hw/mlx4/qp.c destroy_qp_common(dev, mqp, MLX4_IB_QP_SRC, udata); udata 1711 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 1722 drivers/infiniband/hw/mlx4/qp.c return _mlx4_ib_destroy_qp(qp, udata); udata 2030 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 2054 drivers/infiniband/hw/mlx4/qp.c err = _mlx4_ib_modify_wq(ibwq, IB_WQS_RDY, udata); udata 2077 drivers/infiniband/hw/mlx4/qp.c udata)) udata 2090 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 2101 drivers/infiniband/hw/mlx4/qp.c if (_mlx4_ib_modify_wq(ibwq, IB_WQS_RESET, udata)) udata 2135 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 2146 drivers/infiniband/hw/mlx4/qp.c udata, struct mlx4_ib_ucontext, ibucontext); udata 2719 drivers/infiniband/hw/mlx4/qp.c int attr_mask, struct ib_udata *udata) udata 2827 drivers/infiniband/hw/mlx4/qp.c udata); udata 2833 drivers/infiniband/hw/mlx4/qp.c cur_state, new_state, udata); udata 2836 drivers/infiniband/hw/mlx4/qp.c bring_down_rss_rwqs(ibqp->rwq_ind_tbl, udata); udata 2847 drivers/infiniband/hw/mlx4/qp.c int attr_mask, struct ib_udata *udata) udata 2852 drivers/infiniband/hw/mlx4/qp.c ret = _mlx4_ib_modify_qp(ibqp, attr, attr_mask, udata); udata 4131 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 4139 drivers/infiniband/hw/mlx4/qp.c if (!udata) udata 4144 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen < required_cmd_sz) { udata 4149 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen > sizeof(ucmd) && udata 4150 drivers/infiniband/hw/mlx4/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 4151 drivers/infiniband/hw/mlx4/qp.c udata->inlen - sizeof(ucmd))) { udata 4156 drivers/infiniband/hw/mlx4/qp.c if (udata->outlen) udata 4188 drivers/infiniband/hw/mlx4/qp.c err = create_rq(pd, &ib_qp_init_attr, udata, qp); udata 4214 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 4239 drivers/infiniband/hw/mlx4/qp.c udata); udata 4251 drivers/infiniband/hw/mlx4/qp.c qp_cur_state, qp_new_state, udata); udata 4257 drivers/infiniband/hw/mlx4/qp.c udata)) { udata 4270 drivers/infiniband/hw/mlx4/qp.c u32 wq_attr_mask, struct ib_udata *udata) udata 4280 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen < required_cmd_sz) udata 4283 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen > sizeof(ucmd) && udata 4284 drivers/infiniband/hw/mlx4/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 4285 drivers/infiniband/hw/mlx4/qp.c udata->inlen - sizeof(ucmd))) udata 4288 drivers/infiniband/hw/mlx4/qp.c if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) udata 4320 drivers/infiniband/hw/mlx4/qp.c err = _mlx4_ib_modify_wq(ibwq, new_state, udata); udata 4330 drivers/infiniband/hw/mlx4/qp.c void mlx4_ib_destroy_wq(struct ib_wq *ibwq, struct ib_udata *udata) udata 4338 drivers/infiniband/hw/mlx4/qp.c destroy_qp_common(dev, qp, MLX4_IB_RWQ_SRC, udata); udata 4346 drivers/infiniband/hw/mlx4/qp.c struct ib_udata *udata) udata 4356 drivers/infiniband/hw/mlx4/qp.c if (udata->inlen > 0 && udata 4357 drivers/infiniband/hw/mlx4/qp.c !ib_is_udata_cleared(udata, 0, udata 4358 drivers/infiniband/hw/mlx4/qp.c udata->inlen)) udata 4362 drivers/infiniband/hw/mlx4/qp.c if (udata->outlen && udata->outlen < min_resp_len) udata 4392 drivers/infiniband/hw/mlx4/qp.c if (udata->outlen) { udata 4395 drivers/infiniband/hw/mlx4/qp.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 74 drivers/infiniband/hw/mlx4/srq.c struct ib_udata *udata) udata 78 drivers/infiniband/hw/mlx4/srq.c udata, struct mlx4_ib_ucontext, ibucontext); udata 107 drivers/infiniband/hw/mlx4/srq.c if (udata) { udata 110 drivers/infiniband/hw/mlx4/srq.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) udata 113 drivers/infiniband/hw/mlx4/srq.c srq->umem = ib_umem_get(udata, ucmd.buf_addr, buf_size, 0, 0); udata 126 drivers/infiniband/hw/mlx4/srq.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db); udata 187 drivers/infiniband/hw/mlx4/srq.c if (udata) udata 188 drivers/infiniband/hw/mlx4/srq.c if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof (__u32))) { udata 198 drivers/infiniband/hw/mlx4/srq.c if (udata) udata 212 drivers/infiniband/hw/mlx4/srq.c if (!udata) udata 219 drivers/infiniband/hw/mlx4/srq.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 262 drivers/infiniband/hw/mlx4/srq.c void mlx4_ib_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) udata 270 drivers/infiniband/hw/mlx4/srq.c if (udata) { udata 273 drivers/infiniband/hw/mlx4/srq.c udata, udata 72 drivers/infiniband/hw/mlx5/ah.c u32 flags, struct ib_udata *udata) udata 83 drivers/infiniband/hw/mlx5/ah.c if (ah_type == RDMA_AH_ATTR_TYPE_ROCE && udata) { udata 89 drivers/infiniband/hw/mlx5/ah.c if (udata->outlen < min_resp_len) udata 95 drivers/infiniband/hw/mlx5/ah.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 704 drivers/infiniband/hw/mlx5/cq.c static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, udata 717 drivers/infiniband/hw/mlx5/cq.c udata, struct mlx5_ib_ucontext, ibucontext); udata 719 drivers/infiniband/hw/mlx5/cq.c ucmdlen = udata->inlen < sizeof(ucmd) ? udata 722 drivers/infiniband/hw/mlx5/cq.c if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) udata 735 drivers/infiniband/hw/mlx5/cq.c ib_umem_get(udata, ucmd.buf_addr, entries * ucmd.cqe_size, udata 742 drivers/infiniband/hw/mlx5/cq.c err = mlx5_ib_db_map_user(context, udata, ucmd.db_addr, &cq->db); udata 822 drivers/infiniband/hw/mlx5/cq.c static void destroy_cq_user(struct mlx5_ib_cq *cq, struct ib_udata *udata) udata 825 drivers/infiniband/hw/mlx5/cq.c udata, struct mlx5_ib_ucontext, ibucontext); udata 911 drivers/infiniband/hw/mlx5/cq.c struct ib_udata *udata) udata 948 drivers/infiniband/hw/mlx5/cq.c if (udata) { udata 949 drivers/infiniband/hw/mlx5/cq.c err = create_cq_user(dev, udata, cq, entries, &cqb, &cqe_size, udata 987 drivers/infiniband/hw/mlx5/cq.c if (udata) udata 995 drivers/infiniband/hw/mlx5/cq.c if (udata) udata 996 drivers/infiniband/hw/mlx5/cq.c if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof(__u32))) { udata 1010 drivers/infiniband/hw/mlx5/cq.c if (udata) udata 1011 drivers/infiniband/hw/mlx5/cq.c destroy_cq_user(cq, udata); udata 1017 drivers/infiniband/hw/mlx5/cq.c void mlx5_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) udata 1023 drivers/infiniband/hw/mlx5/cq.c if (udata) udata 1024 drivers/infiniband/hw/mlx5/cq.c destroy_cq_user(mcq, udata); udata 1116 drivers/infiniband/hw/mlx5/cq.c int entries, struct ib_udata *udata, int *npas, udata 1124 drivers/infiniband/hw/mlx5/cq.c err = ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)); udata 1135 drivers/infiniband/hw/mlx5/cq.c umem = ib_umem_get(udata, ucmd.buf_addr, udata 1229 drivers/infiniband/hw/mlx5/cq.c int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) udata 1264 drivers/infiniband/hw/mlx5/cq.c if (udata) { udata 1265 drivers/infiniband/hw/mlx5/cq.c err = resize_user(dev, cq, entries, udata, &npas, &page_shift, udata 1291 drivers/infiniband/hw/mlx5/cq.c if (udata) udata 1320 drivers/infiniband/hw/mlx5/cq.c if (udata) { udata 1355 drivers/infiniband/hw/mlx5/cq.c if (!udata) { udata 47 drivers/infiniband/hw/mlx5/doorbell.c struct ib_udata *udata, unsigned long virt, udata 67 drivers/infiniband/hw/mlx5/doorbell.c page->umem = ib_umem_get(udata, virt & PAGE_MASK, PAGE_SIZE, 0, 0); udata 1766 drivers/infiniband/hw/mlx5/main.c struct ib_udata *udata) udata 1785 drivers/infiniband/hw/mlx5/main.c if (udata->inlen == sizeof(struct mlx5_ib_alloc_ucontext_req)) udata 1787 drivers/infiniband/hw/mlx5/main.c else if (udata->inlen >= min_req_v2) udata 1792 drivers/infiniband/hw/mlx5/main.c err = ib_copy_from_udata(&req, udata, min(udata->inlen, sizeof(req))); udata 1824 drivers/infiniband/hw/mlx5/main.c sizeof(resp.response_length), udata->outlen); udata 1891 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), cqe_version, udata->outlen)) udata 1894 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), cmds_supp_uhw, udata->outlen)) { udata 1900 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), eth_min_inline, udata->outlen)) { udata 1908 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), clock_info_versions, udata->outlen)) { udata 1920 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), hca_core_clock_offset, udata->outlen)) { udata 1930 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), log_uar_size, udata->outlen)) udata 1933 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), num_uars_per_page, udata->outlen)) udata 1936 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), num_dyn_bfregs, udata->outlen)) { udata 1941 drivers/infiniband/hw/mlx5/main.c if (field_avail(typeof(resp), dump_fill_mkey, udata->outlen)) { udata 1950 drivers/infiniband/hw/mlx5/main.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 2467 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 2477 drivers/infiniband/hw/mlx5/main.c udata, struct mlx5_ib_ucontext, ibucontext); udata 2489 drivers/infiniband/hw/mlx5/main.c if (udata) { udata 2491 drivers/infiniband/hw/mlx5/main.c if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { udata 2500 drivers/infiniband/hw/mlx5/main.c static void mlx5_ib_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 3785 drivers/infiniband/hw/mlx5/main.c struct ib_udata *udata) udata 3799 drivers/infiniband/hw/mlx5/main.c if (udata && udata->inlen) { udata 3802 drivers/infiniband/hw/mlx5/main.c if (udata->inlen < min_ucmd_sz) udata 3805 drivers/infiniband/hw/mlx5/main.c err = ib_copy_from_udata(&ucmd_hdr, udata, min_ucmd_sz); udata 3816 drivers/infiniband/hw/mlx5/main.c if (udata->inlen > required_ucmd_sz && udata 3817 drivers/infiniband/hw/mlx5/main.c !ib_is_udata_cleared(udata, required_ucmd_sz, udata 3818 drivers/infiniband/hw/mlx5/main.c udata->inlen - required_ucmd_sz)) udata 3825 drivers/infiniband/hw/mlx5/main.c err = ib_copy_from_udata(ucmd, udata, required_ucmd_sz); udata 1020 drivers/infiniband/hw/mlx5/mlx5_ib.h static inline struct mlx5_ib_dev *mlx5_udata_to_mdev(struct ib_udata *udata) udata 1023 drivers/infiniband/hw/mlx5/mlx5_ib.h udata, struct mlx5_ib_ucontext, ibucontext); udata 1100 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata, unsigned long virt, udata 1107 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1111 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1113 drivers/infiniband/hw/mlx5/mlx5_ib.h enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); udata 1115 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); udata 1122 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1124 drivers/infiniband/hw/mlx5/mlx5_ib.h int attr_mask, struct ib_udata *udata); udata 1127 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); udata 1141 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1142 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); udata 1146 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); udata 1150 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1158 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1163 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata, udata 1168 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_pd *pd, struct ib_udata *udata); udata 1169 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); udata 1171 drivers/infiniband/hw/mlx5/mlx5_ib.h u32 max_num_sg, struct ib_udata *udata); udata 1187 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1188 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata); udata 1231 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 1232 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata); udata 1234 drivers/infiniband/hw/mlx5/mlx5_ib.h u32 wq_attr_mask, struct ib_udata *udata); udata 1237 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_udata *udata); udata 755 drivers/infiniband/hw/mlx5/mr.c static int mr_umem_get(struct mlx5_ib_dev *dev, struct ib_udata *udata, udata 767 drivers/infiniband/hw/mlx5/mr.c odp = ib_umem_odp_get(udata, start, length, access_flags); udata 782 drivers/infiniband/hw/mlx5/mr.c u = ib_umem_get(udata, start, length, access_flags, 0); udata 1252 drivers/infiniband/hw/mlx5/mr.c struct ib_udata *udata) udata 1276 drivers/infiniband/hw/mlx5/mr.c mr = mlx5_ib_alloc_implicit_mr(to_mpd(pd), udata, access_flags); udata 1282 drivers/infiniband/hw/mlx5/mr.c err = mr_umem_get(dev, udata, start, length, access_flags, &umem, udata 1394 drivers/infiniband/hw/mlx5/mr.c struct ib_pd *new_pd, struct ib_udata *udata) udata 1437 drivers/infiniband/hw/mlx5/mr.c err = mr_umem_get(dev, udata, addr, len, access_flags, udata 1628 drivers/infiniband/hw/mlx5/mr.c int mlx5_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 1876 drivers/infiniband/hw/mlx5/mr.c u32 max_num_sg, struct ib_udata *udata) udata 1889 drivers/infiniband/hw/mlx5/mr.c struct ib_udata *udata) udata 1904 drivers/infiniband/hw/mlx5/mr.c err = ib_copy_from_udata(&req, udata, min(udata->inlen, sizeof(req))); udata 1911 drivers/infiniband/hw/mlx5/mr.c if (udata->inlen > sizeof(req) && udata 1912 drivers/infiniband/hw/mlx5/mr.c !ib_is_udata_cleared(udata, sizeof(req), udata 1913 drivers/infiniband/hw/mlx5/mr.c udata->inlen - sizeof(req))) udata 1945 drivers/infiniband/hw/mlx5/mr.c sizeof(resp.response_length), udata->outlen); udata 1947 drivers/infiniband/hw/mlx5/mr.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 550 drivers/infiniband/hw/mlx5/odp.c struct ib_udata *udata, udata 556 drivers/infiniband/hw/mlx5/odp.c umem_odp = ib_umem_odp_alloc_implicit(udata, access_flags); udata 745 drivers/infiniband/hw/mlx5/qp.c static int mlx5_ib_umem_get(struct mlx5_ib_dev *dev, struct ib_udata *udata, udata 752 drivers/infiniband/hw/mlx5/qp.c *umem = ib_umem_get(udata, addr, size, 0, 0); udata 779 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_rwq *rwq, struct ib_udata *udata) udata 783 drivers/infiniband/hw/mlx5/qp.c udata, udata 795 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata, struct mlx5_ib_rwq *rwq, udata 799 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 809 drivers/infiniband/hw/mlx5/qp.c rwq->umem = ib_umem_get(udata, ucmd->buf_addr, rwq->buf_size, 0, 0); udata 834 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_db_map_user(ucontext, udata, ucmd->db_addr, &rwq->db); udata 856 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp, struct ib_udata *udata, udata 876 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)); udata 882 drivers/infiniband/hw/mlx5/qp.c context = rdma_udata_to_drv_context(udata, struct mlx5_ib_ucontext, udata 919 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_umem_get(dev, udata, ubuffer->buf_addr, udata 955 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_db_map_user(context, udata, ucmd.db_addr, &qp->db); udata 961 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, resp, min(udata->outlen, sizeof(*resp))); udata 987 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 991 drivers/infiniband/hw/mlx5/qp.c udata, udata 1220 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata, udata 1237 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_umem_get(dev, udata, ubuffer->buf_addr, ubuffer->buf_size, udata 1453 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata, udata 1460 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 1471 drivers/infiniband/hw/mlx5/qp.c err = create_raw_packet_qp_sq(dev, udata, sq, in, pd); udata 1527 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, resp, min(udata->outlen, sizeof(*resp))); udata 1589 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 1592 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 1616 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen < min_resp_len) udata 1620 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen < required_cmd_sz) { udata 1625 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen > sizeof(ucmd) && udata 1626 drivers/infiniband/hw/mlx5/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 1627 drivers/infiniband/hw/mlx5/qp.c udata->inlen - sizeof(ucmd))) { udata 1632 drivers/infiniband/hw/mlx5/qp.c if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) { udata 1671 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp))); udata 1825 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, &resp, min(udata->outlen, sizeof(resp))); udata 1947 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata, struct mlx5_ib_qp *qp) udata 1954 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 1975 drivers/infiniband/hw/mlx5/qp.c if (!udata) udata 1978 drivers/infiniband/hw/mlx5/qp.c err = create_rss_raw_qp_tir(dev, qp, pd, init_attr, udata); udata 2038 drivers/infiniband/hw/mlx5/qp.c if (udata) { udata 2039 drivers/infiniband/hw/mlx5/qp.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 2057 drivers/infiniband/hw/mlx5/qp.c err = get_qp_user_index(ucontext, &ucmd, udata->inlen, &uidx); udata 2121 drivers/infiniband/hw/mlx5/qp.c qp, udata ? &ucmd : NULL); udata 2128 drivers/infiniband/hw/mlx5/qp.c if (udata) { udata 2147 drivers/infiniband/hw/mlx5/qp.c err = create_user_qp(dev, pd, qp, udata, init_attr, &in, udata 2199 drivers/infiniband/hw/mlx5/qp.c udata ? &ucmd : NULL, udata 2284 drivers/infiniband/hw/mlx5/qp.c err = create_raw_packet_qp(dev, qp, in, inlen, pd, udata, udata 2321 drivers/infiniband/hw/mlx5/qp.c destroy_qp_user(dev, pd, qp, base, udata); udata 2433 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 2504 drivers/infiniband/hw/mlx5/qp.c destroy_qp_user(dev, &get_pd(qp)->ibpd, qp, base, udata); udata 2543 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 2546 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 2592 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 2597 drivers/infiniband/hw/mlx5/qp.c if (!udata) udata 2600 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen < sizeof(*ucmd)) { udata 2604 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_from_udata(ucmd, udata, sizeof(*ucmd)); udata 2629 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 2638 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 2668 drivers/infiniband/hw/mlx5/qp.c err = set_mlx_qp_type(dev, init_attr, &ucmd, udata); udata 2679 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_create_dct(pd, init_attr, &ucmd, udata); udata 2709 drivers/infiniband/hw/mlx5/qp.c err = create_qp_common(dev, pd, init_attr, udata, qp); udata 2770 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 2781 drivers/infiniband/hw/mlx5/qp.c destroy_qp_common(dev, mqp, udata); udata 3359 drivers/infiniband/hw/mlx5/qp.c u8 port_num, struct ib_udata *udata) udata 3362 drivers/infiniband/hw/mlx5/qp.c udata, struct mlx5_ib_ucontext, ibucontext); udata 3413 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 3505 drivers/infiniband/hw/mlx5/qp.c udata); udata 3798 drivers/infiniband/hw/mlx5/qp.c int attr_mask, struct ib_udata *udata) udata 3853 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen < min_resp_len) udata 3873 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 3890 drivers/infiniband/hw/mlx5/qp.c int attr_mask, struct ib_udata *udata) udata 3904 drivers/infiniband/hw/mlx5/qp.c if (udata && udata->inlen) { udata 3907 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen < required_cmd_sz) udata 3910 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen > sizeof(ucmd) && udata 3911 drivers/infiniband/hw/mlx5/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 3912 drivers/infiniband/hw/mlx5/qp.c udata->inlen - sizeof(ucmd))) udata 3915 drivers/infiniband/hw/mlx5/qp.c if (ib_copy_from_udata(&ucmd, udata, udata 3916 drivers/infiniband/hw/mlx5/qp.c min(udata->inlen, sizeof(ucmd)))) udata 3936 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_modify_dct(ibqp, attr, attr_mask, udata); udata 4007 drivers/infiniband/hw/mlx5/qp.c new_state, &ucmd, udata); udata 5839 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 5861 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata) udata 6042 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata, udata 6052 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen < required_cmd_sz) { udata 6057 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen > sizeof(ucmd) && udata 6058 drivers/infiniband/hw/mlx5/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 6059 drivers/infiniband/hw/mlx5/qp.c udata->inlen - sizeof(ucmd))) { udata 6064 drivers/infiniband/hw/mlx5/qp.c if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) { udata 6110 drivers/infiniband/hw/mlx5/qp.c err = create_user_rq(dev, pd, udata, rwq, &ucmd); udata 6122 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 6130 drivers/infiniband/hw/mlx5/qp.c if (!udata) udata 6134 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen && udata->outlen < min_resp_len) udata 6147 drivers/infiniband/hw/mlx5/qp.c err = prepare_user_rq(pd, init_attr, udata, rwq); udata 6162 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen) { udata 6165 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 6177 drivers/infiniband/hw/mlx5/qp.c destroy_user_rq(dev, pd, rwq, udata); udata 6183 drivers/infiniband/hw/mlx5/qp.c void mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata) udata 6189 drivers/infiniband/hw/mlx5/qp.c destroy_user_rq(dev, wq->pd, rwq, udata); udata 6195 drivers/infiniband/hw/mlx5/qp.c struct ib_udata *udata) udata 6208 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen > 0 && udata 6209 drivers/infiniband/hw/mlx5/qp.c !ib_is_udata_cleared(udata, 0, udata 6210 drivers/infiniband/hw/mlx5/qp.c udata->inlen)) udata 6222 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen && udata->outlen < min_resp_len) udata 6254 drivers/infiniband/hw/mlx5/qp.c if (udata->outlen) { udata 6257 drivers/infiniband/hw/mlx5/qp.c err = ib_copy_to_udata(udata, &resp, resp.response_length); udata 6283 drivers/infiniband/hw/mlx5/qp.c u32 wq_attr_mask, struct ib_udata *udata) udata 6297 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen < required_cmd_sz) udata 6300 drivers/infiniband/hw/mlx5/qp.c if (udata->inlen > sizeof(ucmd) && udata 6301 drivers/infiniband/hw/mlx5/qp.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 6302 drivers/infiniband/hw/mlx5/qp.c udata->inlen - sizeof(ucmd))) udata 6305 drivers/infiniband/hw/mlx5/qp.c if (ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen))) udata 46 drivers/infiniband/hw/mlx5/srq.c struct ib_udata *udata, int buf_size) udata 51 drivers/infiniband/hw/mlx5/srq.c udata, struct mlx5_ib_ucontext, ibucontext); udata 60 drivers/infiniband/hw/mlx5/srq.c ucmdlen = min(udata->inlen, sizeof(ucmd)); udata 62 drivers/infiniband/hw/mlx5/srq.c if (ib_copy_from_udata(&ucmd, udata, ucmdlen)) { udata 70 drivers/infiniband/hw/mlx5/srq.c if (udata->inlen > sizeof(ucmd) && udata 71 drivers/infiniband/hw/mlx5/srq.c !ib_is_udata_cleared(udata, sizeof(ucmd), udata 72 drivers/infiniband/hw/mlx5/srq.c udata->inlen - sizeof(ucmd))) udata 76 drivers/infiniband/hw/mlx5/srq.c err = get_srq_user_index(ucontext, &ucmd, udata->inlen, &uidx); udata 83 drivers/infiniband/hw/mlx5/srq.c srq->umem = ib_umem_get(udata, ucmd.buf_addr, buf_size, 0, 0); udata 107 drivers/infiniband/hw/mlx5/srq.c err = mlx5_ib_db_map_user(ucontext, udata, ucmd.db_addr, &srq->db); udata 198 drivers/infiniband/hw/mlx5/srq.c struct ib_udata *udata) udata 202 drivers/infiniband/hw/mlx5/srq.c udata, udata 219 drivers/infiniband/hw/mlx5/srq.c struct ib_udata *udata) udata 261 drivers/infiniband/hw/mlx5/srq.c if (udata) udata 262 drivers/infiniband/hw/mlx5/srq.c err = create_srq_user(ib_srq->pd, srq, &in, udata, buf_size); udata 268 drivers/infiniband/hw/mlx5/srq.c udata ? "user" : "kernel", err); udata 313 drivers/infiniband/hw/mlx5/srq.c if (udata) udata 314 drivers/infiniband/hw/mlx5/srq.c if (ib_copy_to_udata(udata, &srq->msrq.srqn, sizeof(__u32))) { udata 328 drivers/infiniband/hw/mlx5/srq.c if (udata) udata 329 drivers/infiniband/hw/mlx5/srq.c destroy_srq_user(ib_srq->pd, srq, udata); udata 337 drivers/infiniband/hw/mlx5/srq.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 386 drivers/infiniband/hw/mlx5/srq.c void mlx5_ib_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) udata 396 drivers/infiniband/hw/mlx5/srq.c udata, udata 514 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_udata *udata); udata 517 drivers/infiniband/hw/mthca/mthca_dev.h enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); udata 533 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_udata *udata); udata 552 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_udata *udata); udata 562 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_udata *udata); udata 305 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_udata *udata) udata 332 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { udata 366 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 372 drivers/infiniband/hw/mthca/mthca_provider.c err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); udata 376 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 377 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { udata 386 drivers/infiniband/hw/mthca/mthca_provider.c static void mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 392 drivers/infiniband/hw/mthca/mthca_provider.c u32 flags, struct ib_udata *udata) udata 408 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_udata *udata) udata 412 drivers/infiniband/hw/mthca/mthca_provider.c udata, struct mthca_ucontext, ibucontext); udata 419 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 420 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) udata 435 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->attr, srq, udata); udata 437 drivers/infiniband/hw/mthca/mthca_provider.c if (err && udata) udata 444 drivers/infiniband/hw/mthca/mthca_provider.c if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof(__u32))) { udata 452 drivers/infiniband/hw/mthca/mthca_provider.c static void mthca_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) udata 454 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 457 drivers/infiniband/hw/mthca/mthca_provider.c udata, udata 470 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_udata *udata) udata 473 drivers/infiniband/hw/mthca/mthca_provider.c udata, struct mthca_ucontext, ibucontext); udata 490 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 491 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { udata 525 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->cap, qp, udata); udata 527 drivers/infiniband/hw/mthca/mthca_provider.c if (err && udata) { udata 545 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) udata 559 drivers/infiniband/hw/mthca/mthca_provider.c to_msqp(qp), udata); udata 581 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 583 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 586 drivers/infiniband/hw/mthca/mthca_provider.c udata, udata 606 drivers/infiniband/hw/mthca/mthca_provider.c struct ib_udata *udata) udata 615 drivers/infiniband/hw/mthca/mthca_provider.c udata, struct mthca_ucontext, ibucontext); udata 623 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 624 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) udata 642 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 652 drivers/infiniband/hw/mthca/mthca_provider.c udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num, udata 657 drivers/infiniband/hw/mthca/mthca_provider.c if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) { udata 668 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) udata 673 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) udata 725 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) udata 750 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { udata 801 drivers/infiniband/hw/mthca/mthca_provider.c static void mthca_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) udata 803 drivers/infiniband/hw/mthca/mthca_provider.c if (udata) { udata 806 drivers/infiniband/hw/mthca/mthca_provider.c udata, udata 855 drivers/infiniband/hw/mthca/mthca_provider.c u64 virt, int acc, struct ib_udata *udata) udata 860 drivers/infiniband/hw/mthca/mthca_provider.c udata, struct mthca_ucontext, ibucontext); udata 868 drivers/infiniband/hw/mthca/mthca_provider.c if (udata->inlen < sizeof ucmd) { udata 876 drivers/infiniband/hw/mthca/mthca_provider.c } else if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) udata 883 drivers/infiniband/hw/mthca/mthca_provider.c mr->umem = ib_umem_get(udata, start, length, acc, udata 951 drivers/infiniband/hw/mthca/mthca_provider.c static int mthca_dereg_mr(struct ib_mr *mr, struct ib_udata *udata) udata 560 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 565 drivers/infiniband/hw/mthca/mthca_qp.c udata, struct mthca_ucontext, ibucontext); udata 859 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 921 drivers/infiniband/hw/mthca/mthca_qp.c udata); udata 990 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 1057 drivers/infiniband/hw/mthca/mthca_qp.c if (udata) udata 1165 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 1188 drivers/infiniband/hw/mthca/mthca_qp.c ret = mthca_alloc_wqe_buf(dev, pd, qp, udata); udata 1201 drivers/infiniband/hw/mthca/mthca_qp.c if (udata) udata 1296 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 1319 drivers/infiniband/hw/mthca/mthca_qp.c send_policy, qp, udata); udata 1372 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_udata *udata) udata 1403 drivers/infiniband/hw/mthca/mthca_qp.c send_policy, &sqp->qp, udata); udata 101 drivers/infiniband/hw/mthca/mthca_srq.c struct ib_udata *udata) udata 104 drivers/infiniband/hw/mthca/mthca_srq.c udata, struct mthca_ucontext, ibucontext); udata 112 drivers/infiniband/hw/mthca/mthca_srq.c if (udata) udata 122 drivers/infiniband/hw/mthca/mthca_srq.c struct ib_udata *udata) udata 125 drivers/infiniband/hw/mthca/mthca_srq.c udata, struct mthca_ucontext, ibucontext); udata 140 drivers/infiniband/hw/mthca/mthca_srq.c if (udata) udata 155 drivers/infiniband/hw/mthca/mthca_srq.c struct mthca_srq *srq, struct ib_udata *udata) udata 162 drivers/infiniband/hw/mthca/mthca_srq.c if (udata) udata 208 drivers/infiniband/hw/mthca/mthca_srq.c struct ib_udata *udata) udata 246 drivers/infiniband/hw/mthca/mthca_srq.c if (!udata) { udata 262 drivers/infiniband/hw/mthca/mthca_srq.c err = mthca_alloc_srq_buf(dev, pd, srq, udata); udata 272 drivers/infiniband/hw/mthca/mthca_srq.c mthca_arbel_init_srq_context(dev, pd, srq, mailbox->buf, udata); udata 274 drivers/infiniband/hw/mthca/mthca_srq.c mthca_tavor_init_srq_context(dev, pd, srq, mailbox->buf, udata); udata 308 drivers/infiniband/hw/mthca/mthca_srq.c if (!udata) udata 315 drivers/infiniband/hw/mthca/mthca_srq.c if (!udata && mthca_is_memfree(dev)) udata 373 drivers/infiniband/hw/mthca/mthca_srq.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 159 drivers/infiniband/hw/ocrdma/ocrdma_ah.c struct ib_udata *udata) udata 55 drivers/infiniband/hw/ocrdma/ocrdma_ah.h struct ib_udata *udata); udata 365 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 369 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata && uctx && dev->attr.max_dpp_pds) { udata 411 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 424 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = _ocrdma_alloc_pd(dev, uctx->cntxt_pd, uctx, udata); udata 471 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 481 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!udata) udata 500 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_alloc_ucontext_pd(dev, ctx, udata); udata 511 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 589 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 597 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c udata, struct ocrdma_ucontext, ibucontext); udata 620 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &rsp, sizeof(rsp)); udata 635 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 643 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c udata, struct ocrdma_ucontext, ibucontext); udata 645 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 654 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = _ocrdma_alloc_pd(dev, pd, uctx, udata); udata 659 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 660 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_copy_pd_uresp(dev, pd, udata); udata 675 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c void ocrdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 862 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c u64 usr_addr, int acc, struct ib_udata *udata) udata 878 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c mr->umem = ib_umem_get(udata, start, len, acc, 0); udata 917 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 940 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 944 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c udata, struct ocrdma_ucontext, ibucontext); udata 948 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!udata) udata 960 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 980 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 987 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c udata, struct ocrdma_ucontext, ibucontext); udata 995 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 996 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) udata 1006 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) udata 1013 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 1014 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_copy_cq_uresp(dev, cq, udata); udata 1028 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1067 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c void ocrdma_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 1112 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1160 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata && attrs->qp_type == IB_QPT_GSI) { udata 1185 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata, int dpp_offset, udata 1220 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1308 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1317 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_check_qp_params(ibpd, dev, attrs, udata); udata 1322 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 1323 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) udata 1332 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata == NULL) udata 1344 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata == NULL) { udata 1354 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 1355 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_copy_qp_uresp(qp, udata, dpp_offset, udata 1401 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int attr_mask, struct ib_udata *udata) udata 1684 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 1748 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1770 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1781 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1800 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!udata) { udata 1827 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (udata) { udata 1828 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_copy_srq_uresp(dev, srq, udata); udata 1845 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ib_udata *udata) udata 1868 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c void ocrdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 2912 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c u32 max_num_sg, struct ib_udata *udata) udata 66 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); udata 71 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 72 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h void ocrdma_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 75 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h struct ib_udata *udata); udata 77 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h void ocrdma_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); udata 85 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int attr_mask, struct ib_udata *udata); udata 89 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); udata 93 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h struct ib_udata *udata); udata 97 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h void ocrdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); udata 101 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata); udata 106 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h u32 max_num_sg, struct ib_udata *udata); udata 62 drivers/infiniband/hw/qedr/verbs.c static inline int qedr_ib_copy_to_udata(struct ib_udata *udata, void *src, udata 65 drivers/infiniband/hw/qedr/verbs.c size_t min_len = min_t(size_t, len, udata->outlen); udata 67 drivers/infiniband/hw/qedr/verbs.c return ib_copy_to_udata(udata, src, min_len); udata 107 drivers/infiniband/hw/qedr/verbs.c struct ib_device_attr *attr, struct ib_udata *udata) udata 314 drivers/infiniband/hw/qedr/verbs.c int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 323 drivers/infiniband/hw/qedr/verbs.c if (!udata) udata 354 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 434 drivers/infiniband/hw/qedr/verbs.c int qedr_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 443 drivers/infiniband/hw/qedr/verbs.c udata ? "User Lib" : "Kernel"); udata 456 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 461 drivers/infiniband/hw/qedr/verbs.c udata, struct qedr_ucontext, ibucontext); udata 463 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 477 drivers/infiniband/hw/qedr/verbs.c void qedr_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 662 drivers/infiniband/hw/qedr/verbs.c struct qedr_cq *cq, struct ib_udata *udata) udata 672 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 698 drivers/infiniband/hw/qedr/verbs.c static inline int qedr_init_user_queue(struct ib_udata *udata, udata 709 drivers/infiniband/hw/qedr/verbs.c q->umem = ib_umem_get(udata, q->buf_addr, q->buf_len, access, dmasync); udata 811 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 815 drivers/infiniband/hw/qedr/verbs.c udata, struct qedr_ucontext, ibucontext); udata 832 drivers/infiniband/hw/qedr/verbs.c udata ? "User Lib" : "Kernel", entries, vector); udata 844 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 845 drivers/infiniband/hw/qedr/verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) { udata 859 drivers/infiniband/hw/qedr/verbs.c rc = qedr_init_user_queue(udata, dev, &cq->q, ureq.addr, udata 898 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 899 drivers/infiniband/hw/qedr/verbs.c rc = qedr_copy_cq_uresp(dev, cq, udata); udata 929 drivers/infiniband/hw/qedr/verbs.c if (udata) udata 934 drivers/infiniband/hw/qedr/verbs.c if (udata) udata 940 drivers/infiniband/hw/qedr/verbs.c int qedr_resize_cq(struct ib_cq *ibcq, int new_cnt, struct ib_udata *udata) udata 953 drivers/infiniband/hw/qedr/verbs.c void qedr_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 973 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 1073 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 1114 drivers/infiniband/hw/qedr/verbs.c if (udata && attrs->qp_type == IB_QPT_GSI) { udata 1125 drivers/infiniband/hw/qedr/verbs.c struct qedr_srq *srq, struct ib_udata *udata) udata 1132 drivers/infiniband/hw/qedr/verbs.c rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1170 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp, struct ib_udata *udata) udata 1182 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1243 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 1283 drivers/infiniband/hw/qedr/verbs.c static int qedr_init_srq_user_params(struct ib_udata *udata, udata 1291 drivers/infiniband/hw/qedr/verbs.c rc = qedr_init_user_queue(udata, srq->dev, &srq->usrq, ureq->srq_addr, udata 1297 drivers/infiniband/hw/qedr/verbs.c ib_umem_get(udata, ureq->prod_pair_addr, udata 1358 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 1374 drivers/infiniband/hw/qedr/verbs.c (udata) ? "User lib" : "kernel", pd); udata 1376 drivers/infiniband/hw/qedr/verbs.c rc = qedr_check_srq_params(dev, init_attr, udata); udata 1387 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 1388 drivers/infiniband/hw/qedr/verbs.c if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) { udata 1394 drivers/infiniband/hw/qedr/verbs.c rc = qedr_init_srq_user_params(udata, srq, &ureq, 0, 0); udata 1428 drivers/infiniband/hw/qedr/verbs.c if (udata) { udata 1429 drivers/infiniband/hw/qedr/verbs.c rc = qedr_copy_srq_uresp(dev, srq, udata); udata 1447 drivers/infiniband/hw/qedr/verbs.c if (udata) udata 1455 drivers/infiniband/hw/qedr/verbs.c void qedr_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 1476 drivers/infiniband/hw/qedr/verbs.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 1597 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata, udata 1609 drivers/infiniband/hw/qedr/verbs.c rc = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); udata 1616 drivers/infiniband/hw/qedr/verbs.c rc = qedr_init_user_queue(udata, dev, &qp->usq, ureq.sq_addr, udata 1623 drivers/infiniband/hw/qedr/verbs.c rc = qedr_init_user_queue(udata, dev, &qp->urq, ureq.rq_addr, udata 1654 drivers/infiniband/hw/qedr/verbs.c rc = qedr_copy_qp_uresp(dev, qp, udata); udata 1886 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 1895 drivers/infiniband/hw/qedr/verbs.c udata ? "user library" : "kernel", pd); udata 1897 drivers/infiniband/hw/qedr/verbs.c rc = qedr_check_qp_attrs(ibpd, dev, attrs, udata); udata 1903 drivers/infiniband/hw/qedr/verbs.c udata ? "user library" : "kernel", attrs->event_handler, pd, udata 1924 drivers/infiniband/hw/qedr/verbs.c if (udata) udata 1925 drivers/infiniband/hw/qedr/verbs.c rc = qedr_create_user_qp(dev, qp, ibpd, udata, attrs); udata 2106 drivers/infiniband/hw/qedr/verbs.c int attr_mask, struct ib_udata *udata) udata 2344 drivers/infiniband/hw/qedr/verbs.c !udata && qp_params.new_state == QED_ROCE_QP_STATE_ERR) udata 2352 drivers/infiniband/hw/qedr/verbs.c if ((qp->qp_type != IB_QPT_GSI) && (!udata)) udata 2444 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 2462 drivers/infiniband/hw/qedr/verbs.c int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 2517 drivers/infiniband/hw/qedr/verbs.c qedr_free_qp_resources(dev, qp, udata); udata 2526 drivers/infiniband/hw/qedr/verbs.c struct ib_udata *udata) udata 2603 drivers/infiniband/hw/qedr/verbs.c u64 usr_addr, int acc, struct ib_udata *udata) udata 2624 drivers/infiniband/hw/qedr/verbs.c mr->umem = ib_umem_get(udata, start, len, acc, 0); udata 2688 drivers/infiniband/hw/qedr/verbs.c int qedr_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) udata 2780 drivers/infiniband/hw/qedr/verbs.c u32 max_num_sg, struct ib_udata *udata) udata 36 drivers/infiniband/hw/qedr/verbs.h struct ib_device_attr *attr, struct ib_udata *udata); udata 46 drivers/infiniband/hw/qedr/verbs.h int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); udata 50 drivers/infiniband/hw/qedr/verbs.h int qedr_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 51 drivers/infiniband/hw/qedr/verbs.h void qedr_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 54 drivers/infiniband/hw/qedr/verbs.h struct ib_udata *udata); udata 56 drivers/infiniband/hw/qedr/verbs.h void qedr_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); udata 61 drivers/infiniband/hw/qedr/verbs.h int attr_mask, struct ib_udata *udata); udata 64 drivers/infiniband/hw/qedr/verbs.h int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); udata 67 drivers/infiniband/hw/qedr/verbs.h struct ib_udata *udata); udata 69 drivers/infiniband/hw/qedr/verbs.h enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); udata 71 drivers/infiniband/hw/qedr/verbs.h void qedr_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); udata 75 drivers/infiniband/hw/qedr/verbs.h struct ib_udata *udata); udata 78 drivers/infiniband/hw/qedr/verbs.h int qedr_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata); udata 88 drivers/infiniband/hw/qedr/verbs.h u32 max_num_sg, struct ib_udata *udata); udata 84 drivers/infiniband/hw/usnic/usnic_ib_verbs.c struct ib_udata *udata) udata 161 drivers/infiniband/hw/usnic/usnic_ib_verbs.c err = ib_copy_to_udata(udata, &resp, sizeof(resp)); udata 451 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 464 drivers/infiniband/hw/usnic/usnic_ib_verbs.c void usnic_ib_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 471 drivers/infiniband/hw/usnic/usnic_ib_verbs.c struct ib_udata *udata) udata 477 drivers/infiniband/hw/usnic/usnic_ib_verbs.c udata, struct usnic_ib_ucontext, ibucontext); udata 490 drivers/infiniband/hw/usnic/usnic_ib_verbs.c err = ib_copy_from_udata(&cmd, udata, sizeof(cmd)); udata 523 drivers/infiniband/hw/usnic/usnic_ib_verbs.c err = usnic_ib_fill_create_qp_resp(qp_grp, udata); udata 542 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 565 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int attr_mask, struct ib_udata *udata) udata 592 drivers/infiniband/hw/usnic/usnic_ib_verbs.c struct ib_udata *udata) udata 600 drivers/infiniband/hw/usnic/usnic_ib_verbs.c void usnic_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) udata 607 drivers/infiniband/hw/usnic/usnic_ib_verbs.c struct ib_udata *udata) udata 634 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 645 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 53 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); udata 54 drivers/infiniband/hw/usnic/usnic_ib_verbs.h void usnic_ib_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 57 drivers/infiniband/hw/usnic/usnic_ib_verbs.h struct ib_udata *udata); udata 58 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); udata 60 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int attr_mask, struct ib_udata *udata); udata 62 drivers/infiniband/hw/usnic/usnic_ib_verbs.h struct ib_udata *udata); udata 63 drivers/infiniband/hw/usnic/usnic_ib_verbs.h void usnic_ib_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); udata 66 drivers/infiniband/hw/usnic/usnic_ib_verbs.h struct ib_udata *udata); udata 67 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); udata 68 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); udata 102 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c struct ib_udata *udata) udata 118 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c udata, struct pvrdma_ucontext, ibucontext); udata 130 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c cq->is_kernel = !udata; udata 133 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 138 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c cq->umem = ib_umem_get(udata, ucmd.buf_addr, ucmd.buf_size, udata 203 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c if (ib_copy_to_udata(udata, &cq_resp, sizeof(cq_resp))) { udata 206 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c pvrdma_destroy_cq(&cq->ibcq, udata); udata 238 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c void pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) udata 113 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c struct ib_udata *udata) udata 129 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c umem = ib_umem_get(udata, start, length, access_flags, 0); udata 205 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c u32 max_num_sg, struct ib_udata *udata) udata 276 drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c int pvrdma_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 190 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct ib_udata *udata) udata 231 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c udata) { udata 252 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->is_kernel = !udata; udata 258 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 265 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->rumem = ib_umem_get(udata, ucmd.rbuf_addr, udata 277 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->sumem = ib_umem_get(udata, ucmd.sbuf_addr, udata 445 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) udata 476 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int attr_mask, struct ib_udata *udata) udata 100 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c struct ib_udata *udata) udata 113 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (!udata) { udata 144 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) { udata 149 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c srq->umem = ib_umem_get(udata, ucmd.buf_addr, ucmd.buf_size, 0, 0); udata 198 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (ib_copy_to_udata(udata, &srq_resp, sizeof(srq_resp))) { udata 200 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c pvrdma_destroy_srq(&srq->ibsrq, udata); udata 243 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c void pvrdma_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) udata 274 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 313 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 351 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 427 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c int pvrdma_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 439 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c udata, struct pvrdma_ucontext, ibucontext); udata 455 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pd->privileged = !udata; udata 460 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (udata) { udata 461 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (ib_copy_to_udata(udata, &pd_resp, sizeof(pd_resp))) { udata 464 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pvrdma_dealloc_pd(&pd->ibpd, udata); udata 484 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c void pvrdma_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 513 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c u32 flags, struct ib_udata *udata) udata 385 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 399 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); udata 401 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 402 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h void pvrdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); udata 406 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 407 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); udata 409 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h u32 max_num_sg, struct ib_udata *udata); udata 413 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 414 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h void pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); udata 418 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 422 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 424 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); udata 426 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h void pvrdma_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); udata 430 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct ib_udata *udata); udata 432 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int attr_mask, struct ib_udata *udata); udata 435 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); udata 102 drivers/infiniband/sw/rdmavt/ah.c u32 create_flags, struct ib_udata *udata) udata 54 drivers/infiniband/sw/rdmavt/ah.h u32 create_flags, struct ib_udata *udata); udata 201 drivers/infiniband/sw/rdmavt/cq.c struct ib_udata *udata) udata 231 drivers/infiniband/sw/rdmavt/cq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 249 drivers/infiniband/sw/rdmavt/cq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 250 drivers/infiniband/sw/rdmavt/cq.c cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); udata 256 drivers/infiniband/sw/rdmavt/cq.c err = ib_copy_to_udata(udata, &cq->ip->offset, udata 318 drivers/infiniband/sw/rdmavt/cq.c void rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 379 drivers/infiniband/sw/rdmavt/cq.c int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) udata 397 drivers/infiniband/sw/rdmavt/cq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 411 drivers/infiniband/sw/rdmavt/cq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 414 drivers/infiniband/sw/rdmavt/cq.c ret = ib_copy_to_udata(udata, &offset, sizeof(offset)); udata 482 drivers/infiniband/sw/rdmavt/cq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 483 drivers/infiniband/sw/rdmavt/cq.c ret = ib_copy_to_udata(udata, &ip->offset, udata 55 drivers/infiniband/sw/rdmavt/cq.h struct ib_udata *udata); udata 56 drivers/infiniband/sw/rdmavt/cq.h void rvt_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); udata 58 drivers/infiniband/sw/rdmavt/cq.h int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata); udata 160 drivers/infiniband/sw/rdmavt/mmap.c struct ib_udata *udata, void *obj) udata 164 drivers/infiniband/sw/rdmavt/mmap.c if (!udata) udata 183 drivers/infiniband/sw/rdmavt/mmap.c container_of(udata, struct uverbs_attr_bundle, driver_udata) udata 57 drivers/infiniband/sw/rdmavt/mmap.h struct ib_udata *udata, void *obj); udata 382 drivers/infiniband/sw/rdmavt/mr.c struct ib_udata *udata) udata 393 drivers/infiniband/sw/rdmavt/mr.c umem = ib_umem_get(udata, start, length, mr_access_flags, 0); udata 553 drivers/infiniband/sw/rdmavt/mr.c int rvt_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 580 drivers/infiniband/sw/rdmavt/mr.c u32 max_num_sg, struct ib_udata *udata) udata 80 drivers/infiniband/sw/rdmavt/mr.h struct ib_udata *udata); udata 81 drivers/infiniband/sw/rdmavt/mr.h int rvt_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata); udata 83 drivers/infiniband/sw/rdmavt/mr.h u32 max_num_sg, struct ib_udata *udata); udata 60 drivers/infiniband/sw/rdmavt/pd.c int rvt_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 85 drivers/infiniband/sw/rdmavt/pd.c pd->user = !!udata; udata 98 drivers/infiniband/sw/rdmavt/pd.c void rvt_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 53 drivers/infiniband/sw/rdmavt/pd.h int rvt_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); udata 54 drivers/infiniband/sw/rdmavt/pd.h void rvt_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); udata 823 drivers/infiniband/sw/rdmavt/qp.c struct ib_udata *udata) udata 825 drivers/infiniband/sw/rdmavt/qp.c if (udata) { udata 1066 drivers/infiniband/sw/rdmavt/qp.c struct ib_udata *udata) udata 1171 drivers/infiniband/sw/rdmavt/qp.c rdi->dparms.node, udata); udata 1232 drivers/infiniband/sw/rdmavt/qp.c if (udata && udata->outlen >= sizeof(__u64)) { udata 1236 drivers/infiniband/sw/rdmavt/qp.c err = ib_copy_to_udata(udata, &offset, udata 1245 drivers/infiniband/sw/rdmavt/qp.c qp->ip = rvt_create_mmap_info(rdi, s, udata, udata 1252 drivers/infiniband/sw/rdmavt/qp.c err = ib_copy_to_udata(udata, &qp->ip->offset, udata 1447 drivers/infiniband/sw/rdmavt/qp.c int attr_mask, struct ib_udata *udata) udata 1472 drivers/infiniband/sw/rdmavt/qp.c rdi->driver_f.check_modify_qp(qp, attr, attr_mask, udata)) udata 1678 drivers/infiniband/sw/rdmavt/qp.c rdi->driver_f.modify_qp(qp, attr, attr_mask, udata); udata 1717 drivers/infiniband/sw/rdmavt/qp.c int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 57 drivers/infiniband/sw/rdmavt/qp.h struct ib_udata *udata); udata 59 drivers/infiniband/sw/rdmavt/qp.h int attr_mask, struct ib_udata *udata); udata 60 drivers/infiniband/sw/rdmavt/qp.h int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); udata 72 drivers/infiniband/sw/rdmavt/qp.h struct ib_udata *udata); udata 77 drivers/infiniband/sw/rdmavt/srq.c struct ib_udata *udata) udata 101 drivers/infiniband/sw/rdmavt/srq.c dev->dparms.node, udata)) { udata 110 drivers/infiniband/sw/rdmavt/srq.c if (udata && udata->outlen >= sizeof(__u64)) { udata 113 drivers/infiniband/sw/rdmavt/srq.c srq->ip = rvt_create_mmap_info(dev, s, udata, srq->rq.wq); udata 119 drivers/infiniband/sw/rdmavt/srq.c ret = ib_copy_to_udata(udata, &srq->ip->offset, udata 168 drivers/infiniband/sw/rdmavt/srq.c struct ib_udata *udata) udata 190 drivers/infiniband/sw/rdmavt/srq.c udata)) udata 193 drivers/infiniband/sw/rdmavt/srq.c if (udata && udata->inlen >= sizeof(__u64)) { udata 197 drivers/infiniband/sw/rdmavt/srq.c ret = ib_copy_from_udata(&offset_addr, udata, udata 201 drivers/infiniband/sw/rdmavt/srq.c udata->outbuf = (void __user *) udata 203 drivers/infiniband/sw/rdmavt/srq.c ret = ib_copy_to_udata(udata, &offset, udata 214 drivers/infiniband/sw/rdmavt/srq.c if (udata) { udata 253 drivers/infiniband/sw/rdmavt/srq.c if (udata) { udata 280 drivers/infiniband/sw/rdmavt/srq.c if (udata && udata->inlen >= sizeof(__u64)) { udata 281 drivers/infiniband/sw/rdmavt/srq.c ret = ib_copy_to_udata(udata, &ip->offset, udata 335 drivers/infiniband/sw/rdmavt/srq.c void rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 54 drivers/infiniband/sw/rdmavt/srq.h struct ib_udata *udata); udata 57 drivers/infiniband/sw/rdmavt/srq.h struct ib_udata *udata); udata 59 drivers/infiniband/sw/rdmavt/srq.h void rvt_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); udata 298 drivers/infiniband/sw/rdmavt/vt.c static int rvt_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 85 drivers/infiniband/sw/rxe/rxe_cq.c int comp_vector, struct ib_udata *udata, udata 97 drivers/infiniband/sw/rxe/rxe_cq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, udata 119 drivers/infiniband/sw/rxe/rxe_cq.c struct ib_udata *udata) udata 124 drivers/infiniband/sw/rxe/rxe_cq.c sizeof(struct rxe_cqe), udata, udata 56 drivers/infiniband/sw/rxe/rxe_loc.h int comp_vector, struct ib_udata *udata, udata 61 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_udata *udata); udata 96 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_udata *udata, void *obj); udata 110 drivers/infiniband/sw/rxe/rxe_loc.h u64 length, u64 iova, int access, struct ib_udata *udata, udata 160 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_pd *ibpd, struct ib_udata *udata); udata 168 drivers/infiniband/sw/rxe/rxe_loc.h int mask, struct ib_udata *udata); udata 226 drivers/infiniband/sw/rxe/rxe_loc.h struct ib_srq_init_attr *init, struct ib_udata *udata, udata 231 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_modify_srq_cmd *ucmd, struct ib_udata *udata); udata 145 drivers/infiniband/sw/rxe/rxe_mmap.c struct ib_udata *udata, void *obj) udata 149 drivers/infiniband/sw/rxe/rxe_mmap.c if (!udata) udata 171 drivers/infiniband/sw/rxe/rxe_mmap.c container_of(udata, struct uverbs_attr_bundle, driver_udata) udata 161 drivers/infiniband/sw/rxe/rxe_mr.c u64 length, u64 iova, int access, struct ib_udata *udata, udata 172 drivers/infiniband/sw/rxe/rxe_mr.c umem = ib_umem_get(udata, start, length, access, 0); udata 220 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_qp_init_attr *init, struct ib_udata *udata, udata 256 drivers/infiniband/sw/rxe/rxe_qp.c err = do_mmap_info(rxe, uresp ? &uresp->sq_mi : NULL, udata, udata 289 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_udata *udata, udata 310 drivers/infiniband/sw/rxe/rxe_qp.c err = do_mmap_info(rxe, uresp ? &uresp->rq_mi : NULL, udata, udata 340 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_udata *udata) udata 360 drivers/infiniband/sw/rxe/rxe_qp.c err = rxe_qp_init_req(rxe, qp, init, udata, uresp); udata 364 drivers/infiniband/sw/rxe/rxe_qp.c err = rxe_qp_init_resp(rxe, qp, init, udata, uresp); udata 590 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_udata *udata) udata 40 drivers/infiniband/sw/rxe/rxe_queue.c struct ib_udata *udata, struct rxe_queue_buf *buf, udata 47 drivers/infiniband/sw/rxe/rxe_queue.c ip = rxe_create_mmap_info(rxe, buf_size, udata, buf); udata 157 drivers/infiniband/sw/rxe/rxe_queue.c unsigned int elem_size, struct ib_udata *udata, udata 170 drivers/infiniband/sw/rxe/rxe_queue.c err = do_mmap_info(new_q->rxe, outbuf, udata, new_q->buf, udata 80 drivers/infiniband/sw/rxe/rxe_queue.h struct ib_udata *udata, struct rxe_queue_buf *buf, udata 90 drivers/infiniband/sw/rxe/rxe_queue.h unsigned int elem_size, struct ib_udata *udata, udata 102 drivers/infiniband/sw/rxe/rxe_srq.c struct ib_srq_init_attr *init, struct ib_udata *udata, udata 130 drivers/infiniband/sw/rxe/rxe_srq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, udata 151 drivers/infiniband/sw/rxe/rxe_srq.c struct rxe_modify_srq_cmd *ucmd, struct ib_udata *udata) udata 165 drivers/infiniband/sw/rxe/rxe_srq.c rcv_wqe_size(srq->rq.max_sge), udata, mi, udata 145 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) udata 179 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 187 drivers/infiniband/sw/rxe/rxe_verbs.c static void rxe_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) udata 195 drivers/infiniband/sw/rxe/rxe_verbs.c u32 flags, struct ib_udata *udata) udata 293 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_udata *udata) udata 301 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 302 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) udata 304 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; udata 318 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_from_init(rxe, srq, init, udata, uresp); udata 333 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_udata *udata) udata 340 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 341 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->inlen < sizeof(ucmd)) udata 344 drivers/infiniband/sw/rxe/rxe_verbs.c err = ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)); udata 353 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_from_attr(rxe, srq, attr, mask, &ucmd, udata); udata 376 drivers/infiniband/sw/rxe/rxe_verbs.c static void rxe_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata) udata 413 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_udata *udata) udata 421 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 422 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) udata 424 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; udata 437 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 438 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->inlen) { udata 447 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_qp_from_init(rxe, qp, pd, init, uresp, ibpd, udata); udata 462 drivers/infiniband/sw/rxe/rxe_verbs.c int mask, struct ib_udata *udata) udata 472 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_qp_from_attr(qp, attr, mask, udata); udata 493 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) udata 782 drivers/infiniband/sw/rxe/rxe_verbs.c struct ib_udata *udata) udata 790 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 791 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) udata 793 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; udata 803 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_cq_from_init(rxe, cq, attr->cqe, attr->comp_vector, udata, udata 811 drivers/infiniband/sw/rxe/rxe_verbs.c static void rxe_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata) udata 820 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) udata 827 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata) { udata 828 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) udata 830 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; udata 837 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_cq_resize_queue(cq, cqe, uresp, udata); udata 929 drivers/infiniband/sw/rxe/rxe_verbs.c int access, struct ib_udata *udata) udata 947 drivers/infiniband/sw/rxe/rxe_verbs.c access, udata, mr); udata 961 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) udata 973 drivers/infiniband/sw/rxe/rxe_verbs.c u32 max_num_sg, struct ib_udata *udata) udata 97 drivers/infiniband/sw/siw/siw_verbs.c int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) udata 114 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { udata 118 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 155 drivers/infiniband/sw/siw/siw_verbs.c struct ib_udata *udata) udata 159 drivers/infiniband/sw/siw/siw_verbs.c if (udata->inlen || udata->outlen) udata 265 drivers/infiniband/sw/siw/siw_verbs.c int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 278 drivers/infiniband/sw/siw/siw_verbs.c void siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) udata 308 drivers/infiniband/sw/siw/siw_verbs.c struct ib_udata *udata) udata 315 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 382 drivers/infiniband/sw/siw/siw_verbs.c qp->kernel_verbs = !udata; udata 453 drivers/infiniband/sw/siw/siw_verbs.c if (udata) { udata 478 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { udata 482 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 559 drivers/infiniband/sw/siw/siw_verbs.c int attr_mask, struct ib_udata *udata) udata 604 drivers/infiniband/sw/siw/siw_verbs.c int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata) udata 608 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 1081 drivers/infiniband/sw/siw/siw_verbs.c void siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata) udata 1086 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 1112 drivers/infiniband/sw/siw/siw_verbs.c struct ib_udata *udata) udata 1133 drivers/infiniband/sw/siw/siw_verbs.c if (!udata) { udata 1152 drivers/infiniband/sw/siw/siw_verbs.c if (udata) { udata 1155 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 1170 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { udata 1174 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1185 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 1268 drivers/infiniband/sw/siw/siw_verbs.c int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata) udata 1296 drivers/infiniband/sw/siw/siw_verbs.c u64 rnic_va, int rights, struct ib_udata *udata) udata 1348 drivers/infiniband/sw/siw/siw_verbs.c if (udata) { udata 1352 drivers/infiniband/sw/siw/siw_verbs.c if (udata->inlen < sizeof(ureq)) { udata 1356 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); udata 1365 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { udata 1369 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1391 drivers/infiniband/sw/siw/siw_verbs.c u32 max_sge, struct ib_udata *udata) udata 1570 drivers/infiniband/sw/siw/siw_verbs.c struct ib_srq_init_attr *init_attrs, struct ib_udata *udata) udata 1576 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 1597 drivers/infiniband/sw/siw/siw_verbs.c srq->kernel_verbs = !udata; udata 1599 drivers/infiniband/sw/siw/siw_verbs.c if (udata) udata 1609 drivers/infiniband/sw/siw/siw_verbs.c if (udata) { udata 1622 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { udata 1626 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); udata 1657 drivers/infiniband/sw/siw/siw_verbs.c enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) udata 1717 drivers/infiniband/sw/siw/siw_verbs.c void siw_destroy_srq(struct ib_srq *base_srq, struct ib_udata *udata) udata 1722 drivers/infiniband/sw/siw/siw_verbs.c rdma_udata_to_drv_context(udata, struct siw_ucontext, udata 37 drivers/infiniband/sw/siw/siw_verbs.h int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata); udata 44 drivers/infiniband/sw/siw/siw_verbs.h struct ib_udata *udata); udata 46 drivers/infiniband/sw/siw/siw_verbs.h struct ib_udata *udata); udata 52 drivers/infiniband/sw/siw/siw_verbs.h int siw_alloc_pd(struct ib_pd *base_pd, struct ib_udata *udata); udata 53 drivers/infiniband/sw/siw/siw_verbs.h void siw_dealloc_pd(struct ib_pd *base_pd, struct ib_udata *udata); udata 56 drivers/infiniband/sw/siw/siw_verbs.h struct ib_udata *udata); udata 60 drivers/infiniband/sw/siw/siw_verbs.h int attr_mask, struct ib_udata *udata); udata 61 drivers/infiniband/sw/siw/siw_verbs.h int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata); udata 66 drivers/infiniband/sw/siw/siw_verbs.h void siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata); udata 70 drivers/infiniband/sw/siw/siw_verbs.h u64 rnic_va, int rights, struct ib_udata *udata); udata 72 drivers/infiniband/sw/siw/siw_verbs.h u32 max_sge, struct ib_udata *udata); udata 76 drivers/infiniband/sw/siw/siw_verbs.h int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata); udata 78 drivers/infiniband/sw/siw/siw_verbs.h struct ib_udata *udata); udata 80 drivers/infiniband/sw/siw/siw_verbs.h enum ib_srq_attr_mask mask, struct ib_udata *udata); udata 82 drivers/infiniband/sw/siw/siw_verbs.h void siw_destroy_srq(struct ib_srq *base_srq, struct ib_udata *udata); udata 209 drivers/mailbox/mailbox-altera.c u32 *udata = (u32 *)data; udata 227 drivers/mailbox/mailbox-altera.c writel_relaxed(udata[MBOX_PTR], mbox->mbox_base + MAILBOX_PTR_REG); udata 228 drivers/mailbox/mailbox-altera.c writel_relaxed(udata[MBOX_CMD], mbox->mbox_base + MAILBOX_CMD_REG); udata 4481 drivers/media/pci/bt8xx/bttv-cards.c unsigned int udata; udata 4483 drivers/media/pci/bt8xx/bttv-cards.c udata = (data << 7) | ((yaddr&3) << 4) | (xaddr&0xf); udata 4484 drivers/media/pci/bt8xx/bttv-cards.c gpio_bits(0x1ff, udata); /* write ADDR and DAT */ udata 4485 drivers/media/pci/bt8xx/bttv-cards.c gpio_bits(0x1ff, udata | (1 << 8)); /* strobe high */ udata 4486 drivers/media/pci/bt8xx/bttv-cards.c gpio_bits(0x1ff, udata); /* strobe low */ udata 416 drivers/s390/char/vmur.c static ssize_t do_write(struct urdev *urd, const char __user *udata, udata 422 drivers/s390/char/vmur.c cpa = alloc_chan_prog(udata, count / reclen, reclen); udata 442 drivers/s390/char/vmur.c static ssize_t ur_write(struct file *file, const char __user *udata, udata 458 drivers/s390/char/vmur.c return do_write(urf->urd, udata, count, urf->dev_reclen, ppos); udata 4408 drivers/s390/net/qeth_core_main.c memcpy(qinfo->udata + qinfo->udata_offset, snmp_data, data_len); udata 4417 drivers/s390/net/qeth_core_main.c static int qeth_snmp_command(struct qeth_card *card, char __user *udata) udata 4434 drivers/s390/net/qeth_core_main.c ureq = (struct qeth_snmp_ureq __user *) udata; udata 4453 drivers/s390/net/qeth_core_main.c qinfo.udata = kzalloc(qinfo.udata_len, GFP_KERNEL); udata 4454 drivers/s390/net/qeth_core_main.c if (!qinfo.udata) { udata 4465 drivers/s390/net/qeth_core_main.c if (copy_to_user(udata, qinfo.udata, qinfo.udata_len)) udata 4469 drivers/s390/net/qeth_core_main.c kfree(qinfo.udata); udata 4502 drivers/s390/net/qeth_core_main.c static int qeth_query_oat_command(struct qeth_card *card, char __user *udata) udata 4519 drivers/s390/net/qeth_core_main.c if (copy_from_user(&oat_data, udata, udata 4559 drivers/s390/net/qeth_core_main.c if (copy_to_user(udata, &oat_data, udata 388 drivers/s390/net/qeth_core_mpc.h char *udata; udata 1657 drivers/s390/net/qeth_l3_main.c memset(qinfo->udata, 0, 4); udata 1661 drivers/s390/net/qeth_l3_main.c memcpy(qinfo->udata + qinfo->udata_offset, udata 1673 drivers/s390/net/qeth_l3_main.c memcpy(qinfo->udata, &qinfo->no_entries, 4); udata 1678 drivers/s390/net/qeth_l3_main.c memcpy(qinfo->udata + QETH_QARP_MASK_OFFSET, &qdata->reply_bits, 2); udata 1707 drivers/s390/net/qeth_l3_main.c static int qeth_l3_arp_query(struct qeth_card *card, char __user *udata) udata 1721 drivers/s390/net/qeth_l3_main.c if (copy_from_user(&qinfo, udata, 6)) { udata 1725 drivers/s390/net/qeth_l3_main.c qinfo.udata = kzalloc(qinfo.udata_len, GFP_KERNEL); udata 1726 drivers/s390/net/qeth_l3_main.c if (!qinfo.udata) { udata 1733 drivers/s390/net/qeth_l3_main.c if (copy_to_user(udata, qinfo.udata, 4)) udata 1741 drivers/s390/net/qeth_l3_main.c if (copy_to_user(udata, qinfo.udata, qinfo.udata_len)) { udata 1749 drivers/s390/net/qeth_l3_main.c kfree(qinfo.udata); udata 70 drivers/staging/emxx_udc/emxx_udc.c static inline void _nbu2ss_writel(void __iomem *address, u32 udata) udata 72 drivers/staging/emxx_udc/emxx_udc.c __raw_writel(udata, address); udata 77 drivers/staging/emxx_udc/emxx_udc.c static inline void _nbu2ss_bitset(void __iomem *address, u32 udata) udata 79 drivers/staging/emxx_udc/emxx_udc.c u32 reg_dt = __raw_readl(address) | (udata); udata 86 drivers/staging/emxx_udc/emxx_udc.c static inline void _nbu2ss_bitclr(void __iomem *address, u32 udata) udata 88 drivers/staging/emxx_udc/emxx_udc.c u32 reg_dt = __raw_readl(address) & ~(udata); udata 293 drivers/staging/iio/resolver/ad2s1210.c unsigned char udata; udata 297 drivers/staging/iio/resolver/ad2s1210.c ret = kstrtou8(buf, 16, &udata); udata 305 drivers/staging/iio/resolver/ad2s1210.c data = udata & AD2S1210_MSB_IS_LOW; udata 345 drivers/staging/iio/resolver/ad2s1210.c unsigned char udata; udata 348 drivers/staging/iio/resolver/ad2s1210.c ret = kstrtou8(buf, 10, &udata); udata 349 drivers/staging/iio/resolver/ad2s1210.c if (ret || udata < 10 || udata > 16) { udata 359 drivers/staging/iio/resolver/ad2s1210.c data |= (udata - 10) >> 1; udata 131 drivers/tee/tee_core.c struct tee_ioctl_shm_alloc_data __user *udata) udata 137 drivers/tee/tee_core.c if (copy_from_user(&data, udata, sizeof(data))) udata 152 drivers/tee/tee_core.c if (copy_to_user(udata, &data, sizeof(data))) udata 168 drivers/tee/tee_core.c struct tee_ioctl_shm_register_data __user *udata) udata 174 drivers/tee/tee_core.c if (copy_from_user(&data, udata, sizeof(data))) udata 190 drivers/tee/tee_core.c if (copy_to_user(udata, &data, sizeof(data))) udata 2026 drivers/usb/core/devio.c __u32 udata; udata 2029 drivers/usb/core/devio.c get_user(udata, &p32->data) || udata 2030 drivers/usb/core/devio.c put_user(compat_ptr(udata), &p->data)) udata 70 drivers/xen/privcmd.c static long privcmd_ioctl_hypercall(struct file *file, void __user *udata) udata 80 drivers/xen/privcmd.c if (copy_from_user(&hypercall, udata, sizeof(hypercall))) udata 253 drivers/xen/privcmd.c static long privcmd_ioctl_mmap(struct file *file, void __user *udata) udata 267 drivers/xen/privcmd.c if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) udata 446 drivers/xen/privcmd.c struct file *file, void __user *udata, int version) udata 459 drivers/xen/privcmd.c if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch))) udata 467 drivers/xen/privcmd.c if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch_v2))) udata 625 drivers/xen/privcmd.c static long privcmd_ioctl_dm_op(struct file *file, void __user *udata) udata 636 drivers/xen/privcmd.c if (copy_from_user(&kdata, udata, sizeof(kdata))) udata 710 drivers/xen/privcmd.c static long privcmd_ioctl_restrict(struct file *file, void __user *udata) udata 715 drivers/xen/privcmd.c if (copy_from_user(&dom, udata, sizeof(dom))) udata 727 drivers/xen/privcmd.c static long privcmd_ioctl_mmap_resource(struct file *file, void __user *udata) udata 737 drivers/xen/privcmd.c if (copy_from_user(&kdata, udata, sizeof(kdata))) udata 833 drivers/xen/privcmd.c void __user *udata = (void __user *) data; udata 837 drivers/xen/privcmd.c ret = privcmd_ioctl_hypercall(file, udata); udata 841 drivers/xen/privcmd.c ret = privcmd_ioctl_mmap(file, udata); udata 845 drivers/xen/privcmd.c ret = privcmd_ioctl_mmap_batch(file, udata, 1); udata 849 drivers/xen/privcmd.c ret = privcmd_ioctl_mmap_batch(file, udata, 2); udata 853 drivers/xen/privcmd.c ret = privcmd_ioctl_dm_op(file, udata); udata 857 drivers/xen/privcmd.c ret = privcmd_ioctl_restrict(file, udata); udata 861 drivers/xen/privcmd.c ret = privcmd_ioctl_mmap_resource(file, udata); udata 440 include/net/netfilter/nf_tables.h unsigned char *udata; udata 853 include/net/netfilter/nf_tables.h udata:1; udata 72 include/rdma/ib_umem.h struct ib_umem *ib_umem_get(struct ib_udata *udata, unsigned long addr, udata 86 include/rdma/ib_umem.h static inline struct ib_umem *ib_umem_get(struct ib_udata *udata, udata 133 include/rdma/ib_umem_odp.h struct ib_umem_odp *ib_umem_odp_get(struct ib_udata *udata, unsigned long addr, udata 135 include/rdma/ib_umem_odp.h struct ib_umem_odp *ib_umem_odp_alloc_implicit(struct ib_udata *udata, udata 194 include/rdma/ib_umem_odp.h static inline struct ib_umem_odp *ib_umem_odp_get(struct ib_udata *udata, udata 2285 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2362 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2366 include/rdma/ib_verbs.h int (*alloc_pd)(struct ib_pd *pd, struct ib_udata *udata); udata 2367 include/rdma/ib_verbs.h void (*dealloc_pd)(struct ib_pd *pd, struct ib_udata *udata); udata 2369 include/rdma/ib_verbs.h u32 flags, struct ib_udata *udata); udata 2375 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2378 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2380 include/rdma/ib_verbs.h void (*destroy_srq)(struct ib_srq *srq, struct ib_udata *udata); udata 2383 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2385 include/rdma/ib_verbs.h int qp_attr_mask, struct ib_udata *udata); udata 2388 include/rdma/ib_verbs.h int (*destroy_qp)(struct ib_qp *qp, struct ib_udata *udata); udata 2390 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2392 include/rdma/ib_verbs.h void (*destroy_cq)(struct ib_cq *cq, struct ib_udata *udata); udata 2393 include/rdma/ib_verbs.h int (*resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata); udata 2397 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2400 include/rdma/ib_verbs.h struct ib_pd *pd, struct ib_udata *udata); udata 2401 include/rdma/ib_verbs.h int (*dereg_mr)(struct ib_mr *mr, struct ib_udata *udata); udata 2403 include/rdma/ib_verbs.h u32 max_num_sg, struct ib_udata *udata); udata 2416 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2429 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2430 include/rdma/ib_verbs.h int (*dealloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata); udata 2433 include/rdma/ib_verbs.h int domain, struct ib_udata *udata); udata 2454 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2455 include/rdma/ib_verbs.h void (*destroy_wq)(struct ib_wq *wq, struct ib_udata *udata); udata 2457 include/rdma/ib_verbs.h u32 wq_attr_mask, struct ib_udata *udata); udata 2461 include/rdma/ib_verbs.h struct ib_udata *udata); udata 2808 include/rdma/ib_verbs.h static inline int ib_copy_from_udata(void *dest, struct ib_udata *udata, size_t len) udata 2810 include/rdma/ib_verbs.h return copy_from_user(dest, udata->inbuf, len) ? -EFAULT : 0; udata 2813 include/rdma/ib_verbs.h static inline int ib_copy_to_udata(struct ib_udata *udata, void *src, size_t len) udata 2815 include/rdma/ib_verbs.h return copy_to_user(udata->outbuf, src, len) ? -EFAULT : 0; udata 2836 include/rdma/ib_verbs.h static inline bool ib_is_udata_cleared(struct ib_udata *udata, udata 2840 include/rdma/ib_verbs.h return ib_is_buffer_cleared(udata->inbuf + offset, len); udata 3353 include/rdma/ib_verbs.h void ib_dealloc_pd_user(struct ib_pd *pd, struct ib_udata *udata); udata 3397 include/rdma/ib_verbs.h struct ib_udata *udata); udata 3482 include/rdma/ib_verbs.h int rdma_destroy_ah_user(struct ib_ah *ah, u32 flags, struct ib_udata *udata); udata 3542 include/rdma/ib_verbs.h int ib_destroy_srq_user(struct ib_srq *srq, struct ib_udata *udata); udata 3583 include/rdma/ib_verbs.h struct ib_udata *udata); udata 3616 include/rdma/ib_verbs.h struct ib_udata *udata); udata 3652 include/rdma/ib_verbs.h int ib_destroy_qp_user(struct ib_qp *qp, struct ib_udata *udata); udata 3726 include/rdma/ib_verbs.h const char *caller, struct ib_udata *udata); udata 3741 include/rdma/ib_verbs.h struct ib_udata *udata) udata 3744 include/rdma/ib_verbs.h KBUILD_MODNAME, udata); udata 3789 include/rdma/ib_verbs.h void ib_free_cq_user(struct ib_cq *cq, struct ib_udata *udata); udata 3849 include/rdma/ib_verbs.h int ib_destroy_cq_user(struct ib_cq *cq, struct ib_udata *udata); udata 4119 include/rdma/ib_verbs.h int ib_dereg_mr_user(struct ib_mr *mr, struct ib_udata *udata); udata 4136 include/rdma/ib_verbs.h u32 max_num_sg, struct ib_udata *udata); udata 4246 include/rdma/ib_verbs.h int ib_dealloc_xrcd(struct ib_xrcd *xrcd, struct ib_udata *udata); udata 4325 include/rdma/ib_verbs.h int ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata); udata 387 include/rdma/rdma_vt.h int attr_mask, struct ib_udata *udata); udata 391 include/rdma/rdma_vt.h int attr_mask, struct ib_udata *udata); udata 677 include/rdma/uverbs_ioctl.h #define rdma_udata_to_drv_context(udata, drv_dev_struct, member) \ udata 678 include/rdma/uverbs_ioctl.h (udata ? container_of(container_of(udata, struct uverbs_attr_bundle, \ udata 182 net/bluetooth/hidp/core.c unsigned char *udata = skb->data + 1; udata 189 net/bluetooth/hidp/core.c input_report_key(dev, hidp_keycode[i + 224], (udata[0] >> i) & 1); udata 193 net/bluetooth/hidp/core.c if (!memcmp(udata + 2, hidp_mkeyspat, 6)) udata 197 net/bluetooth/hidp/core.c if (keys[i] > 3 && memscan(udata + 2, keys[i], 6) == udata + 8) { udata 204 net/bluetooth/hidp/core.c if (udata[i] > 3 && memscan(keys + 2, udata[i], 6) == keys + 8) { udata 205 net/bluetooth/hidp/core.c if (hidp_keycode[udata[i]]) udata 206 net/bluetooth/hidp/core.c input_report_key(dev, hidp_keycode[udata[i]], 1); udata 208 net/bluetooth/hidp/core.c BT_ERR("Unknown key (scancode %#x) pressed.", udata[i]); udata 212 net/bluetooth/hidp/core.c memcpy(keys, udata, 8); udata 2387 net/netfilter/nf_tables_api.c if (rule->udata) { udata 2388 net/netfilter/nf_tables_api.c struct nft_userdata *udata = nft_userdata(rule); udata 2389 net/netfilter/nf_tables_api.c if (nla_put(skb, NFTA_RULE_USERDATA, udata->len + 1, udata 2390 net/netfilter/nf_tables_api.c udata->data) < 0) udata 2727 net/netfilter/nf_tables_api.c struct nft_userdata *udata; udata 2835 net/netfilter/nf_tables_api.c rule->udata = ulen ? 1 : 0; udata 2838 net/netfilter/nf_tables_api.c udata = nft_userdata(rule); udata 2839 net/netfilter/nf_tables_api.c udata->len = ulen - 1; udata 2840 net/netfilter/nf_tables_api.c nla_memcpy(udata->data, nla[NFTA_RULE_USERDATA], ulen); udata 3356 net/netfilter/nf_tables_api.c if (nla_put(skb, NFTA_SET_USERDATA, set->udlen, set->udata)) udata 3571 net/netfilter/nf_tables_api.c unsigned char *udata; udata 3728 net/netfilter/nf_tables_api.c udata = NULL; udata 3730 net/netfilter/nf_tables_api.c udata = set->data + size; udata 3731 net/netfilter/nf_tables_api.c nla_memcpy(udata, nla[NFTA_SET_USERDATA], udlen); udata 3747 net/netfilter/nf_tables_api.c set->udata = udata; udata 4064 net/netfilter/nf_tables_api.c struct nft_userdata *udata; udata 4066 net/netfilter/nf_tables_api.c udata = nft_set_ext_userdata(ext); udata 4068 net/netfilter/nf_tables_api.c udata->len + 1, udata->data)) udata 4502 net/netfilter/nf_tables_api.c struct nft_userdata *udata; udata 4658 net/netfilter/nf_tables_api.c udata = nft_set_ext_userdata(ext); udata 4659 net/netfilter/nf_tables_api.c udata->len = ulen - 1; udata 4660 net/netfilter/nf_tables_api.c nla_memcpy(&udata->data, nla[NFTA_SET_ELEM_USERDATA], ulen); udata 193 security/apparmor/include/policy.h u32 mask, struct aa_loaddata *udata); udata 72 security/apparmor/include/policy_unpack.h int aa_unpack(struct aa_loaddata *udata, struct list_head *lh, const char **ns); udata 857 security/apparmor/policy.c u32 mask, struct aa_loaddata *udata) udata 868 security/apparmor/policy.c aa_get_loaddata(udata); udata 870 security/apparmor/policy.c error = aa_unpack(udata, &lh, &ns_name); udata 915 security/apparmor/policy.c if (aa_rawdata_eq(rawdata_ent, udata)) { udata 921 security/apparmor/policy.c aa_put_loaddata(udata); udata 922 security/apparmor/policy.c udata = tmp; udata 931 security/apparmor/policy.c ent->new->rawdata = aa_get_loaddata(udata); udata 971 security/apparmor/policy.c if (!udata->dents[AAFS_LOADDATA_DIR]) { udata 972 security/apparmor/policy.c error = __aa_fs_create_rawdata(ns, udata); udata 999 security/apparmor/policy.c __aa_loaddata_update(udata, ns->revision); udata 1045 security/apparmor/policy.c aa_put_loaddata(udata); udata 1049 security/apparmor/policy.c return udata->size; udata 1054 security/apparmor/policy_unpack.c int aa_unpack(struct aa_loaddata *udata, struct list_head *lh, udata 1061 security/apparmor/policy_unpack.c .start = udata->data, udata 1062 security/apparmor/policy_unpack.c .end = udata->data + udata->size, udata 1063 security/apparmor/policy_unpack.c .pos = udata->data, udata 1101 security/apparmor/policy_unpack.c udata->abi = e.version & K_ABI_MASK; udata 1103 security/apparmor/policy_unpack.c udata->hash = aa_calc_hash(udata->data, udata->size); udata 1104 security/apparmor/policy_unpack.c if (IS_ERR(udata->hash)) { udata 1105 security/apparmor/policy_unpack.c error = PTR_ERR(udata->hash); udata 1106 security/apparmor/policy_unpack.c udata->hash = NULL; udata 285 sound/core/oss/rate.c unsigned long udata) udata 81 sound/i2c/cs8427.c static int snd_cs8427_select_corudata(struct snd_i2c_device *device, int udata) udata 86 sound/i2c/cs8427.c udata = udata ? CS8427_BSEL : 0; udata 87 sound/i2c/cs8427.c if (udata != (chip->regmap[CS8427_REG_CSDATABUF] & udata)) { udata 89 sound/i2c/cs8427.c chip->regmap[CS8427_REG_CSDATABUF] |= udata; udata 99 sound/i2c/cs8427.c int udata, udata 104 sound/i2c/cs8427.c char *hw_data = udata ? udata 111 sound/i2c/cs8427.c if ((err = snd_cs8427_select_corudata(device, udata)) < 0) udata 114 sound/i2c/cs8427.c if (udata) {