Lines Matching defs:udata

295 				struct ib_udata *udata)
322 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) {
356 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata)
362 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd);
366 if (udata) {
367 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) {
376 static int mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata)
384 struct ib_udata *udata)
401 struct ib_udata *udata)
405 udata, struct mthca_ucontext, ibucontext);
412 if (udata) {
413 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)))
428 &init_attr->attr, srq, udata);
430 if (err && udata)
437 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof(__u32))) {
445 static int mthca_destroy_srq(struct ib_srq *srq, struct ib_udata *udata)
447 if (udata) {
450 udata,
464 struct ib_udata *udata)
467 udata, struct mthca_ucontext, ibucontext);
484 if (udata) {
485 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) {
519 &init_attr->cap, qp, udata);
521 if (err && udata) {
554 qp, udata);
577 static int mthca_destroy_qp(struct ib_qp *qp, struct ib_udata *udata)
579 if (udata) {
582 udata,
603 struct ib_udata *udata)
612 udata, struct mthca_ucontext, ibucontext);
620 if (udata) {
621 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)))
639 if (udata) {
649 udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num,
654 if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) {
665 if (udata)
670 if (udata)
722 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
747 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) {
798 static int mthca_destroy_cq(struct ib_cq *cq, struct ib_udata *udata)
800 if (udata) {
803 udata,
853 u64 virt, int acc, struct ib_udata *udata)
858 udata, struct mthca_ucontext, ibucontext);
866 if (udata->inlen < sizeof ucmd) {
874 } else if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd))
947 static int mthca_dereg_mr(struct ib_mr *mr, struct ib_udata *udata)