Lines Matching full:ref
28 struct dfs_ref *ref; member
34 #define ref_walk_cur(w) ((w)->ref)
60 static inline void __ref_walk_free(struct dfs_ref *ref) in __ref_walk_free() argument
62 kfree(ref->path); in __ref_walk_free()
63 kfree(ref->full_path); in __ref_walk_free()
64 dfs_cache_free_tgts(&ref->tl); in __ref_walk_free()
65 if (ref->ses) in __ref_walk_free()
66 cifs_put_smb_ses(ref->ses); in __ref_walk_free()
67 memset(ref, 0, sizeof(*ref)); in __ref_walk_free()
72 struct dfs_ref *ref; in ref_walk_free() local
77 for (ref = ref_walk_start(rw); ref <= ref_walk_end(rw); ref++) in ref_walk_free()
78 __ref_walk_free(ref); in ref_walk_free()
84 struct dfs_ref *ref = ref_walk_cur(rw) + 1; in ref_walk_advance() local
86 if (ref > ref_walk_end(rw)) in ref_walk_advance()
88 __ref_walk_free(ref); in ref_walk_advance()
89 ref_walk_cur(rw) = ref; in ref_walk_advance()
97 struct dfs_ref *ref = ref_walk_cur(rw); in ref_walk_next_tgt() local
99 if (!ref->tit) in ref_walk_next_tgt()
100 tit = dfs_cache_get_tgt_iterator(&ref->tl); in ref_walk_next_tgt()
102 tit = dfs_cache_get_next_tgt(&ref->tl, ref->tit); in ref_walk_next_tgt()
103 ref->tit = tit; in ref_walk_next_tgt()
129 struct dfs_ref *ref = ref_walk_start(rw); in ref_walk_set_tcon() local
131 for (; ref <= ref_walk_cur(rw); ref++) { in ref_walk_set_tcon()
132 if (WARN_ON_ONCE(!ref->ses)) in ref_walk_set_tcon()
134 list_add(&ref->ses->dlist, &tcon->dfs_ses_list); in ref_walk_set_tcon()
135 ref->ses = NULL; in ref_walk_set_tcon()
139 int dfs_parse_target_referral(const char *full_path, const struct dfs_info3_param *ref,
149 struct dfs_info3_param *ref, struct dfs_cache_tgt_list *tl) in dfs_get_referral() argument
156 cifs_remap(cifs_sb), path, ref, tl); in dfs_get_referral()