Lines Matching refs:iter
60 struct ipoib_mcast_iter *iter; in ipoib_mcg_seq_start() local
63 iter = ipoib_mcast_iter_init(file->private); in ipoib_mcg_seq_start()
64 if (!iter) in ipoib_mcg_seq_start()
68 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_start()
69 kfree(iter); in ipoib_mcg_seq_start()
74 return iter; in ipoib_mcg_seq_start()
80 struct ipoib_mcast_iter *iter = iter_ptr; in ipoib_mcg_seq_next() local
84 if (ipoib_mcast_iter_next(iter)) { in ipoib_mcg_seq_next()
85 kfree(iter); in ipoib_mcg_seq_next()
89 return iter; in ipoib_mcg_seq_next()
99 struct ipoib_mcast_iter *iter = iter_ptr; in ipoib_mcg_seq_show() local
105 if (!iter) in ipoib_mcg_seq_show()
108 ipoib_mcast_iter_read(iter, &mgid, &created, &queuelen, in ipoib_mcg_seq_show()
138 struct ipoib_path_iter *iter; in ipoib_path_seq_start() local
141 iter = ipoib_path_iter_init(file->private); in ipoib_path_seq_start()
142 if (!iter) in ipoib_path_seq_start()
146 if (ipoib_path_iter_next(iter)) { in ipoib_path_seq_start()
147 kfree(iter); in ipoib_path_seq_start()
152 return iter; in ipoib_path_seq_start()
158 struct ipoib_path_iter *iter = iter_ptr; in ipoib_path_seq_next() local
162 if (ipoib_path_iter_next(iter)) { in ipoib_path_seq_next()
163 kfree(iter); in ipoib_path_seq_next()
167 return iter; in ipoib_path_seq_next()
177 struct ipoib_path_iter *iter = iter_ptr; in ipoib_path_seq_show() local
182 if (!iter) in ipoib_path_seq_show()
185 ipoib_path_iter_read(iter, &path); in ipoib_path_seq_show()