Lines Matching refs:ses
80 if (!tcon || !tcon->ses) in smb3_encryption_required()
82 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required()
86 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
89 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required()
145 if (tcon->ses) in smb2_hdr_assemble()
146 shdr->SessionId = cpu_to_le64(tcon->ses->Suid); in smb2_hdr_assemble()
169 cifs_chan_skip_or_disable(struct cifs_ses *ses, in cifs_chan_skip_or_disable() argument
179 ses->server->hostname); in cifs_chan_skip_or_disable()
181 spin_lock(&ses->chan_lock); in cifs_chan_skip_or_disable()
182 chan_index = cifs_ses_get_chan_index(ses, server); in cifs_chan_skip_or_disable()
184 spin_unlock(&ses->chan_lock); in cifs_chan_skip_or_disable()
188 ses->chans[chan_index].server = NULL; in cifs_chan_skip_or_disable()
190 spin_unlock(&ses->chan_lock); in cifs_chan_skip_or_disable()
211 cifs_disable_secondary_channels(ses); in cifs_chan_skip_or_disable()
221 struct cifs_ses *ses; in smb2_reconnect() local
250 ses = tcon->ses; in smb2_reconnect()
251 if (!ses) in smb2_reconnect()
253 spin_lock(&ses->ses_lock); in smb2_reconnect()
254 if (ses->ses_status == SES_EXITING) { in smb2_reconnect()
255 spin_unlock(&ses->ses_lock); in smb2_reconnect()
258 spin_unlock(&ses->ses_lock); in smb2_reconnect()
259 if (!ses->server || !server) in smb2_reconnect()
293 spin_lock(&ses->chan_lock); in smb2_reconnect()
294 if (!cifs_chan_needs_reconnect(ses, server) && !tcon->need_reconnect) { in smb2_reconnect()
295 spin_unlock(&ses->chan_lock); in smb2_reconnect()
298 spin_unlock(&ses->chan_lock); in smb2_reconnect()
300 tcon->ses->chans_need_reconnect, in smb2_reconnect()
303 mutex_lock(&ses->session_mutex); in smb2_reconnect()
312 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
316 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
329 spin_lock(&ses->ses_lock); in smb2_reconnect()
330 spin_lock(&ses->chan_lock); in smb2_reconnect()
331 if (!cifs_chan_needs_reconnect(ses, server) && in smb2_reconnect()
332 ses->ses_status == SES_GOOD) { in smb2_reconnect()
333 spin_unlock(&ses->chan_lock); in smb2_reconnect()
334 spin_unlock(&ses->ses_lock); in smb2_reconnect()
339 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
342 spin_unlock(&ses->chan_lock); in smb2_reconnect()
343 spin_unlock(&ses->ses_lock); in smb2_reconnect()
345 rc = cifs_negotiate_protocol(0, ses, server); in smb2_reconnect()
347 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
356 if (ses->chan_count > 1 && in smb2_reconnect()
358 rc = cifs_chan_skip_or_disable(ses, server, in smb2_reconnect()
361 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
366 rc = cifs_setup_session(0, ses, server, ses->local_nls); in smb2_reconnect()
374 if (ses->password2) in smb2_reconnect()
375 swap(ses->password2, ses->password); in smb2_reconnect()
378 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
386 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
398 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
403 spin_lock(&ses->ses_lock); in smb2_reconnect()
404 if (ses->flags & CIFS_SES_FLAG_SCALE_CHANNELS) { in smb2_reconnect()
405 spin_unlock(&ses->ses_lock); in smb2_reconnect()
406 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
409 ses->flags |= CIFS_SES_FLAG_SCALE_CHANNELS; in smb2_reconnect()
410 spin_unlock(&ses->ses_lock); in smb2_reconnect()
421 ses->flags |= CIFS_SES_FLAGS_PENDING_QUERY_INTERFACES; in smb2_reconnect()
425 ses->flags &= ~CIFS_SES_FLAGS_PENDING_QUERY_INTERFACES; in smb2_reconnect()
431 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
433 if (rc == -EOPNOTSUPP && ses->chan_count > 1) { in smb2_reconnect()
441 rc = cifs_chan_skip_or_disable(ses, server, in smb2_reconnect()
448 if (ses->chan_max > ses->chan_count && in smb2_reconnect()
449 ses->iface_count && in smb2_reconnect()
451 if (ses->chan_count == 1) in smb2_reconnect()
454 cifs_try_adding_channels(ses); in smb2_reconnect()
457 mutex_unlock(&ses->session_mutex); in smb2_reconnect()
461 spin_lock(&ses->ses_lock); in smb2_reconnect()
462 ses->flags &= ~CIFS_SES_FLAG_SCALE_CHANNELS; in smb2_reconnect()
463 spin_unlock(&ses->ses_lock); in smb2_reconnect()
578 (tcon->ses->flags & CIFS_SES_FLAGS_PENDING_QUERY_INTERFACES))) in smb2_ioctl_req_init()
1045 struct cifs_ses *ses, in SMB2_negotiate() argument
1075 memset(ses->preauth_sha_hash, 0, SMB2_PREAUTH_HASH_SIZE); in SMB2_negotiate()
1100 if (ses->sign) in SMB2_negotiate()
1108 if (ses->chan_max > 1) in SMB2_negotiate()
1131 rc = cifs_send_recv(xid, ses, server, in SMB2_negotiate()
1209 memcpy(server->preauth_sha_hash, ses->preauth_sha_hash, in SMB2_negotiate()
1250 rc = cifs_enable_signing(server, ses->sign); in SMB2_negotiate()
1283 struct TCP_Server_Info *server = tcon->ses->server; in smb3_validate_negotiate()
1298 if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST) in smb3_validate_negotiate()
1301 if (tcon->ses->user_name == NULL) { in smb3_validate_negotiate()
1306 if (tcon->ses->session_flags & SMB2_SESSION_FLAG_IS_NULL) in smb3_validate_negotiate()
1315 if (tcon->ses->chan_max > 1) in smb3_validate_negotiate()
1321 if (tcon->ses->sign) in smb3_validate_negotiate()
1439 struct cifs_ses *ses; member
1461 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_alloc_buffer() local
1473 spin_lock(&ses->ses_lock); in SMB2_sess_alloc_buffer()
1474 is_binding = (ses->ses_status == SES_GOOD); in SMB2_sess_alloc_buffer()
1475 spin_unlock(&ses->ses_lock); in SMB2_sess_alloc_buffer()
1478 req->hdr.SessionId = cpu_to_le64(ses->Suid); in SMB2_sess_alloc_buffer()
1482 cifs_dbg(FYI, "Binding to sess id: %llx\n", ses->Suid); in SMB2_sess_alloc_buffer()
1563 rc = cifs_send_recv(sess_data->xid, sess_data->ses, in SMB2_sess_sendreceive()
1570 sess_data->ses->expired_pwd = false; in SMB2_sess_sendreceive()
1572 if (sess_data->ses->expired_pwd == false) in SMB2_sess_sendreceive()
1574 sess_data->ses->user_name, in SMB2_sess_sendreceive()
1577 sess_data->ses->expired_pwd = true; in SMB2_sess_sendreceive()
1589 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_establish_session() local
1594 rc = server->ops->generate_signingkey(ses, server); in SMB2_sess_establish_session()
1617 struct cifs_ses *ses = sess_data->ses; in SMB2_auth_kerberos() local
1628 spnego_key = cifs_get_spnego_key(ses, server); in SMB2_auth_kerberos()
1649 spin_lock(&ses->ses_lock); in SMB2_auth_kerberos()
1650 is_binding = (ses->ses_status == SES_GOOD); in SMB2_auth_kerberos()
1651 spin_unlock(&ses->ses_lock); in SMB2_auth_kerberos()
1655 kfree_sensitive(ses->auth_key.response); in SMB2_auth_kerberos()
1656 ses->auth_key.response = kmemdup(msg->data, msg->sesskey_len, in SMB2_auth_kerberos()
1658 if (!ses->auth_key.response) { in SMB2_auth_kerberos()
1664 ses->auth_key.len = msg->sesskey_len; in SMB2_auth_kerberos()
1677 ses->Suid = le64_to_cpu(rsp->hdr.SessionId); in SMB2_auth_kerberos()
1678 ses->session_flags = le16_to_cpu(rsp->SessionFlags); in SMB2_auth_kerberos()
1686 kfree_sensitive(ses->auth_key.response); in SMB2_auth_kerberos()
1687 ses->auth_key.response = NULL; in SMB2_auth_kerberos()
1688 ses->auth_key.len = 0; in SMB2_auth_kerberos()
1712 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_auth_rawntlmssp_negotiate() local
1724 ses->ntlmssp = kmalloc(sizeof(struct ntlmssp_auth), GFP_KERNEL); in SMB2_sess_auth_rawntlmssp_negotiate()
1725 if (!ses->ntlmssp) { in SMB2_sess_auth_rawntlmssp_negotiate()
1729 ses->ntlmssp->sesskey_per_smbsess = true; in SMB2_sess_auth_rawntlmssp_negotiate()
1736 &blob_length, ses, server, in SMB2_sess_auth_rawntlmssp_negotiate()
1769 le16_to_cpu(rsp->SecurityBufferLength), ses); in SMB2_sess_auth_rawntlmssp_negotiate()
1775 spin_lock(&ses->ses_lock); in SMB2_sess_auth_rawntlmssp_negotiate()
1776 is_binding = (ses->ses_status == SES_GOOD); in SMB2_sess_auth_rawntlmssp_negotiate()
1777 spin_unlock(&ses->ses_lock); in SMB2_sess_auth_rawntlmssp_negotiate()
1781 ses->Suid = le64_to_cpu(rsp->hdr.SessionId); in SMB2_sess_auth_rawntlmssp_negotiate()
1782 ses->session_flags = le16_to_cpu(rsp->SessionFlags); in SMB2_sess_auth_rawntlmssp_negotiate()
1794 kfree_sensitive(ses->ntlmssp); in SMB2_sess_auth_rawntlmssp_negotiate()
1795 ses->ntlmssp = NULL; in SMB2_sess_auth_rawntlmssp_negotiate()
1804 struct cifs_ses *ses = sess_data->ses; in SMB2_sess_auth_rawntlmssp_authenticate() local
1818 req->hdr.SessionId = cpu_to_le64(ses->Suid); in SMB2_sess_auth_rawntlmssp_authenticate()
1821 ses, server, in SMB2_sess_auth_rawntlmssp_authenticate()
1843 spin_lock(&ses->ses_lock); in SMB2_sess_auth_rawntlmssp_authenticate()
1844 is_binding = (ses->ses_status == SES_GOOD); in SMB2_sess_auth_rawntlmssp_authenticate()
1845 spin_unlock(&ses->ses_lock); in SMB2_sess_auth_rawntlmssp_authenticate()
1849 ses->Suid = le64_to_cpu(rsp->hdr.SessionId); in SMB2_sess_auth_rawntlmssp_authenticate()
1850 ses->session_flags = le16_to_cpu(rsp->SessionFlags); in SMB2_sess_auth_rawntlmssp_authenticate()
1855 if (ses->server->dialect < SMB30_PROT_ID) { in SMB2_sess_auth_rawntlmssp_authenticate()
1861 cifs_dbg(VFS, "Session Id %*ph\n", (int)sizeof(ses->Suid), in SMB2_sess_auth_rawntlmssp_authenticate()
1862 &ses->Suid); in SMB2_sess_auth_rawntlmssp_authenticate()
1864 SMB2_NTLMV2_SESSKEY_SIZE, ses->auth_key.response); in SMB2_sess_auth_rawntlmssp_authenticate()
1866 SMB3_SIGN_KEY_SIZE, ses->auth_key.response); in SMB2_sess_auth_rawntlmssp_authenticate()
1872 kfree_sensitive(ses->ntlmssp); in SMB2_sess_auth_rawntlmssp_authenticate()
1873 ses->ntlmssp = NULL; in SMB2_sess_auth_rawntlmssp_authenticate()
1882 struct cifs_ses *ses = sess_data->ses; in SMB2_select_sec() local
1885 type = smb2_select_sectype(server, ses->sectype); in SMB2_select_sec()
1908 SMB2_sess_setup(const unsigned int xid, struct cifs_ses *ses, in SMB2_sess_setup() argument
1927 sess_data->ses = ses; in SMB2_sess_setup()
1931 sess_data->previous_session = ses->Suid; in SMB2_sess_setup()
1940 memcpy(ses->preauth_sha_hash, server->preauth_sha_hash, in SMB2_sess_setup()
1946 if ((ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST) && (ses->sign)) in SMB2_sess_setup()
1955 SMB2_logoff(const unsigned int xid, struct cifs_ses *ses) in SMB2_logoff() argument
1967 cifs_dbg(FYI, "disconnect session %p\n", ses); in SMB2_logoff()
1969 if (ses && (ses->server)) in SMB2_logoff()
1970 server = ses->server; in SMB2_logoff()
1975 spin_lock(&ses->chan_lock); in SMB2_logoff()
1976 if (CIFS_ALL_CHANS_NEED_RECONNECT(ses)) { in SMB2_logoff()
1977 spin_unlock(&ses->chan_lock); in SMB2_logoff()
1980 spin_unlock(&ses->chan_lock); in SMB2_logoff()
1982 rc = smb2_plain_req_init(SMB2_LOGOFF, NULL, ses->server, in SMB2_logoff()
1988 req->hdr.SessionId = cpu_to_le64(ses->Suid); in SMB2_logoff()
1990 if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) in SMB2_logoff()
2004 rc = cifs_send_recv(xid, ses, ses->server, in SMB2_logoff()
2032 SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree, in SMB2_tcon() argument
2046 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_tcon()
2094 !(ses->session_flags & in SMB2_tcon()
2096 ((ses->user_name != NULL) || (ses->sectype == Kerberos))) in SMB2_tcon()
2111 rc = cifs_send_recv(xid, ses, server, in SMB2_tcon()
2115 trace_smb3_tcon(xid, tcon->tid, ses->Suid, tree, rc); in SMB2_tcon()
2178 struct cifs_ses *ses = tcon->ses; in SMB2_tdis() local
2179 struct TCP_Server_Info *server = cifs_pick_channel(ses); in SMB2_tdis()
2188 if (!ses || !(ses->server)) in SMB2_tdis()
2191 trace_smb3_tdis_enter(xid, tcon->tid, ses->Suid, tcon->tree_name); in SMB2_tdis()
2192 spin_lock(&ses->chan_lock); in SMB2_tdis()
2194 (CIFS_ALL_CHANS_NEED_RECONNECT(tcon->ses))) { in SMB2_tdis()
2195 spin_unlock(&ses->chan_lock); in SMB2_tdis()
2198 spin_unlock(&ses->chan_lock); in SMB2_tdis()
2220 rc = cifs_send_recv(xid, ses, server, in SMB2_tdis()
2225 trace_smb3_tdis_err(xid, tcon->tid, ses->Suid, rc); in SMB2_tdis()
2227 trace_smb3_tdis_done(xid, tcon->tid, ses->Suid); in SMB2_tdis()
2829 struct cifs_ses *ses = tcon->ses; in smb311_posix_mkdir() local
2850 server = cifs_pick_channel(ses); in smb311_posix_mkdir()
2859 if (!ses || !server) { in smb311_posix_mkdir()
2953 trace_smb3_posix_mkdir_enter(xid, tcon->tid, ses->Suid, full_path, CREATE_NOT_FILE, in smb311_posix_mkdir()
2960 rc = cifs_send_recv(xid, ses, server, in smb311_posix_mkdir()
2964 trace_smb3_posix_mkdir_err(xid, tcon->tid, ses->Suid, in smb311_posix_mkdir()
2982 trace_smb3_posix_mkdir_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid, in smb311_posix_mkdir()
3198 struct cifs_ses *ses = tcon->ses; in SMB2_open() local
3210 server = cifs_pick_channel(ses); in SMB2_open()
3214 if (!ses || !server) in SMB2_open()
3230 trace_smb3_open_enter(xid, tcon->tid, tcon->ses->Suid, oparms->path, in SMB2_open()
3236 rc = cifs_send_recv(xid, ses, server, in SMB2_open()
3249 trace_smb3_open_err(xid, tcon->tid, ses->Suid, in SMB2_open()
3260 trace_smb3_open_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid, in SMB2_open()
3411 struct cifs_ses *ses; in SMB2_ioctl() local
3423 ses = tcon->ses; in SMB2_ioctl()
3424 if (!ses) in SMB2_ioctl()
3430 server = cifs_pick_channel(ses); in SMB2_ioctl()
3461 rc = cifs_send_recv(xid, ses, server, in SMB2_ioctl()
3468 ses->Suid, 0, opcode, rc); in SMB2_ioctl()
3605 struct cifs_ses *ses = tcon->ses; in __SMB2_close() local
3619 server = cifs_pick_channel(ses); in __SMB2_close()
3623 if (!ses || !server) in __SMB2_close()
3638 trace_smb3_close_enter(xid, persistent_fid, tcon->tid, ses->Suid); in __SMB2_close()
3648 rc = cifs_send_recv(xid, ses, server, in __SMB2_close()
3654 trace_smb3_close_err(xid, persistent_fid, tcon->tid, ses->Suid, in __SMB2_close()
3659 ses->Suid); in __SMB2_close()
3812 struct cifs_ses *ses = tcon->ses; in query_info() local
3820 if (!ses) in query_info()
3827 server = cifs_pick_channel(ses); in query_info()
3848 ses->Suid, info_class, (__u32)info_type); in query_info()
3853 rc = cifs_send_recv(xid, ses, server, in query_info()
3860 ses->Suid, info_class, (__u32)info_type, rc); in query_info()
3865 ses->Suid, info_class, (__u32)info_type); in query_info()
3997 struct cifs_ses *ses = tcon->ses; in SMB2_change_notify() local
4011 server = cifs_pick_channel(ses); in SMB2_change_notify()
4014 if (!ses || !server) in SMB2_change_notify()
4034 trace_smb3_notify_enter(xid, persistent_fid, tcon->tid, ses->Suid, in SMB2_change_notify()
4040 rc = cifs_send_recv(xid, ses, server, in SMB2_change_notify()
4045 trace_smb3_notify_err(xid, persistent_fid, tcon->tid, ses->Suid, in SMB2_change_notify()
4049 ses->Suid, (u8)watch_tree, completion_filter); in SMB2_change_notify()
4127 struct cifs_ses *ses, *ses2; in smb2_reconnect_server() local
4162 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_reconnect_server()
4163 spin_lock(&ses->ses_lock); in smb2_reconnect_server()
4164 if (ses->ses_status == SES_EXITING) { in smb2_reconnect_server()
4165 spin_unlock(&ses->ses_lock); in smb2_reconnect_server()
4168 spin_unlock(&ses->ses_lock); in smb2_reconnect_server()
4172 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_reconnect_server()
4185 if (ses->tcon_ipc && ses->tcon_ipc->need_reconnect) { in smb2_reconnect_server()
4186 list_add_tail(&ses->tcon_ipc->rlist, &tmp_list); in smb2_reconnect_server()
4188 cifs_smb_ses_inc_refcount(ses); in smb2_reconnect_server()
4195 spin_lock(&ses->chan_lock); in smb2_reconnect_server()
4196 if (!tcon_selected && cifs_chan_needs_reconnect(ses, server)) { in smb2_reconnect_server()
4197 list_add_tail(&ses->rlist, &tmp_ses_list); in smb2_reconnect_server()
4199 cifs_smb_ses_inc_refcount(ses); in smb2_reconnect_server()
4201 spin_unlock(&ses->chan_lock); in smb2_reconnect_server()
4214 cifs_put_smb_ses(tcon->ses); in smb2_reconnect_server()
4226 list_for_each_entry_safe(ses, ses2, &tmp_ses_list, rlist) { in smb2_reconnect_server()
4227 list_del_init(&ses->rlist); in smb2_reconnect_server()
4228 cifs_put_smb_ses(ses); in smb2_reconnect_server()
4236 list_for_each_entry_safe(ses, ses2, &tmp_ses_list, rlist) { in smb2_reconnect_server()
4237 tcon->ses = ses; in smb2_reconnect_server()
4241 list_del_init(&ses->rlist); in smb2_reconnect_server()
4242 cifs_put_smb_ses(ses); in smb2_reconnect_server()
4332 struct cifs_ses *ses = tcon->ses; in SMB2_flush() local
4345 server = cifs_pick_channel(ses); in SMB2_flush()
4348 if (!ses || !(ses->server)) in SMB2_flush()
4364 trace_smb3_flush_enter(xid, persistent_fid, tcon->tid, ses->Suid); in SMB2_flush()
4369 rc = cifs_send_recv(xid, ses, server, in SMB2_flush()
4374 trace_smb3_flush_err(xid, persistent_fid, tcon->tid, ses->Suid, in SMB2_flush()
4378 ses->Suid); in SMB2_flush()
4459 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in smb2_new_read_req()
4610 tcon->tid, tcon->ses->Suid, in smb2_readv_callback()
4619 tcon->tid, tcon->ses->Suid, in smb2_readv_callback()
4671 rdata->server = cifs_pick_channel(tcon->ses); in smb2_async_readv()
4724 io_parms.tcon->ses->Suid, in smb2_async_readv()
4746 struct cifs_ses *ses = io_parms->tcon->ses; in SMB2_read() local
4749 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_read()
4766 rc = cifs_send_recv(xid, ses, io_parms->server, in SMB2_read()
4776 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4782 ses->Suid, io_parms->offset, 0); in SMB2_read()
4789 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4912 tcon->tid, tcon->ses->Suid, wdata->subreq.start, in smb2_writev_callback()
4922 tcon->tid, tcon->ses->Suid, in smb2_writev_callback()
5002 io_parms->tcon->ses->Suid, in smb2_async_writev()
5084 io_parms->tcon->ses->Suid, in smb2_async_writev()
5132 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_write()
5162 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in SMB2_write()
5176 rc = cifs_send_recv(xid, io_parms->tcon->ses, server, in SMB2_write()
5185 io_parms->tcon->ses->Suid, in SMB2_write()
5195 io_parms->tcon->ses->Suid, in SMB2_write()
5424 tcon->ses->Suid, index, output_size); in SMB2_query_directory_init()
5522 struct cifs_ses *ses = tcon->ses; in SMB2_query_directory() local
5530 server = cifs_pick_channel(ses); in SMB2_query_directory()
5532 if (!ses || !(ses->server)) in SMB2_query_directory()
5553 rc = cifs_send_recv(xid, ses, server, in SMB2_query_directory()
5561 tcon->tid, tcon->ses->Suid, index, 0); in SMB2_query_directory()
5566 tcon->ses->Suid, index, 0, rc); in SMB2_query_directory()
5576 tcon->ses->Suid, index, 0, rc); in SMB2_query_directory()
5582 tcon->ses->Suid, index, srch_inf->entries_in_buffer); in SMB2_query_directory()
5657 struct cifs_ses *ses = tcon->ses; in send_set_info() local
5665 server = cifs_pick_channel(ses); in send_set_info()
5667 if (!ses || !server) in send_set_info()
5696 rc = cifs_send_recv(xid, ses, server, in send_set_info()
5705 ses->Suid, info_class, (__u32)info_type, rc); in send_set_info()
5731 trace_smb3_set_eof(xid, persistent_fid, tcon->tid, tcon->ses->Suid, new_eof); in SMB2_set_eof()
5766 struct cifs_ses *ses = tcon->ses; in SMB2_oplock_break() local
5778 server = cifs_pick_channel(ses); in SMB2_oplock_break()
5806 rc = cifs_send_recv(xid, ses, server, in SMB2_oplock_break()
5864 if ((tcon->ses == NULL) || server == NULL) in build_qfs_info_req()
5902 struct cifs_ses *ses = tcon->ses; in SMB311_posix_qfs_info() local
5911 server = cifs_pick_channel(ses); in SMB311_posix_qfs_info()
5930 rc = cifs_send_recv(xid, ses, server, in SMB311_posix_qfs_info()
5967 struct cifs_ses *ses = tcon->ses; in SMB2_QFS_attr() local
5976 server = cifs_pick_channel(ses); in SMB2_QFS_attr()
6011 rc = cifs_send_recv(xid, ses, server, in SMB2_QFS_attr()
6076 server = cifs_pick_channel(tcon->ses); in smb2_lockv()
6110 rc = cifs_send_recv(xid, tcon->ses, server, in smb2_lockv()
6118 tcon->ses->Suid, rc); in smb2_lockv()
6152 struct cifs_ses *ses = tcon->ses; in SMB2_lease_break() local
6160 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in SMB2_lease_break()
6187 rc = cifs_send_recv(xid, ses, server, in SMB2_lease_break()
6196 ses->Suid, *please_key_low, *please_key_high, rc); in SMB2_lease_break()
6200 ses->Suid, *please_key_low, *please_key_high); in SMB2_lease_break()