Lines Matching defs:rc
109 int rc = 0;
147 rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec],
149 if ((rc == -ENOSPC) || (rc == -EAGAIN)) {
172 rc = -EAGAIN;
178 if (rc < 0)
181 if (rc == total_len) {
184 } else if (rc > total_len) {
185 cERROR(1, "sent %d requested %d", rc, total_len);
188 if (rc == 0) {
195 total_len -= rc;
199 if (rc > iov[i].iov_len) {
200 rc -= iov[i].iov_len;
203 iov[i].iov_base += rc;
204 iov[i].iov_len -= rc;
223 if (rc < 0) {
224 cERROR(1, "Error %d sending data on socket to server", rc);
226 rc = 0;
232 return rc;
372 int rc;
379 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags);
380 cFYI(DBG2, "SendRcvNoRsp flags %d rc %d", flags, rc);
382 return rc;
390 int rc = 0;
416 rc = wait_for_free_request(ses, long_op);
417 if (rc) {
419 return rc;
428 rc = allocate_mid(ses, in_buf, &midQ);
429 if (rc) {
435 return rc;
437 rc = cifs_sign_smb2(iov, n_vec, ses->server, &midQ->sequence_number);
438 if (rc) {
448 rc = smb_sendv(ses->server, iov, n_vec);
457 if (rc < 0)
473 rc = -EIO;
495 rc = -EHOSTDOWN;
502 if (rc != -EHOSTDOWN) {
504 rc = -EAGAIN;
507 rc = -EIO;
515 return rc;
524 rc = -EIO;
545 rc = cifs_verify_signature(midQ->resp_buf,
548 if (rc) {
554 rc = map_smb_to_linux_error(midQ->resp_buf,
568 rc = -EIO;
577 return rc;
585 int rc = 0;
612 rc = wait_for_free_request(ses, long_op);
613 if (rc)
614 return rc;
622 rc = allocate_mid(ses, in_buf, &midQ);
623 if (rc) {
628 return rc;
631 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number);
632 if (rc) {
641 rc = smb_send(ses->server, in_buf, in_buf->smb_buf_length);
648 if (rc < 0)
666 rc = -EIO;
685 rc = -EHOSTDOWN;
692 if (rc != -EHOSTDOWN) {
694 rc = -EAGAIN;
697 rc = -EIO;
705 return rc;
714 rc = -EIO;
732 rc = cifs_verify_signature(out_buf,
735 if (rc) {
743 rc = map_smb_to_linux_error(out_buf, 0 /* no log */ );
751 rc = -EIO;
760 return rc;
769 int rc = 0;
776 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number);
777 if (rc) {
779 return rc;
781 rc = smb_send(ses->server, in_buf, in_buf->smb_buf_length);
783 return rc;
816 int rc = 0;
846 rc = wait_for_free_request(ses, CIFS_BLOCKING_OP);
847 if (rc)
848 return rc;
856 rc = allocate_mid(ses, in_buf, &midQ);
857 if (rc) {
859 return rc;
862 rc = cifs_sign_smb(in_buf, ses->server, &midQ->sequence_number);
863 if (rc) {
866 return rc;
873 rc = smb_send(ses->server, in_buf, in_buf->smb_buf_length);
880 if (rc < 0) {
882 return rc;
886 rc = wait_event_interruptible(ses->server->response_q,
892 if ((rc == -ERESTARTSYS) &&
901 rc = send_nt_cancel(tcon, in_buf, midQ);
902 if (rc) {
904 return rc;
910 rc = send_lock_cancel(xid, tcon, in_buf, out_buf);
914 if (rc && rc != -ENOLCK) {
916 return rc;
936 rc = -EHOSTDOWN;
943 if (rc != -EHOSTDOWN) {
945 rc = -EAGAIN;
948 rc = -EIO;
953 return rc;
959 rc = -EIO;
966 rc = -EIO;
981 rc = cifs_verify_signature(out_buf,
984 if (rc) {
992 rc = map_smb_to_linux_error(out_buf, 0 /* no log */ );
1002 if (rstart && rc == -EACCES)
1004 return rc;