Lines Matching refs:it
148 struct mr_mfc_iter *it, loff_t pos) in mr_mfc_seq_idx() argument
150 struct mr_table *mrt = it->mrt; in mr_mfc_seq_idx()
154 it->cache = &mrt->mfc_cache_list; in mr_mfc_seq_idx()
160 spin_lock_bh(it->lock); in mr_mfc_seq_idx()
161 it->cache = &mrt->mfc_unres_queue; in mr_mfc_seq_idx()
162 list_for_each_entry(mfc, it->cache, list) in mr_mfc_seq_idx()
165 spin_unlock_bh(it->lock); in mr_mfc_seq_idx()
167 it->cache = NULL; in mr_mfc_seq_idx()
175 struct mr_mfc_iter *it = seq->private; in mr_mfc_seq_next() local
177 struct mr_table *mrt = it->mrt; in mr_mfc_seq_next()
185 if (c->list.next != it->cache) in mr_mfc_seq_next()
188 if (it->cache == &mrt->mfc_unres_queue) in mr_mfc_seq_next()
193 it->cache = &mrt->mfc_unres_queue; in mr_mfc_seq_next()
195 spin_lock_bh(it->lock); in mr_mfc_seq_next()
196 if (!list_empty(it->cache)) in mr_mfc_seq_next()
197 return list_first_entry(it->cache, struct mr_mfc, list); in mr_mfc_seq_next()
200 spin_unlock_bh(it->lock); in mr_mfc_seq_next()
201 it->cache = NULL; in mr_mfc_seq_next()