Lines Matching refs:iter
114 void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, loff_t pos) in mr_vif_seq_idx() argument
116 struct mr_table *mrt = iter->mrt; in mr_vif_seq_idx()
118 for (iter->ct = 0; iter->ct < mrt->maxvif; ++iter->ct) { in mr_vif_seq_idx()
119 if (!VIF_EXISTS(mrt, iter->ct)) in mr_vif_seq_idx()
122 return &mrt->vif_table[iter->ct]; in mr_vif_seq_idx()
130 struct mr_vif_iter *iter = seq->private; in mr_vif_seq_next() local
132 struct mr_table *mrt = iter->mrt; in mr_vif_seq_next()
136 return mr_vif_seq_idx(net, iter, 0); in mr_vif_seq_next()
138 while (++iter->ct < mrt->maxvif) { in mr_vif_seq_next()
139 if (!VIF_EXISTS(mrt, iter->ct)) in mr_vif_seq_next()
141 return &mrt->vif_table[iter->ct]; in mr_vif_seq_next()
354 struct mr_table *(*iter)(struct net *net, in mr_rtm_dumproute()
377 for (mrt = iter(net, NULL); mrt; mrt = iter(net, mrt)) { in mr_rtm_dumproute()