Lines Matching refs:err_code
886 int err_code; in irdma_create_qp() local
893 err_code = irdma_validate_qp_attrs(init_attr, iwdev); in irdma_create_qp()
894 if (err_code) in irdma_create_qp()
895 return err_code; in irdma_create_qp()
931 err_code = irdma_alloc_rsrc(rf, rf->allocated_qps, rf->max_qp, in irdma_create_qp()
933 if (err_code) in irdma_create_qp()
955 err_code = irdma_setup_umode_qp(udata, iwdev, iwqp, &init_info, in irdma_create_qp()
960 err_code = irdma_setup_kmode_qp(iwdev, iwqp, &init_info, init_attr); in irdma_create_qp()
963 if (err_code) { in irdma_create_qp()
987 err_code = irdma_sc_qp_init(qp, &init_info); in irdma_create_qp()
988 if (err_code) { in irdma_create_qp()
1002 err_code = irdma_cqp_create_qp_cmd(iwqp); in irdma_create_qp()
1003 if (err_code) in irdma_create_qp()
1015 err_code = -EINVAL; in irdma_create_qp()
1036 err_code = ib_copy_to_udata(udata, &uresp, in irdma_create_qp()
1038 if (err_code) { in irdma_create_qp()
1041 return err_code; in irdma_create_qp()
1050 return err_code; in irdma_create_qp()
2058 int err_code; in irdma_create_cq() local
2061 err_code = cq_validate_flags(attr->flags, dev->hw_attrs.uk_attrs.hw_rev); in irdma_create_cq()
2062 if (err_code) in irdma_create_cq()
2063 return err_code; in irdma_create_cq()
2069 err_code = irdma_alloc_rsrc(rf, rf->allocated_cqs, rf->max_cq, &cq_num, in irdma_create_cq()
2071 if (err_code) in irdma_create_cq()
2072 return err_code; in irdma_create_cq()
2105 err_code = -EFAULT; in irdma_create_cq()
2114 err_code = -EPROTO; in irdma_create_cq()
2131 err_code = -EPROTO; in irdma_create_cq()
2153 err_code = -EINVAL; in irdma_create_cq()
2168 err_code = -ENOMEM; in irdma_create_cq()
2179 err_code = -ENOMEM; in irdma_create_cq()
2193 err_code = -EPROTO; in irdma_create_cq()
2199 err_code = -ENOMEM; in irdma_create_cq()
2209 err_code = irdma_handle_cqp_op(rf, cqp_request); in irdma_create_cq()
2211 if (err_code) in irdma_create_cq()
2223 err_code = -EPROTO; in irdma_create_cq()
2236 return err_code; in irdma_create_cq()
2578 int err_code; in irdma_alloc_mw() local
2588 err_code = irdma_hw_alloc_mw(iwdev, iwmr); in irdma_alloc_mw()
2589 if (err_code) { in irdma_alloc_mw()
2591 return err_code; in irdma_alloc_mw()
2684 int err_code; in irdma_alloc_mr() local
2692 err_code = -ENOMEM; in irdma_alloc_mr()
2708 err_code = irdma_get_pble(iwdev->rf->pble_rsrc, palloc, iwmr->page_cnt, in irdma_alloc_mr()
2710 if (err_code) in irdma_alloc_mr()
2713 err_code = irdma_hw_alloc_stag(iwdev, iwmr); in irdma_alloc_mr()
2714 if (err_code) in irdma_alloc_mr()
2727 return ERR_PTR(err_code); in irdma_alloc_mr()