Lines Matching refs:dev_roles
1770 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_load()
1771 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_load()
1913 (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX || in super_1_validate()
1914 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)) in super_1_validate()
1961 role = le16_to_cpu(freshest_sb->dev_roles[rdev->desc_nr]); in super_1_validate()
1965 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in super_1_validate()
2149 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2167 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY); in super_1_sync()
2169 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2171 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_JOURNAL); in super_1_sync()
2173 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2175 sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE); in super_1_sync()
2601 role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]); in does_sb_need_changing()
9969 role = le16_to_cpu(sb->dev_roles[rdev2->desc_nr]); in check_sb_changes()