Lines Matching refs:err_code

809 	int err_code;  in irdma_create_qp()  local
819 err_code = irdma_validate_qp_attrs(init_attr, iwdev); in irdma_create_qp()
820 if (err_code) in irdma_create_qp()
821 return err_code; in irdma_create_qp()
856 err_code = irdma_alloc_rsrc(rf, rf->allocated_qps, rf->max_qp, in irdma_create_qp()
858 if (err_code) in irdma_create_qp()
879 err_code = ib_copy_from_udata(&req, udata, in irdma_create_qp()
881 if (err_code) { in irdma_create_qp()
902 err_code = -ENODATA; in irdma_create_qp()
911 err_code = irdma_setup_kmode_qp(iwdev, iwqp, &init_info, init_attr); in irdma_create_qp()
914 if (err_code) { in irdma_create_qp()
940 err_code = -EPROTO; in irdma_create_qp()
954 err_code = irdma_cqp_create_qp_cmd(iwqp); in irdma_create_qp()
955 if (err_code) in irdma_create_qp()
969 err_code = -EINVAL; in irdma_create_qp()
990 err_code = ib_copy_to_udata(udata, &uresp, in irdma_create_qp()
992 if (err_code) { in irdma_create_qp()
995 return err_code; in irdma_create_qp()
1004 return err_code; in irdma_create_qp()
1948 int err_code; in irdma_create_cq() local
1951 err_code = cq_validate_flags(attr->flags, dev->hw_attrs.uk_attrs.hw_rev); in irdma_create_cq()
1952 if (err_code) in irdma_create_cq()
1953 return err_code; in irdma_create_cq()
1954 err_code = irdma_alloc_rsrc(rf, rf->allocated_cqs, rf->max_cq, &cq_num, in irdma_create_cq()
1956 if (err_code) in irdma_create_cq()
1957 return err_code; in irdma_create_cq()
1988 err_code = -EFAULT; in irdma_create_cq()
1997 err_code = -EPROTO; in irdma_create_cq()
2014 err_code = -EPROTO; in irdma_create_cq()
2036 err_code = -EINVAL; in irdma_create_cq()
2051 err_code = -ENOMEM; in irdma_create_cq()
2062 err_code = -ENOMEM; in irdma_create_cq()
2077 err_code = -EPROTO; in irdma_create_cq()
2083 err_code = -ENOMEM; in irdma_create_cq()
2096 err_code = -ENOMEM; in irdma_create_cq()
2109 err_code = -EPROTO; in irdma_create_cq()
2119 return err_code; in irdma_create_cq()
2467 int err_code; in irdma_alloc_mw() local
2477 err_code = irdma_hw_alloc_mw(iwdev, iwmr); in irdma_alloc_mw()
2478 if (err_code) { in irdma_alloc_mw()
2480 return err_code; in irdma_alloc_mw()
2575 int err_code = -ENOMEM; in irdma_alloc_mr() local
2583 err_code = -ENOMEM; in irdma_alloc_mr()
2602 err_code = irdma_hw_alloc_stag(iwdev, iwmr); in irdma_alloc_mr()
2603 if (err_code) in irdma_alloc_mr()
2616 return ERR_PTR(err_code); in irdma_alloc_mr()