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