Lines Matching defs:tree
397 static void __tree_connect_ipc(const unsigned int xid, char *tree,
419 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
422 rc = server->ops->tree_connect(xid, ses, tree, tcon,
424 cifs_server_dbg(FYI, "%s: tree_reconnect %s: %d\n", __func__, tree, rc);
435 static void tree_connect_ipc(const unsigned int xid, char *tree,
441 __tree_connect_ipc(xid, tree, cifs_sb, ses);
442 __tree_connect_ipc(xid, tree, cifs_sb, CIFS_DFS_ROOT_SES(ses));
446 struct cifs_sb_info *cifs_sb, char *tree, bool islink,
463 /* Try to tree connect to all dfs targets */
488 tree_connect_ipc(xid, tree, cifs_sb, tcon);
490 scnprintf(tree, MAX_TREE_SIZE, "\\%s", share);
492 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
504 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, cifs_sb->local_nls);
531 struct cifs_sb_info *cifs_sb, char *tree, bool islink,
540 rc = __tree_connect_dfs_target(xid, tcon, cifs_sb, tree, islink, tl);
545 * If we couldn't tree connect to any targets from last referral path, then
564 char *tree;
587 tree = kzalloc(MAX_TREE_SIZE, GFP_KERNEL);
588 if (!tree) {
595 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
597 rc = ops->tree_connect(xid, tcon->ses, tree, tcon, nlsc);
616 rc = tree_connect_dfs_target(xid, tcon, cifs_sb, tree, ref.server_type == DFS_TYPE_LINK,
621 kfree(tree);