Lines Matching refs:rtp
635 static bool __got_raid10(struct raid_type *rtp, const int layout)
637 if (rtp->level == 10) {
638 switch (rtp->algorithm) {
657 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types);
659 while (rtp-- > raid_types)
660 if (!strcasecmp(rtp->name, name))
661 return rtp;
669 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types);
671 while (rtp-- > raid_types) {
673 if (rtp->level == level &&
674 (__got_raid10(rtp, layout) || rtp->algorithm == layout))
675 return rtp;