Lines Matching refs:ses

402 	       struct cifs_ses *ses,  in smb2_negotiate()  argument
410 rc = SMB2_negotiate(xid, ses, server); in smb2_negotiate()
420 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_wsize()
435 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_wsize()
467 struct TCP_Server_Info *server = tcon->ses->server; in smb2_negotiate_rsize()
483 struct TCP_Server_Info *server = tcon->ses->server; in smb3_negotiate_rsize()
515 size_t buf_len, struct cifs_ses *ses, bool in_mount) in parse_server_interfaces() argument
532 spin_lock(&ses->iface_lock); in parse_server_interfaces()
538 list_for_each_entry_safe(iface, niface, &ses->iface_list, in parse_server_interfaces()
542 ses->iface_count--; in parse_server_interfaces()
544 spin_unlock(&ses->iface_lock); in parse_server_interfaces()
552 if ((ses->chan_max > 1) && in_mount) in parse_server_interfaces()
556 ses->server->hostname); in parse_server_interfaces()
612 spin_lock(&ses->iface_lock); in parse_server_interfaces()
614 list_for_each_entry_safe(iface, niface, &ses->iface_list, in parse_server_interfaces()
621 ses->iface_count++; in parse_server_interfaces()
622 spin_unlock(&ses->iface_lock); in parse_server_interfaces()
630 spin_unlock(&ses->iface_lock); in parse_server_interfaces()
645 cifs_dbg(FYI, "%s: adding iface %zu\n", __func__, ses->iface_count); in parse_server_interfaces()
650 spin_lock(&ses->iface_lock); in parse_server_interfaces()
651 if (!list_entry_is_head(iface, &ses->iface_list, iface_head)) { in parse_server_interfaces()
655 list_add_tail(&info->iface_head, &ses->iface_list); in parse_server_interfaces()
657 ses->iface_count++; in parse_server_interfaces()
658 spin_unlock(&ses->iface_lock); in parse_server_interfaces()
659 ses->iface_last_update = jiffies; in parse_server_interfaces()
682 if (!ses->iface_count) { in parse_server_interfaces()
697 struct cifs_ses *ses = tcon->ses; in SMB3_request_interfaces() local
712 rc = parse_server_interfaces(out_buf, ret_data_len, ses, in_mount); in SMB3_request_interfaces()
1024 struct cifs_ses *ses = tcon->ses; in smb2_set_ea() local
1025 struct TCP_Server_Info *server = cifs_pick_channel(ses); in smb2_set_ea()
1059 if (ses->server->ops->query_all_EAs) { in smb2_set_ea()
1061 rc = ses->server->ops->query_all_EAs(xid, tcon, path, in smb2_set_ea()
1162 rc = compound_send_recv(xid, ses, server, in smb2_set_ea()
1294 struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; in smb2_set_fid()
1406 struct cifs_ses *ses = tcon->ses; in smb2_ioctl_query_info() local
1407 struct TCP_Server_Info *server = cifs_pick_channel(ses); in smb2_ioctl_query_info()
1442 if (!ses || !server) { in smb2_ioctl_query_info()
1564 rc = compound_send_recv(xid, ses, server, in smb2_ioctl_query_info()
2150 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_dir_first()
2201 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_dir_first()
2222 tcon->tid, tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2231 tcon->tid, tcon->ses->Suid, 0, 0); in smb2_query_dir_first()
2241 tcon->ses->Suid, 0, 0, rc); in smb2_query_dir_first()
2247 tcon->ses->Suid, 0, srch_inf->entries_in_buffer); in smb2_query_dir_first()
2339 struct cifs_ses *ses; in smb2_is_network_name_deleted() local
2349 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_is_network_name_deleted()
2350 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) { in smb2_is_network_name_deleted()
2369 if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) in smb2_oplock_response()
2397 struct cifs_ses *ses = tcon->ses; in smb2_set_next_command() local
2398 struct TCP_Server_Info *server = ses->server; in smb2_set_next_command()
2461 struct cifs_ses *ses = tcon->ses; in smb2_query_info_compound() local
2462 struct TCP_Server_Info *server = cifs_pick_channel(ses); in smb2_query_info_compound()
2554 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2558 rc = compound_send_recv(xid, ses, server, in smb2_query_info_compound()
2692 smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, in smb2_get_dfs_refer() argument
2712 tcon = ses->tcon_ipc; in smb2_get_dfs_refer()
2715 tcon = list_first_entry_or_null(&ses->tcon_list, in smb2_get_dfs_refer()
2725 ses); in smb2_get_dfs_refer()
2895 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_symlink()
2974 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_symlink()
3036 struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses); in smb2_query_reparse_tag()
3114 rc = compound_send_recv(xid, tcon->ses, server, in smb2_query_reparse_tag()
3344 struct cifs_ses *ses = tcon->ses; in smb3_zero_range() local
3355 ses->Suid, offset, len); in smb3_zero_range()
3390 ses->Suid, offset, len, rc); in smb3_zero_range()
3393 ses->Suid, offset, len); in smb3_zero_range()
3578 tcon->ses->Suid, off, len); in smb3_simple_falloc()
3583 tcon->tid, tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3680 tcon->ses->Suid, off, len, rc); in smb3_simple_falloc()
3683 tcon->ses->Suid, off, len); in smb3_simple_falloc()
4329 struct cifs_ses *ses; in smb2_get_enc_key() local
4336 list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { in smb2_get_enc_key()
4337 if (ses->Suid == ses_id) { in smb2_get_enc_key()
4338 spin_lock(&ses->ses_lock); in smb2_get_enc_key()
4339 ses_enc_key = enc ? ses->smb3encryptionkey : in smb2_get_enc_key()
4340 ses->smb3decryptionkey; in smb2_get_enc_key()
4342 spin_unlock(&ses->ses_lock); in smb2_get_enc_key()
5150 if (tcon->ses->server->oplocks) in smb2_make_node()
5154 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, &buf); in smb2_make_node()
5174 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5180 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in smb2_make_node()
5183 tcon->ses->server->ops->close(xid, tcon, &fid); in smb2_make_node()