• Home
  • Raw
  • Download

Lines Matching refs:resp

66 	struct gdma_query_max_resources_resp resp = {};  in mana_gd_query_max_resources()  local
71 sizeof(req), sizeof(resp)); in mana_gd_query_max_resources()
73 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_query_max_resources()
74 if (err || resp.hdr.status) { in mana_gd_query_max_resources()
76 err, resp.hdr.status); in mana_gd_query_max_resources()
80 if (gc->num_msix_usable > resp.max_msix) in mana_gd_query_max_resources()
81 gc->num_msix_usable = resp.max_msix; in mana_gd_query_max_resources()
90 if (gc->max_num_queues > resp.max_eq) in mana_gd_query_max_resources()
91 gc->max_num_queues = resp.max_eq; in mana_gd_query_max_resources()
93 if (gc->max_num_queues > resp.max_cq) in mana_gd_query_max_resources()
94 gc->max_num_queues = resp.max_cq; in mana_gd_query_max_resources()
96 if (gc->max_num_queues > resp.max_sq) in mana_gd_query_max_resources()
97 gc->max_num_queues = resp.max_sq; in mana_gd_query_max_resources()
99 if (gc->max_num_queues > resp.max_rq) in mana_gd_query_max_resources()
100 gc->max_num_queues = resp.max_rq; in mana_gd_query_max_resources()
112 struct gdma_query_hwc_timeout_resp resp = {}; in mana_gd_query_hwc_timeout() local
117 sizeof(req), sizeof(resp)); in mana_gd_query_hwc_timeout()
119 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_query_hwc_timeout()
120 if (err || resp.hdr.status) in mana_gd_query_hwc_timeout()
123 *timeout_val = resp.timeout_ms; in mana_gd_query_hwc_timeout()
131 struct gdma_list_devices_resp resp = {}; in mana_gd_detect_devices() local
139 sizeof(resp)); in mana_gd_detect_devices()
141 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_detect_devices()
142 if (err || resp.hdr.status) { in mana_gd_detect_devices()
144 resp.hdr.status); in mana_gd_detect_devices()
148 max_num_devs = min_t(u32, MAX_NUM_GDMA_DEVICES, resp.num_of_devs); in mana_gd_detect_devices()
151 dev = resp.devs[i]; in mana_gd_detect_devices()
168 u32 resp_len, void *resp) in mana_gd_send_request() argument
172 return mana_hwc_send_request(hwc, req_len, req, resp_len, resp); in mana_gd_send_request()
206 struct gdma_create_queue_resp resp = {}; in mana_gd_create_hw_eq() local
214 sizeof(req), sizeof(resp)); in mana_gd_create_hw_eq()
225 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_create_hw_eq()
226 if (err || resp.hdr.status) { in mana_gd_create_hw_eq()
228 resp.hdr.status); in mana_gd_create_hw_eq()
232 queue->id = resp.queue_index; in mana_gd_create_hw_eq()
242 struct gdma_general_resp resp = {}; in mana_gd_disable_queue() local
248 sizeof(req), sizeof(resp)); in mana_gd_disable_queue()
255 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_disable_queue()
256 if (err || resp.hdr.status) { in mana_gd_disable_queue()
258 resp.hdr.status); in mana_gd_disable_queue()
519 struct gdma_general_resp resp = {}; in mana_gd_test_eq() local
529 sizeof(req), sizeof(resp)); in mana_gd_test_eq()
534 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_test_eq()
542 if (resp.hdr.status) { in mana_gd_test_eq()
543 dev_err(dev, "test_eq failed: 0x%x\n", resp.hdr.status); in mana_gd_test_eq()
699 struct gdma_general_resp resp = {}; in mana_gd_destroy_dma_region() local
706 sizeof(resp)); in mana_gd_destroy_dma_region()
709 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_destroy_dma_region()
710 if (err || resp.hdr.status) { in mana_gd_destroy_dma_region()
712 err, resp.hdr.status); in mana_gd_destroy_dma_region()
725 struct gdma_create_dma_region_resp resp = {}; in mana_gd_create_dma_region() local
749 req_msg_size, sizeof(resp)); in mana_gd_create_dma_region()
759 err = mana_gd_send_request(gc, req_msg_size, req, sizeof(resp), &resp); in mana_gd_create_dma_region()
763 if (resp.hdr.status || in mana_gd_create_dma_region()
764 resp.dma_region_handle == GDMA_INVALID_DMA_REGION) { in mana_gd_create_dma_region()
766 resp.hdr.status); in mana_gd_create_dma_region()
771 gmi->dma_region_handle = resp.dma_region_handle; in mana_gd_create_dma_region()
902 struct gdma_verify_ver_resp resp = {}; in mana_gd_verify_vf_version() local
909 sizeof(req), sizeof(resp)); in mana_gd_verify_vf_version()
928 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_verify_vf_version()
929 if (err || resp.hdr.status) { in mana_gd_verify_vf_version()
931 err, resp.hdr.status); in mana_gd_verify_vf_version()
934 if (resp.pf_cap_flags1 & GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG) { in mana_gd_verify_vf_version()
948 struct gdma_register_device_resp resp = {}; in mana_gd_register_device() local
957 sizeof(resp)); in mana_gd_register_device()
961 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_register_device()
962 if (err || resp.hdr.status) { in mana_gd_register_device()
964 err, resp.hdr.status); in mana_gd_register_device()
968 gd->pdid = resp.pdid; in mana_gd_register_device()
969 gd->gpa_mkey = resp.gpa_mkey; in mana_gd_register_device()
970 gd->doorbell = resp.db_id; in mana_gd_register_device()
978 struct gdma_general_resp resp = {}; in mana_gd_deregister_device() local
986 sizeof(resp)); in mana_gd_deregister_device()
990 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_deregister_device()
991 if (err || resp.hdr.status) { in mana_gd_deregister_device()
993 err, resp.hdr.status); in mana_gd_deregister_device()