Lines Matching full:tcon

99 cifs_mark_open_files_invalid(struct cifs_tcon *tcon)  in cifs_mark_open_files_invalid()  argument
106 spin_lock(&tcon->open_file_lock); in cifs_mark_open_files_invalid()
107 list_for_each_safe(tmp, tmp1, &tcon->openFileList) { in cifs_mark_open_files_invalid()
112 spin_unlock(&tcon->open_file_lock); in cifs_mark_open_files_invalid()
114 mutex_lock(&tcon->crfid.fid_mutex); in cifs_mark_open_files_invalid()
115 tcon->crfid.is_valid = false; in cifs_mark_open_files_invalid()
117 close_shroot_lease_locked(&tcon->crfid); in cifs_mark_open_files_invalid()
118 memset(tcon->crfid.fid, 0, sizeof(struct cifs_fid)); in cifs_mark_open_files_invalid()
119 mutex_unlock(&tcon->crfid.fid_mutex); in cifs_mark_open_files_invalid()
123 * to this tcon. in cifs_mark_open_files_invalid()
127 /* reconnect the socket, tcon, and smb session if needed */
129 cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) in cifs_reconnect_tcon() argument
138 * SMBs NegProt, SessSetup, uLogoff do not have tcon yet so check for in cifs_reconnect_tcon()
142 if (!tcon) in cifs_reconnect_tcon()
145 ses = tcon->ses; in cifs_reconnect_tcon()
150 * have tcon) are allowed as we start force umount in cifs_reconnect_tcon()
152 if (tcon->tidStatus == CifsExiting) { in cifs_reconnect_tcon()
191 if (!tcon->retry) { in cifs_reconnect_tcon()
198 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon()
224 /* do we need to reconnect tcon? */ in cifs_reconnect_tcon()
225 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon()
230 cifs_mark_open_files_invalid(tcon); in cifs_reconnect_tcon()
231 rc = cifs_tree_connect(0, tcon, nls_codepage); in cifs_reconnect_tcon()
233 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon()
236 pr_warn_once("reconnect tcon failed rc = %d\n", rc); in cifs_reconnect_tcon()
244 reset_cifs_unix_caps(0, tcon, NULL, NULL); in cifs_reconnect_tcon()
275 small_smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in small_smb_init() argument
280 rc = cifs_reconnect_tcon(tcon, smb_command); in small_smb_init()
291 tcon, wct); in small_smb_init()
293 if (tcon != NULL) in small_smb_init()
294 cifs_stats_inc(&tcon->num_smbs_sent); in small_smb_init()
327 __smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in __smb_init() argument
342 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
345 if (tcon != NULL) in __smb_init()
346 cifs_stats_inc(&tcon->num_smbs_sent); in __smb_init()
353 smb_init(int smb_command, int wct, struct cifs_tcon *tcon, in smb_init() argument
358 rc = cifs_reconnect_tcon(tcon, smb_command); in smb_init()
362 return __smb_init(smb_command, wct, tcon, request_buf, response_buf); in smb_init()
366 smb_init_no_reconnect(int smb_command, int wct, struct cifs_tcon *tcon, in smb_init_no_reconnect() argument
369 if (tcon->ses->need_reconnect || tcon->need_reconnect) in smb_init_no_reconnect()
372 return __smb_init(smb_command, wct, tcon, request_buf, response_buf); in smb_init_no_reconnect()
606 rc = smb_init(SMB_COM_NEGOTIATE, 0, NULL /* no tcon yet */ , in CIFSSMBNegotiate()
703 CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBTDis() argument
711 if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) in CIFSSMBTDis()
717 * the tcon is no longer on the list, so no need to take lock before in CIFSSMBTDis()
720 if ((tcon->need_reconnect) || (tcon->ses->need_reconnect)) in CIFSSMBTDis()
723 rc = small_smb_init(SMB_COM_TREE_DISCONNECT, 0, tcon, in CIFSSMBTDis()
728 rc = SendReceiveNoRsp(xid, tcon->ses, (char *)smb_buffer, 0); in CIFSSMBTDis()
847 CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon, in CIFSPOSIXDelFile() argument
861 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSPOSIXDelFile()
906 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
912 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSPOSIXDelFile()
921 CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in CIFSSMBDelFile() argument
932 rc = smb_init(SMB_COM_DELETE, 1, tcon, (void **) &pSMB, in CIFSSMBDelFile()
951 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
953 cifs_stats_inc(&tcon->stats.cifs_stats.num_deletes); in CIFSSMBDelFile()
965 CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in CIFSSMBRmDir() argument
977 rc = smb_init(SMB_COM_DELETE_DIRECTORY, 0, tcon, (void **) &pSMB, in CIFSSMBRmDir()
995 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBRmDir()
997 cifs_stats_inc(&tcon->stats.cifs_stats.num_rmdirs); in CIFSSMBRmDir()
1009 struct cifs_tcon *tcon, const char *name, in CIFSSMBMkDir() argument
1021 rc = smb_init(SMB_COM_CREATE_DIRECTORY, 0, tcon, (void **) &pSMB, in CIFSSMBMkDir()
1039 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBMkDir()
1041 cifs_stats_inc(&tcon->stats.cifs_stats.num_mkdirs); in CIFSSMBMkDir()
1052 CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon, in CIFSPOSIXCreate() argument
1069 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSPOSIXCreate()
1116 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXCreate()
1162 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixmkdirs); in CIFSPOSIXCreate()
1164 cifs_stats_inc(&tcon->stats.cifs_stats.num_posixopens); in CIFSPOSIXCreate()
1217 SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, in SMBLegacyOpen() argument
1231 rc = smb_init(SMB_COM_OPEN_ANDX, 15, tcon, (void **) &pSMB, in SMBLegacyOpen()
1280 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBLegacyOpen()
1282 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in SMBLegacyOpen()
1331 struct cifs_tcon *tcon = oparms->tcon; in CIFS_open() local
1340 rc = smb_init(SMB_COM_NT_CREATE_ANDX, 24, tcon, (void **)&req, in CIFS_open()
1386 if (tcon->ses->capabilities & CAP_UNIX) in CIFS_open()
1404 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *)req, in CIFS_open()
1406 cifs_stats_inc(&tcon->stats.cifs_stats.num_opens); in CIFS_open()
1622 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback() local
1623 struct TCP_Server_Info *server = tcon->ses->server; in cifs_readv_callback()
1651 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1661 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1679 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv() local
1686 if (tcon->ses->capabilities & CAP_LARGE_FILES) in cifs_async_readv()
1696 rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **)&smb); in cifs_async_readv()
1727 rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, in cifs_async_readv()
1731 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in cifs_async_readv()
1754 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBRead() local
1758 if (tcon->ses->capabilities & CAP_LARGE_FILES) in CIFSSMBRead()
1769 rc = small_smb_init(SMB_COM_READ_ANDX, wct, tcon, (void **) &pSMB); in CIFSSMBRead()
1776 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBRead()
1777 if (tcon->ses->server == NULL) in CIFSSMBRead()
1800 rc = SendReceive2(xid, tcon->ses, iov, 1, &resp_buf_type, in CIFSSMBRead()
1803 cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); in CIFSSMBRead()
1862 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite() local
1868 if (tcon->ses == NULL) in CIFSSMBWrite()
1871 if (tcon->ses->capabilities & CAP_LARGE_FILES) in CIFSSMBWrite()
1881 rc = smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB, in CIFSSMBWrite()
1889 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBWrite()
1890 if (tcon->ses->server == NULL) in CIFSSMBWrite()
1907 if (tcon->ses->capabilities & CAP_LARGE_WRITE_X) { in CIFSSMBWrite()
1910 bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) in CIFSSMBWrite()
1943 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBWrite()
1945 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in CIFSSMBWrite()
2154 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_writev_callback() local
2161 wdata->result = cifs_check_receive(mid, tcon->ses->server, 0); in cifs_writev_callback()
2193 add_credits(tcon->ses->server, &credits, 0); in cifs_writev_callback()
2204 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); in cifs_async_writev() local
2208 if (tcon->ses->capabilities & CAP_LARGE_FILES) { in cifs_async_writev()
2218 rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **)&smb); in cifs_async_writev()
2270 rc = cifs_call_async(tcon->ses->server, &rqst, NULL, in cifs_async_writev()
2274 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in cifs_async_writev()
2295 struct cifs_tcon *tcon = io_parms->tcon; in CIFSSMBWrite2() local
2303 if (tcon->ses->capabilities & CAP_LARGE_FILES) { in CIFSSMBWrite2()
2312 rc = small_smb_init(SMB_COM_WRITE_ANDX, wct, tcon, (void **) &pSMB); in CIFSSMBWrite2()
2319 /* tcon and ses pointer are checked in smb_init */ in CIFSSMBWrite2()
2320 if (tcon->ses->server == NULL) in CIFSSMBWrite2()
2356 rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, 0, in CIFSSMBWrite2()
2359 cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); in CIFSSMBWrite2()
2388 int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon, in cifs_lockv() argument
2402 rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB); in cifs_lockv()
2423 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in cifs_lockv()
2424 rc = SendReceive2(xid, tcon->ses, iov, 2, &resp_buf_type, in cifs_lockv()
2434 CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBLock() argument
2449 rc = small_smb_init(SMB_COM_LOCKING_ANDX, 8, tcon, (void **) &pSMB); in CIFSSMBLock()
2488 rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB, in CIFSSMBLock()
2491 rc = SendReceiveNoRsp(xid, tcon->ses, (char *)pSMB, flags); in CIFSSMBLock()
2493 cifs_stats_inc(&tcon->stats.cifs_stats.num_locks); in CIFSSMBLock()
2503 CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBPosixLock() argument
2522 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBPosixLock()
2574 rc = SendReceiveBlockingLock(xid, tcon, (struct smb_hdr *) pSMB, in CIFSSMBPosixLock()
2579 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovecs */, in CIFSSMBPosixLock()
2633 CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) in CIFSSMBClose() argument
2640 rc = small_smb_init(SMB_COM_CLOSE, 3, tcon, (void **) &pSMB); in CIFSSMBClose()
2649 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBClose()
2651 cifs_stats_inc(&tcon->stats.cifs_stats.num_closes); in CIFSSMBClose()
2667 CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) in CIFSSMBFlush() argument
2673 rc = small_smb_init(SMB_COM_FLUSH, 1, tcon, (void **) &pSMB); in CIFSSMBFlush()
2679 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBFlush()
2681 cifs_stats_inc(&tcon->stats.cifs_stats.num_flushes); in CIFSSMBFlush()
2689 CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBRename() argument
2703 rc = smb_init(SMB_COM_RENAME, 1, tcon, (void **) &pSMB, in CIFSSMBRename()
2739 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBRename()
2741 cifs_stats_inc(&tcon->stats.cifs_stats.num_renames); in CIFSSMBRename()
2836 CIFSSMBCopy(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBCopy() argument
2849 rc = smb_init(SMB_COM_COPY, 1, tcon, (void **) &pSMB, in CIFSSMBCopy()
2884 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBCopy()
2899 CIFSUnixCreateSymLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSUnixCreateSymLink() argument
2914 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSUnixCreateSymLink()
2969 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSUnixCreateSymLink()
2971 cifs_stats_inc(&tcon->stats.cifs_stats.num_symlinks); in CIFSUnixCreateSymLink()
2985 CIFSUnixCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSUnixCreateHardLink() argument
3000 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSUnixCreateHardLink()
3052 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSUnixCreateHardLink()
3054 cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks); in CIFSUnixCreateHardLink()
3067 CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSCreateHardLink() argument
3082 rc = smb_init(SMB_COM_NT_RENAME, 4, tcon, (void **) &pSMB, in CIFSCreateHardLink()
3122 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSCreateHardLink()
3124 cifs_stats_inc(&tcon->stats.cifs_stats.num_hardlinks); in CIFSCreateHardLink()
3136 CIFSSMBUnixQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQuerySymLink() argument
3152 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQuerySymLink()
3192 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQuerySymLink()
3239 CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQuerySymLink() argument
3256 rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, (void **) &pSMB, in CIFSSMBQuerySymLink()
3280 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQuerySymLink()
3362 CIFSSMB_set_compression(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMB_set_compression() argument
3371 rc = smb_init(SMB_COM_NT_TRANSACT, 23, tcon, (void **) &pSMB, in CIFSSMB_set_compression()
3400 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMB_set_compression()
3552 CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBGetPosixACL() argument
3568 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBGetPosixACL()
3612 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBGetPosixACL()
3614 cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get); in CIFSSMBGetPosixACL()
3639 CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetPosixACL() argument
3655 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetPosixACL()
3703 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetPosixACL()
3717 CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, in CIFSGetExtAttr() argument
3727 if (tcon == NULL) in CIFSGetExtAttr()
3731 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSGetExtAttr()
3762 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSGetExtAttr()
3809 const int parm_len, struct cifs_tcon *tcon, in smb_init_nttransact() argument
3816 rc = small_smb_init(SMB_COM_NT_TRANSACT, 19 + setup_count, tcon, in smb_init_nttransact()
3891 CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, in CIFSSMBGetCIFSACL() argument
3906 8 /* parm len */, tcon, (void **) &pSMB); in CIFSSMBGetCIFSACL()
3921 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type, in CIFSSMBGetCIFSACL()
3924 cifs_stats_inc(&tcon->stats.cifs_stats.num_acl_get); in CIFSSMBGetCIFSACL()
3981 CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, in CIFSSMBSetCIFSACL() argument
3991 rc = smb_init(SMB_COM_NT_TRANSACT, 19, tcon, (void **) &pSMB, &pSMBr); in CIFSSMBSetCIFSACL()
4027 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetCIFSACL()
4046 SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon, in SMBQueryInformation() argument
4058 rc = smb_init(SMB_COM_QUERY_INFORMATION, 0, tcon, (void **) &pSMB, in SMBQueryInformation()
4078 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBQueryInformation()
4112 CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFileInfo() argument
4122 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFileInfo()
4153 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFileInfo()
4180 CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQPathInfo() argument
4195 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQPathInfo()
4238 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQPathInfo()
4279 CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQFileInfo() argument
4289 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQFileInfo()
4320 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQFileInfo()
4347 CIFSSMBUnixQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixQPathInfo() argument
4362 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixQPathInfo()
4402 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixQPathInfo()
4427 /* xid, tcon, searchName and codepage are input parms, rest are returned */
4429 CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindFirst() argument
4447 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSFindFirst()
4519 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSFindFirst()
4521 cifs_stats_inc(&tcon->stats.cifs_stats.num_ffirst); in CIFSFindFirst()
4582 int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindNext() argument
4600 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSFindNext()
4647 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSFindNext()
4649 cifs_stats_inc(&tcon->stats.cifs_stats.num_fnext); in CIFSFindNext()
4718 CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon, in CIFSFindClose() argument
4725 rc = small_smb_init(SMB_COM_FIND_CLOSE2, 1, tcon, (void **)&pSMB); in CIFSFindClose()
4736 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSFindClose()
4741 cifs_stats_inc(&tcon->stats.cifs_stats.num_fclose); in CIFSFindClose()
4751 CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon, in CIFSGetSrvInodeNumber() argument
4762 if (tcon == NULL) in CIFSGetSrvInodeNumber()
4766 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSGetSrvInodeNumber()
4807 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSGetSrvInodeNumber()
4953 SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, in SMBOldQFSInfo() argument
4966 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in SMBOldQFSInfo()
4994 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in SMBOldQFSInfo()
5040 CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFSInfo() argument
5053 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSInfo()
5081 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSInfo()
5127 CIFSSMBQFSAttributeInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSAttributeInfo() argument
5139 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSAttributeInfo()
5168 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSAttributeInfo()
5184 memcpy(&tcon->fsAttrInfo, response_data, in CIFSSMBQFSAttributeInfo()
5197 CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSDeviceInfo() argument
5209 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSDeviceInfo()
5239 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSDeviceInfo()
5255 memcpy(&tcon->fsDevInfo, response_data, in CIFSSMBQFSDeviceInfo()
5268 CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon) in CIFSSMBQFSUnixInfo() argument
5280 rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon, in CIFSSMBQFSUnixInfo()
5309 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSUnixInfo()
5324 memcpy(&tcon->fsUnixInfo, response_data, in CIFSSMBQFSUnixInfo()
5338 CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) in CIFSSMBSetFSUnixInfo() argument
5350 rc = smb_init_no_reconnect(SMB_COM_TRANSACTION2, 15, tcon, in CIFSSMBSetFSUnixInfo()
5392 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetFSUnixInfo()
5412 CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQFSPosixInfo() argument
5425 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQFSPosixInfo()
5454 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQFSPosixInfo()
5512 CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetEOF() argument
5528 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetEOF()
5555 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetEOF()
5562 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetEOF()
5587 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetEOF()
5601 CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileSize() argument
5611 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileSize()
5648 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileSize()
5655 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileSize()
5665 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileSize()
5685 CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileInfo() argument
5694 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileInfo()
5729 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetFileInfo()
5737 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileInfo()
5750 CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetFileDisposition() argument
5759 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBSetFileDisposition()
5798 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBSetFileDisposition()
5807 CIFSSMBSetPathInfoFB(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetPathInfoFB() argument
5817 oparms.tcon = tcon; in CIFSSMBSetPathInfoFB()
5830 rc = CIFSSMBSetFileInfo(xid, tcon, data, fid.netfid, current->tgid); in CIFSSMBSetPathInfoFB()
5831 CIFSSMBClose(xid, tcon, fid.netfid); in CIFSSMBSetPathInfoFB()
5838 CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetPathInfo() argument
5855 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetPathInfo()
5895 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU) in CIFSSMBSetPathInfo()
5903 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetPathInfo()
5914 return CIFSSMBSetPathInfoFB(xid, tcon, fileName, data, in CIFSSMBSetPathInfo()
5926 CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon, char *fileName,
5938 rc = smb_init(SMB_COM_SETATTR, 8, tcon, (void **) &pSMB,
5956 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
6018 CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixSetFileInfo() argument
6028 rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB); in CIFSSMBUnixSetFileInfo()
6071 rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0); in CIFSSMBUnixSetFileInfo()
6084 CIFSSMBUnixSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBUnixSetPathInfo() argument
6099 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBUnixSetPathInfo()
6148 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBUnixSetPathInfo()
6170 CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBQAllEAs() argument
6192 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBQAllEAs()
6232 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBQAllEAs()
6356 CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon, in CIFSSMBSetEA() argument
6372 rc = smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB, in CIFSSMBSetEA()
6445 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBSetEA()