Lines Matching defs:ret

136 	int ret;
138 ret = rdma_rw_ctx_init(&ctxt->rw_ctx, rdma->sc_qp, rdma->sc_port_num,
141 if (unlikely(ret < 0)) {
143 ctxt->rw_nents, ret);
146 return ret;
369 int ret;
391 ret = ib_post_send(rdma->sc_qp, first_wr, &bad_wr);
392 if (ret)
405 trace_svcrdma_sq_post_err(rdma, &cc->cc_cid, ret);
478 int ret;
498 ret = svc_rdma_rw_ctx_init(rdma, ctxt, offset, seg->rs_handle,
500 if (ret < 0)
505 cc->cc_sqecount += ret;
580 int ret;
583 ret = svc_rdma_iov_write(info, &xdr->head[0]);
584 if (ret < 0)
585 return ret;
589 ret = svc_rdma_pages_write(info, xdr, xdr->head[0].iov_len,
591 if (ret < 0)
592 return ret;
596 ret = svc_rdma_iov_write(info, &xdr->tail[0]);
597 if (ret < 0)
598 return ret;
611 int ret;
622 ret = svc_rdma_xb_write(&payload, info);
623 if (ret != payload.len)
627 ret = svc_rdma_post_chunk_ctxt(rdma, cc);
628 if (ret < 0)
634 return ret;
651 int ret;
656 ret = svc_rdma_send_write_chunk(rdma, chunk, xdr);
657 if (ret < 0)
658 return ret;
689 int ret;
697 ret = pcl_process_nonpayloads(write_pcl, xdr,
699 if (ret < 0)
700 return ret;
740 int ret;
772 ret = svc_rdma_rw_ctx_init(rdma, ctxt, segment->rs_offset,
774 if (ret < 0)
779 cc->cc_sqecount += ret;
804 int ret;
806 ret = -EINVAL;
808 ret = svc_rdma_build_read_segment(rqstp, head, segment);
809 if (ret < 0)
813 return ret;
888 int ret;
893 ret = svc_rdma_copy_inline_range(rqstp, head, start, length);
894 if (ret < 0)
895 return ret;
898 ret = svc_rdma_build_read_chunk(rqstp, head, chunk);
899 if (ret < 0)
900 return ret;
908 ret = svc_rdma_copy_inline_range(rqstp, head, start, length);
909 if (ret < 0)
910 return ret;
964 int ret;
966 ret = -EINVAL;
979 ret = svc_rdma_build_read_segment(rqstp, head, &dummy);
980 if (ret < 0)
987 return ret;
1010 int ret;
1018 ret = svc_rdma_read_chunk_range(rqstp, head, call_chunk,
1020 if (ret < 0)
1021 return ret;
1024 ret = svc_rdma_build_read_chunk(rqstp, head, chunk);
1025 if (ret < 0)
1026 return ret;
1034 ret = svc_rdma_read_chunk_range(rqstp, head, call_chunk,
1036 if (ret < 0)
1037 return ret;
1120 int ret;
1130 ret = svc_rdma_read_data_item(rqstp, head);
1132 ret = svc_rdma_read_multiple_chunks(rqstp, head);
1134 ret = svc_rdma_read_special(rqstp, head);
1136 if (ret < 0)
1137 return ret;
1140 ret = svc_rdma_post_chunk_ctxt(rdma, cc);
1141 return ret < 0 ? ret : 1;