Lines Matching full:rtp
637 static bool __got_raid10(struct raid_type *rtp, const int layout) in __got_raid10() argument
639 if (rtp->level == 10) { in __got_raid10()
640 switch (rtp->algorithm) { in __got_raid10()
659 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types); in get_raid_type() local
661 while (rtp-- > raid_types) in get_raid_type()
662 if (!strcasecmp(rtp->name, name)) in get_raid_type()
663 return rtp; in get_raid_type()
671 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types); in get_raid_type_by_ll() local
673 while (rtp-- > raid_types) { in get_raid_type_by_ll()
675 if (rtp->level == level && in get_raid_type_by_ll()
676 (__got_raid10(rtp, layout) || rtp->algorithm == layout)) in get_raid_type_by_ll()
677 return rtp; in get_raid_type_by_ll()