Lines Matching refs:uresp
626 struct nes_alloc_ucontext_resp uresp; in nes_alloc_ucontext() local
643 memset(&uresp, 0, sizeof uresp); in nes_alloc_ucontext()
645 uresp.max_qps = nesibdev->max_qp; in nes_alloc_ucontext()
646 uresp.max_pds = nesibdev->max_pd; in nes_alloc_ucontext()
647 uresp.wq_size = nesdev->nesadapter->max_qp_wr * 2; in nes_alloc_ucontext()
648 uresp.virtwq = nesadapter->virtwq; in nes_alloc_ucontext()
649 uresp.kernel_ver = NES_ABI_KERNEL_VER; in nes_alloc_ucontext()
656 nes_ucontext->mmap_wq_offset = uresp.max_pds; in nes_alloc_ucontext()
658 ((sizeof(struct nes_hw_qp_wqe) * uresp.max_qps * 2) + PAGE_SIZE-1) / in nes_alloc_ucontext()
662 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in nes_alloc_ucontext()
757 struct nes_alloc_pd_resp uresp; in nes_alloc_pd() local
795 uresp.pd_id = nespd->pd_id; in nes_alloc_pd()
796 uresp.mmap_db_index = nespd->mmap_db_index; in nes_alloc_pd()
797 if (ib_copy_to_udata(udata, &uresp, sizeof (struct nes_alloc_pd_resp))) { in nes_alloc_pd()
1098 struct nes_create_qp_resp uresp; in nes_create_qp() local
1368 uresp.mmap_sq_db_index = nesqp->mmap_sq_db_index; in nes_create_qp()
1369 uresp.mmap_rq_db_index = 0; in nes_create_qp()
1370 uresp.actual_sq_size = sq_size; in nes_create_qp()
1371 uresp.actual_rq_size = rq_size; in nes_create_qp()
1372 uresp.qp_id = nesqp->hwqp.qp_id; in nes_create_qp()
1373 uresp.nes_drv_opt = nes_drv_opt; in nes_create_qp()
1374 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in nes_create_qp()