Lines Matching refs:udata

749 			struct ib_udata *udata, unsigned long addr)  in alloc_qp_buf()  argument
762 udata, addr); in alloc_qp_buf()
785 struct ib_udata *udata, in user_qp_has_sdb() argument
790 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_sdb()
792 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb()
797 struct ib_udata *udata, in user_qp_has_rdb() argument
801 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_rdb()
814 struct ib_udata *udata, in qp_mmap_entry() argument
818 rdma_udata_to_drv_context(udata, in qp_mmap_entry()
844 struct ib_udata *udata, in alloc_user_qp_db() argument
848 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context(udata, in alloc_user_qp_db()
853 if (user_qp_has_sdb(hr_dev, init_attr, udata, resp, ucmd)) { in alloc_user_qp_db()
864 if (user_qp_has_rdb(hr_dev, init_attr, udata, resp)) { in alloc_user_qp_db()
918 struct ib_udata *udata, in alloc_qp_db() argument
927 if (udata) { in alloc_qp_db()
929 ret = qp_mmap_entry(hr_qp, hr_dev, udata, resp); in alloc_qp_db()
934 ret = alloc_user_qp_db(hr_dev, hr_qp, init_attr, udata, ucmd, in alloc_qp_db()
954 struct ib_udata *udata) in free_qp_db() argument
957 udata, struct hns_roce_ucontext, ibucontext); in free_qp_db()
959 if (udata) { in free_qp_db()
1066 struct ib_udata *udata, in set_qp_param() argument
1079 hns_roce_qp_has_rq(init_attr), !!udata); in set_qp_param()
1086 if (udata) { in set_qp_param()
1087 ret = ib_copy_from_udata(ucmd, udata, in set_qp_param()
1088 min(udata->inlen, sizeof(*ucmd))); in set_qp_param()
1095 uctx = rdma_udata_to_drv_context(udata, struct hns_roce_ucontext, in set_qp_param()
1124 struct ib_udata *udata, in hns_roce_create_qp_common() argument
1142 ret = set_qp_param(hr_dev, hr_qp, init_attr, udata, &ucmd); in hns_roce_create_qp_common()
1148 if (!udata) { in hns_roce_create_qp_common()
1157 ret = alloc_qp_buf(hr_dev, hr_qp, init_attr, udata, ucmd.buf_addr); in hns_roce_create_qp_common()
1169 ret = alloc_qp_db(hr_dev, hr_qp, init_attr, udata, &ucmd, &resp); in hns_roce_create_qp_common()
1189 if (udata) { in hns_roce_create_qp_common()
1191 ret = ib_copy_to_udata(udata, &resp, in hns_roce_create_qp_common()
1192 min(udata->outlen, sizeof(resp))); in hns_roce_create_qp_common()
1217 free_qp_db(hr_dev, hr_qp, udata); in hns_roce_create_qp_common()
1230 struct ib_udata *udata) in hns_roce_qp_destroy() argument
1240 free_qp_db(hr_dev, hr_qp, udata); in hns_roce_qp_destroy()
1274 struct ib_udata *udata) in hns_roce_create_qp() argument
1281 ret = check_qp_type(hr_dev, init_attr->qp_type, !!udata); in hns_roce_create_qp()
1293 ret = hns_roce_create_qp_common(hr_dev, init_attr, udata, hr_qp); in hns_roce_create_qp()
1390 int attr_mask, struct ib_udata *udata) in hns_roce_modify_qp() argument
1434 new_state, udata); in hns_roce_modify_qp()
1438 if (udata && udata->outlen) { in hns_roce_modify_qp()
1441 ret = ib_copy_to_udata(udata, &resp, in hns_roce_modify_qp()
1442 min(udata->outlen, sizeof(resp))); in hns_roce_modify_qp()