Lines Matching refs:max_dev
1377 int size = 256 + le32_to_cpu(sb->max_dev)*2; in calc_sb_1_csum()
1439 le32_to_cpu(sb->max_dev) > (4096-256)/2 || in super_1_load()
1459 rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256; in super_1_load()
1566 rdev->desc_nr < le32_to_cpu(sb->max_dev) && in super_1_validate()
1584 rdev->desc_nr >= le32_to_cpu(sb->max_dev)) { in super_1_validate()
1616 int max_dev, i; in super_1_sync() local
1665 max_dev = 0; in super_1_sync()
1667 if (rdev2->desc_nr+1 > max_dev) in super_1_sync()
1668 max_dev = rdev2->desc_nr+1; in super_1_sync()
1670 if (max_dev > le32_to_cpu(sb->max_dev)) { in super_1_sync()
1672 sb->max_dev = cpu_to_le32(max_dev); in super_1_sync()
1673 rdev->sb_size = max_dev * 2 + 256; in super_1_sync()
1678 max_dev = le32_to_cpu(sb->max_dev); in super_1_sync()
1680 for (i=0; i<max_dev;i++) in super_1_sync()
2100 le32_to_cpu(sb->max_dev) in print_sb_1()