• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/cifs/

Lines Matching defs:ses

129 		if((tcon->ses) && (tcon->ses->status != CifsExiting) &&
130 (tcon->ses->server)){
135 while(tcon->ses->server->tcpStatus == CifsNeedReconnect) {
136 wait_event_interruptible_timeout(tcon->ses->server->response_q,
137 (tcon->ses->server->tcpStatus == CifsGood), 10 * HZ);
138 if(tcon->ses->server->tcpStatus == CifsNeedReconnect) {
141 (tcon->ses->status == CifsExiting)) {
155 down(&tcon->ses->sesSem);
156 if(tcon->ses->status == CifsNeedReconnect)
157 rc = cifs_setup_session(0, tcon->ses,
161 rc = CIFSTCon(0, tcon->ses, tcon->treeName,
163 up(&tcon->ses->sesSem);
165 if (tcon->ses->capabilities & CAP_UNIX)
192 up(&tcon->ses->sesSem);
219 struct cifsSesInfo *ses, void **request_buf)
229 buffer->Mid = GetNextMid(ses->server);
230 if (ses->capabilities & CAP_UNICODE)
232 if (ses->capabilities & CAP_STATUS32)
268 if((tcon->ses) && (tcon->ses->status != CifsExiting) &&
269 (tcon->ses->server)){
274 while(tcon->ses->server->tcpStatus == CifsNeedReconnect) {
275 wait_event_interruptible_timeout(tcon->ses->server->response_q,
276 (tcon->ses->server->tcpStatus == CifsGood), 10 * HZ);
277 if(tcon->ses->server->tcpStatus ==
281 (tcon->ses->status == CifsExiting)) {
295 down(&tcon->ses->sesSem);
296 if(tcon->ses->status == CifsNeedReconnect)
297 rc = cifs_setup_session(0, tcon->ses,
301 rc = CIFSTCon(0, tcon->ses, tcon->treeName,
303 up(&tcon->ses->sesSem);
305 if (tcon->ses->capabilities & CAP_UNIX)
332 up(&tcon->ses->sesSem);
398 CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
410 if(ses->server)
411 server = ses->server;
422 if(ses->overrideSecFlg & (~(CIFSSEC_MUST_SIGN | CIFSSEC_MUST_SEAL)))
423 secFlags = ses->overrideSecFlg;
425 secFlags = extended_security | ses->overrideSecFlg;
443 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB,
575 cFYI(0, ("Max buf = %d", ses->server->maxBuf));
576 GETU32(ses->server->sessid) = le32_to_cpu(pSMBr->SessionKey);
687 if((tcon->ses == NULL) || (tcon->ses->server == NULL)) {
699 rc = SendReceive(xid, tcon->ses, smb_buffer, smb_buffer_response,
717 CIFSSMBLogoff(const int xid, struct cifsSesInfo *ses)
725 if (ses)
726 down(&ses->sesSem);
730 atomic_dec(&ses->inUse);
731 if (atomic_read(&ses->inUse) > 0) {
732 up(&ses->sesSem);
737 up(&ses->sesSem);
743 if(ses->server) {
744 pSMB->hdr.Mid = GetNextMid(ses->server);
746 if(ses->server->secMode &
751 pSMB->hdr.Uid = ses->Suid;
754 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB,
756 if (ses->server) {
757 atomic_dec(&ses->server->socketUseCount);
758 if (atomic_read(&ses->server->socketUseCount) == 0) {
760 ses->server->tcpStatus = CifsExiting;
765 up(&ses->sesSem);
808 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
853 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
897 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
978 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1136 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1227 if (tcon->ses->capabilities & CAP_UNIX)
1248 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1291 if(tcon->ses->capabilities & CAP_LARGE_FILES)
1301 /* tcon and ses pointer are checked in smb_init */
1302 if (tcon->ses->server == NULL)
1327 rc = SendReceive2(xid, tcon->ses, iov,
1393 if(tcon->ses == NULL)
1396 if(tcon->ses->capabilities & CAP_LARGE_FILES)
1405 /* tcon and ses pointer are checked in smb_init */
1406 if (tcon->ses->server == NULL)
1425 if(tcon->ses->capabilities & CAP_LARGE_WRITE_X) {
1428 bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE)
1465 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1499 if(tcon->ses->capabilities & CAP_LARGE_FILES)
1506 /* tcon and ses pointer are checked in smb_init */
1507 if (tcon->ses->server == NULL)
1545 rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type,
1631 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1722 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1786 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1859 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
1938 rc = SendReceive(xid, pTcon->ses, (struct smb_hdr *) pSMB,
2006 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2096 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2186 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2257 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2330 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2393 pSMB->MaxDataCount = cpu_to_le32((tcon->ses->server->maxBuf -
2475 pSMB->MaxDataCount = cpu_to_le32((tcon->ses->server->maxBuf -
2491 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2747 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2839 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2898 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
2979 rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type, 0);
3059 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3153 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3246 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3327 pSMB->MaxDataCount = cpu_to_le16((tcon->ses->server->maxBuf -
3358 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3433 cpu_to_le16((tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) & 0xFFFFFF00);
3450 /* if (tcon->ses->capabilities & CAP_UNIX) {
3481 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3558 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3633 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3668 CIFSGetDFSRefer(const int xid, struct cifsSesInfo *ses,
3688 if (ses == NULL)
3698 pSMB->hdr.Mid = GetNextMid(ses->server);
3699 pSMB->hdr.Tid = ses->ipc_tid;
3700 pSMB->hdr.Uid = ses->Suid;
3701 if (ses->capabilities & CAP_STATUS32) {
3704 if (ses->capabilities & CAP_DFS) {
3708 if (ses->capabilities & CAP_UNICODE) {
3721 if(ses->server) {
3722 if(ses->server->secMode &
3727 pSMB->hdr.Uid = ses->Suid;
3752 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB,
3893 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
3974 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4054 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4123 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4191 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4272 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4334 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4423 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4430 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4455 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4523 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4530 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4540 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4613 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4621 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4693 if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
4701 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4753 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4864 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
4900 pSMB->MaxDataCount = cpu_to_le32((tcon->ses->server->maxBuf -
4918 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
5008 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
5151 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
5331 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,