ses               529 drivers/scsi/NCR5380.c 			scsi_eh_restore_cmnd(cmd, &hostdata->ses);
ses               531 drivers/scsi/NCR5380.c 			scsi_eh_restore_cmnd(cmd, &hostdata->ses);
ses               649 drivers/scsi/NCR5380.c 		scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0);
ses               662 drivers/scsi/NCR5380.c 		scsi_eh_restore_cmnd(cmd, &hostdata->ses);
ses               220 drivers/scsi/NCR5380.h 	struct scsi_eh_save ses;		/* Cmnd state saved for EH */
ses               504 drivers/scsi/aha152x.c 	struct scsi_eh_save ses;
ses              1416 drivers/scsi/aha152x.c 			scsi_eh_restore_cmnd(cmd, &sc->ses);
ses              1436 drivers/scsi/aha152x.c 				scsi_eh_prep_cmnd(ptr, &sc->ses, NULL, 0, ~0);
ses               422 drivers/scsi/aha1740.c 	host->ecb[ecbno].ses = 1; /* Suppress underrun errors */
ses               110 drivers/scsi/aha1740.h 	:2, ses:1,		/* Suppress Underrun error */
ses              2028 drivers/scsi/arm/fas216.c 	scsi_eh_restore_cmnd(SCpnt, &info->ses);
ses              2112 drivers/scsi/arm/fas216.c 	scsi_eh_prep_cmnd(SCpnt, &info->ses, NULL, 0, ~0);
ses               309 drivers/scsi/arm/fas216.h 	struct scsi_eh_save	ses;		/* holds request sense restore info */
ses               953 drivers/scsi/scsi_error.c void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses,
ses               965 drivers/scsi/scsi_error.c 	ses->cmd_len = scmd->cmd_len;
ses               966 drivers/scsi/scsi_error.c 	ses->cmnd = scmd->cmnd;
ses               967 drivers/scsi/scsi_error.c 	ses->data_direction = scmd->sc_data_direction;
ses               968 drivers/scsi/scsi_error.c 	ses->sdb = scmd->sdb;
ses               969 drivers/scsi/scsi_error.c 	ses->result = scmd->result;
ses               970 drivers/scsi/scsi_error.c 	ses->resid_len = scmd->req.resid_len;
ses               971 drivers/scsi/scsi_error.c 	ses->underflow = scmd->underflow;
ses               972 drivers/scsi/scsi_error.c 	ses->prot_op = scmd->prot_op;
ses               973 drivers/scsi/scsi_error.c 	ses->eh_eflags = scmd->eh_eflags;
ses               977 drivers/scsi/scsi_error.c 	scmd->cmnd = ses->eh_cmnd;
ses               986 drivers/scsi/scsi_error.c 		sg_init_one(&ses->sense_sgl, scmd->sense_buffer,
ses               988 drivers/scsi/scsi_error.c 		scmd->sdb.table.sgl = &ses->sense_sgl;
ses              1024 drivers/scsi/scsi_error.c void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, struct scsi_eh_save *ses)
ses              1029 drivers/scsi/scsi_error.c 	scmd->cmd_len = ses->cmd_len;
ses              1030 drivers/scsi/scsi_error.c 	scmd->cmnd = ses->cmnd;
ses              1031 drivers/scsi/scsi_error.c 	scmd->sc_data_direction = ses->data_direction;
ses              1032 drivers/scsi/scsi_error.c 	scmd->sdb = ses->sdb;
ses              1033 drivers/scsi/scsi_error.c 	scmd->result = ses->result;
ses              1034 drivers/scsi/scsi_error.c 	scmd->req.resid_len = ses->resid_len;
ses              1035 drivers/scsi/scsi_error.c 	scmd->underflow = ses->underflow;
ses              1036 drivers/scsi/scsi_error.c 	scmd->prot_op = ses->prot_op;
ses              1037 drivers/scsi/scsi_error.c 	scmd->eh_eflags = ses->eh_eflags;
ses              1062 drivers/scsi/scsi_error.c 	struct scsi_eh_save ses;
ses              1067 drivers/scsi/scsi_error.c 	scsi_eh_prep_cmnd(scmd, &ses, cmnd, cmnd_size, sense_bytes);
ses              1097 drivers/scsi/scsi_error.c 			scsi_eh_restore_cmnd(scmd, &ses);
ses              1149 drivers/scsi/scsi_error.c 	scsi_eh_restore_cmnd(scmd, &ses);
ses               165 drivers/usb/storage/cypress_atacb.c 		struct scsi_eh_save ses;
ses               172 drivers/usb/storage/cypress_atacb.c 		scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sizeof(regs));
ses               180 drivers/usb/storage/cypress_atacb.c 		srb->cmnd = ses.cmnd;
ses               186 drivers/usb/storage/cypress_atacb.c 		scsi_eh_restore_cmnd(srb, &ses);
ses               695 drivers/usb/storage/transport.c 		struct scsi_eh_save ses;
ses               707 drivers/usb/storage/transport.c 		scsi_eh_prep_cmnd(srb, &ses, NULL, 0, sense_size);
ses               721 drivers/usb/storage/transport.c 		scsi_eh_restore_cmnd(srb, &ses);
ses               109 fs/cifs/cifs_debug.c 	    (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
ses               116 fs/cifs/cifs_debug.c 	if (tcon->ses->server->ops->dump_share_caps)
ses               117 fs/cifs/cifs_debug.c 		tcon->ses->server->ops->dump_share_caps(m, tcon);
ses               147 fs/cifs/cifs_debug.c 	struct cifs_ses *ses;
ses               164 fs/cifs/cifs_debug.c 			ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
ses               165 fs/cifs/cifs_debug.c 			list_for_each(tmp1, &ses->tcon_list) {
ses               200 fs/cifs/cifs_debug.c 	struct cifs_ses *ses;
ses               338 fs/cifs/cifs_debug.c 			ses = list_entry(tmp2, struct cifs_ses,
ses               340 fs/cifs/cifs_debug.c 			if ((ses->serverDomain == NULL) ||
ses               341 fs/cifs/cifs_debug.c 				(ses->serverOS == NULL) ||
ses               342 fs/cifs/cifs_debug.c 				(ses->serverNOS == NULL)) {
ses               344 fs/cifs/cifs_debug.c 					i, ses->serverName, ses->ses_count,
ses               345 fs/cifs/cifs_debug.c 					ses->capabilities, ses->status);
ses               346 fs/cifs/cifs_debug.c 				if (ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
ses               348 fs/cifs/cifs_debug.c 				else if (ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
ses               355 fs/cifs/cifs_debug.c 				i, ses->serverName, ses->serverDomain,
ses               356 fs/cifs/cifs_debug.c 				ses->ses_count, ses->serverOS, ses->serverNOS,
ses               357 fs/cifs/cifs_debug.c 				ses->capabilities, ses->status);
ses               374 fs/cifs/cifs_debug.c 			seq_printf(m, " SessionId: 0x%llx", ses->Suid);
ses               375 fs/cifs/cifs_debug.c 			if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA)
ses               377 fs/cifs/cifs_debug.c 			if (ses->sign)
ses               384 fs/cifs/cifs_debug.c 			if (ses->tcon_ipc)
ses               385 fs/cifs/cifs_debug.c 				cifs_debug_tcon(m, ses->tcon_ipc);
ses               389 fs/cifs/cifs_debug.c 			list_for_each(tmp3, &ses->tcon_list) {
ses               413 fs/cifs/cifs_debug.c 			spin_lock(&ses->iface_lock);
ses               414 fs/cifs/cifs_debug.c 			if (ses->iface_count)
ses               416 fs/cifs/cifs_debug.c 					   ses->iface_count);
ses               417 fs/cifs/cifs_debug.c 			for (j = 0; j < ses->iface_count; j++) {
ses               419 fs/cifs/cifs_debug.c 				cifs_dump_iface(m, &ses->iface_list[j]);
ses               421 fs/cifs/cifs_debug.c 			spin_unlock(&ses->iface_lock);
ses               438 fs/cifs/cifs_debug.c 	struct cifs_ses *ses;
ses               471 fs/cifs/cifs_debug.c 				ses = list_entry(tmp2, struct cifs_ses,
ses               473 fs/cifs/cifs_debug.c 				list_for_each(tmp3, &ses->tcon_list) {
ses               503 fs/cifs/cifs_debug.c 	struct cifs_ses *ses;
ses               554 fs/cifs/cifs_debug.c 			ses = list_entry(tmp2, struct cifs_ses,
ses               556 fs/cifs/cifs_debug.c 			list_for_each(tmp3, &ses->tcon_list) {
ses               298 fs/cifs/cifs_dfs_ref.c 	struct cifs_ses *ses;
ses               349 fs/cifs/cifs_dfs_ref.c 	ses = tcon->ses;
ses               356 fs/cifs/cifs_dfs_ref.c 	rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb),
ses               359 fs/cifs/cifs_dfs_ref.c 		rc = dfs_cache_find(xid, ses, cifs_sb->local_nls,
ses              1185 fs/cifs/cifsacl.c 	ops = tlink_tcon(tlink)->ses->server->ops;
ses              1232 fs/cifs/cifsacl.c 	ops = tlink_tcon(tlink)->ses->server->ops;
ses               266 fs/cifs/cifsencrypt.c int setup_ntlm_response(struct cifs_ses *ses, const struct nls_table *nls_cp)
ses               272 fs/cifs/cifsencrypt.c 	if (!ses)
ses               275 fs/cifs/cifsencrypt.c 	ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL);
ses               276 fs/cifs/cifsencrypt.c 	if (!ses->auth_key.response)
ses               279 fs/cifs/cifsencrypt.c 	ses->auth_key.len = temp_len;
ses               281 fs/cifs/cifsencrypt.c 	rc = SMBNTencrypt(ses->password, ses->server->cryptkey,
ses               282 fs/cifs/cifsencrypt.c 			ses->auth_key.response + CIFS_SESS_KEY_SIZE, nls_cp);
ses               289 fs/cifs/cifsencrypt.c 	rc = E_md4hash(ses->password, temp_key, nls_cp);
ses               296 fs/cifs/cifsencrypt.c 	rc = mdfour(ses->auth_key.response, temp_key, CIFS_SESS_KEY_SIZE);
ses               352 fs/cifs/cifsencrypt.c build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp)
ses               360 fs/cifs/cifsencrypt.c 	if (!ses->domainName) {
ses               361 fs/cifs/cifsencrypt.c 		ses->domainName = kstrdup(defdmname, GFP_KERNEL);
ses               362 fs/cifs/cifsencrypt.c 		if (!ses->domainName)
ses               366 fs/cifs/cifsencrypt.c 	dlen = strlen(ses->domainName);
ses               374 fs/cifs/cifsencrypt.c 	ses->auth_key.len = size + 2 * dlen;
ses               375 fs/cifs/cifsencrypt.c 	ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL);
ses               376 fs/cifs/cifsencrypt.c 	if (!ses->auth_key.response) {
ses               377 fs/cifs/cifsencrypt.c 		ses->auth_key.len = 0;
ses               381 fs/cifs/cifsencrypt.c 	blobptr = ses->auth_key.response;
ses               391 fs/cifs/cifsencrypt.c 	cifs_strtoUTF16((__le16 *)blobptr, ses->domainName, dlen, nls_cp);
ses               407 fs/cifs/cifsencrypt.c find_domain_name(struct cifs_ses *ses, const struct nls_table *nls_cp)
ses               416 fs/cifs/cifsencrypt.c 	if (!ses->auth_key.len || !ses->auth_key.response)
ses               419 fs/cifs/cifsencrypt.c 	blobptr = ses->auth_key.response;
ses               420 fs/cifs/cifsencrypt.c 	blobend = blobptr + ses->auth_key.len;
ses               435 fs/cifs/cifsencrypt.c 			if (!ses->domainName) {
ses               436 fs/cifs/cifsencrypt.c 				ses->domainName =
ses               438 fs/cifs/cifsencrypt.c 				if (!ses->domainName)
ses               440 fs/cifs/cifsencrypt.c 				cifs_from_utf16(ses->domainName,
ses               459 fs/cifs/cifsencrypt.c find_timestamp(struct cifs_ses *ses)
ses               469 fs/cifs/cifsencrypt.c 	if (!ses->auth_key.len || !ses->auth_key.response)
ses               472 fs/cifs/cifsencrypt.c 	blobptr = ses->auth_key.response;
ses               473 fs/cifs/cifsencrypt.c 	blobend = blobptr + ses->auth_key.len;
ses               496 fs/cifs/cifsencrypt.c static int calc_ntlmv2_hash(struct cifs_ses *ses, char *ntlmv2_hash,
ses               506 fs/cifs/cifsencrypt.c 	if (!ses->server->secmech.sdeschmacmd5) {
ses               512 fs/cifs/cifsencrypt.c 	E_md4hash(ses->password, nt_hash, nls_cp);
ses               514 fs/cifs/cifsencrypt.c 	rc = crypto_shash_setkey(ses->server->secmech.hmacmd5, nt_hash,
ses               521 fs/cifs/cifsencrypt.c 	rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash);
ses               528 fs/cifs/cifsencrypt.c 	len = ses->user_name ? strlen(ses->user_name) : 0;
ses               536 fs/cifs/cifsencrypt.c 		len = cifs_strtoUTF16(user, ses->user_name, len, nls_cp);
ses               542 fs/cifs/cifsencrypt.c 	rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash,
ses               551 fs/cifs/cifsencrypt.c 	if (ses->domainName) {
ses               552 fs/cifs/cifsencrypt.c 		len = strlen(ses->domainName);
ses               559 fs/cifs/cifsencrypt.c 		len = cifs_strtoUTF16((__le16 *)domain, ses->domainName, len,
ses               562 fs/cifs/cifsencrypt.c 		crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash,
ses               572 fs/cifs/cifsencrypt.c 		len = strlen(ses->serverName);
ses               579 fs/cifs/cifsencrypt.c 		len = cifs_strtoUTF16((__le16 *)server, ses->serverName, len,
ses               582 fs/cifs/cifsencrypt.c 		crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash,
ses               592 fs/cifs/cifsencrypt.c 	rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash,
ses               601 fs/cifs/cifsencrypt.c CalcNTLMv2_response(const struct cifs_ses *ses, char *ntlmv2_hash)
ses               605 fs/cifs/cifsencrypt.c 	    (ses->auth_key.response + CIFS_SESS_KEY_SIZE);
ses               609 fs/cifs/cifsencrypt.c 	hash_len = ses->auth_key.len - (CIFS_SESS_KEY_SIZE +
ses               612 fs/cifs/cifsencrypt.c 	if (!ses->server->secmech.sdeschmacmd5) {
ses               617 fs/cifs/cifsencrypt.c 	rc = crypto_shash_setkey(ses->server->secmech.hmacmd5,
ses               625 fs/cifs/cifsencrypt.c 	rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash);
ses               631 fs/cifs/cifsencrypt.c 	if (ses->server->negflavor == CIFS_NEGFLAVOR_EXTENDED)
ses               633 fs/cifs/cifsencrypt.c 		       ses->ntlmssp->cryptkey, CIFS_SERVER_CHALLENGE_SIZE);
ses               636 fs/cifs/cifsencrypt.c 		       ses->server->cryptkey, CIFS_SERVER_CHALLENGE_SIZE);
ses               637 fs/cifs/cifsencrypt.c 	rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash,
ses               645 fs/cifs/cifsencrypt.c 	rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash,
ses               654 fs/cifs/cifsencrypt.c setup_ntlmv2_rsp(struct cifs_ses *ses, const struct nls_table *nls_cp)
ses               664 fs/cifs/cifsencrypt.c 	if (ses->server->negflavor == CIFS_NEGFLAVOR_EXTENDED) {
ses               665 fs/cifs/cifsencrypt.c 		if (!ses->domainName) {
ses               666 fs/cifs/cifsencrypt.c 			if (ses->domainAuto) {
ses               667 fs/cifs/cifsencrypt.c 				rc = find_domain_name(ses, nls_cp);
ses               674 fs/cifs/cifsencrypt.c 				ses->domainName = kstrdup("", GFP_KERNEL);
ses               678 fs/cifs/cifsencrypt.c 		rc = build_avpair_blob(ses, nls_cp);
ses               689 fs/cifs/cifsencrypt.c 	rsp_timestamp = find_timestamp(ses);
ses               692 fs/cifs/cifsencrypt.c 	tilen = ses->auth_key.len;
ses               693 fs/cifs/cifsencrypt.c 	tiblob = ses->auth_key.response;
ses               695 fs/cifs/cifsencrypt.c 	ses->auth_key.response = kmalloc(baselen + tilen, GFP_KERNEL);
ses               696 fs/cifs/cifsencrypt.c 	if (!ses->auth_key.response) {
ses               698 fs/cifs/cifsencrypt.c 		ses->auth_key.len = 0;
ses               701 fs/cifs/cifsencrypt.c 	ses->auth_key.len += baselen;
ses               704 fs/cifs/cifsencrypt.c 			(ses->auth_key.response + CIFS_SESS_KEY_SIZE);
ses               712 fs/cifs/cifsencrypt.c 	memcpy(ses->auth_key.response + baselen, tiblob, tilen);
ses               714 fs/cifs/cifsencrypt.c 	mutex_lock(&ses->server->srv_mutex);
ses               717 fs/cifs/cifsencrypt.c 			     &ses->server->secmech.hmacmd5,
ses               718 fs/cifs/cifsencrypt.c 			     &ses->server->secmech.sdeschmacmd5);
ses               724 fs/cifs/cifsencrypt.c 	rc = calc_ntlmv2_hash(ses, ntlmv2_hash, nls_cp);
ses               731 fs/cifs/cifsencrypt.c 	rc = CalcNTLMv2_response(ses, ntlmv2_hash);
ses               738 fs/cifs/cifsencrypt.c 	rc = crypto_shash_setkey(ses->server->secmech.hmacmd5,
ses               746 fs/cifs/cifsencrypt.c 	rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash);
ses               752 fs/cifs/cifsencrypt.c 	rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash,
ses               760 fs/cifs/cifsencrypt.c 	rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash,
ses               761 fs/cifs/cifsencrypt.c 		ses->auth_key.response);
ses               766 fs/cifs/cifsencrypt.c 	mutex_unlock(&ses->server->srv_mutex);
ses               774 fs/cifs/cifsencrypt.c calc_seckey(struct cifs_ses *ses)
ses               790 fs/cifs/cifsencrypt.c 	arc4_setkey(ctx_arc4, ses->auth_key.response, CIFS_SESS_KEY_SIZE);
ses               791 fs/cifs/cifsencrypt.c 	arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key,
ses               795 fs/cifs/cifsencrypt.c 	memcpy(ses->auth_key.response, sec_key, CIFS_SESS_KEY_SIZE);
ses               797 fs/cifs/cifsencrypt.c 	ses->auth_key.len = CIFS_SESS_KEY_SIZE;
ses               168 fs/cifs/cifsfs.c 	if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files)
ses               180 fs/cifs/cifsfs.c 	if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) &&
ses               181 fs/cifs/cifsfs.c 	    ((tcon->ses->capabilities &
ses               182 fs/cifs/cifsfs.c 	      tcon->ses->server->vals->cap_nt_find) == 0) &&
ses               258 fs/cifs/cifsfs.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               288 fs/cifs/cifsfs.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               396 fs/cifs/cifsfs.c cifs_show_security(struct seq_file *s, struct cifs_ses *ses)
ses               398 fs/cifs/cifsfs.c 	if (ses->sectype == Unspecified) {
ses               399 fs/cifs/cifsfs.c 		if (ses->user_name == NULL)
ses               406 fs/cifs/cifsfs.c 	switch (ses->sectype) {
ses               428 fs/cifs/cifsfs.c 	if (ses->sign)
ses               431 fs/cifs/cifsfs.c 	if (ses->sectype == Kerberos)
ses               433 fs/cifs/cifsfs.c 			   from_kuid_munged(&init_user_ns, ses->cred_uid));
ses               476 fs/cifs/cifsfs.c 	srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
ses               478 fs/cifs/cifsfs.c 	seq_show_option(s, "vers", tcon->ses->server->vals->version_string);
ses               479 fs/cifs/cifsfs.c 	cifs_show_security(s, tcon->ses);
ses               486 fs/cifs/cifsfs.c 	else if (tcon->ses->user_name)
ses               487 fs/cifs/cifsfs.c 		seq_show_option(s, "username", tcon->ses->user_name);
ses               489 fs/cifs/cifsfs.c 	if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
ses               490 fs/cifs/cifsfs.c 		seq_show_option(s, "domain", tcon->ses->domainName);
ses               522 fs/cifs/cifsfs.c 	cifs_show_address(s, tcon->ses->server);
ses               533 fs/cifs/cifsfs.c 	else if (tcon->ses->server->ignore_signature)
ses               607 fs/cifs/cifsfs.c 	if (tcon->ses->server->min_offload)
ses               608 fs/cifs/cifsfs.c 		seq_printf(s, ",esize=%u", tcon->ses->server->min_offload);
ses               610 fs/cifs/cifsfs.c 			tcon->ses->server->echo_interval / HZ);
ses               613 fs/cifs/cifsfs.c 	if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE)
ses               614 fs/cifs/cifsfs.c 		seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits);
ses               649 fs/cifs/cifsfs.c 	if (tcon->ses && tcon->ses->server) {
ses               651 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->request_q);
ses               652 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->response_q);
ses               655 fs/cifs/cifsfs.c 		wake_up_all(&tcon->ses->server->response_q);
ses               977 fs/cifs/cifsfs.c 		if (tcon->ses->server->ops->llseek)
ses               978 fs/cifs/cifsfs.c 			return tcon->ses->server->ops->llseek(file, tcon,
ses              1110 fs/cifs/cifsfs.c 	if (target_tcon->ses->server->ops->duplicate_extents)
ses              1111 fs/cifs/cifsfs.c 		rc = target_tcon->ses->server->ops->duplicate_extents(xid,
ses              1154 fs/cifs/cifsfs.c 	if (src_tcon->ses != target_tcon->ses) {
ses              1160 fs/cifs/cifsfs.c 	if (!target_tcon->ses->server->ops->copychunk_range)
ses              1176 fs/cifs/cifsfs.c 		rc = target_tcon->ses->server->ops->copychunk_range(xid,
ses              1008 fs/cifs/cifsglob.h cap_unix(struct cifs_ses *ses)
ses              1010 fs/cifs/cifsglob.h 	return ses->server->vals->cap_unix & ses->capabilities;
ses              1037 fs/cifs/cifsglob.h 	struct cifs_ses *ses;	/* pointer to session associated with */
ses                98 fs/cifs/cifsproto.h extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
ses               101 fs/cifs/cifsproto.h extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
ses               109 fs/cifs/cifsproto.h extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
ses               156 fs/cifs/cifsproto.h 				struct cifs_ses *ses,
ses               160 fs/cifs/cifsproto.h extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
ses               264 fs/cifs/cifsproto.h 				   struct cifs_ses *ses);
ses               265 fs/cifs/cifsproto.h extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
ses               268 fs/cifs/cifsproto.h extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses);
ses               270 fs/cifs/cifsproto.h extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
ses               305 fs/cifs/cifsproto.h extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
ses               462 fs/cifs/cifsproto.h extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
ses               547 fs/cifs/cifsproto.h extern void cifs_put_smb_ses(struct cifs_ses *ses);
ses               593 fs/cifs/cifsproto.h static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses,
ses               598 fs/cifs/cifsproto.h 	return dfs_cache_find(xid, ses, nls_codepage, remap, old_path,
ses               143 fs/cifs/cifssmb.c 			  tcon->ses->server->hostname);
ses               144 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc);
ses               149 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc);
ses               157 fs/cifs/cifssmb.c 	extract_unc_hostname(tcon->ses->server->hostname, &tcp_host,
ses               177 fs/cifs/cifssmb.c 		rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc);
ses               200 fs/cifs/cifssmb.c 	return CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc);
ses               209 fs/cifs/cifssmb.c 	struct cifs_ses *ses;
ses               222 fs/cifs/cifssmb.c 	ses = tcon->ses;
ses               223 fs/cifs/cifssmb.c 	server = ses->server;
ses               275 fs/cifs/cifssmb.c 	if (!ses->need_reconnect && !tcon->need_reconnect)
ses               284 fs/cifs/cifssmb.c 	mutex_lock(&ses->session_mutex);
ses               293 fs/cifs/cifssmb.c 		mutex_unlock(&ses->session_mutex);
ses               297 fs/cifs/cifssmb.c 	rc = cifs_negotiate_protocol(0, ses);
ses               298 fs/cifs/cifssmb.c 	if (rc == 0 && ses->need_reconnect)
ses               299 fs/cifs/cifssmb.c 		rc = cifs_setup_session(0, ses, nls_codepage);
ses               303 fs/cifs/cifssmb.c 		mutex_unlock(&ses->session_mutex);
ses               309 fs/cifs/cifssmb.c 	mutex_unlock(&ses->session_mutex);
ses               320 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_UNIX)
ses               378 fs/cifs/cifssmb.c 		     struct cifs_ses *ses, void **request_buf)
ses               388 fs/cifs/cifssmb.c 	buffer->Mid = get_next_mid(ses->server);
ses               389 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_UNICODE)
ses               391 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_STATUS32)
ses               446 fs/cifs/cifssmb.c 	if (tcon->ses->need_reconnect || tcon->need_reconnect)
ses               485 fs/cifs/cifssmb.c decode_ext_sec_blob(struct cifs_ses *ses, NEGOTIATE_RSP *pSMBr)
ses               490 fs/cifs/cifssmb.c 	struct TCP_Server_Info *server = ses->server;
ses               666 fs/cifs/cifssmb.c CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses)
ses               673 fs/cifs/cifssmb.c 	struct TCP_Server_Info *server = ses->server;
ses               689 fs/cifs/cifssmb.c 	if (should_set_ext_sec_flag(ses->sectype)) {
ses               708 fs/cifs/cifssmb.c 	rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB,
ses               745 fs/cifs/cifssmb.c 	cifs_dbg(NOISY, "Max buf = %d\n", ses->server->maxBuf);
ses               752 fs/cifs/cifssmb.c 		memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey,
ses               757 fs/cifs/cifssmb.c 		rc = decode_ext_sec_blob(ses, pSMBr);
ses               767 fs/cifs/cifssmb.c 		rc = cifs_enable_signing(server, ses->sign);
ses               784 fs/cifs/cifssmb.c 	if ((tcon->ses == NULL) || (tcon->ses->server == NULL))
ses               793 fs/cifs/cifssmb.c 	if ((tcon->need_reconnect) || (tcon->ses->need_reconnect))
ses               801 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *)smb_buffer, 0);
ses               873 fs/cifs/cifssmb.c CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses)
ses               885 fs/cifs/cifssmb.c 	if (!ses || !ses->server)
ses               888 fs/cifs/cifssmb.c 	mutex_lock(&ses->session_mutex);
ses               889 fs/cifs/cifssmb.c 	if (ses->need_reconnect)
ses               894 fs/cifs/cifssmb.c 		mutex_unlock(&ses->session_mutex);
ses               898 fs/cifs/cifssmb.c 	pSMB->hdr.Mid = get_next_mid(ses->server);
ses               900 fs/cifs/cifssmb.c 	if (ses->server->sign)
ses               903 fs/cifs/cifssmb.c 	pSMB->hdr.Uid = ses->Suid;
ses               906 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, ses, (char *) pSMB, 0);
ses               909 fs/cifs/cifssmb.c 	mutex_unlock(&ses->session_mutex);
ses               979 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1024 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1068 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1112 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1189 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1353 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              1459 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_UNIX)
ses              1477 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *)req,
ses              1697 fs/cifs/cifssmb.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              1760 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
ses              1801 fs/cifs/cifssmb.c 	rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive,
ses              1832 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
ses              1851 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
ses              1874 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 1, &resp_buf_type,
ses              1942 fs/cifs/cifssmb.c 	if (tcon->ses == NULL)
ses              1945 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES)
ses              1964 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
ses              1981 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_WRITE_X) {
ses              1984 fs/cifs/cifssmb.c 		bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE)
ses              2017 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              2075 fs/cifs/cifssmb.c 	server = tlink_tcon(wdata->cfile->tlink)->ses->server;
ses              2235 fs/cifs/cifssmb.c 		wdata->result = cifs_check_receive(mid, tcon->ses->server, 0);
ses              2267 fs/cifs/cifssmb.c 	add_credits(tcon->ses->server, &credits, 0);
ses              2282 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES) {
ses              2344 fs/cifs/cifssmb.c 	rc = cifs_call_async(tcon->ses->server, &rqst, NULL,
ses              2377 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_LARGE_FILES) {
ses              2394 fs/cifs/cifssmb.c 	if (tcon->ses->server == NULL)
ses              2430 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, n_vec + 1, &resp_buf_type, 0,
ses              2498 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 2, &resp_buf_type,
ses              2565 fs/cifs/cifssmb.c 		rc = SendReceiveNoRsp(xid, tcon->ses, (char *)pSMB, flags);
ses              2653 fs/cifs/cifssmb.c 		rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovecs */,
ses              2723 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              2753 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              2813 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              2894 fs/cifs/cifssmb.c 	rc = SendReceive(xid, pTcon->ses, (struct smb_hdr *) pSMB,
ses              2958 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3043 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3126 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3196 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3266 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3354 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3474 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3686 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3777 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3836 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              3995 fs/cifs/cifssmb.c 	rc = SendReceive2(xid, tcon->ses, iov, 1 /* num iovec */, &buf_type,
ses              4101 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4152 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4227 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4312 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4394 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4476 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4593 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4721 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4810 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              4881 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              4916 fs/cifs/cifssmb.c CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
ses              4932 fs/cifs/cifssmb.c 	if (ses == NULL || ses->tcon_ipc == NULL)
ses              4936 fs/cifs/cifssmb.c 	rc = smb_init(SMB_COM_TRANSACTION2, 15, ses->tcon_ipc, (void **) &pSMB,
ses              4943 fs/cifs/cifssmb.c 	pSMB->hdr.Mid = get_next_mid(ses->server);
ses              4944 fs/cifs/cifssmb.c 	pSMB->hdr.Tid = ses->tcon_ipc->tid;
ses              4945 fs/cifs/cifssmb.c 	pSMB->hdr.Uid = ses->Suid;
ses              4946 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_STATUS32)
ses              4948 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_DFS)
ses              4951 fs/cifs/cifssmb.c 	if (ses->capabilities & CAP_UNICODE) {
ses              4963 fs/cifs/cifssmb.c 	if (ses->server->sign)
ses              4966 fs/cifs/cifssmb.c 	pSMB->hdr.Uid = ses->Suid;
ses              4992 fs/cifs/cifssmb.c 	rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB,
ses              5068 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5155 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5242 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5313 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5383 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5466 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5528 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5629 fs/cifs/cifssmb.c 		if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5636 fs/cifs/cifssmb.c 	    if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5661 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5722 fs/cifs/cifssmb.c 		if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5729 fs/cifs/cifssmb.c 	    if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5739 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              5803 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5811 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              5872 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              5936 fs/cifs/cifssmb.c 	if (tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)
ses              5944 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              5993 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              6108 fs/cifs/cifssmb.c 	rc = SendReceiveNoRsp(xid, tcon->ses, (char *) pSMB, 0);
ses              6185 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              6269 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses              6482 fs/cifs/cifssmb.c 	rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB,
ses               408 fs/cifs/connect.c 	if (tcon->ses->server == d->server)
ses               494 fs/cifs/connect.c 	struct cifs_ses *ses;
ses               554 fs/cifs/connect.c 		ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
ses               555 fs/cifs/connect.c 		ses->need_reconnect = true;
ses               556 fs/cifs/connect.c 		list_for_each(tmp2, &ses->tcon_list) {
ses               560 fs/cifs/connect.c 		if (ses->tcon_ipc)
ses               561 fs/cifs/connect.c 			ses->tcon_ipc->need_reconnect = true;
ses              2893 fs/cifs/connect.c static int match_session(struct cifs_ses *ses, struct smb_vol *vol)
ses              2896 fs/cifs/connect.c 	    vol->sectype != ses->sectype)
ses              2899 fs/cifs/connect.c 	switch (ses->sectype) {
ses              2901 fs/cifs/connect.c 		if (!uid_eq(vol->cred_uid, ses->cred_uid))
ses              2906 fs/cifs/connect.c 		if (ses->user_name == NULL) {
ses              2913 fs/cifs/connect.c 		if (strncmp(ses->user_name,
ses              2918 fs/cifs/connect.c 		    ses->password != NULL &&
ses              2919 fs/cifs/connect.c 		    strncmp(ses->password,
ses              2934 fs/cifs/connect.c cifs_setup_ipc(struct cifs_ses *ses, struct smb_vol *volume_info)
ses              2941 fs/cifs/connect.c 	struct TCP_Server_Info *server = ses->server;
ses              2967 fs/cifs/connect.c 	tcon->ses = ses;
ses              2970 fs/cifs/connect.c 	rc = server->ops->tree_connect(xid, ses, unc, tcon, nls_codepage);
ses              2981 fs/cifs/connect.c 	ses->tcon_ipc = tcon;
ses              2993 fs/cifs/connect.c cifs_free_ipc(struct cifs_ses *ses)
ses              2996 fs/cifs/connect.c 	struct cifs_tcon *tcon = ses->tcon_ipc;
ses              3001 fs/cifs/connect.c 	if (ses->server->ops->tree_disconnect) {
ses              3003 fs/cifs/connect.c 		rc = ses->server->ops->tree_disconnect(xid, tcon);
ses              3011 fs/cifs/connect.c 	ses->tcon_ipc = NULL;
ses              3018 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              3021 fs/cifs/connect.c 	list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
ses              3022 fs/cifs/connect.c 		if (ses->status == CifsExiting)
ses              3024 fs/cifs/connect.c 		if (!match_session(ses, vol))
ses              3026 fs/cifs/connect.c 		++ses->ses_count;
ses              3028 fs/cifs/connect.c 		return ses;
ses              3034 fs/cifs/connect.c void cifs_put_smb_ses(struct cifs_ses *ses)
ses              3037 fs/cifs/connect.c 	struct TCP_Server_Info *server = ses->server;
ses              3039 fs/cifs/connect.c 	cifs_dbg(FYI, "%s: ses_count=%d\n", __func__, ses->ses_count);
ses              3042 fs/cifs/connect.c 	if (ses->status == CifsExiting) {
ses              3046 fs/cifs/connect.c 	if (--ses->ses_count > 0) {
ses              3050 fs/cifs/connect.c 	if (ses->status == CifsGood)
ses              3051 fs/cifs/connect.c 		ses->status = CifsExiting;
ses              3054 fs/cifs/connect.c 	cifs_free_ipc(ses);
ses              3056 fs/cifs/connect.c 	if (ses->status == CifsExiting && server->ops->logoff) {
ses              3058 fs/cifs/connect.c 		rc = server->ops->logoff(xid, ses);
ses              3066 fs/cifs/connect.c 	list_del_init(&ses->smb_ses_list);
ses              3069 fs/cifs/connect.c 	sesInfoFree(ses);
ses              3080 fs/cifs/connect.c cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
ses              3088 fs/cifs/connect.c 	struct TCP_Server_Info *server = ses->server;
ses              3117 fs/cifs/connect.c 		if (!ses->domainName) {
ses              3124 fs/cifs/connect.c 		sprintf(desc, "cifs:d:%s", ses->domainName);
ses              3193 fs/cifs/connect.c 	if (is_domain && ses->domainName) {
ses              3194 fs/cifs/connect.c 		vol->domainname = kstrndup(ses->domainName,
ses              3195 fs/cifs/connect.c 					   strlen(ses->domainName),
ses              3220 fs/cifs/connect.c 		   struct cifs_ses *ses __attribute__((unused)))
ses              3238 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              3244 fs/cifs/connect.c 	ses = cifs_find_smb_ses(server, volume_info);
ses              3245 fs/cifs/connect.c 	if (ses) {
ses              3247 fs/cifs/connect.c 			 ses->status);
ses              3249 fs/cifs/connect.c 		mutex_lock(&ses->session_mutex);
ses              3250 fs/cifs/connect.c 		rc = cifs_negotiate_protocol(xid, ses);
ses              3252 fs/cifs/connect.c 			mutex_unlock(&ses->session_mutex);
ses              3254 fs/cifs/connect.c 			cifs_put_smb_ses(ses);
ses              3258 fs/cifs/connect.c 		if (ses->need_reconnect) {
ses              3260 fs/cifs/connect.c 			rc = cifs_setup_session(xid, ses,
ses              3263 fs/cifs/connect.c 				mutex_unlock(&ses->session_mutex);
ses              3265 fs/cifs/connect.c 				cifs_put_smb_ses(ses);
ses              3270 fs/cifs/connect.c 		mutex_unlock(&ses->session_mutex);
ses              3275 fs/cifs/connect.c 		return ses;
ses              3279 fs/cifs/connect.c 	ses = sesInfoAlloc();
ses              3280 fs/cifs/connect.c 	if (ses == NULL)
ses              3284 fs/cifs/connect.c 	ses->server = server;
ses              3286 fs/cifs/connect.c 		sprintf(ses->serverName, "%pI6", &addr6->sin6_addr);
ses              3288 fs/cifs/connect.c 		sprintf(ses->serverName, "%pI4", &addr->sin_addr);
ses              3291 fs/cifs/connect.c 		ses->user_name = kstrdup(volume_info->username, GFP_KERNEL);
ses              3292 fs/cifs/connect.c 		if (!ses->user_name)
ses              3298 fs/cifs/connect.c 		ses->password = kstrdup(volume_info->password, GFP_KERNEL);
ses              3299 fs/cifs/connect.c 		if (!ses->password)
ses              3303 fs/cifs/connect.c 		ses->domainName = kstrdup(volume_info->domainname, GFP_KERNEL);
ses              3304 fs/cifs/connect.c 		if (!ses->domainName)
ses              3308 fs/cifs/connect.c 		ses->domainAuto = volume_info->domainauto;
ses              3309 fs/cifs/connect.c 	ses->cred_uid = volume_info->cred_uid;
ses              3310 fs/cifs/connect.c 	ses->linux_uid = volume_info->linux_uid;
ses              3312 fs/cifs/connect.c 	ses->sectype = volume_info->sectype;
ses              3313 fs/cifs/connect.c 	ses->sign = volume_info->sign;
ses              3314 fs/cifs/connect.c 	mutex_lock(&ses->session_mutex);
ses              3315 fs/cifs/connect.c 	rc = cifs_negotiate_protocol(xid, ses);
ses              3317 fs/cifs/connect.c 		rc = cifs_setup_session(xid, ses, volume_info->local_nls);
ses              3318 fs/cifs/connect.c 	mutex_unlock(&ses->session_mutex);
ses              3324 fs/cifs/connect.c 	list_add(&ses->smb_ses_list, &server->smb_ses_list);
ses              3329 fs/cifs/connect.c 	cifs_setup_ipc(ses, volume_info);
ses              3331 fs/cifs/connect.c 	return ses;
ses              3334 fs/cifs/connect.c 	sesInfoFree(ses);
ses              3357 fs/cifs/connect.c cifs_find_tcon(struct cifs_ses *ses, struct smb_vol *volume_info)
ses              3363 fs/cifs/connect.c 	list_for_each(tmp, &ses->tcon_list) {
ses              3383 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              3392 fs/cifs/connect.c 	ses = tcon->ses;
ses              3404 fs/cifs/connect.c 	if (ses->server->ops->tree_disconnect)
ses              3405 fs/cifs/connect.c 		ses->server->ops->tree_disconnect(xid, tcon);
ses              3410 fs/cifs/connect.c 	cifs_put_smb_ses(ses);
ses              3434 fs/cifs/connect.c cifs_get_tcon(struct cifs_ses *ses, struct smb_vol *volume_info)
ses              3439 fs/cifs/connect.c 	tcon = cifs_find_tcon(ses, volume_info);
ses              3446 fs/cifs/connect.c 		cifs_put_smb_ses(ses);
ses              3450 fs/cifs/connect.c 	if (!ses->server->ops->tree_connect) {
ses              3462 fs/cifs/connect.c 		if (ses->server->vals->protocol_id == 0) {
ses              3472 fs/cifs/connect.c 		if (ses->server->vals->protocol_id == 0) {
ses              3481 fs/cifs/connect.c 	tcon->ses = ses;
ses              3491 fs/cifs/connect.c 		if (ses->server->vals->protocol_id == 0) {
ses              3496 fs/cifs/connect.c 		} else if (tcon->ses->server->capabilities &
ses              3507 fs/cifs/connect.c 		if (ses->server->posix_ext_supported) {
ses              3523 fs/cifs/connect.c 	rc = ses->server->ops->tree_connect(xid, ses, volume_info->UNC, tcon,
ses              3533 fs/cifs/connect.c 		if (ses->server->vals->protocol_id == 0) {
ses              3538 fs/cifs/connect.c 		} else if (ses->server->capabilities &
ses              3548 fs/cifs/connect.c 	     && (ses->server->capabilities & SMB2_GLOBAL_CAP_PERSISTENT_HANDLES)
ses              3553 fs/cifs/connect.c 		if (ses->server->vals->protocol_id == 0) {
ses              3583 fs/cifs/connect.c 	list_add(&tcon->tcon_list, &ses->tcon_list);
ses              3681 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              3694 fs/cifs/connect.c 	ses = tcon->ses;
ses              3695 fs/cifs/connect.c 	tcp_srv = ses->server;
ses              3700 fs/cifs/connect.c 	    !match_session(ses, volume_info) ||
ses              4228 fs/cifs/connect.c 				   struct cifs_ses *ses, struct cifs_tcon *tcon)
ses              4234 fs/cifs/connect.c 	else if (ses)
ses              4235 fs/cifs/connect.c 		cifs_put_smb_ses(ses);
ses              4250 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              4274 fs/cifs/connect.c 	ses = cifs_get_smb_ses(server, vol);
ses              4275 fs/cifs/connect.c 	if (IS_ERR(ses)) {
ses              4276 fs/cifs/connect.c 		rc = PTR_ERR(ses);
ses              4280 fs/cifs/connect.c 	*nses = ses;
ses              4282 fs/cifs/connect.c 	if ((vol->persistent == true) && (!(ses->server->capabilities &
ses              4289 fs/cifs/connect.c 	tcon = cifs_get_tcon(ses, vol);
ses              4302 fs/cifs/connect.c 	if (cap_unix(tcon->ses)) {
ses              4308 fs/cifs/connect.c 		if ((tcon->ses->server->tcpStatus == CifsNeedReconnect) &&
ses              4335 fs/cifs/connect.c static int mount_setup_tlink(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
ses              4345 fs/cifs/connect.c 	tlink->tl_uid = ses->linux_uid;
ses              4409 fs/cifs/connect.c expand_dfs_referral(const unsigned int xid, struct cifs_ses *ses,
ses              4427 fs/cifs/connect.c 	rc = dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb),
ses              4495 fs/cifs/connect.c 			      struct cifs_ses **ses,
ses              4530 fs/cifs/connect.c 		mount_put_conns(cifs_sb, *xid, *server, *ses, *tcon);
ses              4531 fs/cifs/connect.c 		rc = mount_get_conns(&fake_vol, cifs_sb, xid, server, ses,
ses              4551 fs/cifs/connect.c 				 struct cifs_ses **ses,
ses              4572 fs/cifs/connect.c 					ses, tcon);
ses              4581 fs/cifs/connect.c 		rc = dfs_cache_update_tgthint(*xid, root_ses ? root_ses : *ses,
ses              4759 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              4767 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
ses              4770 fs/cifs/connect.c 		rc = dfs_cache_find(xid, ses, cifs_sb->local_nls,
ses              4816 fs/cifs/connect.c 	(void)expand_dfs_referral(xid, ses, vol, cifs_sb, false);
ses              4833 fs/cifs/connect.c 		mount_put_conns(cifs_sb, xid, server, ses, tcon);
ses              4834 fs/cifs/connect.c 		rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
ses              4841 fs/cifs/connect.c 					   &xid, &server, &ses, &tcon);
ses              4854 fs/cifs/connect.c 	(void)dfs_cache_find(xid, ses, cifs_sb->local_nls, cifs_remap(cifs_sb),
ses              4887 fs/cifs/connect.c 		rc = expand_dfs_referral(xid, root_tcon->ses, vol, cifs_sb,
ses              4893 fs/cifs/connect.c 			mount_put_conns(cifs_sb, xid, server, ses, tcon);
ses              4894 fs/cifs/connect.c 			rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses,
ses              4911 fs/cifs/connect.c 						   root_tcon->ses, &xid,
ses              4912 fs/cifs/connect.c 						   &server, &ses, &tcon);
ses              4914 fs/cifs/connect.c 			    !ses)
ses              4953 fs/cifs/connect.c 	return mount_setup_tlink(cifs_sb, ses, tcon);
ses              4959 fs/cifs/connect.c 	mount_put_conns(cifs_sb, xid, server, ses, tcon);
ses              4967 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              4971 fs/cifs/connect.c 	rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon);
ses              4985 fs/cifs/connect.c 	return mount_setup_tlink(cifs_sb, ses, tcon);
ses              4988 fs/cifs/connect.c 	mount_put_conns(cifs_sb, xid, server, ses, tcon);
ses              4997 fs/cifs/connect.c CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
ses              5010 fs/cifs/connect.c 	if (ses == NULL)
ses              5022 fs/cifs/connect.c 	smb_buffer->Mid = get_next_mid(ses->server);
ses              5023 fs/cifs/connect.c 	smb_buffer->Uid = ses->Suid;
ses              5030 fs/cifs/connect.c 	if (tcon->pipe || (ses->server->sec_mode & SECMODE_USER)) {
ses              5045 fs/cifs/connect.c 		    (ses->sectype == LANMAN))
ses              5046 fs/cifs/connect.c 			calc_lanman_hash(tcon->password, ses->server->cryptkey,
ses              5047 fs/cifs/connect.c 					 ses->server->sec_mode &
ses              5052 fs/cifs/connect.c 		rc = SMBNTencrypt(tcon->password, ses->server->cryptkey,
ses              5062 fs/cifs/connect.c 		if (ses->capabilities & CAP_UNICODE) {
ses              5069 fs/cifs/connect.c 	if (ses->server->sign)
ses              5072 fs/cifs/connect.c 	if (ses->capabilities & CAP_STATUS32) {
ses              5075 fs/cifs/connect.c 	if (ses->capabilities & CAP_DFS) {
ses              5078 fs/cifs/connect.c 	if (ses->capabilities & CAP_UNICODE) {
ses              5098 fs/cifs/connect.c 	rc = SendReceive(xid, ses, smb_buffer, smb_buffer_response, &length,
ses              5195 fs/cifs/connect.c cifs_negotiate_protocol(const unsigned int xid, struct cifs_ses *ses)
ses              5198 fs/cifs/connect.c 	struct TCP_Server_Info *server = ses->server;
ses              5207 fs/cifs/connect.c 	rc = server->ops->negotiate(xid, ses);
ses              5221 fs/cifs/connect.c cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
ses              5225 fs/cifs/connect.c 	struct TCP_Server_Info *server = ses->server;
ses              5227 fs/cifs/connect.c 	ses->capabilities = server->capabilities;
ses              5229 fs/cifs/connect.c 		ses->capabilities &= (~server->vals->cap_unix);
ses              5234 fs/cifs/connect.c 	if (ses->auth_key.response) {
ses              5236 fs/cifs/connect.c 			 ses->auth_key.response);
ses              5237 fs/cifs/connect.c 		kfree(ses->auth_key.response);
ses              5238 fs/cifs/connect.c 		ses->auth_key.response = NULL;
ses              5239 fs/cifs/connect.c 		ses->auth_key.len = 0;
ses              5243 fs/cifs/connect.c 		rc = server->ops->sess_setup(xid, ses, nls_info);
ses              5252 fs/cifs/connect.c cifs_set_vol_auth(struct smb_vol *vol, struct cifs_ses *ses)
ses              5254 fs/cifs/connect.c 	vol->sectype = ses->sectype;
ses              5260 fs/cifs/connect.c 	return cifs_set_cifscreds(vol, ses);
ses              5268 fs/cifs/connect.c 	struct cifs_ses *ses;
ses              5285 fs/cifs/connect.c 	vol_info->sectype = master_tcon->ses->sectype;
ses              5286 fs/cifs/connect.c 	vol_info->sign = master_tcon->ses->sign;
ses              5288 fs/cifs/connect.c 	rc = cifs_set_vol_auth(vol_info, master_tcon->ses);
ses              5296 fs/cifs/connect.c 	++master_tcon->ses->server->srv_count;
ses              5299 fs/cifs/connect.c 	ses = cifs_get_smb_ses(master_tcon->ses->server, vol_info);
ses              5300 fs/cifs/connect.c 	if (IS_ERR(ses)) {
ses              5301 fs/cifs/connect.c 		tcon = (struct cifs_tcon *)ses;
ses              5302 fs/cifs/connect.c 		cifs_put_tcp_session(master_tcon->ses->server, 0);
ses              5306 fs/cifs/connect.c 	tcon = cifs_get_tcon(ses, vol_info);
ses              5308 fs/cifs/connect.c 		cifs_put_smb_ses(ses);
ses              5316 fs/cifs/connect.c 	if (cap_unix(ses))
ses               597 fs/cifs/dfs_cache.c update_cache_entry(const unsigned int xid, struct cifs_ses *ses,
ses               610 fs/cifs/dfs_cache.c 	if (!ses || !ses->server || !ses->server->ops->get_dfs_refer)
ses               617 fs/cifs/dfs_cache.c 	rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, &numrefs,
ses               640 fs/cifs/dfs_cache.c do_dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
ses               666 fs/cifs/dfs_cache.c 		if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) {
ses               681 fs/cifs/dfs_cache.c 		rc = ses->server->ops->get_dfs_refer(xid, ses, path, &nrefs,
ses               715 fs/cifs/dfs_cache.c 		ce = update_cache_entry(xid, ses, nls_codepage, remap, path,
ses               825 fs/cifs/dfs_cache.c int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
ses               842 fs/cifs/dfs_cache.c 	ce = do_dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
ses               925 fs/cifs/dfs_cache.c int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses,
ses               945 fs/cifs/dfs_cache.c 	ce = do_dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
ses              1261 fs/cifs/dfs_cache.c 	struct cifs_ses *ses;
ses              1267 fs/cifs/dfs_cache.c 	list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
ses              1268 fs/cifs/dfs_cache.c 		list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
ses              1275 fs/cifs/dfs_cache.c 		if (ses->tcon_ipc && !ses->tcon_ipc->need_reconnect &&
ses              1276 fs/cifs/dfs_cache.c 		    ses->tcon_ipc->dfs_path) {
ses              1277 fs/cifs/dfs_cache.c 			list_add_tail(&ses->tcon_ipc->ulist, head);
ses              1321 fs/cifs/dfs_cache.c 	struct cifs_ses *ses;
ses              1332 fs/cifs/dfs_cache.c 		ses = ERR_PTR(rc);
ses              1341 fs/cifs/dfs_cache.c 		ses = ERR_CAST(mdata);
ses              1350 fs/cifs/dfs_cache.c 		ses = ERR_PTR(rc);
ses              1356 fs/cifs/dfs_cache.c 		ses = ERR_PTR(-EHOSTDOWN);
ses              1361 fs/cifs/dfs_cache.c 		ses = ERR_PTR(-EHOSTDOWN);
ses              1365 fs/cifs/dfs_cache.c 	ses = cifs_get_smb_ses(server, &vol);
ses              1372 fs/cifs/dfs_cache.c 	return ses;
ses              1386 fs/cifs/dfs_cache.c 	struct cifs_ses *root_ses = NULL, *ses;
ses              1410 fs/cifs/dfs_cache.c 		ses = root_ses = find_root_ses(vi, tcon, npath);
ses              1411 fs/cifs/dfs_cache.c 		if (IS_ERR(ses)) {
ses              1412 fs/cifs/dfs_cache.c 			rc = PTR_ERR(ses);
ses              1417 fs/cifs/dfs_cache.c 		ses = tcon->ses;
ses              1420 fs/cifs/dfs_cache.c 	if (unlikely(!ses->server->ops->get_dfs_refer)) {
ses              1423 fs/cifs/dfs_cache.c 		rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs,
ses                29 fs/cifs/dfs_cache.h extern int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
ses                36 fs/cifs/dfs_cache.h 				    struct cifs_ses *ses,
ses               239 fs/cifs/dir.c  	struct TCP_Server_Info *server = tcon->ses->server;
ses               243 fs/cifs/dir.c  	if (tcon->ses->server->oplocks)
ses               252 fs/cifs/dir.c  	if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open &&
ses               524 fs/cifs/dir.c  	server = tcon->ses->server;
ses               601 fs/cifs/dir.c  	server = tcon->ses->server;
ses               645 fs/cifs/dir.c  	rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon,
ses               185 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               303 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               445 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               495 fs/cifs/file.c 		struct TCP_Server_Info *server = tcon->ses->server;
ses               540 fs/cifs/file.c 	server = tcon->ses->server;
ses               565 fs/cifs/file.c 	    cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
ses               575 fs/cifs/file.c 			if (tcon->ses->serverNOS)
ses               577 fs/cifs/file.c 					 tcon->ses->serverName,
ses               578 fs/cifs/file.c 					 tcon->ses->serverNOS);
ses               663 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
ses               668 fs/cifs/file.c 		rc = tcon->ses->server->ops->push_mand_locks(cfile);
ses               703 fs/cifs/file.c 	server = tcon->ses->server;
ses               722 fs/cifs/file.c 	if (tcon->ses->server->oplocks)
ses               727 fs/cifs/file.c 	if (tcon->unix_ext && cap_unix(tcon->ses) &&
ses               903 fs/cifs/file.c 	server = tcon->ses->server;
ses               978 fs/cifs/file.c 	struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server;
ses              1040 fs/cifs/file.c 	struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server;
ses              1207 fs/cifs/file.c 	max_buf = tcon->ses->server->maxBuf;
ses              1380 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
ses              1385 fs/cifs/file.c 		rc = tcon->ses->server->ops->push_mand_locks(cfile);
ses              1447 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              1551 fs/cifs/file.c 	max_buf = tcon->ses->server->maxBuf;
ses              1649 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              1756 fs/cifs/file.c 			tcon->ses->server);
ses              1759 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
ses              1820 fs/cifs/file.c 	server = tcon->ses->server;
ses              2254 fs/cifs/file.c 				tlink_tcon(wdata->cfile->tlink)->ses->server;
ses              2310 fs/cifs/file.c 	server = cifs_sb_master_tcon(cifs_sb)->ses->server;
ses              2578 fs/cifs/file.c 		server = tcon->ses->server;
ses              2609 fs/cifs/file.c 		server = tcon->ses->server;
ses              2763 fs/cifs/file.c 		tlink_tcon(wdata->cfile->tlink)->ses->server;
ses              2841 fs/cifs/file.c 	server = tlink_tcon(open_file->tlink)->ses->server;
ses              3098 fs/cifs/file.c 	if (!tcon->ses->server->ops->async_writev)
ses              3188 fs/cifs/file.c 	struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server;
ses              3233 fs/cifs/file.c 		if (cap_unix(tcon->ses) &&
ses              3489 fs/cifs/file.c 		tlink_tcon(rdata->cfile->tlink)->ses->server;
ses              3560 fs/cifs/file.c 	server = tlink_tcon(open_file->tlink)->ses->server;
ses              3821 fs/cifs/file.c 	if (!tcon->ses->server->ops->async_readv)
ses              3926 fs/cifs/file.c 	if (cap_unix(tcon->ses) &&
ses              3937 fs/cifs/file.c 				     tcon->ses->server->vals->shared_lock_type,
ses              3975 fs/cifs/file.c 	server = tcon->ses->server;
ses              4000 fs/cifs/file.c 			if (!(tcon->ses->capabilities &
ses              4001 fs/cifs/file.c 				tcon->ses->server->vals->cap_large_files)) {
ses              4316 fs/cifs/file.c 	server = tlink_tcon(open_file->tlink)->ses->server;
ses              4676 fs/cifs/file.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              4717 fs/cifs/file.c 		rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid,
ses                97 fs/cifs/fscache.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses                64 fs/cifs/inode.c 		if (cifs_sb_master_tcon(cifs_sb)->ses->server->maxBuf <
ses               483 fs/cifs/inode.c 	if (tcon->ses->server->oplocks)
ses               487 fs/cifs/inode.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
ses               501 fs/cifs/inode.c 	rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
ses               543 fs/cifs/inode.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
ses               570 fs/cifs/inode.c 	if (tcon->ses->server->ops->query_all_EAs == NULL) {
ses               575 fs/cifs/inode.c 	rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
ses               621 fs/cifs/inode.c 		fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
ses               622 fs/cifs/inode.c 		fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
ses               677 fs/cifs/inode.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               751 fs/cifs/inode.c 	server = tcon->ses->server;
ses               804 fs/cifs/inode.c 		else if ((tcon->ses->capabilities &
ses               805 fs/cifs/inode.c 			 tcon->ses->server->vals->cap_nt_find) == 0)
ses              1147 fs/cifs/inode.c 	server = cifs_sb_master_tcon(cifs_sb)->ses->server;
ses              1216 fs/cifs/inode.c 	if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
ses              1355 fs/cifs/inode.c 	server = tcon->ses->server;
ses              1367 fs/cifs/inode.c 	if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
ses              1496 fs/cifs/inode.c 		struct TCP_Server_Info *server = tcon->ses->server;
ses              1606 fs/cifs/inode.c 	server = tcon->ses->server;
ses              1615 fs/cifs/inode.c 	if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
ses              1679 fs/cifs/inode.c 	server = tcon->ses->server;
ses              1734 fs/cifs/inode.c 	server = tcon->ses->server;
ses              2141 fs/cifs/inode.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              2226 fs/cifs/inode.c 		server = tcon->ses->server;
ses              2245 fs/cifs/inode.c 		server = tcon->ses->server;
ses              2480 fs/cifs/inode.c 			rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);
ses                66 fs/cifs/ioctl.c 	if (tcon->ses->server->ops->ioctl_query_info)
ses                67 fs/cifs/ioctl.c 		rc = tcon->ses->server->ops->ioctl_query_info(
ses               140 fs/cifs/ioctl.c 	fsinf->protocol_id = tcon->ses->server->vals->protocol_id;
ses               232 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->set_compression) {
ses               233 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->set_compression(
ses               248 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->set_integrity)
ses               249 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->set_integrity(xid,
ses               268 fs/cifs/ioctl.c 			if (tcon->ses->server->ops->enum_snapshots)
ses               269 fs/cifs/ioctl.c 				rc = tcon->ses->server->ops->enum_snapshots(xid, tcon,
ses               288 fs/cifs/ioctl.c 				le16_to_cpu(tcon->ses->server->cipher_type);
ses               289 fs/cifs/ioctl.c 			pkey_inf.Suid = tcon->ses->Suid;
ses               290 fs/cifs/ioctl.c 			memcpy(pkey_inf.auth_key, tcon->ses->auth_key.response,
ses               293 fs/cifs/ioctl.c 			      tcon->ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE);
ses               295 fs/cifs/ioctl.c 			      tcon->ses->smb3encryptionkey, SMB3_SIGN_KEY_SIZE);
ses               198 fs/cifs/link.c 	if (tcon->ses->server->ops->create_mf_symlink)
ses               199 fs/cifs/link.c 		rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon,
ses               228 fs/cifs/link.c 	if (tcon->ses->server->ops->query_mf_symlink)
ses               229 fs/cifs/link.c 		rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon,
ses               266 fs/cifs/link.c 	if (tcon->ses->server->ops->query_mf_symlink)
ses               267 fs/cifs/link.c 		rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon,
ses               550 fs/cifs/link.c 		server = tcon->ses->server;
ses               631 fs/cifs/link.c 	server = tcon->ses->server;
ses               267 fs/cifs/misc.c 		if (treeCon->ses) {
ses               268 fs/cifs/misc.c 			if (treeCon->ses->capabilities & CAP_UNICODE)
ses               270 fs/cifs/misc.c 			if (treeCon->ses->capabilities & CAP_STATUS32)
ses               274 fs/cifs/misc.c 			buffer->Uid = treeCon->ses->Suid;
ses               275 fs/cifs/misc.c 			buffer->Mid = get_next_mid(treeCon->ses->server);
ses               281 fs/cifs/misc.c 		if ((treeCon->ses) && (treeCon->ses->server))
ses               282 fs/cifs/misc.c 			if (treeCon->ses->server->sign)
ses               404 fs/cifs/misc.c 	struct cifs_ses *ses;
ses               471 fs/cifs/misc.c 		ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
ses               472 fs/cifs/misc.c 		list_for_each(tmp1, &ses->tcon_list) {
ses               134 fs/cifs/ntlmssp.h int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len, struct cifs_ses *ses);
ses               135 fs/cifs/ntlmssp.h void build_ntlmssp_negotiate_blob(unsigned char *pbuffer, struct cifs_ses *ses);
ses               137 fs/cifs/ntlmssp.h 			struct cifs_ses *ses,
ses               217 fs/cifs/readdir.c 	int offset = cifs_sb_master_tcon(cifs_sb)->ses->server->timeAdj;
ses               297 fs/cifs/readdir.c 	server = tcon->ses->server;
ses               321 fs/cifs/readdir.c 	else if ((tcon->ses->capabilities &
ses               322 fs/cifs/readdir.c 		  tcon->ses->server->vals->cap_nt_find) == 0) {
ses               582 fs/cifs/readdir.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               848 fs/cifs/readdir.c 	max_len = tcon->ses->server->ops->calc_smb_size(
ses               850 fs/cifs/readdir.c 			tcon->ses->server);
ses                35 fs/cifs/sess.c static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB)
ses                48 fs/cifs/sess.c 	pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq);
ses                59 fs/cifs/sess.c 	if (ses->server->sign)
ses                62 fs/cifs/sess.c 	if (ses->capabilities & CAP_UNICODE) {
ses                66 fs/cifs/sess.c 	if (ses->capabilities & CAP_STATUS32) {
ses                70 fs/cifs/sess.c 	if (ses->capabilities & CAP_DFS) {
ses                74 fs/cifs/sess.c 	if (ses->capabilities & CAP_UNIX)
ses               103 fs/cifs/sess.c static void unicode_domain_string(char **pbcc_area, struct cifs_ses *ses,
ses               110 fs/cifs/sess.c 	if (ses->domainName == NULL) {
ses               117 fs/cifs/sess.c 		bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->domainName,
ses               126 fs/cifs/sess.c static void unicode_ssetup_strings(char **pbcc_area, struct cifs_ses *ses,
ses               141 fs/cifs/sess.c 	if (ses->user_name == NULL) {
ses               146 fs/cifs/sess.c 		bytes_ret = cifs_strtoUTF16((__le16 *) bcc_ptr, ses->user_name,
ses               152 fs/cifs/sess.c 	unicode_domain_string(&bcc_ptr, ses, nls_cp);
ses               158 fs/cifs/sess.c static void ascii_ssetup_strings(char **pbcc_area, struct cifs_ses *ses,
ses               167 fs/cifs/sess.c 	if (ses->user_name != NULL) {
ses               168 fs/cifs/sess.c 		len = strscpy(bcc_ptr, ses->user_name, CIFS_MAX_USERNAME_LEN);
ses               178 fs/cifs/sess.c 	if (ses->domainName != NULL) {
ses               179 fs/cifs/sess.c 		len = strscpy(bcc_ptr, ses->domainName, CIFS_MAX_DOMAINNAME_LEN);
ses               202 fs/cifs/sess.c decode_unicode_ssetup(char **pbcc_area, int bleft, struct cifs_ses *ses,
ses               210 fs/cifs/sess.c 	kfree(ses->serverOS);
ses               211 fs/cifs/sess.c 	ses->serverOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp);
ses               212 fs/cifs/sess.c 	cifs_dbg(FYI, "serverOS=%s\n", ses->serverOS);
ses               219 fs/cifs/sess.c 	kfree(ses->serverNOS);
ses               220 fs/cifs/sess.c 	ses->serverNOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp);
ses               221 fs/cifs/sess.c 	cifs_dbg(FYI, "serverNOS=%s\n", ses->serverNOS);
ses               228 fs/cifs/sess.c 	kfree(ses->serverDomain);
ses               229 fs/cifs/sess.c 	ses->serverDomain = cifs_strndup_from_utf16(data, bleft, true, nls_cp);
ses               230 fs/cifs/sess.c 	cifs_dbg(FYI, "serverDomain=%s\n", ses->serverDomain);
ses               236 fs/cifs/sess.c 				struct cifs_ses *ses,
ses               248 fs/cifs/sess.c 	kfree(ses->serverOS);
ses               250 fs/cifs/sess.c 	ses->serverOS = kmalloc(len + 1, GFP_KERNEL);
ses               251 fs/cifs/sess.c 	if (ses->serverOS) {
ses               252 fs/cifs/sess.c 		memcpy(ses->serverOS, bcc_ptr, len);
ses               253 fs/cifs/sess.c 		ses->serverOS[len] = 0;
ses               254 fs/cifs/sess.c 		if (strncmp(ses->serverOS, "OS/2", 4) == 0)
ses               265 fs/cifs/sess.c 	kfree(ses->serverNOS);
ses               267 fs/cifs/sess.c 	ses->serverNOS = kmalloc(len + 1, GFP_KERNEL);
ses               268 fs/cifs/sess.c 	if (ses->serverNOS) {
ses               269 fs/cifs/sess.c 		memcpy(ses->serverNOS, bcc_ptr, len);
ses               270 fs/cifs/sess.c 		ses->serverNOS[len] = 0;
ses               289 fs/cifs/sess.c 				    struct cifs_ses *ses)
ses               312 fs/cifs/sess.c 	memcpy(ses->ntlmssp->cryptkey, pblob->Challenge, CIFS_CRYPTO_KEY_SIZE);
ses               317 fs/cifs/sess.c 	ses->ntlmssp->server_flags = le32_to_cpu(pblob->NegotiateFlags);
ses               326 fs/cifs/sess.c 		ses->auth_key.response = kmemdup(bcc_ptr + tioffset, tilen,
ses               328 fs/cifs/sess.c 		if (!ses->auth_key.response) {
ses               332 fs/cifs/sess.c 		ses->auth_key.len = tilen;
ses               343 fs/cifs/sess.c 					 struct cifs_ses *ses)
ses               357 fs/cifs/sess.c 	if (ses->server->sign)
ses               359 fs/cifs/sess.c 	if (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess)
ses               374 fs/cifs/sess.c static int size_of_ntlmssp_blob(struct cifs_ses *ses)
ses               376 fs/cifs/sess.c 	int sz = sizeof(AUTHENTICATE_MESSAGE) + ses->auth_key.len
ses               379 fs/cifs/sess.c 	if (ses->domainName)
ses               380 fs/cifs/sess.c 		sz += 2 * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN);
ses               384 fs/cifs/sess.c 	if (ses->user_name)
ses               385 fs/cifs/sess.c 		sz += 2 * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN);
ses               394 fs/cifs/sess.c 				   struct cifs_ses *ses,
ses               402 fs/cifs/sess.c 	rc = setup_ntlmv2_rsp(ses, nls_cp);
ses               408 fs/cifs/sess.c 	*pbuffer = kmalloc(size_of_ntlmssp_blob(ses), GFP_KERNEL);
ses               425 fs/cifs/sess.c 	if (ses->server->sign)
ses               427 fs/cifs/sess.c 	if (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess)
ses               440 fs/cifs/sess.c 	if (ses->user_name != NULL) {
ses               441 fs/cifs/sess.c 		memcpy(tmp, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
ses               442 fs/cifs/sess.c 				ses->auth_key.len - CIFS_SESS_KEY_SIZE);
ses               443 fs/cifs/sess.c 		tmp += ses->auth_key.len - CIFS_SESS_KEY_SIZE;
ses               446 fs/cifs/sess.c 				cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE);
ses               448 fs/cifs/sess.c 				cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE);
ses               457 fs/cifs/sess.c 	if (ses->domainName == NULL) {
ses               464 fs/cifs/sess.c 		len = cifs_strtoUTF16((__le16 *)tmp, ses->domainName,
ses               473 fs/cifs/sess.c 	if (ses->user_name == NULL) {
ses               480 fs/cifs/sess.c 		len = cifs_strtoUTF16((__le16 *)tmp, ses->user_name,
ses               494 fs/cifs/sess.c 	if (((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) ||
ses               495 fs/cifs/sess.c 		(ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_EXTENDED_SEC))
ses               496 fs/cifs/sess.c 			&& !calc_seckey(ses)) {
ses               497 fs/cifs/sess.c 		memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE);
ses               566 fs/cifs/sess.c 	struct cifs_ses *ses;
ses               586 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses               589 fs/cifs/sess.c 	rc = small_smb_init_no_tc(SMB_COM_SESSION_SETUP_ANDX, wct, ses,
ses               632 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses               634 fs/cifs/sess.c 	mutex_lock(&ses->server->srv_mutex);
ses               635 fs/cifs/sess.c 	if (!ses->server->session_estab) {
ses               636 fs/cifs/sess.c 		if (ses->server->sign) {
ses               637 fs/cifs/sess.c 			ses->server->session_key.response =
ses               638 fs/cifs/sess.c 				kmemdup(ses->auth_key.response,
ses               639 fs/cifs/sess.c 				ses->auth_key.len, GFP_KERNEL);
ses               640 fs/cifs/sess.c 			if (!ses->server->session_key.response) {
ses               641 fs/cifs/sess.c 				mutex_unlock(&ses->server->srv_mutex);
ses               644 fs/cifs/sess.c 			ses->server->session_key.len =
ses               645 fs/cifs/sess.c 						ses->auth_key.len;
ses               647 fs/cifs/sess.c 		ses->server->sequence_number = 0x2;
ses               648 fs/cifs/sess.c 		ses->server->session_estab = true;
ses               650 fs/cifs/sess.c 	mutex_unlock(&ses->server->srv_mutex);
ses               654 fs/cifs/sess.c 	ses->status = CifsGood;
ses               655 fs/cifs/sess.c 	ses->need_reconnect = false;
ses               674 fs/cifs/sess.c 	rc = SendReceive2(sess_data->xid, sess_data->ses,
ses               699 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses               711 fs/cifs/sess.c 	(void)cifs_ssetup_hdr(ses, pSMB);
ses               715 fs/cifs/sess.c 	if (ses->user_name != NULL) {
ses               724 fs/cifs/sess.c 		rc = calc_lanman_hash(ses->password, ses->server->cryptkey,
ses               725 fs/cifs/sess.c 				      ses->server->sec_mode & SECMODE_PW_ENCRYPT ?
ses               745 fs/cifs/sess.c 	ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses               767 fs/cifs/sess.c 	ses->Suid = smb_buf->Uid;   /* UID left in wire format (le) */
ses               768 fs/cifs/sess.c 	cifs_dbg(FYI, "UID = %llu\n", ses->Suid);
ses               782 fs/cifs/sess.c 		decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
ses               785 fs/cifs/sess.c 		decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
ses               805 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses               817 fs/cifs/sess.c 	capabilities = cifs_ssetup_hdr(ses, pSMB);
ses               820 fs/cifs/sess.c 	if (ses->user_name != NULL) {
ses               827 fs/cifs/sess.c 		rc = setup_ntlm_response(ses, sess_data->nls_cp);
ses               835 fs/cifs/sess.c 		memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
ses               838 fs/cifs/sess.c 		memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
ses               846 fs/cifs/sess.c 	if (ses->capabilities & CAP_UNICODE) {
ses               852 fs/cifs/sess.c 		unicode_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses               854 fs/cifs/sess.c 		ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses               877 fs/cifs/sess.c 	ses->Suid = smb_buf->Uid;   /* UID left in wire format (le) */
ses               878 fs/cifs/sess.c 	cifs_dbg(FYI, "UID = %llu\n", ses->Suid);
ses               892 fs/cifs/sess.c 		decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
ses               895 fs/cifs/sess.c 		decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
ses               904 fs/cifs/sess.c 	kfree(ses->auth_key.response);
ses               905 fs/cifs/sess.c 	ses->auth_key.response = NULL;
ses               915 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses               927 fs/cifs/sess.c 	capabilities = cifs_ssetup_hdr(ses, pSMB);
ses               934 fs/cifs/sess.c 	if (ses->user_name != NULL) {
ses               936 fs/cifs/sess.c 		rc = setup_ntlmv2_rsp(ses, sess_data->nls_cp);
ses               942 fs/cifs/sess.c 		memcpy(bcc_ptr, ses->auth_key.response + CIFS_SESS_KEY_SIZE,
ses               943 fs/cifs/sess.c 				ses->auth_key.len - CIFS_SESS_KEY_SIZE);
ses               944 fs/cifs/sess.c 		bcc_ptr += ses->auth_key.len - CIFS_SESS_KEY_SIZE;
ses               950 fs/cifs/sess.c 			cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE);
ses               955 fs/cifs/sess.c 	if (ses->capabilities & CAP_UNICODE) {
ses               960 fs/cifs/sess.c 		unicode_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses               962 fs/cifs/sess.c 		ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses               985 fs/cifs/sess.c 	ses->Suid = smb_buf->Uid;   /* UID left in wire format (le) */
ses               986 fs/cifs/sess.c 	cifs_dbg(FYI, "UID = %llu\n", ses->Suid);
ses              1000 fs/cifs/sess.c 		decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1003 fs/cifs/sess.c 		decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1012 fs/cifs/sess.c 	kfree(ses->auth_key.response);
ses              1013 fs/cifs/sess.c 	ses->auth_key.response = NULL;
ses              1024 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses              1039 fs/cifs/sess.c 	capabilities = cifs_ssetup_hdr(ses, pSMB);
ses              1041 fs/cifs/sess.c 	spnego_key = cifs_get_spnego_key(ses);
ses              1061 fs/cifs/sess.c 	ses->auth_key.response = kmemdup(msg->data, msg->sesskey_len,
ses              1063 fs/cifs/sess.c 	if (!ses->auth_key.response) {
ses              1069 fs/cifs/sess.c 	ses->auth_key.len = msg->sesskey_len;
ses              1078 fs/cifs/sess.c 	if (ses->capabilities & CAP_UNICODE) {
ses              1086 fs/cifs/sess.c 		unicode_domain_string(&bcc_ptr, ses, sess_data->nls_cp);
ses              1089 fs/cifs/sess.c 		ascii_ssetup_strings(&bcc_ptr, ses, sess_data->nls_cp);
ses              1111 fs/cifs/sess.c 	ses->Suid = smb_buf->Uid;   /* UID left in wire format (le) */
ses              1112 fs/cifs/sess.c 	cifs_dbg(FYI, "UID = %llu\n", ses->Suid);
ses              1136 fs/cifs/sess.c 		decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1139 fs/cifs/sess.c 		decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1151 fs/cifs/sess.c 	kfree(ses->auth_key.response);
ses              1152 fs/cifs/sess.c 	ses->auth_key.response = NULL;
ses              1165 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses              1171 fs/cifs/sess.c 	capabilities = cifs_ssetup_hdr(ses, pSMB);
ses              1204 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses              1215 fs/cifs/sess.c 	ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL);
ses              1216 fs/cifs/sess.c 	if (!ses->ntlmssp) {
ses              1220 fs/cifs/sess.c 	ses->ntlmssp->sesskey_per_smbsess = false;
ses              1230 fs/cifs/sess.c 	build_ntlmssp_negotiate_blob(pSMB->req.SecurityBlob, ses);
ses              1261 fs/cifs/sess.c 	ses->Suid = smb_buf->Uid;   /* UID left in wire format (le) */
ses              1262 fs/cifs/sess.c 	cifs_dbg(FYI, "UID = %llu\n", ses->Suid);
ses              1275 fs/cifs/sess.c 	rc = decode_ntlmssp_challenge(bcc_ptr, blob_len, ses);
ses              1285 fs/cifs/sess.c 	kfree(ses->auth_key.response);
ses              1286 fs/cifs/sess.c 	ses->auth_key.response = NULL;
ses              1287 fs/cifs/sess.c 	kfree(ses->ntlmssp);
ses              1288 fs/cifs/sess.c 	ses->ntlmssp = NULL;
ses              1300 fs/cifs/sess.c 	struct cifs_ses *ses = sess_data->ses;
ses              1317 fs/cifs/sess.c 					&blob_len, ses, sess_data->nls_cp);
ses              1328 fs/cifs/sess.c 	smb_buf->Uid = ses->Suid;
ses              1349 fs/cifs/sess.c 	if (ses->Suid != smb_buf->Uid) {
ses              1350 fs/cifs/sess.c 		ses->Suid = smb_buf->Uid;
ses              1351 fs/cifs/sess.c 		cifs_dbg(FYI, "UID changed! new UID = %llu\n", ses->Suid);
ses              1376 fs/cifs/sess.c 		decode_unicode_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1379 fs/cifs/sess.c 		decode_ascii_ssetup(&bcc_ptr, bytes_remaining, ses,
ses              1392 fs/cifs/sess.c 	kfree(ses->auth_key.response);
ses              1393 fs/cifs/sess.c 	ses->auth_key.response = NULL;
ses              1394 fs/cifs/sess.c 	kfree(ses->ntlmssp);
ses              1395 fs/cifs/sess.c 	ses->ntlmssp = NULL;
ses              1401 fs/cifs/sess.c static int select_sec(struct cifs_ses *ses, struct sess_data *sess_data)
ses              1405 fs/cifs/sess.c 	type = cifs_select_sectype(ses->server, ses->sectype);
ses              1452 fs/cifs/sess.c int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
ses              1458 fs/cifs/sess.c 	if (ses == NULL) {
ses              1467 fs/cifs/sess.c 	rc = select_sec(ses, sess_data);
ses              1472 fs/cifs/sess.c 	sess_data->ses = ses;
ses               418 fs/cifs/smb1ops.c cifs_negotiate(const unsigned int xid, struct cifs_ses *ses)
ses               421 fs/cifs/smb1ops.c 	rc = CIFSSMBNegotiate(xid, ses);
ses               424 fs/cifs/smb1ops.c 		set_credits(ses->server, 1);
ses               425 fs/cifs/smb1ops.c 		rc = CIFSSMBNegotiate(xid, ses);
ses               436 fs/cifs/smb1ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               471 fs/cifs/smb1ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               701 fs/cifs/smb1ops.c 	if (!(oparms->tcon->ses->capabilities & CAP_NT_SMBS))
ses               886 fs/cifs/smb1ops.c 	if ((tcon->ses->capabilities & CAP_UNIX) &&
ses               894 fs/cifs/smb1ops.c 	if (rc && (tcon->ses->capabilities & CAP_NT_SMBS))
ses               925 fs/cifs/smb1ops.c 	rc = get_dfs_path(xid, tcon->ses, searchName, nls_codepage, &referral,
ses               960 fs/cifs/smb1ops.c 	if (cap_unix(tcon->ses)) {
ses              1107 fs/cifs/smb1ops.c 	if (tcon->ses->server->oplocks)
ses              1111 fs/cifs/smb1ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
ses              1131 fs/cifs/smb1ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
ses              1137 fs/cifs/smb1ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
ses              1140 fs/cifs/smb1ops.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
ses               135 fs/cifs/smb2file.c 	max_buf = tcon->ses->server->maxBuf;
ses               271 fs/cifs/smb2file.c 	max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf;
ses                62 fs/cifs/smb2inode.c 	struct cifs_ses *ses = tcon->ses;
ses               154 fs/cifs/smb2inode.c 		trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid,
ses               158 fs/cifs/smb2inode.c 		trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
ses               165 fs/cifs/smb2inode.c 		trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path);
ses               183 fs/cifs/smb2inode.c 		trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path);
ses               201 fs/cifs/smb2inode.c 		trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path);
ses               233 fs/cifs/smb2inode.c 		trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid,
ses               272 fs/cifs/smb2inode.c 		trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path);
ses               299 fs/cifs/smb2inode.c 		trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path);
ses               326 fs/cifs/smb2inode.c 		rc = compound_send_recv(xid, ses, flags, num_rqst - 2,
ses               330 fs/cifs/smb2inode.c 		rc = compound_send_recv(xid, ses, flags, num_rqst,
ses               361 fs/cifs/smb2inode.c 			trace_smb3_query_info_compound_err(xid,  ses->Suid,
ses               364 fs/cifs/smb2inode.c 			trace_smb3_query_info_compound_done(xid, ses->Suid,
ses               369 fs/cifs/smb2inode.c 			trace_smb3_delete_err(xid,  ses->Suid, tcon->tid, rc);
ses               371 fs/cifs/smb2inode.c 			trace_smb3_delete_done(xid, ses->Suid, tcon->tid);
ses               377 fs/cifs/smb2inode.c 			trace_smb3_mkdir_err(xid,  ses->Suid, tcon->tid, rc);
ses               379 fs/cifs/smb2inode.c 			trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid);
ses               385 fs/cifs/smb2inode.c 			trace_smb3_hardlink_err(xid,  ses->Suid, tcon->tid, rc);
ses               387 fs/cifs/smb2inode.c 			trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid);
ses               392 fs/cifs/smb2inode.c 			trace_smb3_rename_err(xid,  ses->Suid, tcon->tid, rc);
ses               394 fs/cifs/smb2inode.c 			trace_smb3_rename_done(xid, ses->Suid, tcon->tid);
ses               399 fs/cifs/smb2inode.c 			trace_smb3_rmdir_err(xid,  ses->Suid, tcon->tid, rc);
ses               401 fs/cifs/smb2inode.c 			trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid);
ses               406 fs/cifs/smb2inode.c 			trace_smb3_set_eof_err(xid,  ses->Suid, tcon->tid, rc);
ses               408 fs/cifs/smb2inode.c 			trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid);
ses               413 fs/cifs/smb2inode.c 			trace_smb3_set_info_compound_err(xid,  ses->Suid,
ses               416 fs/cifs/smb2inode.c 			trace_smb3_set_info_compound_done(xid, ses->Suid,
ses               148 fs/cifs/smb2misc.c 		struct cifs_ses *ses = NULL;
ses               154 fs/cifs/smb2misc.c 			ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
ses               155 fs/cifs/smb2misc.c 			if (ses->Suid == thdr->SessionId)
ses               158 fs/cifs/smb2misc.c 			ses = NULL;
ses               161 fs/cifs/smb2misc.c 		if (ses == NULL) {
ses               593 fs/cifs/smb2misc.c 	struct cifs_ses *ses;
ses               612 fs/cifs/smb2misc.c 			ses = list_entry(tmp1, struct cifs_ses, smb_ses_list);
ses               614 fs/cifs/smb2misc.c 			list_for_each(tmp2, &ses->tcon_list) {
ses               652 fs/cifs/smb2misc.c 	struct cifs_ses *ses;
ses               675 fs/cifs/smb2misc.c 		ses = list_entry(tmp, struct cifs_ses, smb_ses_list);
ses               677 fs/cifs/smb2misc.c 		list_for_each(tmp1, &ses->tcon_list) {
ses               816 fs/cifs/smb2misc.c smb311_update_preauth_hash(struct cifs_ses *ses, struct kvec *iov, int nvec)
ses               822 fs/cifs/smb2misc.c 	if (ses->server->tcpStatus == CifsGood) {
ses               824 fs/cifs/smb2misc.c 		if (ses->server->dialect != SMB311_PROT_ID)
ses               833 fs/cifs/smb2misc.c 	rc = smb311_crypto_shash_allocate(ses->server);
ses               837 fs/cifs/smb2misc.c 	d = ses->server->secmech.sdescsha512;
ses               844 fs/cifs/smb2misc.c 	rc = crypto_shash_update(&d->shash, ses->preauth_sha_hash,
ses               861 fs/cifs/smb2misc.c 	rc = crypto_shash_final(&d->shash, ses->preauth_sha_hash);
ses               308 fs/cifs/smb2ops.c smb2_negotiate(const unsigned int xid, struct cifs_ses *ses)
ses               312 fs/cifs/smb2ops.c 	ses->server->CurrentMid = 0;
ses               313 fs/cifs/smb2ops.c 	rc = SMB2_negotiate(xid, ses);
ses               323 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               348 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               373 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               399 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses               564 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses               584 fs/cifs/smb2ops.c 	spin_lock(&ses->iface_lock);
ses               585 fs/cifs/smb2ops.c 	kfree(ses->iface_list);
ses               586 fs/cifs/smb2ops.c 	ses->iface_list = iface_list;
ses               587 fs/cifs/smb2ops.c 	ses->iface_count = iface_count;
ses               588 fs/cifs/smb2ops.c 	ses->iface_last_update = jiffies;
ses               589 fs/cifs/smb2ops.c 	spin_unlock(&ses->iface_lock);
ses               632 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses               633 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = ses->server;
ses               707 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, ses, flags, 2, rqst,
ses              1078 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses              1112 fs/cifs/smb2ops.c 	if (ses->server->ops->query_all_EAs) {
ses              1114 fs/cifs/smb2ops.c 			rc = ses->server->ops->query_all_EAs(xid, tcon, path,
ses              1211 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, ses, flags, 3, rqst,
ses              1342 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server;
ses              1399 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses              1432 fs/cifs/smb2ops.c 	if (!ses || !(ses->server))
ses              1555 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, ses, flags, 3, rqst,
ses              2130 fs/cifs/smb2ops.c 	if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING)
ses              2158 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses              2159 fs/cifs/smb2ops.c 	struct TCP_Server_Info *server = ses->server;
ses              2222 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses              2283 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, ses, flags, 3, rqst,
ses              2411 fs/cifs/smb2ops.c smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
ses              2430 fs/cifs/smb2ops.c 	tcon = ses->tcon_ipc;
ses              2433 fs/cifs/smb2ops.c 		tcon = list_first_entry_or_null(&ses->tcon_list,
ses              2443 fs/cifs/smb2ops.c 			 ses);
ses              2700 fs/cifs/smb2ops.c 	rc = compound_send_recv(xid, tcon->ses, flags, 3, rqst,
ses              2955 fs/cifs/smb2ops.c 	struct cifs_ses *ses = tcon->ses;
ses              2970 fs/cifs/smb2ops.c 			      ses->Suid, offset, len);
ses              2978 fs/cifs/smb2ops.c 				tcon->tid, ses->Suid, offset, len, rc);
ses              3009 fs/cifs/smb2ops.c 			      ses->Suid, offset, len, rc);
ses              3012 fs/cifs/smb2ops.c 			      ses->Suid, offset, len);
ses              3068 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len);
ses              3073 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
ses              3095 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
ses              3098 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len);
ses              3115 fs/cifs/smb2ops.c 				tcon->tid, tcon->ses->Suid, off, len, rc);
ses              3135 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len, rc);
ses              3138 fs/cifs/smb2ops.c 				tcon->ses->Suid, off, len);
ses              3635 fs/cifs/smb2ops.c 	struct cifs_ses *ses;
ses              3639 fs/cifs/smb2ops.c 	list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
ses              3640 fs/cifs/smb2ops.c 		if (ses->Suid != ses_id)
ses              3642 fs/cifs/smb2ops.c 		ses_enc_key = enc ? ses->smb3encryptionkey :
ses              3643 fs/cifs/smb2ops.c 							ses->smb3decryptionkey;
ses              4434 fs/cifs/smb2ops.c 	if (tcon->ses->server->oplocks)
ses              4438 fs/cifs/smb2ops.c 	rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf);
ses              4458 fs/cifs/smb2ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
ses              4464 fs/cifs/smb2ops.c 		rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms,
ses              4467 fs/cifs/smb2ops.c 	tcon->ses->server->ops->close(xid, tcon, &fid);
ses                90 fs/cifs/smb2pdu.c 	if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
ses                94 fs/cifs/smb2pdu.c 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION))
ses               106 fs/cifs/smb2pdu.c 	if (tcon && tcon->ses && tcon->ses->server) {
ses               107 fs/cifs/smb2pdu.c 		struct TCP_Server_Info *server = tcon->ses->server;
ses               128 fs/cifs/smb2pdu.c 	if ((tcon->ses) && (tcon->ses->server) &&
ses               129 fs/cifs/smb2pdu.c 	    (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU))
ses               135 fs/cifs/smb2pdu.c 	if (tcon->ses)
ses               136 fs/cifs/smb2pdu.c 		shdr->SessionId = tcon->ses->Suid;
ses               151 fs/cifs/smb2pdu.c 	if (tcon->ses && tcon->ses->server && tcon->ses->server->sign &&
ses               177 fs/cifs/smb2pdu.c 			  tcon->ses->server->hostname);
ses               178 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc);
ses               183 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc);
ses               191 fs/cifs/smb2pdu.c 	extract_unc_hostname(tcon->ses->server->hostname, &tcp_host,
ses               211 fs/cifs/smb2pdu.c 		rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc);
ses               234 fs/cifs/smb2pdu.c 	return SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc);
ses               243 fs/cifs/smb2pdu.c 	struct cifs_ses *ses;
ses               272 fs/cifs/smb2pdu.c 	if ((!tcon->ses) || (tcon->ses->status == CifsExiting) ||
ses               273 fs/cifs/smb2pdu.c 	    (!tcon->ses->server))
ses               276 fs/cifs/smb2pdu.c 	ses = tcon->ses;
ses               277 fs/cifs/smb2pdu.c 	server = ses->server;
ses               330 fs/cifs/smb2pdu.c 	if (!tcon->ses->need_reconnect && !tcon->need_reconnect)
ses               339 fs/cifs/smb2pdu.c 	mutex_lock(&tcon->ses->session_mutex);
ses               348 fs/cifs/smb2pdu.c 		mutex_unlock(&tcon->ses->session_mutex);
ses               352 fs/cifs/smb2pdu.c 	rc = cifs_negotiate_protocol(0, tcon->ses);
ses               353 fs/cifs/smb2pdu.c 	if (!rc && tcon->ses->need_reconnect) {
ses               354 fs/cifs/smb2pdu.c 		rc = cifs_setup_session(0, tcon->ses, nls_codepage);
ses               357 fs/cifs/smb2pdu.c 			mutex_unlock(&tcon->ses->session_mutex);
ses               362 fs/cifs/smb2pdu.c 		mutex_unlock(&tcon->ses->session_mutex);
ses               371 fs/cifs/smb2pdu.c 	mutex_unlock(&tcon->ses->session_mutex);
ses               808 fs/cifs/smb2pdu.c SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
ses               817 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = ses->server;
ses               837 fs/cifs/smb2pdu.c 	memset(ses->preauth_sha_hash, 0, SMB2_PREAUTH_HASH_SIZE);
ses               839 fs/cifs/smb2pdu.c 	if (strcmp(ses->server->vals->version_string,
ses               855 fs/cifs/smb2pdu.c 		req->Dialects[0] = cpu_to_le16(ses->server->vals->protocol_id);
ses               861 fs/cifs/smb2pdu.c 	if (ses->sign)
ses               888 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses               961 fs/cifs/smb2pdu.c 	memcpy(server->preauth_sha_hash, ses->preauth_sha_hash,
ses               993 fs/cifs/smb2pdu.c 	rc = cifs_enable_signing(server, ses->sign);
ses              1023 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              1038 fs/cifs/smb2pdu.c 	if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
ses              1041 fs/cifs/smb2pdu.c 	if (tcon->ses->user_name == NULL) {
ses              1046 fs/cifs/smb2pdu.c 	if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
ses              1058 fs/cifs/smb2pdu.c 	if (tcon->ses->sign)
ses              1174 fs/cifs/smb2pdu.c 	struct cifs_ses *ses;
ses              1195 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = sess_data->ses;
ses              1197 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = ses->server;
ses              1269 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(sess_data->xid, sess_data->ses,
ses              1283 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = sess_data->ses;
ses              1285 fs/cifs/smb2pdu.c 	mutex_lock(&ses->server->srv_mutex);
ses              1286 fs/cifs/smb2pdu.c 	if (ses->server->ops->generate_signingkey) {
ses              1287 fs/cifs/smb2pdu.c 		rc = ses->server->ops->generate_signingkey(ses);
ses              1291 fs/cifs/smb2pdu.c 			mutex_unlock(&ses->server->srv_mutex);
ses              1295 fs/cifs/smb2pdu.c 	if (!ses->server->session_estab) {
ses              1296 fs/cifs/smb2pdu.c 		ses->server->sequence_number = 0x2;
ses              1297 fs/cifs/smb2pdu.c 		ses->server->session_estab = true;
ses              1299 fs/cifs/smb2pdu.c 	mutex_unlock(&ses->server->srv_mutex);
ses              1303 fs/cifs/smb2pdu.c 	ses->status = CifsGood;
ses              1304 fs/cifs/smb2pdu.c 	ses->need_reconnect = false;
ses              1314 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = sess_data->ses;
ses              1323 fs/cifs/smb2pdu.c 	spnego_key = cifs_get_spnego_key(ses);
ses              1343 fs/cifs/smb2pdu.c 	ses->auth_key.response = kmemdup(msg->data, msg->sesskey_len,
ses              1345 fs/cifs/smb2pdu.c 	if (!ses->auth_key.response) {
ses              1352 fs/cifs/smb2pdu.c 	ses->auth_key.len = msg->sesskey_len;
ses              1362 fs/cifs/smb2pdu.c 	ses->Suid = rsp->sync_hdr.SessionId;
ses              1364 fs/cifs/smb2pdu.c 	ses->session_flags = le16_to_cpu(rsp->SessionFlags);
ses              1392 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = sess_data->ses;
ses              1402 fs/cifs/smb2pdu.c 	ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL);
ses              1403 fs/cifs/smb2pdu.c 	if (!ses->ntlmssp) {
ses              1407 fs/cifs/smb2pdu.c 	ses->ntlmssp->sesskey_per_smbsess = true;
ses              1420 fs/cifs/smb2pdu.c 	build_ntlmssp_negotiate_blob(ntlmssp_blob, ses);
ses              1452 fs/cifs/smb2pdu.c 			le16_to_cpu(rsp->SecurityBufferLength), ses);
ses              1459 fs/cifs/smb2pdu.c 	ses->Suid = rsp->sync_hdr.SessionId;
ses              1460 fs/cifs/smb2pdu.c 	ses->session_flags = le16_to_cpu(rsp->SessionFlags);
ses              1471 fs/cifs/smb2pdu.c 	kfree(ses->ntlmssp);
ses              1472 fs/cifs/smb2pdu.c 	ses->ntlmssp = NULL;
ses              1481 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = sess_data->ses;
ses              1493 fs/cifs/smb2pdu.c 	req->sync_hdr.SessionId = ses->Suid;
ses              1495 fs/cifs/smb2pdu.c 	rc = build_ntlmssp_auth_blob(&ntlmssp_blob, &blob_length, ses,
ses              1517 fs/cifs/smb2pdu.c 	ses->Suid = rsp->sync_hdr.SessionId;
ses              1518 fs/cifs/smb2pdu.c 	ses->session_flags = le16_to_cpu(rsp->SessionFlags);
ses              1524 fs/cifs/smb2pdu.c 	kfree(ses->ntlmssp);
ses              1525 fs/cifs/smb2pdu.c 	ses->ntlmssp = NULL;
ses              1531 fs/cifs/smb2pdu.c SMB2_select_sec(struct cifs_ses *ses, struct SMB2_sess_data *sess_data)
ses              1535 fs/cifs/smb2pdu.c 	type = smb2_select_sectype(ses->server, ses->sectype);
ses              1559 fs/cifs/smb2pdu.c SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
ses              1563 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = ses->server;
ses              1577 fs/cifs/smb2pdu.c 	rc = SMB2_select_sec(ses, sess_data);
ses              1581 fs/cifs/smb2pdu.c 	sess_data->ses = ses;
ses              1584 fs/cifs/smb2pdu.c 	sess_data->previous_session = ses->Suid;
ses              1589 fs/cifs/smb2pdu.c 	memcpy(ses->preauth_sha_hash, ses->server->preauth_sha_hash,
ses              1595 fs/cifs/smb2pdu.c 	if ((ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST) && (ses->sign))
ses              1604 fs/cifs/smb2pdu.c SMB2_logoff(const unsigned int xid, struct cifs_ses *ses)
ses              1616 fs/cifs/smb2pdu.c 	cifs_dbg(FYI, "disconnect session %p\n", ses);
ses              1618 fs/cifs/smb2pdu.c 	if (ses && (ses->server))
ses              1619 fs/cifs/smb2pdu.c 		server = ses->server;
ses              1624 fs/cifs/smb2pdu.c 	if (ses->need_reconnect)
ses              1632 fs/cifs/smb2pdu.c 	req->sync_hdr.SessionId = ses->Suid;
ses              1634 fs/cifs/smb2pdu.c 	if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA)
ses              1648 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov);
ses              1675 fs/cifs/smb2pdu.c SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,
ses              1689 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = ses->server;
ses              1738 fs/cifs/smb2pdu.c 	    !(ses->session_flags &
ses              1740 fs/cifs/smb2pdu.c 	    ((ses->user_name != NULL) || (ses->sectype == Kerberos)))
ses              1750 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              1753 fs/cifs/smb2pdu.c 	trace_smb3_tcon(xid, tcon->tid, ses->Suid, tree, rc);
ses              1818 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              1827 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server))
ses              1830 fs/cifs/smb2pdu.c 	if ((tcon->need_reconnect) || (tcon->ses->need_reconnect))
ses              1850 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov);
ses              2270 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              2292 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server)) {
ses              2381 fs/cifs/smb2pdu.c 	trace_smb3_posix_mkdir_enter(xid, tcon->tid, ses->Suid, CREATE_NOT_FILE,
ses              2384 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              2387 fs/cifs/smb2pdu.c 		trace_smb3_posix_mkdir_err(xid, tcon->tid, ses->Suid,
ses              2395 fs/cifs/smb2pdu.c 				    ses->Suid, CREATE_NOT_FILE,
ses              2416 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              2597 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              2605 fs/cifs/smb2pdu.c 	if (ses && (ses->server))
ses              2606 fs/cifs/smb2pdu.c 		server = ses->server;
ses              2622 fs/cifs/smb2pdu.c 	trace_smb3_open_enter(xid, tcon->tid, tcon->ses->Suid,
ses              2625 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags,
ses              2637 fs/cifs/smb2pdu.c 		trace_smb3_open_err(xid, tcon->tid, ses->Suid,
ses              2647 fs/cifs/smb2pdu.c 				     ses->Suid, oparms->create_options,
ses              2789 fs/cifs/smb2pdu.c 	struct cifs_ses *ses;
ses              2807 fs/cifs/smb2pdu.c 		ses = tcon->ses;
ses              2811 fs/cifs/smb2pdu.c 	if (!ses)
ses              2813 fs/cifs/smb2pdu.c 	server = ses->server;
ses              2830 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags,
ses              2836 fs/cifs/smb2pdu.c 				ses->Suid, 0, opcode, rc);
ses              2951 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              2959 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server))
ses              2970 fs/cifs/smb2pdu.c 	trace_smb3_close_enter(xid, persistent_fid, tcon->tid, ses->Suid);
ses              2975 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              2980 fs/cifs/smb2pdu.c 		trace_smb3_close_err(xid, persistent_fid, tcon->tid, ses->Suid,
ses              2985 fs/cifs/smb2pdu.c 				      ses->Suid);
ses              3128 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              3135 fs/cifs/smb2pdu.c 	if (!ses)
ses              3137 fs/cifs/smb2pdu.c 	server = ses->server;
ses              3156 fs/cifs/smb2pdu.c 				    ses->Suid, info_class, (__u32)info_type);
ses              3158 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              3164 fs/cifs/smb2pdu.c 				ses->Suid, info_class, (__u32)info_type, rc);
ses              3169 fs/cifs/smb2pdu.c 				ses->Suid, info_class, (__u32)info_type);
ses              3276 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              3285 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server))
ses              3301 fs/cifs/smb2pdu.c 	trace_smb3_notify_enter(xid, persistent_fid, tcon->tid, ses->Suid,
ses              3303 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              3307 fs/cifs/smb2pdu.c 		trace_smb3_notify_err(xid, persistent_fid, tcon->tid, ses->Suid,
ses              3311 fs/cifs/smb2pdu.c 				ses->Suid, (u8)watch_tree, completion_filter);
ses              3350 fs/cifs/smb2pdu.c 	struct cifs_ses *ses;
ses              3365 fs/cifs/smb2pdu.c 	list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
ses              3366 fs/cifs/smb2pdu.c 		list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
ses              3377 fs/cifs/smb2pdu.c 		if (ses->tcon_ipc && ses->tcon_ipc->need_reconnect) {
ses              3378 fs/cifs/smb2pdu.c 			list_add_tail(&ses->tcon_ipc->rlist, &tmp_list);
ses              3380 fs/cifs/smb2pdu.c 			ses->ses_count++;
ses              3400 fs/cifs/smb2pdu.c 			cifs_put_smb_ses(tcon->ses);
ses              3484 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              3493 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server))
ses              3508 fs/cifs/smb2pdu.c 	trace_smb3_flush_enter(xid, persistent_fid, tcon->tid, ses->Suid);
ses              3509 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              3513 fs/cifs/smb2pdu.c 		trace_smb3_flush_err(xid, persistent_fid, tcon->tid, ses->Suid,
ses              3517 fs/cifs/smb2pdu.c 				      ses->Suid);
ses              3544 fs/cifs/smb2pdu.c 	server = io_parms->tcon->ses->server;
ses              3562 fs/cifs/smb2pdu.c 			io_parms->tcon->tid, io_parms->tcon->ses->Suid,
ses              3574 fs/cifs/smb2pdu.c 			io_parms->tcon->ses->server->dialect == SMB30_PROT_ID;
ses              3631 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              3696 fs/cifs/smb2pdu.c 				    tcon->tid, tcon->ses->Suid, rdata->offset,
ses              3701 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid,
ses              3732 fs/cifs/smb2pdu.c 	server = io_parms.tcon->ses->server;
ses              3761 fs/cifs/smb2pdu.c 	rc = cifs_call_async(io_parms.tcon->ses->server, &rqst,
ses              3770 fs/cifs/smb2pdu.c 				    io_parms.tcon->ses->Suid,
ses              3791 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = io_parms->tcon->ses;
ses              3808 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              3816 fs/cifs/smb2pdu.c 					    io_parms->tcon->tid, ses->Suid,
ses              3821 fs/cifs/smb2pdu.c 				    io_parms->tcon->tid, ses->Suid,
ses              3828 fs/cifs/smb2pdu.c 				    io_parms->tcon->tid, ses->Suid,
ses              3864 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              3921 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid, wdata->offset,
ses              3929 fs/cifs/smb2pdu.c 				      tcon->tid, tcon->ses->Suid,
ses              3946 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = tcon->ses->server;
ses              3972 fs/cifs/smb2pdu.c 		tcon->tid, tcon->ses->Suid, wdata->offset, wdata->bytes);
ses              4061 fs/cifs/smb2pdu.c 				     tcon->tid, tcon->ses->Suid, wdata->offset,
ses              4101 fs/cifs/smb2pdu.c 	if (io_parms->tcon->ses->server == NULL)
ses              4121 fs/cifs/smb2pdu.c 		io_parms->tcon->tid, io_parms->tcon->ses->Suid,
ses              4132 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, io_parms->tcon->ses, &rqst,
ses              4139 fs/cifs/smb2pdu.c 				     io_parms->tcon->ses->Suid,
ses              4147 fs/cifs/smb2pdu.c 				     io_parms->tcon->ses->Suid,
ses              4219 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4227 fs/cifs/smb2pdu.c 	if (ses && (ses->server))
ses              4228 fs/cifs/smb2pdu.c 		server = ses->server;
ses              4287 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, output_size);
ses              4289 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              4297 fs/cifs/smb2pdu.c 				tcon->tid, tcon->ses->Suid, index, 0);
ses              4302 fs/cifs/smb2pdu.c 				tcon->ses->Suid, index, 0, rc);
ses              4313 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, 0, rc);
ses              4344 fs/cifs/smb2pdu.c 			tcon->ses->Suid, index, srch_inf->entries_in_buffer);
ses              4413 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4416 fs/cifs/smb2pdu.c 	if (!ses || !(ses->server))
ses              4442 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags,
ses              4450 fs/cifs/smb2pdu.c 				ses->Suid, info_class, (__u32)info_type, rc);
ses              4504 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4534 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov);
ses              4586 fs/cifs/smb2pdu.c 	if ((tcon->ses == NULL) || (tcon->ses->server == NULL))
ses              4619 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4636 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              4667 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4684 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              4715 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4748 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags, &rsp_iov);
ses              4830 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, tcon->ses, &rqst, &resp_buf_type, flags,
ses              4837 fs/cifs/smb2pdu.c 				    tcon->ses->Suid, rc);
ses              4867 fs/cifs/smb2pdu.c 	struct cifs_ses *ses = tcon->ses;
ses              4901 fs/cifs/smb2pdu.c 	rc = cifs_send_recv(xid, ses, &rqst, &resp_buf_type, flags, &rsp_iov);
ses              4909 fs/cifs/smb2pdu.c 			ses->Suid, *please_key_low, *please_key_high, rc);
ses              4913 fs/cifs/smb2pdu.c 			ses->Suid, *please_key_low, *please_key_high);
ses                48 fs/cifs/smb2proto.h extern struct mid_q_entry *smb2_setup_request(struct cifs_ses *ses,
ses               128 fs/cifs/smb2proto.h extern int SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses);
ses               129 fs/cifs/smb2proto.h extern int SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses,
ses               131 fs/cifs/smb2proto.h extern int SMB2_logoff(const unsigned int xid, struct cifs_ses *ses);
ses               132 fs/cifs/smb2proto.h extern int SMB2_tcon(const unsigned int xid, struct cifs_ses *ses,
ses               258 fs/cifs/smb2proto.h extern int smb311_update_preauth_hash(struct cifs_ses *ses,
ses               104 fs/cifs/smb2transport.c 	struct cifs_ses *ses;
ses               106 fs/cifs/smb2transport.c 	list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
ses               107 fs/cifs/smb2transport.c 		if (ses->Suid != ses_id)
ses               109 fs/cifs/smb2transport.c 		return ses;
ses               118 fs/cifs/smb2transport.c 	struct cifs_ses *ses;
ses               121 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses_unlocked(server, ses_id);
ses               124 fs/cifs/smb2transport.c 	return ses;
ses               128 fs/cifs/smb2transport.c smb2_find_smb_sess_tcon_unlocked(struct cifs_ses *ses, __u32  tid)
ses               132 fs/cifs/smb2transport.c 	list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
ses               150 fs/cifs/smb2transport.c 	struct cifs_ses *ses;
ses               154 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses_unlocked(server, ses_id);
ses               155 fs/cifs/smb2transport.c 	if (!ses) {
ses               159 fs/cifs/smb2transport.c 	tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid);
ses               173 fs/cifs/smb2transport.c 	struct cifs_ses *ses;
ses               177 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses(server, shdr->SessionId);
ses               178 fs/cifs/smb2transport.c 	if (!ses) {
ses               193 fs/cifs/smb2transport.c 				 ses->auth_key.response, SMB2_NTLMV2_SESSKEY_SIZE);
ses               233 fs/cifs/smb2transport.c static int generate_key(struct cifs_ses *ses, struct kvec label,
ses               242 fs/cifs/smb2transport.c 	struct TCP_Server_Info *server = ses->server;
ses               254 fs/cifs/smb2transport.c 		ses->auth_key.response, SMB2_NTLMV2_SESSKEY_SIZE);
ses               326 fs/cifs/smb2transport.c generate_smb3signingkey(struct cifs_ses *ses,
ses               331 fs/cifs/smb2transport.c 	rc = generate_key(ses, ptriplet->signing.label,
ses               332 fs/cifs/smb2transport.c 			  ptriplet->signing.context, ses->smb3signingkey,
ses               337 fs/cifs/smb2transport.c 	rc = generate_key(ses, ptriplet->encryption.label,
ses               338 fs/cifs/smb2transport.c 			  ptriplet->encryption.context, ses->smb3encryptionkey,
ses               343 fs/cifs/smb2transport.c 	rc = generate_key(ses, ptriplet->decryption.label,
ses               345 fs/cifs/smb2transport.c 			  ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE);
ses               356 fs/cifs/smb2transport.c 	cifs_dbg(VFS, "Session Id    %*ph\n", (int)sizeof(ses->Suid),
ses               357 fs/cifs/smb2transport.c 			&ses->Suid);
ses               359 fs/cifs/smb2transport.c 		 SMB2_NTLMV2_SESSKEY_SIZE, ses->auth_key.response);
ses               361 fs/cifs/smb2transport.c 		 SMB3_SIGN_KEY_SIZE, ses->smb3signingkey);
ses               363 fs/cifs/smb2transport.c 		 SMB3_SIGN_KEY_SIZE, ses->smb3encryptionkey);
ses               365 fs/cifs/smb2transport.c 		 SMB3_SIGN_KEY_SIZE, ses->smb3decryptionkey);
ses               371 fs/cifs/smb2transport.c generate_smb30signingkey(struct cifs_ses *ses)
ses               395 fs/cifs/smb2transport.c 	return generate_smb3signingkey(ses, &triplet);
ses               399 fs/cifs/smb2transport.c generate_smb311signingkey(struct cifs_ses *ses)
ses               408 fs/cifs/smb2transport.c 	d->context.iov_base = ses->preauth_sha_hash;
ses               414 fs/cifs/smb2transport.c 	d->context.iov_base = ses->preauth_sha_hash;
ses               420 fs/cifs/smb2transport.c 	d->context.iov_base = ses->preauth_sha_hash;
ses               423 fs/cifs/smb2transport.c 	return generate_smb3signingkey(ses, &triplet);
ses               434 fs/cifs/smb2transport.c 	struct cifs_ses *ses;
ses               438 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses(server, shdr->SessionId);
ses               439 fs/cifs/smb2transport.c 	if (!ses) {
ses               448 fs/cifs/smb2transport.c 				 ses->smb3signingkey, SMB2_CMACAES_SIZE);
ses               615 fs/cifs/smb2transport.c smb2_get_mid_entry(struct cifs_ses *ses, struct smb2_sync_hdr *shdr,
ses               618 fs/cifs/smb2transport.c 	if (ses->server->tcpStatus == CifsExiting)
ses               621 fs/cifs/smb2transport.c 	if (ses->server->tcpStatus == CifsNeedReconnect) {
ses               626 fs/cifs/smb2transport.c 	if (ses->server->tcpStatus == CifsNeedNegotiate &&
ses               630 fs/cifs/smb2transport.c 	if (ses->status == CifsNew) {
ses               637 fs/cifs/smb2transport.c 	if (ses->status == CifsExiting) {
ses               643 fs/cifs/smb2transport.c 	*mid = smb2_mid_entry_alloc(shdr, ses->server);
ses               647 fs/cifs/smb2transport.c 	list_add_tail(&(*mid)->qhead, &ses->server->pending_mid_q);
ses               680 fs/cifs/smb2transport.c smb2_setup_request(struct cifs_ses *ses, struct smb_rqst *rqst)
ses               687 fs/cifs/smb2transport.c 	smb2_seq_num_into_buf(ses->server, shdr);
ses               689 fs/cifs/smb2transport.c 	rc = smb2_get_mid_entry(ses, shdr, &mid);
ses               691 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(ses->server, shdr);
ses               695 fs/cifs/smb2transport.c 	rc = smb2_sign_rqst(rqst, ses->server);
ses               697 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(ses->server, shdr);
ses               686 fs/cifs/transport.c static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf,
ses               689 fs/cifs/transport.c 	if (ses->server->tcpStatus == CifsExiting) {
ses               693 fs/cifs/transport.c 	if (ses->server->tcpStatus == CifsNeedReconnect) {
ses               698 fs/cifs/transport.c 	if (ses->status == CifsNew) {
ses               705 fs/cifs/transport.c 	if (ses->status == CifsExiting) {
ses               712 fs/cifs/transport.c 	*ppmidQ = AllocMidQEntry(in_buf, ses->server);
ses               716 fs/cifs/transport.c 	list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q);
ses               854 fs/cifs/transport.c SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
ses               865 fs/cifs/transport.c 	rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags, &rsp_iov);
ses               948 fs/cifs/transport.c cifs_setup_request(struct cifs_ses *ses, struct smb_rqst *rqst)
ses               958 fs/cifs/transport.c 	rc = allocate_mid(ses, hdr, &mid);
ses               961 fs/cifs/transport.c 	rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number);
ses               996 fs/cifs/transport.c compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
ses              1015 fs/cifs/transport.c 	if ((ses == NULL) || (ses->server == NULL)) {
ses              1020 fs/cifs/transport.c 	server = ses->server;
ses              1065 fs/cifs/transport.c 		midQ[i] = server->ops->setup_request(ses, &rqst[i]);
ses              1125 fs/cifs/transport.c 	if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP))
ses              1126 fs/cifs/transport.c 		smb311_update_preauth_hash(ses, rqst[0].rq_iov,
ses              1190 fs/cifs/transport.c 	if ((ses->status == CifsNew) || (optype & CIFS_NEG_OP)) {
ses              1195 fs/cifs/transport.c 		smb311_update_preauth_hash(ses, &iov, 1);
ses              1214 fs/cifs/transport.c cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
ses              1218 fs/cifs/transport.c 	return compound_send_recv(xid, ses, flags, 1, rqst, resp_buf_type,
ses              1223 fs/cifs/transport.c SendReceive2(const unsigned int xid, struct cifs_ses *ses,
ses              1254 fs/cifs/transport.c 	rc = cifs_send_recv(xid, ses, &rqst, resp_buf_type, flags, resp_iov);
ses              1261 fs/cifs/transport.c SendReceive(const unsigned int xid, struct cifs_ses *ses,
ses              1273 fs/cifs/transport.c 	if (ses == NULL) {
ses              1277 fs/cifs/transport.c 	server = ses->server;
ses              1306 fs/cifs/transport.c 	rc = allocate_mid(ses, in_buf, &midQ);
ses              1308 fs/cifs/transport.c 		mutex_unlock(&ses->server->srv_mutex);
ses              1381 fs/cifs/transport.c 	struct cifs_ses *ses = tcon->ses;
ses              1391 fs/cifs/transport.c 	pSMB->hdr.Mid = get_next_mid(ses->server);
ses              1393 fs/cifs/transport.c 	return SendReceive(xid, ses, in_buf, out_buf,
ses              1405 fs/cifs/transport.c 	struct cifs_ses *ses;
ses              1412 fs/cifs/transport.c 	if (tcon == NULL || tcon->ses == NULL) {
ses              1416 fs/cifs/transport.c 	ses = tcon->ses;
ses              1417 fs/cifs/transport.c 	server = ses->server;
ses              1447 fs/cifs/transport.c 	rc = allocate_mid(ses, in_buf, &midQ);
ses                92 fs/cifs/xattr.c 		if (pTcon->ses->server->ops->set_EA)
ses                93 fs/cifs/xattr.c 			rc = pTcon->ses->server->ops->set_EA(xid, pTcon,
ses               109 fs/cifs/xattr.c 			    pTcon->ses->server->ops->set_acl)
ses               110 fs/cifs/xattr.c 				rc = pTcon->ses->server->ops->set_acl(pacl,
ses               242 fs/cifs/xattr.c 		if (pTcon->ses->server->ops->query_all_EAs)
ses               243 fs/cifs/xattr.c 			rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon,
ses               251 fs/cifs/xattr.c 		if (pTcon->ses->server->ops->get_acl == NULL)
ses               254 fs/cifs/xattr.c 		pacl = pTcon->ses->server->ops->get_acl(cifs_sb,
ses               340 fs/cifs/xattr.c 	if (pTcon->ses->server->ops->query_all_EAs)
ses               341 fs/cifs/xattr.c 		rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon,
ses              3740 fs/f2fs/segment.c 	struct sit_entry_set *ses =
ses              3743 fs/f2fs/segment.c 	ses->entry_cnt = 0;
ses              3744 fs/f2fs/segment.c 	INIT_LIST_HEAD(&ses->set_list);
ses              3745 fs/f2fs/segment.c 	return ses;
ses              3748 fs/f2fs/segment.c static void release_sit_entry_set(struct sit_entry_set *ses)
ses              3750 fs/f2fs/segment.c 	list_del(&ses->set_list);
ses              3751 fs/f2fs/segment.c 	kmem_cache_free(sit_entry_set_slab, ses);
ses              3754 fs/f2fs/segment.c static void adjust_sit_entry_set(struct sit_entry_set *ses,
ses              3757 fs/f2fs/segment.c 	struct sit_entry_set *next = ses;
ses              3759 fs/f2fs/segment.c 	if (list_is_last(&ses->set_list, head))
ses              3763 fs/f2fs/segment.c 		if (ses->entry_cnt <= next->entry_cnt)
ses              3766 fs/f2fs/segment.c 	list_move_tail(&ses->set_list, &next->set_list);
ses              3771 fs/f2fs/segment.c 	struct sit_entry_set *ses;
ses              3774 fs/f2fs/segment.c 	list_for_each_entry(ses, head, set_list) {
ses              3775 fs/f2fs/segment.c 		if (ses->start_segno == start_segno) {
ses              3776 fs/f2fs/segment.c 			ses->entry_cnt++;
ses              3777 fs/f2fs/segment.c 			adjust_sit_entry_set(ses, head);
ses              3782 fs/f2fs/segment.c 	ses = grab_sit_entry_set();
ses              3784 fs/f2fs/segment.c 	ses->start_segno = start_segno;
ses              3785 fs/f2fs/segment.c 	ses->entry_cnt++;
ses              3786 fs/f2fs/segment.c 	list_add(&ses->set_list, head);
ses              3831 fs/f2fs/segment.c 	struct sit_entry_set *ses, *tmp;
ses              3861 fs/f2fs/segment.c 	list_for_each_entry_safe(ses, tmp, head, set_list) {
ses              3864 fs/f2fs/segment.c 		unsigned int start_segno = ses->start_segno;
ses              3870 fs/f2fs/segment.c 			!__has_cursum_space(journal, ses->entry_cnt, SIT_JOURNAL))
ses              3917 fs/f2fs/segment.c 			ses->entry_cnt--;
ses              3925 fs/f2fs/segment.c 		f2fs_bug_on(sbi, ses->entry_cnt);
ses              3926 fs/f2fs/segment.c 		release_sit_entry_set(ses);
ses               532 fs/nfs/nfs4session.c int nfs4_setup_session_slot_tables(struct nfs4_session *ses)
ses               539 fs/nfs/nfs4session.c 	tbl = &ses->fc_slot_table;
ses               540 fs/nfs/nfs4session.c 	tbl->session = ses;
ses               541 fs/nfs/nfs4session.c 	status = nfs4_realloc_slot_table(tbl, ses->fc_attrs.max_reqs, 1);
ses               542 fs/nfs/nfs4session.c 	if (status || !(ses->flags & SESSION4_BACK_CHAN)) /* -ENOMEM */
ses               545 fs/nfs/nfs4session.c 	tbl = &ses->bc_slot_table;
ses               546 fs/nfs/nfs4session.c 	tbl->session = ses;
ses               547 fs/nfs/nfs4session.c 	status = nfs4_realloc_slot_table(tbl, ses->bc_attrs.max_reqs, 0);
ses               551 fs/nfs/nfs4session.c 		nfs4_release_session_slot_tables(ses);
ses               120 fs/nfs/nfs4session.h extern int nfs4_setup_session_slot_tables(struct nfs4_session *ses);
ses               264 fs/nfs/nfs4state.c 	struct nfs4_session *ses = clp->cl_session;
ses               271 fs/nfs/nfs4state.c 	if (ses != NULL) {
ses               272 fs/nfs/nfs4state.c 		nfs4_end_drain_slot_table(&ses->bc_slot_table);
ses               273 fs/nfs/nfs4state.c 		nfs4_end_drain_slot_table(&ses->fc_slot_table);
ses               292 fs/nfs/nfs4state.c 	struct nfs4_session *ses = clp->cl_session;
ses               299 fs/nfs/nfs4state.c 	ret = nfs4_drain_slot_tbl(&ses->bc_slot_table);
ses               303 fs/nfs/nfs4state.c 	return nfs4_drain_slot_tbl(&ses->fc_slot_table);
ses               829 fs/nfsd/nfs4callback.c static const struct cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, struct nfsd4_session *ses)
ses               843 fs/nfsd/nfs4callback.c 		kcred->uid = ses->se_cb_sec.uid;
ses               844 fs/nfsd/nfs4callback.c 		kcred->gid = ses->se_cb_sec.gid;
ses               849 fs/nfsd/nfs4callback.c static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn, struct nfsd4_session *ses)
ses               884 fs/nfsd/nfs4callback.c 		clp->cl_cb_session = ses;
ses               889 fs/nfsd/nfs4callback.c 		args.authflavor = ses->se_cb_sec.flavor;
ses               898 fs/nfsd/nfs4callback.c 	cred = get_backchannel_cred(clp, client, ses);
ses              1194 fs/nfsd/nfs4callback.c 	struct nfsd4_session *ses = NULL;
ses              1226 fs/nfsd/nfs4callback.c 		ses = c->cn_session;
ses              1230 fs/nfsd/nfs4callback.c 	err = setup_callback_client(clp, &conn, ses);
ses               124 fs/nfsd/nfs4state.c static bool is_session_dead(struct nfsd4_session *ses)
ses               126 fs/nfsd/nfs4state.c 	return ses->se_flags & NFS4_SESSION_DEAD;
ses               129 fs/nfsd/nfs4state.c static __be32 mark_session_dead_locked(struct nfsd4_session *ses, int ref_held_by_me)
ses               131 fs/nfsd/nfs4state.c 	if (atomic_read(&ses->se_ref) > ref_held_by_me)
ses               133 fs/nfsd/nfs4state.c 	ses->se_flags |= NFS4_SESSION_DEAD;
ses               203 fs/nfsd/nfs4state.c static __be32 nfsd4_get_session_locked(struct nfsd4_session *ses)
ses               207 fs/nfsd/nfs4state.c 	if (is_session_dead(ses))
ses               209 fs/nfsd/nfs4state.c 	status = get_client_locked(ses->se_client);
ses               212 fs/nfsd/nfs4state.c 	atomic_inc(&ses->se_ref);
ses               216 fs/nfsd/nfs4state.c static void nfsd4_put_session_locked(struct nfsd4_session *ses)
ses               218 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses               223 fs/nfsd/nfs4state.c 	if (atomic_dec_and_test(&ses->se_ref) && is_session_dead(ses))
ses               224 fs/nfsd/nfs4state.c 		free_session(ses);
ses               228 fs/nfsd/nfs4state.c static void nfsd4_put_session(struct nfsd4_session *ses)
ses               230 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses               234 fs/nfsd/nfs4state.c 	nfsd4_put_session_locked(ses);
ses              1517 fs/nfsd/nfs4state.c gen_sessionid(struct nfsd4_session *ses)
ses              1519 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses              1522 fs/nfsd/nfs4state.c 	sid = (struct nfsd4_sessionid *)ses->se_sessionid.data;
ses              1543 fs/nfsd/nfs4state.c free_session_slots(struct nfsd4_session *ses)
ses              1547 fs/nfsd/nfs4state.c 	for (i = 0; i < ses->se_fchannel.maxreqs; i++) {
ses              1548 fs/nfsd/nfs4state.c 		free_svc_cred(&ses->se_slots[i]->sl_cred);
ses              1549 fs/nfsd/nfs4state.c 		kfree(ses->se_slots[i]);
ses              1688 fs/nfsd/nfs4state.c static void __nfsd4_hash_conn(struct nfsd4_conn *conn, struct nfsd4_session *ses)
ses              1690 fs/nfsd/nfs4state.c 	conn->cn_session = ses;
ses              1691 fs/nfsd/nfs4state.c 	list_add(&conn->cn_persession, &ses->se_conns);
ses              1694 fs/nfsd/nfs4state.c static void nfsd4_hash_conn(struct nfsd4_conn *conn, struct nfsd4_session *ses)
ses              1696 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses              1699 fs/nfsd/nfs4state.c 	__nfsd4_hash_conn(conn, ses);
ses              1709 fs/nfsd/nfs4state.c static void nfsd4_init_conn(struct svc_rqst *rqstp, struct nfsd4_conn *conn, struct nfsd4_session *ses)
ses              1713 fs/nfsd/nfs4state.c 	nfsd4_hash_conn(conn, ses);
ses              1719 fs/nfsd/nfs4state.c 	nfsd4_probe_callback_sync(ses->se_client);
ses              1751 fs/nfsd/nfs4state.c static void __free_session(struct nfsd4_session *ses)
ses              1753 fs/nfsd/nfs4state.c 	free_session_slots(ses);
ses              1754 fs/nfsd/nfs4state.c 	kfree(ses);
ses              1757 fs/nfsd/nfs4state.c static void free_session(struct nfsd4_session *ses)
ses              1759 fs/nfsd/nfs4state.c 	nfsd4_del_conns(ses);
ses              1760 fs/nfsd/nfs4state.c 	nfsd4_put_drc_mem(&ses->se_fchannel);
ses              1761 fs/nfsd/nfs4state.c 	__free_session(ses);
ses              1843 fs/nfsd/nfs4state.c unhash_session(struct nfsd4_session *ses)
ses              1845 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses              1850 fs/nfsd/nfs4state.c 	list_del(&ses->se_hash);
ses              1851 fs/nfsd/nfs4state.c 	spin_lock(&ses->se_client->cl_lock);
ses              1852 fs/nfsd/nfs4state.c 	list_del(&ses->se_perclnt);
ses              1853 fs/nfsd/nfs4state.c 	spin_unlock(&ses->se_client->cl_lock);
ses              1942 fs/nfsd/nfs4state.c 		struct nfsd4_session *ses;
ses              1943 fs/nfsd/nfs4state.c 		ses = list_entry(clp->cl_sessions.next, struct nfsd4_session,
ses              1945 fs/nfsd/nfs4state.c 		list_del(&ses->se_perclnt);
ses              1946 fs/nfsd/nfs4state.c 		WARN_ON_ONCE(atomic_read(&ses->se_ref));
ses              1947 fs/nfsd/nfs4state.c 		free_session(ses);
ses              1963 fs/nfsd/nfs4state.c 	struct nfsd4_session *ses;
ses              1979 fs/nfsd/nfs4state.c 	list_for_each_entry(ses, &clp->cl_sessions, se_perclnt)
ses              1980 fs/nfsd/nfs4state.c 		list_del_init(&ses->se_hash);
ses              3452 fs/nfsd/nfs4state.c 	struct nfsd4_session *ses;
ses              3466 fs/nfsd/nfs4state.c 	ses = find_in_sessionid_hashtbl(sessionid, net, &status);
ses              3467 fs/nfsd/nfs4state.c 	if (!ses)
ses              3470 fs/nfsd/nfs4state.c 	if (!nfsd4_mach_creds_match(ses->se_client, r))
ses              3472 fs/nfsd/nfs4state.c 	status = mark_session_dead_locked(ses, 1 + ref_held_by_me);
ses              3475 fs/nfsd/nfs4state.c 	unhash_session(ses);
ses              3478 fs/nfsd/nfs4state.c 	nfsd4_probe_callback_sync(ses->se_client);
ses              3483 fs/nfsd/nfs4state.c 	nfsd4_put_session_locked(ses);
ses              3502 fs/nfsd/nfs4state.c static __be32 nfsd4_sequence_check_conn(struct nfsd4_conn *new, struct nfsd4_session *ses)
ses              3504 fs/nfsd/nfs4state.c 	struct nfs4_client *clp = ses->se_client;
ses              3510 fs/nfsd/nfs4state.c 	c = __nfsd4_find_conn(new->cn_xprt, ses);
ses              3516 fs/nfsd/nfs4state.c 	__nfsd4_hash_conn(new, ses);
ses               693 include/net/xfrm.h 	const unsigned int ses = task_valid ? audit_get_sessionid(current) :
ses               696 include/net/xfrm.h 	audit_log_format(audit_buf, " auid=%u ses=%u", auid, ses);
ses                49 include/scsi/scsi_eh.h 		struct scsi_eh_save *ses, unsigned char *cmnd,
ses                53 include/scsi/scsi_eh.h 		struct scsi_eh_save *ses);