Searched refs:rdev2 (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/md/
H A Draid0.c80 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; create_strip_zones() local
104 rdev_for_each(rdev2, mddev) { rdev_for_each()
110 bdevname(rdev2->bdev,b2), rdev_for_each()
111 (unsigned long long)rdev2->sectors); rdev_for_each()
112 if (rdev2 == rdev1) { rdev_for_each()
117 if (rdev2->sectors == rdev1->sectors) { rdev_for_each()
H A Dmd.c1188 struct md_rdev *rdev2; super_90_sync() local
1258 rdev_for_each(rdev2, mddev) { rdev_for_each()
1261 int is_active = test_bit(In_sync, &rdev2->flags); rdev_for_each()
1263 if (rdev2->raid_disk >= 0 && rdev_for_each()
1270 if (rdev2->raid_disk < 0 || rdev_for_each()
1271 test_bit(Faulty, &rdev2->flags)) rdev_for_each()
1274 desc_nr = rdev2->raid_disk; rdev_for_each()
1277 rdev2->desc_nr = desc_nr; rdev_for_each()
1278 d = &sb->disks[rdev2->desc_nr]; rdev_for_each()
1280 d->number = rdev2->desc_nr; rdev_for_each()
1281 d->major = MAJOR(rdev2->bdev->bd_dev); rdev_for_each()
1282 d->minor = MINOR(rdev2->bdev->bd_dev); rdev_for_each()
1284 d->raid_disk = rdev2->raid_disk; rdev_for_each()
1286 d->raid_disk = rdev2->desc_nr; /* compatibility */ rdev_for_each()
1287 if (test_bit(Faulty, &rdev2->flags)) rdev_for_each()
1291 if (test_bit(In_sync, &rdev2->flags)) rdev_for_each()
1300 if (test_bit(WriteMostly, &rdev2->flags)) rdev_for_each()
1687 struct md_rdev *rdev2; super_1_sync() local
1793 rdev_for_each(rdev2, mddev) super_1_sync()
1794 if (rdev2->desc_nr+1 > max_dev) super_1_sync()
1795 max_dev = rdev2->desc_nr+1; super_1_sync()
1810 rdev_for_each(rdev2, mddev) { rdev_for_each()
1811 i = rdev2->desc_nr; rdev_for_each()
1812 if (test_bit(Faulty, &rdev2->flags)) rdev_for_each()
1814 else if (test_bit(In_sync, &rdev2->flags)) rdev_for_each()
1815 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); rdev_for_each()
1816 else if (rdev2->raid_disk >= 0) rdev_for_each()
1817 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); rdev_for_each()
1932 struct md_rdev *rdev, *rdev2; match_mddev_units() local
1936 rdev_for_each_rcu(rdev2, mddev2) rdev_for_each_rcu()
1938 rdev2->bdev->bd_contains) { rdev_for_each_rcu()
2896 struct md_rdev *rdev2; for_each_mddev() local
2898 rdev_for_each(rdev2, mddev) rdev_for_each()
2899 if (rdev->bdev == rdev2->bdev && rdev_for_each()
2900 rdev != rdev2 && rdev_for_each()
2902 rdev2->data_offset, rdev_for_each()
2903 rdev2->sectors)) { rdev_for_each()
5103 struct md_rdev *rdev2; local
5107 rdev_for_each(rdev2, mddev) { rdev_for_each()
5108 if (rdev < rdev2 && rdev_for_each()
5110 rdev2->bdev->bd_contains) { rdev_for_each()
5117 bdevname(rdev2->bdev,b2)); rdev_for_each()
H A Draid10.c2221 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; fix_recovery_read_error() local
2223 ok = rdev_set_badblocks(rdev2, addr, s, 0); fix_recovery_read_error()
4410 struct md_rdev *rdev2; reshape_request() local
4412 rdev2 = conf->mirrors[d].replacement; reshape_request()
4415 rdev2 = conf->mirrors[d].rdev; reshape_request()
4418 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) reshape_request()
4422 b->bi_bdev = rdev2->bdev; reshape_request()
4424 rdev2->new_data_offset; reshape_request()
H A Draid5.c4121 struct md_rdev *rdev2 = rcu_dereference( analyse_stripe() local
4123 if (rdev2 == rdev) analyse_stripe()
4125 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe()
4127 atomic_inc(&rdev2->nr_pending); analyse_stripe()
4134 struct md_rdev *rdev2 = rcu_dereference( analyse_stripe() local
4136 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe()
4138 atomic_inc(&rdev2->nr_pending); analyse_stripe()
4143 struct md_rdev *rdev2 = rcu_dereference( analyse_stripe() local
4145 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe()
4147 atomic_inc(&rdev2->nr_pending); analyse_stripe()
/linux-4.1.27/net/wireless/
H A Dcore.c92 struct cfg80211_registered_device *rdev2; cfg80211_dev_check_name() local
113 list_for_each_entry(rdev2, &cfg80211_rdev_list, list) cfg80211_dev_check_name()
114 if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0) cfg80211_dev_check_name()

Completed in 250 milliseconds