Lines Matching refs:err_code
116 int err_code = -ENOMEM; in irdma_alloc_mr() local
124 err_code = -ENOMEM; in irdma_alloc_mr()
145 err_code = irdma_hw_alloc_stag(iwdev, iwmr); in irdma_alloc_mr()
146 if (err_code) in irdma_alloc_mr()
159 return ERR_PTR(err_code); in irdma_alloc_mr()
688 int err_code; in irdma_create_qp() local
696 err_code = irdma_validate_qp_attrs(init_attr, iwdev); in irdma_create_qp()
697 if (err_code) in irdma_create_qp()
698 return ERR_PTR(err_code); in irdma_create_qp()
747 err_code = irdma_alloc_rsrc(rf, rf->allocated_qps, rf->max_qp, in irdma_create_qp()
749 if (err_code) in irdma_create_qp()
773 err_code = irdma_setup_umode_qp(udata, iwdev, iwqp, &init_info, init_attr); in irdma_create_qp()
777 err_code = irdma_setup_kmode_qp(iwdev, iwqp, &init_info, init_attr); in irdma_create_qp()
780 if (err_code) { in irdma_create_qp()
803 err_code = -EPROTO; in irdma_create_qp()
817 err_code = irdma_cqp_create_qp_cmd(iwqp); in irdma_create_qp()
818 if (err_code) in irdma_create_qp()
830 err_code = -EINVAL; in irdma_create_qp()
860 err_code = ib_copy_to_udata(udata, &uresp, in irdma_create_qp()
862 if (err_code) { in irdma_create_qp()
865 return ERR_PTR(err_code); in irdma_create_qp()
875 return ERR_PTR(err_code); in irdma_create_qp()
947 int err_code; in irdma_create_cq() local
951 err_code = cq_validate_flags(attr->flags, dev->hw_attrs.uk_attrs.hw_rev); in irdma_create_cq()
952 if (err_code) in irdma_create_cq()
953 return err_code; in irdma_create_cq()
958 err_code = irdma_alloc_rsrc(rf, rf->allocated_cqs, rf->max_cq, &cq_num, in irdma_create_cq()
960 if (err_code) in irdma_create_cq()
961 return err_code; in irdma_create_cq()
995 err_code = -EFAULT; in irdma_create_cq()
1004 err_code = -EPROTO; in irdma_create_cq()
1019 err_code = -EPROTO; in irdma_create_cq()
1041 err_code = -EINVAL; in irdma_create_cq()
1058 err_code = -ENOMEM; in irdma_create_cq()
1069 err_code = -ENOMEM; in irdma_create_cq()
1082 err_code = -EPROTO; in irdma_create_cq()
1088 err_code = -ENOMEM; in irdma_create_cq()
1100 err_code = -ENOMEM; in irdma_create_cq()
1112 err_code = -EPROTO; in irdma_create_cq()
1130 return err_code; in irdma_create_cq()