Lines Matching full:tl
55 dfs_cache_get_next_tgt(struct dfs_cache_tgt_list *tl, in dfs_cache_get_next_tgt() argument
58 if (!tl || !tl->tl_numtgts || list_empty(&tl->tl_list) || in dfs_cache_get_next_tgt()
59 !it || list_is_last(&it->it_list, &tl->tl_list)) in dfs_cache_get_next_tgt()
65 dfs_cache_get_tgt_iterator(struct dfs_cache_tgt_list *tl) in dfs_cache_get_tgt_iterator() argument
67 if (!tl) in dfs_cache_get_tgt_iterator()
69 return list_first_entry_or_null(&tl->tl_list, in dfs_cache_get_tgt_iterator()
74 static inline void dfs_cache_free_tgts(struct dfs_cache_tgt_list *tl) in dfs_cache_free_tgts() argument
78 if (!tl || !tl->tl_numtgts || list_empty(&tl->tl_list)) in dfs_cache_free_tgts()
80 list_for_each_entry_safe(it, nit, &tl->tl_list, it_list) { in dfs_cache_free_tgts()
85 tl->tl_numtgts = 0; in dfs_cache_free_tgts()
95 dfs_cache_get_nr_tgts(const struct dfs_cache_tgt_list *tl) in dfs_cache_get_nr_tgts() argument
97 return tl ? tl->tl_numtgts : 0; in dfs_cache_get_nr_tgts()