• Home
  • Raw
  • Download

Lines Matching refs:rc

193 	int rc = 0;  in smb_send_kvec()  local
223 rc = sock_sendmsg(ssocket, smb_msg); in smb_send_kvec()
224 if (rc == -EAGAIN) { in smb_send_kvec()
236 if (rc < 0) in smb_send_kvec()
237 return rc; in smb_send_kvec()
239 if (rc == 0) { in smb_send_kvec()
248 *sent += rc; in smb_send_kvec()
302 int rc; in __smb_send_rqst() local
316 rc = -EAGAIN; in __smb_send_rqst()
318 rc = smbd_send(server, num_rqst, rqst); in __smb_send_rqst()
322 rc = -EAGAIN; in __smb_send_rqst()
326 rc = -ERESTARTSYS; in __smb_send_rqst()
332 rc = 0; in __smb_send_rqst()
357 rc = smb_send_kvec(server, &smb_msg, &sent); in __smb_send_rqst()
358 if (rc < 0) in __smb_send_rqst()
379 rc = smb_send_kvec(server, &smb_msg, &sent); in __smb_send_rqst()
380 if (rc < 0) in __smb_send_rqst()
395 rc = smb_send_kvec(server, &smb_msg, &sent); in __smb_send_rqst()
396 if (rc < 0) in __smb_send_rqst()
419 rc = -ERESTARTSYS; in __smb_send_rqst()
440 if (rc < 0 && rc != -EINTR) in __smb_send_rqst()
442 rc); in __smb_send_rqst()
443 else if (rc > 0) in __smb_send_rqst()
444 rc = 0; in __smb_send_rqst()
447 return rc; in __smb_send_rqst()
457 int rc; in smb_send_rqst() local
483 rc = server->ops->init_transform_rq(server, num_rqst + 1, in smb_send_rqst()
485 if (rc) in smb_send_rqst()
488 rc = __smb_send_rqst(server, num_rqst + 1, &cur_rqst[0]); in smb_send_rqst()
492 return rc; in smb_send_rqst()
516 long rc; in wait_for_free_credits() local
562 rc = wait_event_killable_timeout(server->request_q, in wait_for_free_credits()
565 if (!rc) { in wait_for_free_credits()
578 if (rc == -ERESTARTSYS) in wait_for_free_credits()
606 rc = wait_event_killable_timeout( in wait_for_free_credits()
612 if (!rc) { in wait_for_free_credits()
626 if (rc == -ERESTARTSYS) in wait_for_free_credits()
775 int rc; in cifs_setup_async_request() local
791 rc = cifs_sign_rqst(rqst, server, &mid->sequence_number); in cifs_setup_async_request()
792 if (rc) { in cifs_setup_async_request()
794 return ERR_PTR(rc); in cifs_setup_async_request()
810 int rc; in cifs_call_async() local
819 rc = wait_for_free_request(server, flags, &instance); in cifs_call_async()
820 if (rc) in cifs_call_async()
821 return rc; in cifs_call_async()
863 rc = smb_send_rqst(server, 1, rqst, flags); in cifs_call_async()
865 if (rc < 0) { in cifs_call_async()
873 if (rc == 0) in cifs_call_async()
877 return rc; in cifs_call_async()
893 int rc; in SendReceiveNoRsp() local
901 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov); in SendReceiveNoRsp()
902 cifs_dbg(NOISY, "SendRcvNoRsp flags %d rc %d\n", flags, rc); in SendReceiveNoRsp()
904 return rc; in SendReceiveNoRsp()
910 int rc = 0; in cifs_sync_mid_result() local
919 return rc; in cifs_sync_mid_result()
921 rc = -EAGAIN; in cifs_sync_mid_result()
924 rc = -EIO; in cifs_sync_mid_result()
927 rc = -EHOSTDOWN; in cifs_sync_mid_result()
936 rc = -EIO; in cifs_sync_mid_result()
941 return rc; in cifs_sync_mid_result()
963 int rc = 0; in cifs_check_receive() local
972 rc = cifs_verify_signature(&rqst, server, in cifs_check_receive()
974 if (rc) in cifs_check_receive()
976 rc); in cifs_check_receive()
987 int rc; in cifs_setup_request() local
995 rc = allocate_mid(ses, hdr, &mid); in cifs_setup_request()
996 if (rc) in cifs_setup_request()
997 return ERR_PTR(rc); in cifs_setup_request()
998 rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number); in cifs_setup_request()
999 if (rc) { in cifs_setup_request()
1001 return ERR_PTR(rc); in cifs_setup_request()
1067 int i, j, optype, rc = 0; in compound_send_recv() local
1097 rc = wait_for_compound_request(server, num_rqst, flags, in compound_send_recv()
1099 if (rc) in compound_send_recv()
1100 return rc; in compound_send_recv()
1155 rc = smb_send_rqst(server, num_rqst, rqst, flags); in compound_send_recv()
1160 if (rc < 0) { in compound_send_recv()
1171 if (rc < 0 || (flags & CIFS_NO_SRV_RSP)) { in compound_send_recv()
1196 rc = wait_for_response(server, midQ[i]); in compound_send_recv()
1197 if (rc != 0) in compound_send_recv()
1200 if (rc != 0) { in compound_send_recv()
1217 if (rc < 0) in compound_send_recv()
1220 rc = cifs_sync_mid_result(midQ[i], server); in compound_send_recv()
1221 if (rc != 0) { in compound_send_recv()
1229 rc = -EIO; in compound_send_recv()
1244 rc = server->ops->check_receive(midQ[i], server, in compound_send_recv()
1278 return rc; in compound_send_recv()
1298 int rc; in SendReceive2() local
1323 rc = cifs_send_recv(xid, ses, ses->server, in SendReceive2()
1327 return rc; in SendReceive2()
1335 int rc = 0; in SendReceive() local
1366 rc = wait_for_free_request(server, flags, &credits.instance); in SendReceive()
1367 if (rc) in SendReceive()
1368 return rc; in SendReceive()
1376 rc = allocate_mid(ses, in_buf, &midQ); in SendReceive()
1377 if (rc) { in SendReceive()
1381 return rc; in SendReceive()
1384 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); in SendReceive()
1385 if (rc) { in SendReceive()
1392 rc = smb_send(server, in_buf, len); in SendReceive()
1395 if (rc < 0) in SendReceive()
1400 if (rc < 0) in SendReceive()
1403 rc = wait_for_response(server, midQ); in SendReceive()
1404 if (rc != 0) { in SendReceive()
1412 return rc; in SendReceive()
1417 rc = cifs_sync_mid_result(midQ, server); in SendReceive()
1418 if (rc != 0) { in SendReceive()
1420 return rc; in SendReceive()
1425 rc = -EIO; in SendReceive()
1432 rc = cifs_check_receive(midQ, server, 0); in SendReceive()
1437 return rc; in SendReceive()
1470 int rc = 0; in SendReceiveBlockingLock() local
1505 rc = wait_for_free_request(server, CIFS_BLOCKING_OP, &instance); in SendReceiveBlockingLock()
1506 if (rc) in SendReceiveBlockingLock()
1507 return rc; in SendReceiveBlockingLock()
1515 rc = allocate_mid(ses, in_buf, &midQ); in SendReceiveBlockingLock()
1516 if (rc) { in SendReceiveBlockingLock()
1518 return rc; in SendReceiveBlockingLock()
1521 rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); in SendReceiveBlockingLock()
1522 if (rc) { in SendReceiveBlockingLock()
1525 return rc; in SendReceiveBlockingLock()
1529 rc = smb_send(server, in_buf, len); in SendReceiveBlockingLock()
1532 if (rc < 0) in SendReceiveBlockingLock()
1537 if (rc < 0) { in SendReceiveBlockingLock()
1539 return rc; in SendReceiveBlockingLock()
1543 rc = wait_event_interruptible(server->response_q, in SendReceiveBlockingLock()
1549 if ((rc == -ERESTARTSYS) && in SendReceiveBlockingLock()
1557 rc = send_cancel(server, &rqst, midQ); in SendReceiveBlockingLock()
1558 if (rc) { in SendReceiveBlockingLock()
1560 return rc; in SendReceiveBlockingLock()
1566 rc = send_lock_cancel(xid, tcon, in_buf, out_buf); in SendReceiveBlockingLock()
1570 if (rc && rc != -ENOLCK) { in SendReceiveBlockingLock()
1572 return rc; in SendReceiveBlockingLock()
1576 rc = wait_for_response(server, midQ); in SendReceiveBlockingLock()
1577 if (rc) { in SendReceiveBlockingLock()
1584 return rc; in SendReceiveBlockingLock()
1593 rc = cifs_sync_mid_result(midQ, server); in SendReceiveBlockingLock()
1594 if (rc != 0) in SendReceiveBlockingLock()
1595 return rc; in SendReceiveBlockingLock()
1599 rc = -EIO; in SendReceiveBlockingLock()
1606 rc = cifs_check_receive(midQ, server, 0); in SendReceiveBlockingLock()
1609 if (rstart && rc == -EACCES) in SendReceiveBlockingLock()
1611 return rc; in SendReceiveBlockingLock()