Lines Matching refs:udata

287 				struct ib_udata *udata)
314 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) {
348 static int mthca_alloc_pd(struct ib_pd *ibpd, struct ib_udata *udata)
354 err = mthca_pd_alloc(to_mdev(ibdev), !udata, pd);
358 if (udata) {
359 if (ib_copy_to_udata(udata, &pd->pd_num, sizeof (__u32))) {
368 static int mthca_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata)
376 struct ib_udata *udata)
393 struct ib_udata *udata)
397 udata, struct mthca_ucontext, ibucontext);
404 if (udata) {
405 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)))
420 &init_attr->attr, srq, udata);
422 if (err && udata)
429 if (context && ib_copy_to_udata(udata, &srq->srqn, sizeof(__u32))) {
437 static int mthca_destroy_srq(struct ib_srq *srq, struct ib_udata *udata)
439 if (udata) {
442 udata,
456 struct ib_udata *udata)
459 udata, struct mthca_ucontext, ibucontext);
473 if (udata) {
474 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)))
504 &init_attr->cap, qp, udata);
506 if (err && udata) {
530 udata);
552 static int mthca_destroy_qp(struct ib_qp *qp, struct ib_udata *udata)
554 if (udata) {
557 udata,
577 struct ib_udata *udata)
586 udata, struct mthca_ucontext, ibucontext);
594 if (udata) {
595 if (ib_copy_from_udata(&ucmd, udata, sizeof(ucmd)))
613 if (udata) {
623 udata ? ucmd.pdn : to_mdev(ibdev)->driver_pd.pd_num,
628 if (udata && ib_copy_to_udata(udata, &cq->cqn, sizeof(__u32))) {
639 if (udata)
644 if (udata)
696 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
721 if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd)) {
772 static int mthca_destroy_cq(struct ib_cq *cq, struct ib_udata *udata)
774 if (udata) {
777 udata,
827 u64 virt, int acc, struct ib_udata *udata)
832 udata, struct mthca_ucontext, ibucontext);
840 if (udata->inlen < sizeof ucmd) {
848 } else if (ib_copy_from_udata(&ucmd, udata, sizeof ucmd))
921 static int mthca_dereg_mr(struct ib_mr *mr, struct ib_udata *udata)