Lines Matching refs:tl
56 dfs_cache_get_next_tgt(struct dfs_cache_tgt_list *tl,
59 if (!tl || list_empty(&tl->tl_list) || !it ||
60 list_is_last(&it->it_list, &tl->tl_list))
66 dfs_cache_get_tgt_iterator(struct dfs_cache_tgt_list *tl)
68 if (!tl)
70 return list_first_entry_or_null(&tl->tl_list,
75 static inline void dfs_cache_free_tgts(struct dfs_cache_tgt_list *tl)
79 if (!tl || list_empty(&tl->tl_list))
81 list_for_each_entry_safe(it, nit, &tl->tl_list, it_list) {
86 tl->tl_numtgts = 0;
96 dfs_cache_get_nr_tgts(const struct dfs_cache_tgt_list *tl)
98 return tl ? tl->tl_numtgts : 0;