rdev2 1344 drivers/md/md.c struct md_rdev *rdev2; rdev2 1414 drivers/md/md.c rdev_for_each(rdev2, mddev) { rdev2 1417 drivers/md/md.c int is_active = test_bit(In_sync, &rdev2->flags); rdev2 1419 drivers/md/md.c if (rdev2->raid_disk >= 0 && rdev2 1426 drivers/md/md.c if (rdev2->raid_disk < 0 || rdev2 1427 drivers/md/md.c test_bit(Faulty, &rdev2->flags)) rdev2 1430 drivers/md/md.c desc_nr = rdev2->raid_disk; rdev2 1433 drivers/md/md.c rdev2->desc_nr = desc_nr; rdev2 1434 drivers/md/md.c d = &sb->disks[rdev2->desc_nr]; rdev2 1436 drivers/md/md.c d->number = rdev2->desc_nr; rdev2 1437 drivers/md/md.c d->major = MAJOR(rdev2->bdev->bd_dev); rdev2 1438 drivers/md/md.c d->minor = MINOR(rdev2->bdev->bd_dev); rdev2 1440 drivers/md/md.c d->raid_disk = rdev2->raid_disk; rdev2 1442 drivers/md/md.c d->raid_disk = rdev2->desc_nr; /* compatibility */ rdev2 1443 drivers/md/md.c if (test_bit(Faulty, &rdev2->flags)) rdev2 1447 drivers/md/md.c if (test_bit(In_sync, &rdev2->flags)) rdev2 1456 drivers/md/md.c if (test_bit(WriteMostly, &rdev2->flags)) rdev2 1458 drivers/md/md.c if (test_bit(FailFast, &rdev2->flags)) rdev2 1903 drivers/md/md.c struct md_rdev *rdev2; rdev2 2021 drivers/md/md.c rdev_for_each(rdev2, mddev) rdev2 2022 drivers/md/md.c if (rdev2->desc_nr+1 > max_dev) rdev2 2023 drivers/md/md.c max_dev = rdev2->desc_nr+1; rdev2 2051 drivers/md/md.c rdev_for_each(rdev2, mddev) { rdev2 2052 drivers/md/md.c i = rdev2->desc_nr; rdev2 2053 drivers/md/md.c if (test_bit(Faulty, &rdev2->flags)) rdev2 2055 drivers/md/md.c else if (test_bit(In_sync, &rdev2->flags)) rdev2 2056 drivers/md/md.c sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); rdev2 2057 drivers/md/md.c else if (test_bit(Journal, &rdev2->flags)) rdev2 2059 drivers/md/md.c else if (rdev2->raid_disk >= 0) rdev2 2060 drivers/md/md.c sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); rdev2 2176 drivers/md/md.c struct md_rdev *rdev, *rdev2; rdev2 2184 drivers/md/md.c rdev_for_each_rcu(rdev2, mddev2) { rdev2 2185 drivers/md/md.c if (test_bit(Faulty, &rdev2->flags) || rdev2 2186 drivers/md/md.c test_bit(Journal, &rdev2->flags) || rdev2 2187 drivers/md/md.c rdev2->raid_disk == -1) rdev2 2190 drivers/md/md.c rdev2->bdev->bd_contains) { rdev2 3290 drivers/md/md.c struct md_rdev *rdev2; rdev2 3292 drivers/md/md.c rdev_for_each(rdev2, mddev) rdev2 3293 drivers/md/md.c if (rdev->bdev == rdev2->bdev && rdev2 3294 drivers/md/md.c rdev != rdev2 && rdev2 3296 drivers/md/md.c rdev2->data_offset, rdev2 3297 drivers/md/md.c rdev2->sectors)) { rdev2 5714 drivers/md/md.c struct md_rdev *rdev2; rdev2 5718 drivers/md/md.c rdev_for_each(rdev2, mddev) { rdev2 5719 drivers/md/md.c if (rdev < rdev2 && rdev2 5721 drivers/md/md.c rdev2->bdev->bd_contains) { rdev2 5725 drivers/md/md.c bdevname(rdev2->bdev,b2)); rdev2 6594 drivers/md/md.c struct md_rdev *rdev2; rdev2 6598 drivers/md/md.c rdev_for_each(rdev2, mddev) { rdev2 6599 drivers/md/md.c if (test_bit(Journal, &rdev2->flags)) { rdev2 9359 drivers/md/md.c struct md_rdev *rdev2; rdev2 9376 drivers/md/md.c rdev_for_each(rdev2, mddev) { rdev2 9377 drivers/md/md.c if (test_bit(Faulty, &rdev2->flags)) rdev2 9381 drivers/md/md.c role = le16_to_cpu(sb->dev_roles[rdev2->desc_nr]); rdev2 9383 drivers/md/md.c if (test_bit(Candidate, &rdev2->flags)) { rdev2 9385 drivers/md/md.c pr_info("md: Removing Candidate device %s because add failed\n", bdevname(rdev2->bdev,b)); rdev2 9386 drivers/md/md.c md_kick_rdev_from_array(rdev2); rdev2 9390 drivers/md/md.c clear_bit(Candidate, &rdev2->flags); rdev2 9393 drivers/md/md.c if (role != rdev2->raid_disk) { rdev2 9397 drivers/md/md.c if (rdev2->raid_disk == -1 && role != 0xffff && rdev2 9400 drivers/md/md.c rdev2->saved_raid_disk = role; rdev2 9401 drivers/md/md.c ret = remove_and_add_spares(mddev, rdev2); rdev2 9403 drivers/md/md.c bdevname(rdev2->bdev,b)); rdev2 9415 drivers/md/md.c md_error(mddev, rdev2); rdev2 9416 drivers/md/md.c clear_bit(Blocked, &rdev2->flags); rdev2 84 drivers/md/raid0.c struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; rdev2 109 drivers/md/raid0.c rdev_for_each(rdev2, mddev) { rdev2 115 drivers/md/raid0.c bdevname(rdev2->bdev,b2), rdev2 116 drivers/md/raid0.c (unsigned long long)rdev2->sectors); rdev2 117 drivers/md/raid0.c if (rdev2 == rdev1) { rdev2 122 drivers/md/raid0.c if (rdev2->sectors == rdev1->sectors) { rdev2 2201 drivers/md/raid10.c struct md_rdev *rdev2 = conf->mirrors[dw].rdev; rdev2 2203 drivers/md/raid10.c ok = rdev_set_badblocks(rdev2, addr, s, 0); rdev2 4611 drivers/md/raid10.c struct md_rdev *rdev2; rdev2 4613 drivers/md/raid10.c rdev2 = rcu_dereference(conf->mirrors[d].replacement); rdev2 4616 drivers/md/raid10.c rdev2 = rcu_dereference(conf->mirrors[d].rdev); rdev2 4619 drivers/md/raid10.c if (!rdev2 || test_bit(Faulty, &rdev2->flags)) rdev2 4622 drivers/md/raid10.c bio_set_dev(b, rdev2->bdev); rdev2 4624 drivers/md/raid10.c rdev2->new_data_offset; rdev2 4494 drivers/md/raid5.c struct md_rdev *rdev2 = rcu_dereference( rdev2 4496 drivers/md/raid5.c if (rdev2 == rdev) rdev2 4498 drivers/md/raid5.c if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { rdev2 4500 drivers/md/raid5.c atomic_inc(&rdev2->nr_pending); rdev2 4507 drivers/md/raid5.c struct md_rdev *rdev2 = rcu_dereference( rdev2 4509 drivers/md/raid5.c if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { rdev2 4511 drivers/md/raid5.c atomic_inc(&rdev2->nr_pending); rdev2 4516 drivers/md/raid5.c struct md_rdev *rdev2 = rcu_dereference( rdev2 4518 drivers/md/raid5.c if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { rdev2 4520 drivers/md/raid5.c atomic_inc(&rdev2->nr_pending); rdev2 95 net/wireless/core.c struct cfg80211_registered_device *rdev2; rdev2 119 net/wireless/core.c list_for_each_entry(rdev2, &cfg80211_rdev_list, list) rdev2 120 net/wireless/core.c if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0)