Lines Matching refs:udata
93 struct ib_udata *udata) in mana_ib_create_qp_rss() argument
114 if (!udata || udata->inlen < sizeof(ucmd)) in mana_ib_create_qp_rss()
117 ret = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_qp_rss()
234 ret = ib_copy_to_udata(udata, &resp, sizeof(resp)); in mana_ib_create_qp_rss()
264 struct ib_udata *udata) in mana_ib_create_qp_raw() argument
273 rdma_udata_to_drv_context(udata, struct mana_ib_ucontext, in mana_ib_create_qp_raw()
286 if (!mana_ucontext || udata->inlen < sizeof(ucmd)) in mana_ib_create_qp_raw()
289 err = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_qp_raw()
376 err = ib_copy_to_udata(udata, &resp, sizeof(resp)); in mana_ib_create_qp_raw()
418 struct ib_qp_init_attr *attr, struct ib_udata *udata) in mana_ib_create_rc_qp() argument
429 if (!udata || udata->inlen < sizeof(ucmd)) in mana_ib_create_rc_qp()
432 mana_ucontext = rdma_udata_to_drv_context(udata, struct mana_ib_ucontext, ibucontext); in mana_ib_create_rc_qp()
435 err = ib_copy_from_udata(&ucmd, udata, min(sizeof(ucmd), udata->inlen)); in mana_ib_create_rc_qp()
465 if (udata) { in mana_ib_create_rc_qp()
472 err = ib_copy_to_udata(udata, &resp, min(sizeof(resp), udata->outlen)); in mana_ib_create_rc_qp()
494 struct ib_udata *udata) in mana_ib_create_qp() argument
501 udata); in mana_ib_create_qp()
503 return mana_ib_create_qp_raw(ibqp, ibqp->pd, attr, udata); in mana_ib_create_qp()
505 return mana_ib_create_rc_qp(ibqp, ibqp->pd, attr, udata); in mana_ib_create_qp()
515 int attr_mask, struct ib_udata *udata) in mana_ib_gd_modify_qp() argument
578 int attr_mask, struct ib_udata *udata) in mana_ib_modify_qp() argument
582 return mana_ib_gd_modify_qp(ibqp, attr, attr_mask, udata); in mana_ib_modify_qp()
591 struct ib_udata *udata) in mana_ib_destroy_qp_rss() argument
615 static int mana_ib_destroy_qp_raw(struct mana_ib_qp *qp, struct ib_udata *udata) in mana_ib_destroy_qp_raw() argument
637 static int mana_ib_destroy_rc_qp(struct mana_ib_qp *qp, struct ib_udata *udata) in mana_ib_destroy_rc_qp() argument
655 int mana_ib_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) in mana_ib_destroy_qp() argument
663 udata); in mana_ib_destroy_qp()
665 return mana_ib_destroy_qp_raw(qp, udata); in mana_ib_destroy_qp()
667 return mana_ib_destroy_rc_qp(qp, udata); in mana_ib_destroy_qp()