Lines Matching refs:dev_roles
1725 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_load()
1726 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL))) in super_1_load()
1865 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_validate()
1866 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_validate()
1889 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in super_1_validate()
2074 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2092 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY); in super_1_sync()
2094 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2096 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_JOURNAL); in super_1_sync()
2098 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2100 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2572 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in does_sb_need_changing()
9742 role = le16_to_cpu(sb->dev_roles[rdev2->desc_nr]); in check_sb_changes()