• Home
  • Raw
  • Download

Lines Matching refs:udata

78 			       struct ib_udata *udata)  in iwch_alloc_ucontext()  argument
91 static void iwch_destroy_cq(struct ib_cq *ib_cq, struct ib_udata *udata) in iwch_destroy_cq() argument
107 struct ib_udata *udata) in iwch_create_cq() argument
122 if (udata) { in iwch_create_cq()
124 if (ib_copy_from_udata(&ureq, udata, sizeof(ureq))) in iwch_create_cq()
147 if (cxio_create_cq(&rhp->rdev, &chp->cq, !udata)) in iwch_create_cq()
161 if (udata) { in iwch_create_cq()
164 udata, struct iwch_ucontext, ibucontext); in iwch_create_cq()
168 iwch_destroy_cq(&chp->ibcq, udata); in iwch_create_cq()
179 if (udata->outlen < sizeof(uresp)) { in iwch_create_cq()
192 if (ib_copy_to_udata(udata, &uresp, resplen)) { in iwch_create_cq()
194 iwch_destroy_cq(&chp->ibcq, udata); in iwch_create_cq()
293 static void iwch_deallocate_pd(struct ib_pd *pd, struct ib_udata *udata) in iwch_deallocate_pd() argument
304 static int iwch_allocate_pd(struct ib_pd *pd, struct ib_udata *udata) in iwch_allocate_pd() argument
319 if (udata) { in iwch_allocate_pd()
322 if (ib_copy_to_udata(udata, &resp, sizeof(resp))) { in iwch_allocate_pd()
323 iwch_deallocate_pd(&php->ibpd, udata); in iwch_allocate_pd()
331 static int iwch_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata) in iwch_dereg_mr() argument
434 u64 virt, int acc, struct ib_udata *udata) in iwch_reg_user_mr() argument
454 mhp->umem = ib_umem_get(udata, start, length, acc, 0); in iwch_reg_user_mr()
507 if (udata && !t3a_device(rhp)) { in iwch_reg_user_mr()
513 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in iwch_reg_user_mr()
514 iwch_dereg_mr(&mhp->ibmr, udata); in iwch_reg_user_mr()
532 struct ib_udata *udata) in iwch_alloc_mw() argument
586 u32 max_num_sg, struct ib_udata *udata) in iwch_alloc_mr() argument
665 static int iwch_destroy_qp(struct ib_qp *ib_qp, struct ib_udata *udata) in iwch_destroy_qp() argument
684 ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, in iwch_destroy_qp()
697 struct ib_udata *udata) in iwch_create_qp() argument
745 ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, in iwch_create_qp()
758 if (cxio_create_qp(&rhp->rdev, !udata, &qhp->wq, in iwch_create_qp()
802 if (udata) { in iwch_create_qp()
808 iwch_destroy_qp(&qhp->ibqp, udata); in iwch_create_qp()
815 iwch_destroy_qp(&qhp->ibqp, udata); in iwch_create_qp()
829 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in iwch_create_qp()
832 iwch_destroy_qp(&qhp->ibqp, udata); in iwch_create_qp()
854 int attr_mask, struct ib_udata *udata) in iwch_ib_modify_qp() argument