Lines Matching refs:part
516 check_bootable_part(kdev_t dev, int blk, struct mac_partition *part) in check_bootable_part() argument
520 macpart_fix_string(part->processor, 16); in check_bootable_part()
521 macpart_fix_string(part->name, 32); in check_bootable_part()
522 macpart_fix_string(part->type, 32); in check_bootable_part()
524 if ((be32_to_cpu(part->status) & MAC_STATUS_BOOTABLE) in check_bootable_part()
525 && strcasecmp(part->processor, "powerpc") == 0) in check_bootable_part()
528 if (strcasecmp(part->type, "Apple_UNIX_SVR2") == 0 in check_bootable_part()
529 || (strnicmp(part->type, "Linux", 5) == 0 in check_bootable_part()
530 && strcasecmp(part->type, "Linux_swap") != 0)) { in check_bootable_part()
534 l = strlen(part->name); in check_bootable_part()
535 if (strcmp(part->name, "/") == 0) in check_bootable_part()
538 if (strnicmp(part->name + i, "root", in check_bootable_part()
544 if (strnicmp(part->name, "swap", 4) == 0) in check_bootable_part()
557 struct mac_partition *part; in check_bootable_disk() local
576 part = (struct mac_partition *) (data + secsize%512); in check_bootable_disk()
577 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in check_bootable_disk()
581 blocks_in_map = be32_to_cpu(part->map_count); in check_bootable_disk()
588 part = (struct mac_partition *) (data + pos%512); in check_bootable_disk()
589 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in check_bootable_disk()
591 check_bootable_part(dev, blk, part); in check_bootable_disk()