• Home
  • Raw
  • Download

Lines Matching refs:udata

305 				struct ib_udata *udata)  in mthca_alloc_ucontext()  argument
332 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in mthca_alloc_ucontext()
366 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata) in mthca_alloc_pd() argument
372 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd); in mthca_alloc_pd()
376 if (udata) { in mthca_alloc_pd()
377 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) { in mthca_alloc_pd()
386 static void mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata) in mthca_dealloc_pd() argument
392 u32 flags, struct ib_udata *udata) in mthca_ah_create() argument
408 struct ib_udata *udata) in mthca_create_srq() argument
412 udata, struct mthca_ucontext, ibucontext); in mthca_create_srq()
419 if (udata) { in mthca_create_srq()
420 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mthca_create_srq()
435 &init_attr->attr, srq, udata); in mthca_create_srq()
437 if (err && udata) in mthca_create_srq()
444 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof(__u32))) { in mthca_create_srq()
452 static void mthca_destroy_srq(struct ib_srq *srq, struct ib_udata *udata) in mthca_destroy_srq() argument
454 if (udata) { in mthca_destroy_srq()
457 udata, in mthca_destroy_srq()
470 struct ib_udata *udata) in mthca_create_qp() argument
473 udata, struct mthca_ucontext, ibucontext); in mthca_create_qp()
490 if (udata) { in mthca_create_qp()
491 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_create_qp()
525 &init_attr->cap, qp, udata); in mthca_create_qp()
527 if (err && udata) { in mthca_create_qp()
545 if (udata) in mthca_create_qp()
559 to_msqp(qp), udata); in mthca_create_qp()
581 static int mthca_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) in mthca_destroy_qp() argument
583 if (udata) { in mthca_destroy_qp()
586 udata, in mthca_destroy_qp()
606 struct ib_udata *udata) in mthca_create_cq() argument
615 udata, struct mthca_ucontext, ibucontext); in mthca_create_cq()
623 if (udata) { in mthca_create_cq()
624 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd))) in mthca_create_cq()
642 if (udata) { in mthca_create_cq()
652 udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num, in mthca_create_cq()
657 if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) { in mthca_create_cq()
668 if (udata) in mthca_create_cq()
673 if (udata) in mthca_create_cq()
725 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mthca_resize_cq() argument
750 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) { in mthca_resize_cq()
801 static void mthca_destroy_cq(struct ib_cq *cq, struct ib_udata *udata) in mthca_destroy_cq() argument
803 if (udata) { in mthca_destroy_cq()
806 udata, in mthca_destroy_cq()
855 u64 virt, int acc, struct ib_udata *udata) in mthca_reg_user_mr() argument
860 udata, struct mthca_ucontext, ibucontext); in mthca_reg_user_mr()
868 if (udata->inlen < sizeof ucmd) { in mthca_reg_user_mr()
876 } else if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) in mthca_reg_user_mr()
883 mr->umem = ib_umem_get(udata, start, length, acc, in mthca_reg_user_mr()
951 static int mthca_dereg_mr(struct ib_mr *mr, struct ib_udata *udata) in mthca_dereg_mr() argument