• Home
  • Raw
  • Download

Lines Matching refs:rc

162 	int rc;  in __smb2_reconnect()  local
178 rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc); in __smb2_reconnect()
183 rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc); in __smb2_reconnect()
187 rc = dfs_cache_noreq_find(tcon->dfs_path + 1, NULL, &tl); in __smb2_reconnect()
188 if (rc) in __smb2_reconnect()
211 rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc); in __smb2_reconnect()
212 if (!rc) in __smb2_reconnect()
214 if (rc == -EREMOTE) in __smb2_reconnect()
218 if (!rc) { in __smb2_reconnect()
220 rc = dfs_cache_noreq_update_tgthint(tcon->dfs_path + 1, in __smb2_reconnect()
223 rc = -ENOENT; in __smb2_reconnect()
228 return rc; in __smb2_reconnect()
241 int rc; in smb2_reconnect() local
302 rc = wait_event_interruptible_timeout(server->response_q, in smb2_reconnect()
305 if (rc < 0) { in smb2_reconnect()
347 rc = -EHOSTDOWN; in smb2_reconnect()
352 rc = cifs_negotiate_protocol(0, tcon->ses); in smb2_reconnect()
353 if (!rc && tcon->ses->need_reconnect) in smb2_reconnect()
354 rc = cifs_setup_session(0, tcon->ses, nls_codepage); in smb2_reconnect()
356 if (rc || !tcon->need_reconnect) { in smb2_reconnect()
365 rc = __smb2_reconnect(nls_codepage, tcon); in smb2_reconnect()
368 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in smb2_reconnect()
369 if (rc) { in smb2_reconnect()
371 printk_once(KERN_WARNING "reconnect tcon failed rc = %d\n", rc); in smb2_reconnect()
398 rc = -EAGAIN; in smb2_reconnect()
401 return rc; in smb2_reconnect()
458 int rc; in smb2_plain_req_init() local
460 rc = smb2_reconnect(smb2_command, tcon); in smb2_plain_req_init()
461 if (rc) in smb2_plain_req_init()
462 return rc; in smb2_plain_req_init()
676 int rc = 0; in smb311_decode_neg_context() local
704 rc = decode_encrypt_ctx(server, in smb311_decode_neg_context()
715 if (rc) in smb311_decode_neg_context()
722 return rc; in smb311_decode_neg_context()
809 int rc = 0; in SMB2_negotiate() local
824 rc = smb2_plain_req_init(SMB2_NEGOTIATE, NULL, (void **) &req, &total_len); in SMB2_negotiate()
825 if (rc) in SMB2_negotiate()
826 return rc; in SMB2_negotiate()
882 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_negotiate()
889 if (rc == -EOPNOTSUPP) { in SMB2_negotiate()
894 } else if (rc != 0) in SMB2_negotiate()
945 rc = -EIO; in SMB2_negotiate()
987 rc = cifs_enable_signing(server, ses->sign); in SMB2_negotiate()
988 if (rc) in SMB2_negotiate()
991 rc = decode_negTokenInit(security_blob, blob_length, server); in SMB2_negotiate()
992 if (rc == 1) in SMB2_negotiate()
993 rc = 0; in SMB2_negotiate()
994 else if (rc == 0) in SMB2_negotiate()
995 rc = -EIO; in SMB2_negotiate()
1000 rc = smb311_decode_neg_context(rsp, server, in SMB2_negotiate()
1007 return rc; in SMB2_negotiate()
1012 int rc; in smb3_validate_negotiate() local
1089 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, in smb3_validate_negotiate()
1093 if (rc == -EOPNOTSUPP) { in smb3_validate_negotiate()
1099 rc = 0; in smb3_validate_negotiate()
1101 } else if (rc != 0) { in smb3_validate_negotiate()
1102 cifs_tcon_dbg(VFS, "validate protocol negotiate failed: %d\n", rc); in smb3_validate_negotiate()
1103 rc = -EIO; in smb3_validate_negotiate()
1107 rc = -EIO; in smb3_validate_negotiate()
1131 rc = 0; in smb3_validate_negotiate()
1141 return rc; in smb3_validate_negotiate()
1188 int rc; in SMB2_sess_alloc_buffer() local
1194 rc = smb2_plain_req_init(SMB2_SESSION_SETUP, NULL, (void **) &req, in SMB2_sess_alloc_buffer()
1196 if (rc) in SMB2_sess_alloc_buffer()
1197 return rc; in SMB2_sess_alloc_buffer()
1248 int rc; in SMB2_sess_sendreceive() local
1263 rc = cifs_send_recv(sess_data->xid, sess_data->ses, in SMB2_sess_sendreceive()
1270 return rc; in SMB2_sess_sendreceive()
1276 int rc = 0; in SMB2_sess_establish_session() local
1281 rc = ses->server->ops->generate_signingkey(ses); in SMB2_sess_establish_session()
1282 if (rc) { in SMB2_sess_establish_session()
1286 return rc; in SMB2_sess_establish_session()
1300 return rc; in SMB2_sess_establish_session()
1307 int rc; in SMB2_auth_kerberos() local
1313 rc = SMB2_sess_alloc_buffer(sess_data); in SMB2_auth_kerberos()
1314 if (rc) in SMB2_auth_kerberos()
1319 rc = PTR_ERR(spnego_key); in SMB2_auth_kerberos()
1333 rc = -EKEYREJECTED; in SMB2_auth_kerberos()
1343 rc = -ENOMEM; in SMB2_auth_kerberos()
1351 rc = SMB2_sess_sendreceive(sess_data); in SMB2_auth_kerberos()
1352 if (rc) in SMB2_auth_kerberos()
1360 rc = SMB2_sess_establish_session(sess_data); in SMB2_auth_kerberos()
1365 sess_data->result = rc; in SMB2_auth_kerberos()
1385 int rc; in SMB2_sess_auth_rawntlmssp_negotiate() local
1398 rc = -ENOMEM; in SMB2_sess_auth_rawntlmssp_negotiate()
1403 rc = SMB2_sess_alloc_buffer(sess_data); in SMB2_sess_auth_rawntlmssp_negotiate()
1404 if (rc) in SMB2_sess_auth_rawntlmssp_negotiate()
1410 rc = -ENOMEM; in SMB2_sess_auth_rawntlmssp_negotiate()
1418 rc = -EOPNOTSUPP; in SMB2_sess_auth_rawntlmssp_negotiate()
1427 rc = SMB2_sess_sendreceive(sess_data); in SMB2_sess_auth_rawntlmssp_negotiate()
1433 rc = 0; in SMB2_sess_auth_rawntlmssp_negotiate()
1435 if (rc) in SMB2_sess_auth_rawntlmssp_negotiate()
1442 rc = -EIO; in SMB2_sess_auth_rawntlmssp_negotiate()
1445 rc = decode_ntlmssp_challenge(rsp->Buffer, in SMB2_sess_auth_rawntlmssp_negotiate()
1447 if (rc) in SMB2_sess_auth_rawntlmssp_negotiate()
1459 if (!rc) { in SMB2_sess_auth_rawntlmssp_negotiate()
1467 sess_data->result = rc; in SMB2_sess_auth_rawntlmssp_negotiate()
1474 int rc; in SMB2_sess_auth_rawntlmssp_authenticate() local
1482 rc = SMB2_sess_alloc_buffer(sess_data); in SMB2_sess_auth_rawntlmssp_authenticate()
1483 if (rc) in SMB2_sess_auth_rawntlmssp_authenticate()
1489 rc = build_ntlmssp_auth_blob(&ntlmssp_blob, &blob_length, ses, in SMB2_sess_auth_rawntlmssp_authenticate()
1491 if (rc) { in SMB2_sess_auth_rawntlmssp_authenticate()
1492 cifs_dbg(FYI, "build_ntlmssp_auth_blob failed %d\n", rc); in SMB2_sess_auth_rawntlmssp_authenticate()
1499 rc = -EOPNOTSUPP; in SMB2_sess_auth_rawntlmssp_authenticate()
1505 rc = SMB2_sess_sendreceive(sess_data); in SMB2_sess_auth_rawntlmssp_authenticate()
1506 if (rc) in SMB2_sess_auth_rawntlmssp_authenticate()
1514 rc = SMB2_sess_establish_session(sess_data); in SMB2_sess_auth_rawntlmssp_authenticate()
1520 sess_data->result = rc; in SMB2_sess_auth_rawntlmssp_authenticate()
1556 int rc = 0; in SMB2_sess_setup() local
1571 rc = SMB2_select_sec(ses, sess_data); in SMB2_sess_setup()
1572 if (rc) in SMB2_sess_setup()
1591 rc = sess_data->result; in SMB2_sess_setup()
1594 return rc; in SMB2_sess_setup()
1602 int rc = 0; in SMB2_logoff() local
1621 rc = smb2_plain_req_init(SMB2_LOGOFF, NULL, (void **) &req, &total_len); in SMB2_logoff()
1622 if (rc) in SMB2_logoff()
1623 return rc; in SMB2_logoff()
1642 rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov); in SMB2_logoff()
1650 return rc; in SMB2_logoff()
1677 int rc = 0; in SMB2_tcon() local
1704 rc = smb2_plain_req_init(SMB2_TREE_CONNECT, tcon, (void **) &req, in SMB2_tcon()
1706 if (rc) { in SMB2_tcon()
1708 return rc; in SMB2_tcon()
1744 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_tcon()
1747 trace_smb3_tcon(xid, tcon->tid, ses->Suid, tree, rc); in SMB2_tcon()
1748 if (rc != 0) { in SMB2_tcon()
1770 rc = -EOPNOTSUPP; in SMB2_tcon()
1792 rc = server->ops->validate_negotiate(xid, tcon); in SMB2_tcon()
1797 return rc; in SMB2_tcon()
1811 int rc = 0; in SMB2_tdis() local
1827 rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, (void **) &req, in SMB2_tdis()
1829 if (rc) in SMB2_tdis()
1830 return rc; in SMB2_tdis()
1844 rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov); in SMB2_tdis()
1846 if (rc) in SMB2_tdis()
1849 return rc; in SMB2_tdis()
2271 int rc = 0; in smb311_posix_mkdir() local
2287 rc = -EIO; in smb311_posix_mkdir()
2292 rc = smb2_plain_req_init(SMB2_CREATE, tcon, (void **) &req, &total_len); in smb311_posix_mkdir()
2293 if (rc) in smb311_posix_mkdir()
2326 rc = alloc_path_with_tree_prefix(&copy_path, &copy_size, in smb311_posix_mkdir()
2329 if (rc) in smb311_posix_mkdir()
2345 rc = -ENOMEM; in smb311_posix_mkdir()
2363 rc = add_posix_context(iov, &n_iov, mode); in smb311_posix_mkdir()
2364 if (rc) in smb311_posix_mkdir()
2378 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in smb311_posix_mkdir()
2379 if (rc) { in smb311_posix_mkdir()
2383 FILE_WRITE_ATTRIBUTES, rc); in smb311_posix_mkdir()
2403 return rc; in smb311_posix_mkdir()
2419 int rc; in SMB2_open_init() local
2421 rc = smb2_plain_req_init(SMB2_CREATE, tcon, (void **) &req, &total_len); in SMB2_open_init()
2422 if (rc) in SMB2_open_init()
2423 return rc; in SMB2_open_init()
2456 rc = alloc_path_with_tree_prefix(&copy_path, &copy_size, in SMB2_open_init()
2459 if (rc) in SMB2_open_init()
2460 return rc; in SMB2_open_init()
2493 rc = add_lease_context(server, iov, &n_iov, in SMB2_open_init()
2495 if (rc) in SMB2_open_init()
2496 return rc; in SMB2_open_init()
2508 rc = add_durable_context(iov, &n_iov, oparms, in SMB2_open_init()
2510 if (rc) in SMB2_open_init()
2511 return rc; in SMB2_open_init()
2522 rc = add_posix_context(iov, &n_iov, oparms->mode); in SMB2_open_init()
2523 if (rc) in SMB2_open_init()
2524 return rc; in SMB2_open_init()
2536 rc = add_twarp_context(iov, &n_iov, tcon->snapshot_time); in SMB2_open_init()
2537 if (rc) in SMB2_open_init()
2538 return rc; in SMB2_open_init()
2551 if (rc) in SMB2_open_init()
2552 return rc; in SMB2_open_init()
2595 int rc = 0; in SMB2_open() local
2612 rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path); in SMB2_open()
2613 if (rc) in SMB2_open()
2619 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, in SMB2_open()
2623 if (rc != 0) { in SMB2_open()
2632 oparms->create_options, oparms->desired_access, rc); in SMB2_open()
2633 if (rc == -EREMCHG) { in SMB2_open()
2666 return rc; in SMB2_open()
2678 int rc; in SMB2_ioctl_init() local
2681 rc = smb2_ioctl_req_init(opcode, tcon, (void **) &req, &total_len); in SMB2_ioctl_init()
2682 if (rc) in SMB2_ioctl_init()
2683 return rc; in SMB2_ioctl_init()
2784 int rc = 0; in SMB2_ioctl() local
2816 rc = SMB2_ioctl_init(tcon, &rqst, persistent_fid, volatile_fid, opcode, in SMB2_ioctl()
2818 if (rc) in SMB2_ioctl()
2821 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, in SMB2_ioctl()
2825 if (rc != 0) in SMB2_ioctl()
2827 ses->Suid, 0, opcode, rc); in SMB2_ioctl()
2829 if ((rc != 0) && (rc != -EINVAL) && (rc != -E2BIG)) { in SMB2_ioctl()
2832 } else if (rc == -EINVAL) { in SMB2_ioctl()
2838 } else if (rc == -E2BIG) { in SMB2_ioctl()
2857 rc = -EIO; in SMB2_ioctl()
2865 rc = -EIO; in SMB2_ioctl()
2872 rc = -ENOMEM; in SMB2_ioctl()
2879 return rc; in SMB2_ioctl()
2890 int rc; in SMB2_set_compression() local
2897 rc = SMB2_ioctl(xid, tcon, persistent_fid, volatile_fid, in SMB2_set_compression()
2903 cifs_dbg(FYI, "set compression rc %d\n", rc); in SMB2_set_compression()
2905 return rc; in SMB2_set_compression()
2915 int rc; in SMB2_close_init() local
2917 rc = smb2_plain_req_init(SMB2_CLOSE, tcon, (void **) &req, &total_len); in SMB2_close_init()
2918 if (rc) in SMB2_close_init()
2919 return rc; in SMB2_close_init()
2946 int rc = 0; in SMB2_close_flags() local
2962 rc = SMB2_close_init(tcon, &rqst, persistent_fid, volatile_fid); in SMB2_close_flags()
2963 if (rc) in SMB2_close_flags()
2966 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_close_flags()
2969 if (rc != 0) { in SMB2_close_flags()
2972 rc); in SMB2_close_flags()
2985 return rc; in SMB2_close_flags()
2992 int rc; in SMB2_close() local
2995 rc = SMB2_close_flags(xid, tcon, persistent_fid, volatile_fid, 0); in SMB2_close()
2998 if (rc == -EINTR) { in SMB2_close()
3006 return rc; in SMB2_close()
3050 int rc; in smb2_validate_and_copy_iov() local
3055 rc = smb2_validate_iov(offset, buffer_length, iov, minbufsize); in smb2_validate_and_copy_iov()
3056 if (rc) in smb2_validate_and_copy_iov()
3057 return rc; in smb2_validate_and_copy_iov()
3073 int rc; in SMB2_query_info_init() local
3075 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, (void **) &req, in SMB2_query_info_init()
3077 if (rc) in SMB2_query_info_init()
3078 return rc; in SMB2_query_info_init()
3117 int rc = 0; in query_info() local
3140 rc = SMB2_query_info_init(tcon, &rqst, persistent_fid, volatile_fid, in query_info()
3143 if (rc) in query_info()
3149 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in query_info()
3152 if (rc) { in query_info()
3155 ses->Suid, info_class, (__u32)info_type, rc); in query_info()
3169 rc); in query_info()
3171 rc = -ENOMEM; in query_info()
3178 rc = smb2_validate_and_copy_iov(le16_to_cpu(rsp->OutputBufferOffset), in query_info()
3181 if (rc && allocated) { in query_info()
3190 return rc; in query_info()
3240 int rc; in SMB2_notify_init() local
3242 rc = smb2_plain_req_init(SMB2_CHANGE_NOTIFY, tcon, (void **) &req, &total_len); in SMB2_notify_init()
3243 if (rc) in SMB2_notify_init()
3244 return rc; in SMB2_notify_init()
3273 int rc = 0; in SMB2_change_notify() local
3287 rc = SMB2_notify_init(xid, &rqst, tcon, persistent_fid, volatile_fid, in SMB2_change_notify()
3289 if (rc) in SMB2_change_notify()
3294 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_change_notify()
3296 if (rc != 0) { in SMB2_change_notify()
3299 (u8)watch_tree, completion_filter, rc); in SMB2_change_notify()
3308 return rc; in SMB2_change_notify()
3345 int rc; in smb2_reconnect_server() local
3384 rc = smb2_reconnect(SMB2_INTERNAL_CMD, tcon); in smb2_reconnect_server()
3385 if (!rc) in smb2_reconnect_server()
3410 int rc = 0; in SMB2_echo() local
3421 return rc; in SMB2_echo()
3424 rc = smb2_plain_req_init(SMB2_ECHO, NULL, (void **)&req, &total_len); in SMB2_echo()
3425 if (rc) in SMB2_echo()
3426 return rc; in SMB2_echo()
3433 rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, NULL, in SMB2_echo()
3435 if (rc) in SMB2_echo()
3436 cifs_dbg(FYI, "Echo request failed: %d\n", rc); in SMB2_echo()
3439 return rc; in SMB2_echo()
3456 int rc; in SMB2_flush_init() local
3458 rc = smb2_plain_req_init(SMB2_FLUSH, tcon, (void **) &req, &total_len); in SMB2_flush_init()
3459 if (rc) in SMB2_flush_init()
3460 return rc; in SMB2_flush_init()
3481 int rc = 0; in SMB2_flush() local
3495 rc = SMB2_flush_init(xid, &rqst, tcon, persistent_fid, volatile_fid); in SMB2_flush()
3496 if (rc) in SMB2_flush()
3500 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_flush()
3502 if (rc != 0) { in SMB2_flush()
3505 rc); in SMB2_flush()
3513 return rc; in SMB2_flush()
3525 int rc = -EACCES; in smb2_new_read_req() local
3530 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, (void **) &req, in smb2_new_read_req()
3532 if (rc) in smb2_new_read_req()
3533 return rc; in smb2_new_read_req()
3614 return rc; in smb2_new_read_req()
3644 int rc; in smb2_readv_callback() local
3646 rc = smb2_verify_signature(&rqst, server); in smb2_readv_callback()
3647 if (rc) in smb2_readv_callback()
3649 rc); in smb2_readv_callback()
3704 int rc, flags = 0; in smb2_async_readv() local
3725 rc = smb2_new_read_req( in smb2_async_readv()
3727 if (rc) in smb2_async_readv()
3728 return rc; in smb2_async_readv()
3744 rc = adjust_credits(server, &rdata->credits, rdata->bytes); in smb2_async_readv()
3745 if (rc) in smb2_async_readv()
3752 rc = cifs_call_async(io_parms.tcon->ses->server, &rqst, in smb2_async_readv()
3756 if (rc) { in smb2_async_readv()
3762 io_parms.offset, io_parms.length, rc); in smb2_async_readv()
3767 return rc; in smb2_async_readv()
3775 int resp_buftype, rc; in SMB2_read() local
3785 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0); in SMB2_read()
3786 if (rc) in SMB2_read()
3787 return rc; in SMB2_read()
3799 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_read()
3802 if (rc) { in SMB2_read()
3803 if (rc != -ENODATA) { in SMB2_read()
3805 cifs_dbg(VFS, "Send error in read = %d\n", rc); in SMB2_read()
3809 rc); in SMB2_read()
3816 return rc == -ENODATA ? 0 : rc; in SMB2_read()
3829 rc = -EIO; in SMB2_read()
3843 return rc; in SMB2_read()
3930 int rc = -EACCES, flags = 0; in smb2_async_writev() local
3939 rc = smb2_plain_req_init(SMB2_WRITE, tcon, (void **) &req, &total_len); in smb2_async_writev()
3940 if (rc) in smb2_async_writev()
3941 return rc; in smb2_async_writev()
3977 rc = -EAGAIN; in smb2_async_writev()
4036 rc = adjust_credits(server, &wdata->credits, wdata->bytes); in smb2_async_writev()
4037 if (rc) in smb2_async_writev()
4044 rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, NULL, in smb2_async_writev()
4047 if (rc) { in smb2_async_writev()
4050 wdata->bytes, rc); in smb2_async_writev()
4057 return rc; in smb2_async_writev()
4071 int rc = 0; in SMB2_write() local
4082 return rc; in SMB2_write()
4084 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, (void **) &req, in SMB2_write()
4086 if (rc) in SMB2_write()
4087 return rc; in SMB2_write()
4120 rc = cifs_send_recv(xid, io_parms->tcon->ses, &rqst, in SMB2_write()
4124 if (rc) { in SMB2_write()
4128 io_parms->offset, io_parms->length, rc); in SMB2_write()
4130 cifs_dbg(VFS, "Send error in write = %d\n", rc); in SMB2_write()
4141 return rc; in SMB2_write()
4202 int rc = 0; in SMB2_query_directory() local
4220 rc = smb2_plain_req_init(SMB2_QUERY_DIRECTORY, tcon, (void **) &req, in SMB2_query_directory()
4222 if (rc) in SMB2_query_directory()
4223 return rc; in SMB2_query_directory()
4240 rc = -EINVAL; in SMB2_query_directory()
4277 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_query_directory()
4281 if (rc) { in SMB2_query_directory()
4282 if (rc == -ENODATA && in SMB2_query_directory()
4287 rc = 0; in SMB2_query_directory()
4290 tcon->ses->Suid, index, 0, rc); in SMB2_query_directory()
4296 rc = smb2_validate_iov(le16_to_cpu(rsp->OutputBufferOffset), in SMB2_query_directory()
4299 if (rc) { in SMB2_query_directory()
4301 tcon->ses->Suid, index, 0, rc); in SMB2_query_directory()
4333 return rc; in SMB2_query_directory()
4337 return rc; in SMB2_query_directory()
4349 int rc; in SMB2_set_info_init() local
4351 rc = smb2_plain_req_init(SMB2_SET_INFO, tcon, (void **) &req, &total_len); in SMB2_set_info_init()
4352 if (rc) in SMB2_set_info_init()
4353 return rc; in SMB2_set_info_init()
4399 int rc = 0; in send_set_info() local
4421 rc = SMB2_set_info_init(tcon, &rqst, persistent_fid, volatile_fid, pid, in send_set_info()
4424 if (rc) { in send_set_info()
4426 return rc; in send_set_info()
4430 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, in send_set_info()
4435 if (rc != 0) { in send_set_info()
4438 ses->Suid, info_class, (__u32)info_type, rc); in send_set_info()
4443 return rc; in send_set_info()
4490 int rc; in SMB2_oplock_break() local
4500 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, (void **) &req, in SMB2_oplock_break()
4502 if (rc) in SMB2_oplock_break()
4503 return rc; in SMB2_oplock_break()
4522 rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov); in SMB2_oplock_break()
4525 if (rc) { in SMB2_oplock_break()
4527 cifs_dbg(FYI, "Send error in Oplock Break = %d\n", rc); in SMB2_oplock_break()
4530 return rc; in SMB2_oplock_break()
4568 int rc; in build_qfs_info_req() local
4577 rc = smb2_plain_req_init(SMB2_QUERY_INFO, tcon, (void **) &req, in build_qfs_info_req()
4579 if (rc) in build_qfs_info_req()
4580 return rc; in build_qfs_info_req()
4605 int rc = 0; in SMB311_posix_qfs_info() local
4611 rc = build_qfs_info_req(&iov, tcon, FS_POSIX_INFORMATION, in SMB311_posix_qfs_info()
4614 if (rc) in SMB311_posix_qfs_info()
4615 return rc; in SMB311_posix_qfs_info()
4624 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB311_posix_qfs_info()
4626 if (rc) { in SMB311_posix_qfs_info()
4634 rc = smb2_validate_iov(le16_to_cpu(rsp->OutputBufferOffset), in SMB311_posix_qfs_info()
4637 if (!rc) in SMB311_posix_qfs_info()
4642 return rc; in SMB311_posix_qfs_info()
4653 int rc = 0; in SMB2_QFS_info() local
4659 rc = build_qfs_info_req(&iov, tcon, FS_FULL_SIZE_INFORMATION, in SMB2_QFS_info()
4662 if (rc) in SMB2_QFS_info()
4663 return rc; in SMB2_QFS_info()
4672 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_QFS_info()
4674 if (rc) { in SMB2_QFS_info()
4682 rc = smb2_validate_iov(le16_to_cpu(rsp->OutputBufferOffset), in SMB2_QFS_info()
4685 if (!rc) in SMB2_QFS_info()
4690 return rc; in SMB2_QFS_info()
4701 int rc = 0; in SMB2_QFS_attr() local
4724 rc = build_qfs_info_req(&iov, tcon, level, max_len, in SMB2_QFS_attr()
4726 if (rc) in SMB2_QFS_attr()
4727 return rc; in SMB2_QFS_attr()
4736 rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_QFS_attr()
4738 if (rc) { in SMB2_QFS_attr()
4746 rc = smb2_validate_iov(offset, rsp_len, &rsp_iov, min_len); in SMB2_QFS_attr()
4747 if (rc) in SMB2_QFS_attr()
4772 return rc; in SMB2_QFS_attr()
4781 int rc = 0; in smb2_lockv() local
4792 rc = smb2_plain_req_init(SMB2_LOCK, tcon, (void **) &req, &total_len); in smb2_lockv()
4793 if (rc) in smb2_lockv()
4794 return rc; in smb2_lockv()
4818 rc = cifs_send_recv(xid, tcon->ses, &rqst, &resp_buf_type, flags, in smb2_lockv()
4821 if (rc) { in smb2_lockv()
4822 cifs_dbg(FYI, "Send error in smb2_lockv = %d\n", rc); in smb2_lockv()
4825 tcon->ses->Suid, rc); in smb2_lockv()
4828 return rc; in smb2_lockv()
4853 int rc; in SMB2_lease_break() local
4865 rc = smb2_plain_req_init(SMB2_OPLOCK_BREAK, tcon, (void **) &req, in SMB2_lease_break()
4867 if (rc) in SMB2_lease_break()
4868 return rc; in SMB2_lease_break()
4889 rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov); in SMB2_lease_break()
4894 if (rc) { in SMB2_lease_break()
4897 ses->Suid, *please_key_low, *please_key_high, rc); in SMB2_lease_break()
4898 cifs_dbg(FYI, "Send error in Lease Break = %d\n", rc); in SMB2_lease_break()
4903 return rc; in SMB2_lease_break()