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