Lines Matching full:resp
72 struct gdma_create_pd_resp resp = {}; in mana_ib_alloc_pd() local
83 sizeof(resp)); in mana_ib_alloc_pd()
87 sizeof(resp), &resp); in mana_ib_alloc_pd()
89 if (err || resp.hdr.status) { in mana_ib_alloc_pd()
92 resp.hdr.status); in mana_ib_alloc_pd()
99 pd->pd_handle = resp.pd_handle; in mana_ib_alloc_pd()
100 pd->pdn = resp.pd_id; in mana_ib_alloc_pd()
113 struct gdma_destory_pd_resp resp = {}; in mana_ib_dealloc_pd() local
123 sizeof(resp)); in mana_ib_dealloc_pd()
127 sizeof(resp), &resp); in mana_ib_dealloc_pd()
129 if (err || resp.hdr.status) { in mana_ib_dealloc_pd()
132 pd->pd_handle, err, resp.hdr.status); in mana_ib_dealloc_pd()
144 struct gdma_resp_hdr resp = {}; in mana_gd_destroy_doorbell_page() local
148 sizeof(req), sizeof(resp)); in mana_gd_destroy_doorbell_page()
154 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_destroy_doorbell_page()
155 if (err || resp.status) { in mana_gd_destroy_doorbell_page()
158 err, resp.status); in mana_gd_destroy_doorbell_page()
169 struct gdma_allocate_resource_range_resp resp = {}; in mana_gd_allocate_doorbell_page() local
173 sizeof(req), sizeof(resp)); in mana_gd_allocate_doorbell_page()
182 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_allocate_doorbell_page()
183 if (err || resp.hdr.status) { in mana_gd_allocate_doorbell_page()
186 err, resp.hdr.status); in mana_gd_allocate_doorbell_page()
190 *doorbell_page = resp.allocated_resources; in mana_gd_allocate_doorbell_page()
631 struct mana_ib_query_adapter_caps_resp resp = {}; in mana_ib_gd_query_adapter_caps() local
636 sizeof(resp)); in mana_ib_gd_query_adapter_caps()
637 req.hdr.resp.msg_version = GDMA_MESSAGE_V3; in mana_ib_gd_query_adapter_caps()
641 &req, sizeof(resp), &resp); in mana_ib_gd_query_adapter_caps()
649 caps->max_sq_id = resp.max_sq_id; in mana_ib_gd_query_adapter_caps()
650 caps->max_rq_id = resp.max_rq_id; in mana_ib_gd_query_adapter_caps()
651 caps->max_cq_id = resp.max_cq_id; in mana_ib_gd_query_adapter_caps()
652 caps->max_qp_count = resp.max_qp_count; in mana_ib_gd_query_adapter_caps()
653 caps->max_cq_count = resp.max_cq_count; in mana_ib_gd_query_adapter_caps()
654 caps->max_mr_count = resp.max_mr_count; in mana_ib_gd_query_adapter_caps()
655 caps->max_pd_count = resp.max_pd_count; in mana_ib_gd_query_adapter_caps()
656 caps->max_inbound_read_limit = resp.max_inbound_read_limit; in mana_ib_gd_query_adapter_caps()
657 caps->max_outbound_read_limit = resp.max_outbound_read_limit; in mana_ib_gd_query_adapter_caps()
658 caps->mw_count = resp.mw_count; in mana_ib_gd_query_adapter_caps()
659 caps->max_srq_count = resp.max_srq_count; in mana_ib_gd_query_adapter_caps()
661 resp.max_requester_sq_size / GDMA_MAX_SQE_SIZE, in mana_ib_gd_query_adapter_caps()
662 resp.max_requester_rq_size / GDMA_MAX_RQE_SIZE); in mana_ib_gd_query_adapter_caps()
663 caps->max_inline_data_size = resp.max_inline_data_size; in mana_ib_gd_query_adapter_caps()
664 caps->max_send_sge_count = resp.max_send_sge_count; in mana_ib_gd_query_adapter_caps()
665 caps->max_recv_sge_count = resp.max_recv_sge_count; in mana_ib_gd_query_adapter_caps()
755 struct mana_rnic_create_adapter_resp resp = {}; in mana_ib_gd_create_rnic_adapter() local
760 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_ADAPTER, sizeof(req), sizeof(resp)); in mana_ib_gd_create_rnic_adapter()
765 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_create_rnic_adapter()
770 mdev->adapter_handle = resp.adapter; in mana_ib_gd_create_rnic_adapter()
777 struct mana_rnic_destroy_adapter_resp resp = {}; in mana_ib_gd_destroy_rnic_adapter() local
783 mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_ADAPTER, sizeof(req), sizeof(resp)); in mana_ib_gd_destroy_rnic_adapter()
787 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_destroy_rnic_adapter()
800 struct mana_rnic_config_addr_resp resp = {}; in mana_ib_gd_add_gid() local
810 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_IP_ADDR, sizeof(req), sizeof(resp)); in mana_ib_gd_add_gid()
817 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_add_gid()
830 struct mana_rnic_config_addr_resp resp = {}; in mana_ib_gd_del_gid() local
840 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_IP_ADDR, sizeof(req), sizeof(resp)); in mana_ib_gd_del_gid()
847 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_del_gid()
858 struct mana_rnic_config_mac_addr_resp resp = {}; in mana_ib_gd_config_mac() local
863 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_MAC_ADDR, sizeof(req), sizeof(resp)); in mana_ib_gd_config_mac()
869 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_config_mac()
881 struct mana_rnic_create_cq_resp resp = {}; in mana_ib_gd_create_cq() local
885 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_CQ, sizeof(req), sizeof(resp)); in mana_ib_gd_create_cq()
892 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_create_cq()
899 cq->queue.id = resp.cq_id; in mana_ib_gd_create_cq()
900 cq->cq_handle = resp.cq_handle; in mana_ib_gd_create_cq()
910 struct mana_rnic_destroy_cq_resp resp = {}; in mana_ib_gd_destroy_cq() local
917 mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_CQ, sizeof(req), sizeof(resp)); in mana_ib_gd_destroy_cq()
922 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_destroy_cq()
939 struct mana_rnic_create_qp_resp resp = {}; in mana_ib_gd_create_rc_qp() local
943 mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_RC_QP, sizeof(req), sizeof(resp)); in mana_ib_gd_create_rc_qp()
958 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_create_rc_qp()
963 qp->qp_handle = resp.rc_qp_handle; in mana_ib_gd_create_rc_qp()
965 qp->rc_qp.queues[i].id = resp.queue_ids[i]; in mana_ib_gd_create_rc_qp()
974 struct mana_rnic_destroy_rc_qp_resp resp = {0}; in mana_ib_gd_destroy_rc_qp() local
979 mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_RC_QP, sizeof(req), sizeof(resp)); in mana_ib_gd_destroy_rc_qp()
983 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_ib_gd_destroy_rc_qp()