• Home
  • Raw
  • Download

Lines Matching refs:udata

748 			struct ib_udata *udata, unsigned long addr)  in alloc_qp_buf()  argument
761 udata, addr); in alloc_qp_buf()
784 struct ib_udata *udata, in user_qp_has_sdb() argument
789 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_sdb()
791 udata->inlen >= offsetofend(typeof(*ucmd), sdb_addr)); in user_qp_has_sdb()
796 struct ib_udata *udata, in user_qp_has_rdb() argument
800 udata->outlen >= offsetofend(typeof(*resp), cap_flags) && in user_qp_has_rdb()
813 struct ib_udata *udata, in qp_mmap_entry() argument
817 rdma_udata_to_drv_context(udata, in qp_mmap_entry()
843 struct ib_udata *udata, in alloc_user_qp_db() argument
847 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context(udata, in alloc_user_qp_db()
852 if (user_qp_has_sdb(hr_dev, init_attr, udata, resp, ucmd)) { in alloc_user_qp_db()
863 if (user_qp_has_rdb(hr_dev, init_attr, udata, resp)) { in alloc_user_qp_db()
917 struct ib_udata *udata, in alloc_qp_db() argument
926 if (udata) { in alloc_qp_db()
928 ret = qp_mmap_entry(hr_qp, hr_dev, udata, resp); in alloc_qp_db()
933 ret = alloc_user_qp_db(hr_dev, hr_qp, init_attr, udata, ucmd, in alloc_qp_db()
953 struct ib_udata *udata) in free_qp_db() argument
956 udata, struct hns_roce_ucontext, ibucontext); in free_qp_db()
958 if (udata) { in free_qp_db()
1011 struct ib_udata *udata, in set_qp_param() argument
1024 hns_roce_qp_has_rq(init_attr), !!udata); in set_qp_param()
1031 if (udata) { in set_qp_param()
1032 ret = ib_copy_from_udata(ucmd, udata, in set_qp_param()
1033 min(udata->inlen, sizeof(*ucmd))); in set_qp_param()
1040 uctx = rdma_udata_to_drv_context(udata, struct hns_roce_ucontext, in set_qp_param()
1064 struct ib_udata *udata, in hns_roce_create_qp_common() argument
1082 ret = set_qp_param(hr_dev, hr_qp, init_attr, udata, &ucmd); in hns_roce_create_qp_common()
1088 if (!udata) { in hns_roce_create_qp_common()
1097 ret = alloc_qp_buf(hr_dev, hr_qp, init_attr, udata, ucmd.buf_addr); in hns_roce_create_qp_common()
1109 ret = alloc_qp_db(hr_dev, hr_qp, init_attr, udata, &ucmd, &resp); in hns_roce_create_qp_common()
1129 if (udata) { in hns_roce_create_qp_common()
1131 ret = ib_copy_to_udata(udata, &resp, in hns_roce_create_qp_common()
1132 min(udata->outlen, sizeof(resp))); in hns_roce_create_qp_common()
1157 free_qp_db(hr_dev, hr_qp, udata); in hns_roce_create_qp_common()
1168 struct ib_udata *udata) in hns_roce_qp_destroy() argument
1178 free_qp_db(hr_dev, hr_qp, udata); in hns_roce_qp_destroy()
1211 struct ib_udata *udata) in hns_roce_create_qp() argument
1219 ret = check_qp_type(hr_dev, init_attr->qp_type, !!udata); in hns_roce_create_qp()
1231 ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, hr_qp); in hns_roce_create_qp()
1324 int attr_mask, struct ib_udata *udata) in hns_roce_modify_qp() argument
1367 new_state, udata); in hns_roce_modify_qp()