Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/md/
Draid0.c67 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() local
90 rdev_for_each(rdev2, mddev) { in create_strip_zones()
96 rdev2->bdev, in create_strip_zones()
97 (unsigned long long)rdev2->sectors); in create_strip_zones()
98 if (rdev2 == rdev1) { in create_strip_zones()
103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
Dmd.c1397 struct md_rdev *rdev2; in super_90_sync() local
1467 rdev_for_each(rdev2, mddev) { in super_90_sync()
1470 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync()
1472 if (rdev2->raid_disk >= 0 && in super_90_sync()
1479 if (rdev2->raid_disk < 0 || in super_90_sync()
1480 test_bit(Faulty, &rdev2->flags)) in super_90_sync()
1483 desc_nr = rdev2->raid_disk; in super_90_sync()
1486 rdev2->desc_nr = desc_nr; in super_90_sync()
1487 d = &sb->disks[rdev2->desc_nr]; in super_90_sync()
1489 d->number = rdev2->desc_nr; in super_90_sync()
[all …]
Draid10.c2585 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error() local
2587 ok = rdev_set_badblocks(rdev2, addr, s, 0); in fix_recovery_read_error()
4958 struct md_rdev *rdev2; in reshape_request() local
4960 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request()
4963 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request()
4966 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request()
4969 bio_set_dev(b, rdev2->bdev); in reshape_request()
4971 rdev2->new_data_offset; in reshape_request()
Draid5.c4807 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local
4809 if (rdev2 == rdev) in analyse_stripe()
4811 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe()
4813 atomic_inc(&rdev2->nr_pending); in analyse_stripe()
4820 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local
4822 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe()
4824 atomic_inc(&rdev2->nr_pending); in analyse_stripe()
4829 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local
4831 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe()
4833 atomic_inc(&rdev2->nr_pending); in analyse_stripe()
/linux-6.1.9/net/wireless/
Dcore.c95 struct cfg80211_registered_device *rdev2; in cfg80211_dev_check_name() local
119 list_for_each_entry(rdev2, &cfg80211_rdev_list, list) in cfg80211_dev_check_name()
120 if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0) in cfg80211_dev_check_name()