Lines Matching refs:hret
125 u64 *cq_handle_ref, hret, rpage; in ehea_create_cq() local
144 hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, in ehea_create_cq()
146 if (hret != H_SUCCESS) { in ehea_create_cq()
164 hret = ehea_h_register_rpage(adapter->handle, in ehea_create_cq()
167 if (hret < H_SUCCESS) { in ehea_create_cq()
169 cq, hret, counter, cq->attr.nr_pages); in ehea_create_cq()
176 if ((hret != H_SUCCESS) || (vpage)) { in ehea_create_cq()
178 hret); in ehea_create_cq()
182 if (hret != H_PAGE_REGISTERED) { in ehea_create_cq()
184 hret); in ehea_create_cq()
212 u64 hret; in ehea_destroy_cq_res() local
216 hret = ehea_h_free_resource(adapter_handle, cq->fw_handle, force); in ehea_destroy_cq_res()
217 if (hret != H_SUCCESS) in ehea_destroy_cq_res()
218 return hret; in ehea_destroy_cq_res()
223 return hret; in ehea_destroy_cq_res()
228 u64 hret, aer, aerr; in ehea_destroy_cq() local
233 hret = ehea_destroy_cq_res(cq, NORMAL_FREE); in ehea_destroy_cq()
234 if (hret == H_R_STATE) { in ehea_destroy_cq()
236 hret = ehea_destroy_cq_res(cq, FORCE_FREE); in ehea_destroy_cq()
239 if (hret != H_SUCCESS) { in ehea_destroy_cq()
252 u64 hret, rpage; in ehea_create_eq() local
266 hret = ehea_h_alloc_resource_eq(adapter->handle, in ehea_create_eq()
268 if (hret != H_SUCCESS) { in ehea_create_eq()
284 hret = H_RESOURCE; in ehea_create_eq()
290 hret = ehea_h_register_rpage(adapter->handle, 0, in ehea_create_eq()
297 if ((hret != H_SUCCESS) || (vpage)) in ehea_create_eq()
301 if (hret != H_PAGE_REGISTERED) in ehea_create_eq()
335 u64 hret; in ehea_destroy_eq_res() local
340 hret = ehea_h_free_resource(eq->adapter->handle, eq->fw_handle, force); in ehea_destroy_eq_res()
343 if (hret != H_SUCCESS) in ehea_destroy_eq_res()
344 return hret; in ehea_destroy_eq_res()
349 return hret; in ehea_destroy_eq_res()
354 u64 hret, aer, aerr; in ehea_destroy_eq() local
360 hret = ehea_destroy_eq_res(eq, NORMAL_FREE); in ehea_destroy_eq()
361 if (hret == H_R_STATE) { in ehea_destroy_eq()
363 hret = ehea_destroy_eq_res(eq, FORCE_FREE); in ehea_destroy_eq()
366 if (hret != H_SUCCESS) { in ehea_destroy_eq()
379 u64 hret, rpage; in ehea_qp_alloc_register() local
394 hret = ehea_h_register_rpage(adapter->handle, in ehea_qp_alloc_register()
397 if (hret < H_SUCCESS) { in ehea_qp_alloc_register()
419 u64 hret; in ehea_create_qp() local
431 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
433 if (hret != H_SUCCESS) { in ehea_create_qp()
510 u64 hret; in ehea_destroy_qp_res() local
515 hret = ehea_h_free_resource(qp->adapter->handle, qp->fw_handle, force); in ehea_destroy_qp_res()
516 if (hret != H_SUCCESS) in ehea_destroy_qp_res()
517 return hret; in ehea_destroy_qp_res()
528 return hret; in ehea_destroy_qp_res()
533 u64 hret, aer, aerr; in ehea_destroy_qp() local
539 hret = ehea_destroy_qp_res(qp, NORMAL_FREE); in ehea_destroy_qp()
540 if (hret == H_R_STATE) { in ehea_destroy_qp()
542 hret = ehea_destroy_qp_res(qp, FORCE_FREE); in ehea_destroy_qp()
545 if (hret != H_SUCCESS) { in ehea_destroy_qp()
816 u64 j, m, hret; in ehea_reg_mr_section() local
828 hret = ehea_h_register_rpage_mr(adapter->handle, mr->handle, 0, in ehea_reg_mr_section()
831 if ((hret != H_SUCCESS) && in ehea_reg_mr_section()
832 (hret != H_PAGE_REGISTERED)) { in ehea_reg_mr_section()
836 return hret; in ehea_reg_mr_section()
839 return hret; in ehea_reg_mr_section()
846 u64 hret = H_SUCCESS; in ehea_reg_mr_sections() local
853 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
854 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_sections()
855 return hret; in ehea_reg_mr_sections()
857 return hret; in ehea_reg_mr_sections()
864 u64 hret = H_SUCCESS; in ehea_reg_mr_dir_sections() local
871 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()
872 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_dir_sections()
873 return hret; in ehea_reg_mr_dir_sections()
875 return hret; in ehea_reg_mr_dir_sections()
882 u64 hret; in ehea_reg_kernel_mr() local
894 hret = ehea_h_alloc_resource_mr(adapter->handle, EHEA_BUSMAP_START, in ehea_reg_kernel_mr()
898 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
915 hret = ehea_reg_mr_dir_sections(top, pt, adapter, mr); in ehea_reg_kernel_mr()
916 if((hret != H_PAGE_REGISTERED) && (hret != H_SUCCESS)) in ehea_reg_kernel_mr()
920 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
937 u64 hret; in ehea_rem_mr() local
942 hret = ehea_h_free_resource(mr->adapter->handle, mr->handle, in ehea_rem_mr()
944 if (hret != H_SUCCESS) { in ehea_rem_mr()
955 u64 hret; in ehea_gen_smr() local
957 hret = ehea_h_register_smr(adapter->handle, old_mr->handle, in ehea_gen_smr()
960 if (hret != H_SUCCESS) in ehea_gen_smr()