Lines Matching refs:all_mddevs
301 static LIST_HEAD(all_mddevs);
315 _tmp = all_mddevs.next; \
317 ({ if (_tmp != &all_mddevs) \
318 mddev_get(list_entry(_tmp, struct mddev, all_mddevs));\
321 _mddev = list_entry(_tmp, struct mddev, all_mddevs); \
322 _tmp != &all_mddevs;}); \
578 list_del_init(&mddev->all_mddevs); in mddev_put()
603 INIT_LIST_HEAD(&mddev->all_mddevs); in mddev_init()
631 list_for_each_entry(mddev, &all_mddevs, all_mddevs) in mddev_find()
640 list_add(&new->all_mddevs, &all_mddevs); in mddev_find()
664 list_for_each_entry(mddev, &all_mddevs, all_mddevs) in mddev_find()
673 list_add(&new->all_mddevs, &all_mddevs); in mddev_find()
4549 if (list_empty(&mddev->all_mddevs)) { in md_attr_show()
4578 if (list_empty(&mddev->all_mddevs)) { in md_attr_store()
4664 list_for_each_entry(mddev2, &all_mddevs, all_mddevs) in md_alloc()
6695 list_for_each(tmp,&all_mddevs) in md_seq_start()
6697 mddev = list_entry(tmp, struct mddev, all_mddevs); in md_seq_start()
6719 tmp = all_mddevs.next; in md_seq_next()
6721 tmp = mddev->all_mddevs.next; in md_seq_next()
6722 if (tmp != &all_mddevs) in md_seq_next()
6723 next_mddev = mddev_get(list_entry(tmp,struct mddev,all_mddevs)); in md_seq_next()