Lines Matching refs:dfsplen
43 int dfsplen; in cifs_build_path_to_root() local
53 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
55 dfsplen = 0; in cifs_build_path_to_root()
57 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
61 if (dfsplen) in cifs_build_path_to_root()
62 memcpy(full_path, tcon->tree_name, dfsplen); in cifs_build_path_to_root()
63 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
64 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root()
85 int dfsplen; in build_path_from_dentry_optional_prefix() local
96 dfsplen = strnlen(tcon->tree_name, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
98 dfsplen = 0; in build_path_from_dentry_optional_prefix()
108 if (s < (char *)page + pplen + dfsplen) in build_path_from_dentry_optional_prefix()
124 if (dfsplen) { in build_path_from_dentry_optional_prefix()
125 s -= dfsplen; in build_path_from_dentry_optional_prefix()
126 memcpy(s, tcon->tree_name, dfsplen); in build_path_from_dentry_optional_prefix()
129 for (i = 0; i < dfsplen; i++) { in build_path_from_dentry_optional_prefix()