Lines Matching refs:uresp

305 	struct irdma_alloc_ucontext_resp uresp = {};  in irdma_alloc_ucontext()  local
320 if (udata->outlen < sizeof(uresp)) { in irdma_alloc_ucontext()
325 uresp.max_qps = iwdev->rf->max_qp; in irdma_alloc_ucontext()
326 uresp.max_pds = iwdev->rf->sc_dev.hw_attrs.max_hw_pds; in irdma_alloc_ucontext()
327 uresp.wq_size = iwdev->rf->sc_dev.hw_attrs.max_qp_wr * 2; in irdma_alloc_ucontext()
328 uresp.kernel_ver = req.userspace_ver; in irdma_alloc_ucontext()
329 if (ib_copy_to_udata(udata, &uresp, in irdma_alloc_ucontext()
330 min(sizeof(uresp), udata->outlen))) in irdma_alloc_ucontext()
338 &uresp.db_mmap_key); in irdma_alloc_ucontext()
342 uresp.kernel_ver = IRDMA_ABI_VER; in irdma_alloc_ucontext()
343 uresp.feature_flags = uk_attrs->feature_flags; in irdma_alloc_ucontext()
344 uresp.max_hw_wq_frags = uk_attrs->max_hw_wq_frags; in irdma_alloc_ucontext()
345 uresp.max_hw_read_sges = uk_attrs->max_hw_read_sges; in irdma_alloc_ucontext()
346 uresp.max_hw_inline = uk_attrs->max_hw_inline; in irdma_alloc_ucontext()
347 uresp.max_hw_rq_quanta = uk_attrs->max_hw_rq_quanta; in irdma_alloc_ucontext()
348 uresp.max_hw_wq_quanta = uk_attrs->max_hw_wq_quanta; in irdma_alloc_ucontext()
349 uresp.max_hw_sq_chunk = uk_attrs->max_hw_sq_chunk; in irdma_alloc_ucontext()
350 uresp.max_hw_cq_size = uk_attrs->max_hw_cq_size; in irdma_alloc_ucontext()
351 uresp.min_hw_cq_size = uk_attrs->min_hw_cq_size; in irdma_alloc_ucontext()
352 uresp.hw_rev = uk_attrs->hw_rev; in irdma_alloc_ucontext()
353 if (ib_copy_to_udata(udata, &uresp, in irdma_alloc_ucontext()
354 min(sizeof(uresp), udata->outlen))) { in irdma_alloc_ucontext()
396 struct irdma_alloc_pd_resp uresp = {}; in irdma_alloc_pd() local
412 uresp.pd_id = pd_id; in irdma_alloc_pd()
413 if (ib_copy_to_udata(udata, &uresp, in irdma_alloc_pd()
414 min(sizeof(uresp), udata->outlen))) { in irdma_alloc_pd()
823 struct irdma_create_qp_resp uresp = {}; in irdma_create_qp() local
994 if (udata->outlen < sizeof(uresp)) { in irdma_create_qp()
995 uresp.lsmm = 1; in irdma_create_qp()
996 uresp.push_idx = IRDMA_INVALID_PUSH_PAGE_INDEX_GEN_1; in irdma_create_qp()
999 uresp.lsmm = 1; in irdma_create_qp()
1001 uresp.actual_sq_size = sq_size; in irdma_create_qp()
1002 uresp.actual_rq_size = rq_size; in irdma_create_qp()
1003 uresp.qp_id = qp_num; in irdma_create_qp()
1004 uresp.qp_caps = qp->qp_uk.qp_caps; in irdma_create_qp()
1006 err_code = ib_copy_to_udata(udata, &uresp, in irdma_create_qp()
1007 min(sizeof(uresp), udata->outlen)); in irdma_create_qp()
1131 struct irdma_modify_qp_resp uresp = {}; in irdma_modify_qp_roce() local
1437 &uresp.push_wqe_mmap_key, &uresp.push_db_mmap_key)) { in irdma_modify_qp_roce()
1438 uresp.push_valid = 1; in irdma_modify_qp_roce()
1439 uresp.push_offset = iwqp->sc_qp.push_offset; in irdma_modify_qp_roce()
1441 ret = ib_copy_to_udata(udata, &uresp, min(sizeof(uresp), in irdma_modify_qp_roce()
1476 struct irdma_modify_qp_resp uresp = {}; in irdma_modify_qp() local
1674 &uresp.push_wqe_mmap_key, &uresp.push_db_mmap_key)) { in irdma_modify_qp()
1675 uresp.push_valid = 1; in irdma_modify_qp()
1676 uresp.push_offset = iwqp->sc_qp.push_offset; in irdma_modify_qp()
1679 err = ib_copy_to_udata(udata, &uresp, min(sizeof(uresp), in irdma_modify_qp()
4293 struct irdma_create_ah_resp uresp; in irdma_create_user_ah() local
4322 uresp.ah_id = ah->sc_ah.ah_info.ah_idx; in irdma_create_user_ah()
4323 err = ib_copy_to_udata(udata, &uresp, min(sizeof(uresp), udata->outlen)); in irdma_create_user_ah()