Lines Matching refs:udata

287 				struct ib_udata *udata)  in mthca_alloc_ucontext()  argument
314 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in mthca_alloc_ucontext()
348 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in mthca_alloc_pd() argument
354 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); in mthca_alloc_pd()
358 if (udata) { in mthca_alloc_pd()
359 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd()
368 static int mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in mthca_dealloc_pd() argument
376 struct ib_udata *udata) in mthca_ah_create() argument
393 struct ib_udata *udata) in mthca_create_srq() argument
397 udata, struct mthca_ucontext, ibucontext); in mthca_create_srq()
404 if (udata) { in mthca_create_srq()
405 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mthca_create_srq()
420 &init_attr->attr, srq, udata); in mthca_create_srq()
422 if (err && udata) in mthca_create_srq()
429 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof(__u32))) { in mthca_create_srq()
437 static int mthca_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) in mthca_destroy_srq() argument
439 if (udata) { in mthca_destroy_srq()
442 udata, in mthca_destroy_srq()
456 struct ib_udata *udata) in mthca_create_qp() argument
459 udata, struct mthca_ucontext, ibucontext); in mthca_create_qp()
473 if (udata) { in mthca_create_qp()
474 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mthca_create_qp()
504 &init_attr->cap, qp, udata); in mthca_create_qp()
506 if (err && udata) { in mthca_create_qp()
530 udata); in mthca_create_qp()
552 static int mthca_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) in mthca_destroy_qp() argument
554 if (udata) { in mthca_destroy_qp()
557 udata, in mthca_destroy_qp()
579 struct ib_udata *udata = &attrs->driver_udata; in mthca_create_cq() local
587 udata, struct mthca_ucontext, ibucontext); in mthca_create_cq()
595 if (udata) { in mthca_create_cq()
596 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mthca_create_cq()
614 if (udata) { in mthca_create_cq()
624 udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num, in mthca_create_cq()
629 if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) { in mthca_create_cq()
640 if (udata) in mthca_create_cq()
645 if (udata) in mthca_create_cq()
697 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mthca_resize_cq() argument
722 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_resize_cq()
773 static int mthca_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) in mthca_destroy_cq() argument
775 if (udata) { in mthca_destroy_cq()
778 udata, in mthca_destroy_cq()
828 u64 virt, int acc, struct ib_udata *udata) in mthca_reg_user_mr() argument
833 udata, struct mthca_ucontext, ibucontext); in mthca_reg_user_mr()
841 if (udata->inlen < sizeof ucmd) { in mthca_reg_user_mr()
849 } else if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) in mthca_reg_user_mr()
922 static int mthca_dereg_mr(struct ib_mr *mr, struct ib_udata *udata) in mthca_dereg_mr() argument