Lines Matching refs:all_mddevs
250 static LIST_HEAD(all_mddevs);
264 tmp = all_mddevs.next; \
266 ({ if (tmp != &all_mddevs) \
267 mddev_get(list_entry(tmp, mddev_t, all_mddevs));\
270 mddev = list_entry(tmp, mddev_t, all_mddevs); \
271 tmp != &all_mddevs;}); \
522 list_del(&mddev->all_mddevs); in mddev_put()
547 INIT_LIST_HEAD(&mddev->all_mddevs); in mddev_init()
575 list_for_each_entry(mddev, &all_mddevs, all_mddevs) in mddev_find()
584 list_add(&new->all_mddevs, &all_mddevs); in mddev_find()
608 list_for_each_entry(mddev, &all_mddevs, all_mddevs) in mddev_find()
617 list_add(&new->all_mddevs, &all_mddevs); in mddev_find()
4316 list_for_each_entry(mddev2, &all_mddevs, all_mddevs) in md_alloc()
6316 list_for_each(tmp,&all_mddevs) in md_seq_start()
6318 mddev = list_entry(tmp, mddev_t, all_mddevs); in md_seq_start()
6340 tmp = all_mddevs.next; in md_seq_next()
6342 tmp = mddev->all_mddevs.next; in md_seq_next()
6343 if (tmp != &all_mddevs) in md_seq_next()
6344 next_mddev = mddev_get(list_entry(tmp,mddev_t,all_mddevs)); in md_seq_next()