• Home
  • Raw
  • Download

Lines Matching refs:hret

127 	u64 *cq_handle_ref, hret, rpage;  in ehea_create_cq()  local
146 hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, in ehea_create_cq()
148 if (hret != H_SUCCESS) { in ehea_create_cq()
166 hret = ehea_h_register_rpage(adapter->handle, in ehea_create_cq()
169 if (hret < H_SUCCESS) { in ehea_create_cq()
171 cq, hret, counter, cq->attr.nr_pages); in ehea_create_cq()
178 if ((hret != H_SUCCESS) || (vpage)) { in ehea_create_cq()
180 hret); in ehea_create_cq()
184 if (hret != H_PAGE_REGISTERED) { in ehea_create_cq()
186 hret); in ehea_create_cq()
214 u64 hret; in ehea_destroy_cq_res() local
218 hret = ehea_h_free_resource(adapter_handle, cq->fw_handle, force); in ehea_destroy_cq_res()
219 if (hret != H_SUCCESS) in ehea_destroy_cq_res()
220 return hret; in ehea_destroy_cq_res()
225 return hret; in ehea_destroy_cq_res()
230 u64 hret, aer, aerr; in ehea_destroy_cq() local
235 hret = ehea_destroy_cq_res(cq, NORMAL_FREE); in ehea_destroy_cq()
236 if (hret == H_R_STATE) { in ehea_destroy_cq()
238 hret = ehea_destroy_cq_res(cq, FORCE_FREE); in ehea_destroy_cq()
241 if (hret != H_SUCCESS) { in ehea_destroy_cq()
254 u64 hret, rpage; in ehea_create_eq() local
268 hret = ehea_h_alloc_resource_eq(adapter->handle, in ehea_create_eq()
270 if (hret != H_SUCCESS) { in ehea_create_eq()
286 hret = H_RESOURCE; in ehea_create_eq()
292 hret = ehea_h_register_rpage(adapter->handle, 0, in ehea_create_eq()
299 if ((hret != H_SUCCESS) || (vpage)) in ehea_create_eq()
303 if (hret != H_PAGE_REGISTERED) in ehea_create_eq()
337 u64 hret; in ehea_destroy_eq_res() local
342 hret = ehea_h_free_resource(eq->adapter->handle, eq->fw_handle, force); in ehea_destroy_eq_res()
345 if (hret != H_SUCCESS) in ehea_destroy_eq_res()
346 return hret; in ehea_destroy_eq_res()
351 return hret; in ehea_destroy_eq_res()
356 u64 hret, aer, aerr; in ehea_destroy_eq() local
362 hret = ehea_destroy_eq_res(eq, NORMAL_FREE); in ehea_destroy_eq()
363 if (hret == H_R_STATE) { in ehea_destroy_eq()
365 hret = ehea_destroy_eq_res(eq, FORCE_FREE); in ehea_destroy_eq()
368 if (hret != H_SUCCESS) { in ehea_destroy_eq()
381 u64 hret, rpage; in ehea_qp_alloc_register() local
396 hret = ehea_h_register_rpage(adapter->handle, in ehea_qp_alloc_register()
399 if (hret < H_SUCCESS) { in ehea_qp_alloc_register()
421 u64 hret; in ehea_create_qp() local
433 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
435 if (hret != H_SUCCESS) { in ehea_create_qp()
512 u64 hret; in ehea_destroy_qp_res() local
517 hret = ehea_h_free_resource(qp->adapter->handle, qp->fw_handle, force); in ehea_destroy_qp_res()
518 if (hret != H_SUCCESS) in ehea_destroy_qp_res()
519 return hret; in ehea_destroy_qp_res()
530 return hret; in ehea_destroy_qp_res()
535 u64 hret, aer, aerr; in ehea_destroy_qp() local
541 hret = ehea_destroy_qp_res(qp, NORMAL_FREE); in ehea_destroy_qp()
542 if (hret == H_R_STATE) { in ehea_destroy_qp()
544 hret = ehea_destroy_qp_res(qp, FORCE_FREE); in ehea_destroy_qp()
547 if (hret != H_SUCCESS) { in ehea_destroy_qp()
818 u64 j, m, hret; in ehea_reg_mr_section() local
830 hret = ehea_h_register_rpage_mr(adapter->handle, mr->handle, 0, in ehea_reg_mr_section()
833 if ((hret != H_SUCCESS) && in ehea_reg_mr_section()
834 (hret != H_PAGE_REGISTERED)) { in ehea_reg_mr_section()
838 return hret; in ehea_reg_mr_section()
841 return hret; in ehea_reg_mr_section()
848 u64 hret = H_SUCCESS; in ehea_reg_mr_sections() local
855 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
856 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_sections()
857 return hret; in ehea_reg_mr_sections()
859 return hret; in ehea_reg_mr_sections()
866 u64 hret = H_SUCCESS; in ehea_reg_mr_dir_sections() local
873 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()
874 if ((hret != H_SUCCESS) && (hret != H_PAGE_REGISTERED)) in ehea_reg_mr_dir_sections()
875 return hret; in ehea_reg_mr_dir_sections()
877 return hret; in ehea_reg_mr_dir_sections()
884 u64 hret; in ehea_reg_kernel_mr() local
896 hret = ehea_h_alloc_resource_mr(adapter->handle, EHEA_BUSMAP_START, in ehea_reg_kernel_mr()
900 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
917 hret = ehea_reg_mr_dir_sections(top, pt, adapter, mr); in ehea_reg_kernel_mr()
918 if((hret != H_PAGE_REGISTERED) && (hret != H_SUCCESS)) in ehea_reg_kernel_mr()
922 if (hret != H_SUCCESS) { in ehea_reg_kernel_mr()
939 u64 hret; in ehea_rem_mr() local
944 hret = ehea_h_free_resource(mr->adapter->handle, mr->handle, in ehea_rem_mr()
946 if (hret != H_SUCCESS) { in ehea_rem_mr()
957 u64 hret; in ehea_gen_smr() local
959 hret = ehea_h_register_smr(adapter->handle, old_mr->handle, in ehea_gen_smr()
962 if (hret != H_SUCCESS) in ehea_gen_smr()