Lines Matching refs:udata
80 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata) in siw_alloc_ucontext() argument
95 if (udata->outlen < sizeof(uresp)) { in siw_alloc_ucontext()
99 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext()
124 struct ib_udata *udata) in siw_query_device() argument
128 if (udata->inlen || udata->outlen) in siw_query_device()
226 int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_alloc_pd() argument
239 int siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in siw_dealloc_pd() argument
296 struct ib_udata *udata) in siw_create_qp() argument
303 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_qp()
381 if (udata) in siw_create_qp()
413 if (udata) in siw_create_qp()
435 if (udata) { in siw_create_qp()
465 if (udata->outlen < sizeof(uresp)) { in siw_create_qp()
469 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_create_qp()
542 int attr_mask, struct ib_udata *udata) in siw_verbs_modify_qp() argument
590 int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata) in siw_destroy_qp() argument
594 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_destroy_qp()
1100 int siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata) in siw_destroy_cq() argument
1105 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_destroy_cq()
1132 struct ib_udata *udata) in siw_create_cq() argument
1155 if (udata) in siw_create_cq()
1173 if (udata) { in siw_create_cq()
1176 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_cq()
1192 if (udata->outlen < sizeof(uresp)) { in siw_create_cq()
1196 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_create_cq()
1207 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_cq()
1290 int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata) in siw_dereg_mr() argument
1318 u64 rnic_va, int rights, struct ib_udata *udata) in siw_reg_user_mr() argument
1370 if (udata) { in siw_reg_user_mr()
1374 if (udata->inlen < sizeof(ureq)) { in siw_reg_user_mr()
1378 rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq)); in siw_reg_user_mr()
1387 if (udata->outlen < sizeof(uresp)) { in siw_reg_user_mr()
1391 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_reg_user_mr()
1592 struct ib_srq_init_attr *init_attrs, struct ib_udata *udata) in siw_create_srq() argument
1598 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_create_srq()
1621 srq->is_kernel_res = !udata; in siw_create_srq()
1623 if (udata) in siw_create_srq()
1633 if (udata) { in siw_create_srq()
1647 if (udata->outlen < sizeof(uresp)) { in siw_create_srq()
1651 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_create_srq()
1682 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata) in siw_modify_srq() argument
1742 int siw_destroy_srq(struct ib_srq *base_srq, struct ib_udata *udata) in siw_destroy_srq() argument
1747 rdma_udata_to_drv_context(udata, struct siw_ucontext, in siw_destroy_srq()