Lines Matching refs:hret
112 u64 hret, rpage; in ehea_create_cq() local
127 hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, in ehea_create_cq()
129 if (hret != H_SUCCESS) { in ehea_create_cq()
147 hret = ehea_h_register_rpage(adapter->handle, in ehea_create_cq()
150 if (hret < H_SUCCESS) { in ehea_create_cq()
152 cq, hret, counter, cq->attr.nr_pages); in ehea_create_cq()
159 if ((hret != H_SUCCESS) || (vpage)) { in ehea_create_cq()
161 hret); in ehea_create_cq()
165 if (hret != H_PAGE_REGISTERED) { in ehea_create_cq()
167 hret); in ehea_create_cq()
194 u64 hret; in ehea_destroy_cq_res() local
198 hret = ehea_h_free_resource(adapter_handle, cq->fw_handle, force); in ehea_destroy_cq_res()
199 if (hret != H_SUCCESS) in ehea_destroy_cq_res()
200 return hret; in ehea_destroy_cq_res()
205 return hret; in ehea_destroy_cq_res()
210 u64 hret, aer, aerr; in ehea_destroy_cq() local
215 hret = ehea_destroy_cq_res(cq, NORMAL_FREE); in ehea_destroy_cq()
216 if (hret == H_R_STATE) { in ehea_destroy_cq()
218 hret = ehea_destroy_cq_res(cq, FORCE_FREE); in ehea_destroy_cq()
221 if (hret != H_SUCCESS) { in ehea_destroy_cq()
234 u64 hret, rpage; in ehea_create_eq() local
248 hret = ehea_h_alloc_resource_eq(adapter->handle, in ehea_create_eq()
250 if (hret != H_SUCCESS) { in ehea_create_eq()
266 hret = H_RESOURCE; in ehea_create_eq()
272 hret = ehea_h_register_rpage(adapter->handle, 0, in ehea_create_eq()
279 if ((hret != H_SUCCESS) || (vpage)) in ehea_create_eq()
283 if (hret != H_PAGE_REGISTERED) in ehea_create_eq()
317 u64 hret; in ehea_destroy_eq_res() local
322 hret = ehea_h_free_resource(eq->adapter->handle, eq->fw_handle, force); in ehea_destroy_eq_res()
325 if (hret != H_SUCCESS) in ehea_destroy_eq_res()
326 return hret; in ehea_destroy_eq_res()
331 return hret; in ehea_destroy_eq_res()
336 u64 hret, aer, aerr; in ehea_destroy_eq() local
342 hret = ehea_destroy_eq_res(eq, NORMAL_FREE); in ehea_destroy_eq()
343 if (hret == H_R_STATE) { in ehea_destroy_eq()
345 hret = ehea_destroy_eq_res(eq, FORCE_FREE); in ehea_destroy_eq()
348 if (hret != H_SUCCESS) { in ehea_destroy_eq()
361 u64 hret, rpage; in ehea_qp_alloc_register() local
376 hret = ehea_h_register_rpage(adapter->handle, in ehea_qp_alloc_register()
379 if (hret < H_SUCCESS) { in ehea_qp_alloc_register()
401 u64 hret; in ehea_create_qp() local
413 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
415 if (hret != H_SUCCESS) { in ehea_create_qp()
492 u64 hret; in ehea_destroy_qp_res() local
497 hret = ehea_h_free_resource(qp->adapter->handle, qp->fw_handle, force); in ehea_destroy_qp_res()
498 if (hret != H_SUCCESS) in ehea_destroy_qp_res()
499 return hret; in ehea_destroy_qp_res()
510 return hret; in ehea_destroy_qp_res()
515 u64 hret, aer, aerr; in ehea_destroy_qp() local
521 hret = ehea_destroy_qp_res(qp, NORMAL_FREE); in ehea_destroy_qp()
522 if (hret == H_R_STATE) { in ehea_destroy_qp()
524 hret = ehea_destroy_qp_res(qp, FORCE_FREE); in ehea_destroy_qp()
527 if (hret != H_SUCCESS) { in ehea_destroy_qp()
795 u64 j, m, hret; in ehea_reg_mr_section() local
807 hret = ehea_h_register_rpage_mr(adapter->handle, mr->handle, 0, in ehea_reg_mr_section()
810 if ((hret != H_SUCCESS) && in ehea_reg_mr_section()
811 (hret != H_PAGE_REGISTERED)) { in ehea_reg_mr_section()
815 return hret; in ehea_reg_mr_section()
818 return hret; in ehea_reg_mr_section()
825 u64 hret = H_SUCCESS; in ehea_reg_mr_sections() local
832 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
833 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_sections()
834 return hret; in ehea_reg_mr_sections()
836 return hret; in ehea_reg_mr_sections()
843 u64 hret = H_SUCCESS; in ehea_reg_mr_dir_sections() local
850 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()
851 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_dir_sections()
852 return hret; in ehea_reg_mr_dir_sections()
854 return hret; in ehea_reg_mr_dir_sections()
861 u64 hret; in ehea_reg_kernel_mr() local
873 hret = ehea_h_alloc_resource_mr(adapter->handle, EHEA_BUSMAP_START, in ehea_reg_kernel_mr()
877 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
894 hret = ehea_reg_mr_dir_sections(top, pt, adapter, mr); in ehea_reg_kernel_mr()
895 if((hret != H_PAGE_REGISTERED) && (hret != H_SUCCESS)) in ehea_reg_kernel_mr()
899 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
916 u64 hret; in ehea_rem_mr() local
921 hret = ehea_h_free_resource(mr->adapter->handle, mr->handle, in ehea_rem_mr()
923 if (hret != H_SUCCESS) { in ehea_rem_mr()
934 u64 hret; in ehea_gen_smr() local
936 hret = ehea_h_register_smr(adapter->handle, old_mr->handle, in ehea_gen_smr()
939 if (hret != H_SUCCESS) in ehea_gen_smr()