Lines Matching refs:__within_range
316 static bool __within_range(long v, long min, long max) in __within_range() function
426 return __within_range(rs->md.level, 4, 6); in rs_is_raid456()
474 return __within_range(rt->level, 4, 5); in rt_is_raid45()
486 return __within_range(rt->level, 4, 6); in rt_is_raid456()
1312 if (!__within_range(value, 0, rs->raid_disks - 1)) { in parse_raid_params()
1333 if (!__within_range(value, 0, rs->md.raid_disks - 1)) { in parse_raid_params()
1392 if (!__within_range(abs(value), 1, MAX_RAID_DEVICES - rt->minimal_devs)) { in parse_raid_params()
1450 if (!__within_range(value, 2, rs->md.raid_disks)) { in parse_raid_params()
1743 if (__within_range(mddev->new_level, 4, 6) && in rs_check_takeover()
1781 if (__within_range(mddev->new_level, 4, 5) && in rs_check_takeover()
1788 if (__within_range(mddev->new_level, 4, 5) && in rs_check_takeover()
1815 if (__within_range(mddev->new_level, 5, 6) && in rs_check_takeover()
1839 … __within_range(mddev->new_layout, ALGORITHM_LEFT_ASYMMETRIC_6, ALGORITHM_RIGHT_SYMMETRIC_6))) in rs_check_takeover()
1857 __within_range(mddev->new_layout, ALGORITHM_LEFT_ASYMMETRIC, ALGORITHM_RIGHT_SYMMETRIC))) in rs_check_takeover()
3033 if (!__within_range(num_raid_devs, 1, MAX_RAID_DEVICES)) { in raid_ctr()
3355 return __within_range(state, 0, ARRAY_SIZE(sync_strs) - 1) ? sync_strs[state] : "undef"; in sync_str()