Lines Matching refs:rtp
631 static bool __got_raid10(struct raid_type *rtp, const int layout) in __got_raid10() argument
633 if (rtp->level == 10) { in __got_raid10()
634 switch (rtp->algorithm) { in __got_raid10()
653 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types); in get_raid_type() local
655 while (rtp-- > raid_types) in get_raid_type()
656 if (!strcasecmp(rtp->name, name)) in get_raid_type()
657 return rtp; in get_raid_type()
665 struct raid_type *rtp = raid_types + ARRAY_SIZE(raid_types); in get_raid_type_by_ll() local
667 while (rtp-- > raid_types) { in get_raid_type_by_ll()
669 if (rtp->level == level && in get_raid_type_by_ll()
670 (__got_raid10(rtp, layout) || rtp->algorithm == layout)) in get_raid_type_by_ll()
671 return rtp; in get_raid_type_by_ll()