Lines Matching defs:udata
80 int siw_alloc_ucontext(struct ib_ucontext *base_ctx, struct ib_udata *udata)
95 if (udata->outlen < sizeof(uresp)) {
99 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
124 struct ib_udata *udata)
128 if (udata->inlen || udata->outlen)
226 int siw_alloc_pd(struct ib_pd *pd, struct ib_udata *udata)
239 int siw_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata)
292 * @udata: used to provide QP ID, SQ and RQ size back to user.
296 struct ib_udata *udata)
303 rdma_udata_to_drv_context(udata, struct siw_ucontext,
381 if (udata)
413 if (udata)
435 if (udata) {
465 if (udata->outlen < sizeof(uresp)) {
469 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
542 int attr_mask, struct ib_udata *udata)
590 int siw_destroy_qp(struct ib_qp *base_qp, struct ib_udata *udata)
594 rdma_udata_to_drv_context(udata, struct siw_ucontext,
1100 int siw_destroy_cq(struct ib_cq *base_cq, struct ib_udata *udata)
1105 rdma_udata_to_drv_context(udata, struct siw_ucontext,
1128 * @udata: relates to user context
1132 struct ib_udata *udata)
1155 if (udata)
1173 if (udata) {
1176 rdma_udata_to_drv_context(udata, struct siw_ucontext,
1192 if (udata->outlen < sizeof(uresp)) {
1196 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
1207 rdma_udata_to_drv_context(udata, struct siw_ucontext,
1288 * @udata: points to user context, unused.
1290 int siw_dereg_mr(struct ib_mr *base_mr, struct ib_udata *udata)
1315 * @udata: user buffer to communicate STag and Key.
1318 u64 rnic_va, int rights, struct ib_udata *udata)
1370 if (udata) {
1374 if (udata->inlen < sizeof(ureq)) {
1378 rv = ib_copy_from_udata(&ureq, udata, sizeof(ureq));
1387 if (udata->outlen < sizeof(uresp)) {
1391 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
1589 * @udata: points to user context
1592 struct ib_srq_init_attr *init_attrs, struct ib_udata *udata)
1598 rdma_udata_to_drv_context(udata, struct siw_ucontext,
1621 srq->is_kernel_res = !udata;
1623 if (udata)
1633 if (udata) {
1647 if (udata->outlen < sizeof(uresp)) {
1651 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));
1682 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
1742 int siw_destroy_srq(struct ib_srq *base_srq, struct ib_udata *udata)
1747 rdma_udata_to_drv_context(udata, struct siw_ucontext,