Searched refs:rdev2 (Results 1 – 5 of 5) sorted by relevance
/drivers/md/ |
D | md.c | 1425 struct md_rdev *rdev2; in super_90_sync() local 1495 rdev_for_each(rdev2, mddev) { in super_90_sync() 1498 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync() 1500 if (rdev2->raid_disk >= 0 && in super_90_sync() 1507 if (rdev2->raid_disk < 0 || in super_90_sync() 1508 test_bit(Faulty, &rdev2->flags)) in super_90_sync() 1511 desc_nr = rdev2->raid_disk; in super_90_sync() 1514 rdev2->desc_nr = desc_nr; in super_90_sync() 1515 d = &sb->disks[rdev2->desc_nr]; in super_90_sync() 1517 d->number = rdev2->desc_nr; in super_90_sync() [all …]
|
D | raid0.c | 67 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()
|
D | raid10.c | 2586 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error() local 2588 ok = rdev_set_badblocks(rdev2, addr, s, 0); in fix_recovery_read_error() 4959 struct md_rdev *rdev2; in reshape_request() local 4961 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request() 4964 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request() 4967 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request() 4970 bio_set_dev(b, rdev2->bdev); in reshape_request() 4972 rdev2->new_data_offset; in reshape_request()
|
D | raid5.c | 4814 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4816 if (rdev2 == rdev) in analyse_stripe() 4818 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4820 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4827 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4829 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4831 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4836 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4838 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4840 atomic_inc(&rdev2->nr_pending); in analyse_stripe()
|
/drivers/regulator/ |
D | core.c | 219 struct regulator_dev *rdev2, in regulator_lock_two() argument 230 ret = regulator_lock_nested(rdev2, ww_ctx); in regulator_lock_two() 244 ww_mutex_lock_slow(&rdev2->mutex, ww_ctx); in regulator_lock_two() 245 rdev2->ref_cnt++; in regulator_lock_two() 246 rdev2->mutex_owner = current; in regulator_lock_two() 252 rdev1 = rdev2; in regulator_lock_two() 253 rdev2 = tmp; in regulator_lock_two() 274 struct regulator_dev *rdev2, in regulator_unlock_two() argument 277 regulator_unlock(rdev2); in regulator_unlock_two()
|