Lines Matching full:tcon
69 /* reconnect the socket, tcon, and smb session if needed */
71 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument
79 * SMBs NegProt, SessSetup, uLogoff do not have tcon yet so check for in cifs_reconnect_tcon()
83 if (!tcon) in cifs_reconnect_tcon()
86 ses = tcon->ses; in cifs_reconnect_tcon()
91 * have tcon) are allowed as we start umount in cifs_reconnect_tcon()
93 spin_lock(&tcon->tc_lock); in cifs_reconnect_tcon()
94 if (tcon->status == TID_EXITING) { in cifs_reconnect_tcon()
96 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
102 spin_unlock(&tcon->tc_lock); in cifs_reconnect_tcon()
105 rc = cifs_wait_for_server_reconnect(server, tcon->retry); in cifs_reconnect_tcon()
110 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in cifs_reconnect_tcon()
127 if (tcon->retry) in cifs_reconnect_tcon()
148 if (tcon->need_reconnect) in cifs_reconnect_tcon()
161 /* do we need to reconnect tcon? */ in cifs_reconnect_tcon()
162 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon()
168 cifs_mark_open_files_invalid(tcon); in cifs_reconnect_tcon()
169 rc = cifs_tree_connect(0, tcon, nls_codepage); in cifs_reconnect_tcon()
171 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon()
174 pr_warn_once("reconnect tcon failed rc = %d\n", rc); in cifs_reconnect_tcon()
182 reset_cifs_unix_caps(0, tcon, NULL, NULL); in cifs_reconnect_tcon()
212 small_smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in small_smb_init() argument
217 rc = cifs_reconnect_tcon(tcon, smb_command); in small_smb_init()
228 tcon, wct); in small_smb_init()
230 if (tcon != NULL) in small_smb_init()
231 cifs_stats_inc(&tcon->num_smbs_sent); in small_smb_init()
264 __smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in __smb_init() argument
279 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
282 if (tcon != NULL) in __smb_init()
283 cifs_stats_inc(&tcon->num_smbs_sent); in __smb_init()
290 smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in smb_init() argument
295 rc = cifs_reconnect_tcon(tcon, smb_command); in smb_init()
299 return __smb_init(smb_command, wct, tcon, request_buf, response_buf); in smb_init()
303 smb_init_no_reconnect(int smb_command, int wct, struct cifs_tcon *tcon, in smb_init_no_reconnect() argument
306 spin_lock(&tcon->ses->chan_lock); in smb_init_no_reconnect()
307 if (cifs_chan_needs_reconnect(tcon->ses, tcon->ses->server) || in smb_init_no_reconnect()
308 tcon->need_reconnect) { in smb_init_no_reconnect()
309 spin_unlock(&tcon->ses->chan_lock); in smb_init_no_reconnect()
312 spin_unlock(&tcon->ses->chan_lock); in smb_init_no_reconnect()
314 return __smb_init(smb_command, wct, tcon, request_buf, response_buf); in smb_init_no_reconnect()
420 rc = smb_init(SMB_COM_NEGOTIATE, 0, NULL /* no tcon yet */ , in CIFSSMBNegotiate()
512 CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBTDis() argument
520 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis()
526 * the tcon is no longer on the list, so no need to take lock before in CIFSSMBTDis()
529 spin_lock(&tcon->ses->chan_lock); in CIFSSMBTDis()
530 if ((tcon->need_reconnect) || CIFS_ALL_CHANS_NEED_RECONNECT(tcon->ses)) { in CIFSSMBTDis()
531 spin_unlock(&tcon->ses->chan_lock); in CIFSSMBTDis()
534 spin_unlock(&tcon->ses->chan_lock); in CIFSSMBTDis()
536 rc = small_smb_init(SMB_COM_TREE_DISCONNECT, 0, tcon, in CIFSSMBTDis()
541 rc = SendReceiveNoRsp(xid, tcon->ses, (char *)smb_buffer, 0); in CIFSSMBTDis()
665 CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon, in CIFSPOSIXDelFile() argument
679 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSPOSIXDelFile()
727 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
733 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSPOSIXDelFile()
742 CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in CIFSSMBDelFile() argument
753 rc = smb_init(SMB_COM_DELETE, 1, tcon, (void **) &pSMB, in CIFSSMBDelFile()
772 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
774 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSSMBDelFile()
786 CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in CIFSSMBRmDir() argument
798 rc = smb_init(SMB_COM_DELETE_DIRECTORY, 0, tcon, (void **) &pSMB, in CIFSSMBRmDir()
816 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBRmDir()
818 cifs_stats_inc(&tcon->stats.cifs_stats.num_rmdirs); in CIFSSMBRmDir()
830 struct cifs_tcon *tcon, const char *name, in CIFSSMBMkDir() argument
842 rc = smb_init(SMB_COM_CREATE_DIRECTORY, 0, tcon, (void **) &pSMB, in CIFSSMBMkDir()
860 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBMkDir()
862 cifs_stats_inc(&tcon->stats.cifs_stats.num_mkdirs); in CIFSSMBMkDir()
873 CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon, in CIFSPOSIXCreate() argument
890 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSPOSIXCreate()
938 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXCreate()
984 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixmkdirs); in CIFSPOSIXCreate()
986 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixopens); in CIFSPOSIXCreate()
1039 SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, in SMBLegacyOpen() argument
1053 rc = smb_init(SMB_COM_OPEN_ANDX, 15, tcon, (void **) &pSMB, in SMBLegacyOpen()
1102 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBLegacyOpen()
1104 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in SMBLegacyOpen()
1153 struct cifs_tcon *tcon = oparms->tcon; in CIFS_open() local
1162 rc = smb_init(SMB_COM_NT_CREATE_ANDX, 24, tcon, (void **)&req, in CIFS_open()
1208 if (tcon->ses->capabilities & CAP_UNIX) in CIFS_open()
1226 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *)req, in CIFS_open()
1228 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in CIFS_open()
1277 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in cifs_readv_callback() local
1278 struct TCP_Server_Info *server = tcon->ses->server; in cifs_readv_callback()
1308 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1318 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1351 struct cifs_tcon *tcon = tlink_tcon(rdata->req->cfile->tlink); in cifs_async_readv() local
1358 if (tcon->ses->capabilities & CAP_LARGE_FILES) in cifs_async_readv()
1368 rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **)&smb); in cifs_async_readv()
1398 rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, in cifs_async_readv()
1402 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in cifs_async_readv()
1422 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBRead() local
1426 if (tcon->ses->capabilities & CAP_LARGE_FILES) in CIFSSMBRead()
1437 rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **) &pSMB); in CIFSSMBRead()
1444 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBRead()
1445 if (tcon->ses->server == NULL) in CIFSSMBRead()
1468 rc = SendReceive2(xid, tcon->ses, iov, 1, &resp_buf_type, in CIFSSMBRead()
1471 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in CIFSSMBRead()
1530 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite() local
1536 if (tcon->ses == NULL) in CIFSSMBWrite()
1539 if (tcon->ses->capabilities & CAP_LARGE_FILES) in CIFSSMBWrite()
1549 rc = smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB, in CIFSSMBWrite()
1557 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBWrite()
1558 if (tcon->ses->server == NULL) in CIFSSMBWrite()
1575 if (tcon->ses->capabilities & CAP_LARGE_WRITE_X) { in CIFSSMBWrite()
1578 bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) in CIFSSMBWrite()
1611 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBWrite()
1613 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in CIFSSMBWrite()
1647 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in cifs_writev_callback() local
1660 result = cifs_check_receive(mid, tcon->ses->server, 0); in cifs_writev_callback()
1700 add_credits(tcon->ses->server, &credits, 0); in cifs_writev_callback()
1710 struct cifs_tcon *tcon = tlink_tcon(wdata->req->cfile->tlink); in cifs_async_writev() local
1714 if (tcon->ses->capabilities & CAP_LARGE_FILES) { in cifs_async_writev()
1725 rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **)&smb); in cifs_async_writev()
1772 rc = cifs_call_async(tcon->ses->server, &rqst, NULL, in cifs_async_writev()
1776 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in cifs_async_writev()
1799 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite2() local
1807 if (tcon->ses->capabilities & CAP_LARGE_FILES) { in CIFSSMBWrite2()
1816 rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB); in CIFSSMBWrite2()
1823 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBWrite2()
1824 if (tcon->ses->server == NULL) in CIFSSMBWrite2()
1860 rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, 0, in CIFSSMBWrite2()
1863 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in CIFSSMBWrite2()
1892 int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon, in cifs_lockv() argument
1906 rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB); in cifs_lockv()
1927 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv()
1928 rc = SendReceive2(xid, tcon->ses, iov, 2, &resp_buf_type, in cifs_lockv()
1938 CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBLock() argument
1953 rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB); in CIFSSMBLock()
1992 rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB, in CIFSSMBLock()
1995 rc = SendReceiveNoRsp(xid, tcon->ses, (char *)pSMB, flags); in CIFSSMBLock()
1997 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()
2007 CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBPosixLock() argument
2026 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBPosixLock()
2079 rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB, in CIFSSMBPosixLock()
2084 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovecs */, in CIFSSMBPosixLock()
2139 CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) in CIFSSMBClose() argument
2146 rc = small_smb_init(SMB_COM_CLOSE, 3, tcon, (void **) &pSMB); in CIFSSMBClose()
2155 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBClose()
2157 cifs_stats_inc(&tcon->stats.cifs_stats.num_closes); in CIFSSMBClose()
2173 CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) in CIFSSMBFlush() argument
2179 rc = small_smb_init(SMB_COM_FLUSH, 1, tcon, (void **) &pSMB); in CIFSSMBFlush()
2185 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBFlush()
2187 cifs_stats_inc(&tcon->stats.cifs_stats.num_flushes); in CIFSSMBFlush()
2194 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBRename() argument
2209 rc = smb_init(SMB_COM_RENAME, 1, tcon, (void **) &pSMB, in CIFSSMBRename()
2245 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBRename()
2247 cifs_stats_inc(&tcon->stats.cifs_stats.num_renames); in CIFSSMBRename()
2343 CIFSSMBCopy(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBCopy() argument
2356 rc = smb_init(SMB_COM_COPY, 1, tcon, (void **) &pSMB, in CIFSSMBCopy()
2391 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBCopy()
2406 CIFSUnixCreateSymLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSUnixCreateSymLink() argument
2421 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSUnixCreateSymLink()
2477 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSUnixCreateSymLink()
2479 cifs_stats_inc(&tcon->stats.cifs_stats.num_symlinks); in CIFSUnixCreateSymLink()
2493 CIFSUnixCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSUnixCreateHardLink() argument
2508 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSUnixCreateHardLink()
2561 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSUnixCreateHardLink()
2563 cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks); in CIFSUnixCreateHardLink()
2576 struct cifs_tcon *tcon, in CIFSCreateHardLink() argument
2592 rc = smb_init(SMB_COM_NT_RENAME, 4, tcon, (void **) &pSMB, in CIFSCreateHardLink()
2632 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSCreateHardLink()
2634 cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks); in CIFSCreateHardLink()
2646 CIFSSMBUnixQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQuerySymLink() argument
2662 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQuerySymLink()
2702 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQuerySymLink()
2739 struct cifs_tcon *tcon, in cifs_query_reparse_point() argument
2758 if (cap_unix(tcon->ses)) in cifs_query_reparse_point()
2762 .tcon = tcon, in cifs_query_reparse_point()
2776 rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, in cifs_query_reparse_point()
2800 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *)io_req, in cifs_query_reparse_point()
2833 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_reparse_point()
2838 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_reparse_point()
2843 CIFSSMB_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMB_set_compression() argument
2852 rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, (void **) &pSMB, in CIFSSMB_set_compression()
2881 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMB_set_compression()
3071 int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon, in cifs_do_get_acl() argument
3087 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in cifs_do_get_acl()
3131 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in cifs_do_get_acl()
3133 cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get); in cifs_do_get_acl()
3162 int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon, in cifs_do_set_acl() argument
3177 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in cifs_do_set_acl()
3225 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in cifs_do_set_acl()
3237 int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon, in cifs_do_get_acl() argument
3245 int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon, in cifs_do_set_acl() argument
3255 CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, in CIFSGetExtAttr() argument
3265 if (tcon == NULL) in CIFSGetExtAttr()
3269 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSGetExtAttr()
3300 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSGetExtAttr()
3347 const int parm_len, struct cifs_tcon *tcon, in smb_init_nttransact() argument
3354 rc = small_smb_init(SMB_COM_NT_TRANSACT, 19 + setup_count, tcon, in smb_init_nttransact()
3429 CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, in CIFSSMBGetCIFSACL() argument
3444 8 /* parm len */, tcon, (void **) &pSMB); in CIFSSMBGetCIFSACL()
3459 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type, in CIFSSMBGetCIFSACL()
3462 cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get); in CIFSSMBGetCIFSACL()
3519 CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, in CIFSSMBSetCIFSACL() argument
3529 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
3565 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetCIFSACL()
3584 SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon, in SMBQueryInformation() argument
3596 rc = smb_init(SMB_COM_QUERY_INFORMATION, 0, tcon, (void **) &pSMB, in SMBQueryInformation()
3616 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBQueryInformation()
3650 CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFileInfo() argument
3660 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFileInfo()
3691 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFileInfo()
3718 CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQPathInfo() argument
3733 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQPathInfo()
3776 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQPathInfo()
3817 CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQFileInfo() argument
3827 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQFileInfo()
3858 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQFileInfo()
3885 CIFSSMBUnixQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQPathInfo() argument
3900 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQPathInfo()
3940 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQPathInfo()
3965 /* xid, tcon, searchName and codepage are input parms, rest are returned */
3967 CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindFirst() argument
3986 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSFindFirst()
4058 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSFindFirst()
4060 cifs_stats_inc(&tcon->stats.cifs_stats.num_ffirst); in CIFSFindFirst()
4110 int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindNext() argument
4129 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSFindNext()
4176 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSFindNext()
4178 cifs_stats_inc(&tcon->stats.cifs_stats.num_fnext); in CIFSFindNext()
4237 CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindClose() argument
4244 rc = small_smb_init(SMB_COM_FIND_CLOSE2, 1, tcon, (void **)&pSMB); in CIFSFindClose()
4255 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSFindClose()
4260 cifs_stats_inc(&tcon->stats.cifs_stats.num_fclose); in CIFSFindClose()
4270 CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon, in CIFSGetSrvInodeNumber() argument
4281 if (tcon == NULL) in CIFSGetSrvInodeNumber()
4285 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSGetSrvInodeNumber()
4326 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSGetSrvInodeNumber()
4477 SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, in SMBOldQFSInfo() argument
4490 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in SMBOldQFSInfo()
4518 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBOldQFSInfo()
4564 CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFSInfo() argument
4577 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSInfo()
4605 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSInfo()
4651 CIFSSMBQFSAttributeInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSAttributeInfo() argument
4663 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSAttributeInfo()
4692 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSAttributeInfo()
4708 memcpy(&tcon->fsAttrInfo, response_data, in CIFSSMBQFSAttributeInfo()
4721 CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSDeviceInfo() argument
4733 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSDeviceInfo()
4763 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSDeviceInfo()
4779 memcpy(&tcon->fsDevInfo, response_data, in CIFSSMBQFSDeviceInfo()
4792 CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSUnixInfo() argument
4804 rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon, in CIFSSMBQFSUnixInfo()
4833 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSUnixInfo()
4848 memcpy(&tcon->fsUnixInfo, response_data, in CIFSSMBQFSUnixInfo()
4862 CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) in CIFSSMBSetFSUnixInfo() argument
4874 rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon, in CIFSSMBSetFSUnixInfo()
4916 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetFSUnixInfo()
4936 CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFSPosixInfo() argument
4949 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSPosixInfo()
4978 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSPosixInfo()
5036 CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetEOF() argument
5052 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetEOF()
5079 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetEOF()
5086 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetEOF()
5111 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetEOF()
5125 CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileSize() argument
5135 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileSize()
5172 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileSize()
5179 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileSize()
5189 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileSize()
5209 CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileInfo() argument
5218 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileInfo()
5253 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileInfo()
5261 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileInfo()
5274 CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileDisposition() argument
5283 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileDisposition()
5323 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileDisposition()
5332 CIFSSMBSetPathInfoFB(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetPathInfoFB() argument
5343 .tcon = tcon, in CIFSSMBSetPathInfoFB()
5356 rc = CIFSSMBSetFileInfo(xid, tcon, data, fid.netfid, current->tgid); in CIFSSMBSetPathInfoFB()
5357 CIFSSMBClose(xid, tcon, fid.netfid); in CIFSSMBSetPathInfoFB()
5364 CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetPathInfo() argument
5381 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetPathInfo()
5421 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetPathInfo()
5429 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetPathInfo()
5440 return CIFSSMBSetPathInfoFB(xid, tcon, fileName, data, in CIFSSMBSetPathInfo()
5494 CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixSetFileInfo() argument
5504 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBUnixSetFileInfo()
5547 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBUnixSetFileInfo()
5560 CIFSSMBUnixSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixSetPathInfo() argument
5575 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixSetPathInfo()
5623 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixSetPathInfo()
5645 CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQAllEAs() argument
5667 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQAllEAs()
5707 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQAllEAs()
5831 CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetEA() argument
5847 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetEA()
5918 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetEA()