Lines Matching refs:ses
658 static int get_dfs_referral(const unsigned int xid, struct cifs_ses *ses,
665 if (!ses || !ses->server || !ses->server->ops->get_dfs_refer)
673 return ses->server->ops->get_dfs_refer(xid, ses, path, refs, numrefs,
701 static int __dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
745 rc = get_dfs_referral(xid, ses, nls_codepage, remap, path,
867 * @ses: smb session to issue the request on
877 int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
890 rc = __dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
978 * @ses: smb session
986 int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses,
1002 rc = __dfs_cache_find(xid, ses, nls_codepage, remap, npath, false);
1269 * @server: TCP ses pointer.
1393 struct cifs_ses *ses;
1399 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
1400 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
1407 if (ses->tcon_ipc && !ses->tcon_ipc->need_reconnect &&
1408 ses->tcon_ipc->dfs_path) {
1409 list_add_tail(&ses->tcon_ipc->ulist, head);
1479 struct cifs_ses *ses;
1491 ses = ERR_CAST(ce);
1498 ses = ERR_PTR(rc);
1509 ses = ERR_CAST(mdata);
1518 ses = ERR_PTR(rc);
1524 ses = ERR_PTR(-EHOSTDOWN);
1528 ses = cifs_get_smb_ses(server, &vol);
1535 return ses;
1545 struct cifs_ses *root_ses = NULL, *ses;
1575 ses = root_ses = find_root_ses(vi, tcon, npath);
1576 if (IS_ERR(ses)) {
1577 rc = PTR_ERR(ses);
1582 ses = tcon->ses;
1585 rc = get_dfs_referral(xid, ses, cache_nlsc, tcon->remap, npath, &refs,