Lines Matching refs:rtp
636 static bool __got_raid10(struct raid_type *rtp, const int layout)
638 if (rtp->level == 10) {
639 switch (rtp->algorithm) {
658 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types);
660 while (rtp-- > raid_types)
661 if (!strcasecmp(rtp->name, name))
662 return rtp;
670 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types);
672 while (rtp-- > raid_types) {
674 if (rtp->level == level &&
675 (__got_raid10(rtp, layout) || rtp->algorithm == layout))
676 return rtp;