Lines Matching refs:ref
27 struct dfs_ref *ref; member
33 #define ref_walk_cur(w) ((w)->ref)
58 static inline void __ref_walk_free(struct dfs_ref *ref) in __ref_walk_free() argument
60 kfree(ref->path); in __ref_walk_free()
61 kfree(ref->full_path); in __ref_walk_free()
62 dfs_cache_free_tgts(&ref->tl); in __ref_walk_free()
63 memset(ref, 0, sizeof(*ref)); in __ref_walk_free()
68 struct dfs_ref *ref = ref_walk_start(rw); in ref_walk_free() local
70 for (; ref <= ref_walk_end(rw); ref++) in ref_walk_free()
71 __ref_walk_free(ref); in ref_walk_free()
77 struct dfs_ref *ref = ref_walk_cur(rw) + 1; in ref_walk_advance() local
79 if (ref > ref_walk_end(rw)) in ref_walk_advance()
81 __ref_walk_free(ref); in ref_walk_advance()
82 ref_walk_cur(rw) = ref; in ref_walk_advance()
90 struct dfs_ref *ref = ref_walk_cur(rw); in ref_walk_next_tgt() local
92 if (!ref->tit) in ref_walk_next_tgt()
93 tit = dfs_cache_get_tgt_iterator(&ref->tl); in ref_walk_next_tgt()
95 tit = dfs_cache_get_next_tgt(&ref->tl, ref->tit); in ref_walk_next_tgt()
96 ref->tit = tit; in ref_walk_next_tgt()
119 int dfs_parse_target_referral(const char *full_path, const struct dfs_info3_param *ref,
129 struct dfs_info3_param *ref, struct dfs_cache_tgt_list *tl) in dfs_get_referral() argument
136 cifs_remap(cifs_sb), path, ref, tl); in dfs_get_referral()