Lines Matching refs:part
808 struct gpt_part_header *part; in initialise_gpt() local
843 part = (struct gpt_part_header *)gpt; in initialise_gpt()
851 memcpy(part->partGUID, iso_uuid, sizeof(uuid_t)); in initialise_gpt()
852 memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t)); in initialise_gpt()
853 part->firstLBA = lendian_64(0); in initialise_gpt()
854 part->lastLBA = lendian_64(psize - 1); in initialise_gpt()
855 ascii_to_utf16le(part->name, "ISOHybrid ISO"); in initialise_gpt()
858 part++; in initialise_gpt()
860 memcpy(part->partGUID, part_uuid, sizeof(uuid_t)); in initialise_gpt()
861 memcpy(part->partTypeGUID, basic_partition, sizeof(uuid_t)); in initialise_gpt()
862 part->firstLBA = lendian_64(efi_lba * 4); in initialise_gpt()
863 part->lastLBA = lendian_64(part->firstLBA + efi_count - 1); in initialise_gpt()
864 ascii_to_utf16le(part->name, "ISOHybrid"); in initialise_gpt()
871 part++; in initialise_gpt()
873 memcpy(part->partGUID, part_uuid, sizeof(uuid_t)); in initialise_gpt()
874 memcpy(part->partTypeGUID, hfs_partition, sizeof(uuid_t)); in initialise_gpt()
875 part->firstLBA = lendian_64(mac_lba * 4); in initialise_gpt()
876 part->lastLBA = lendian_64(part->firstLBA + mac_count - 1); in initialise_gpt()
877 ascii_to_utf16le(part->name, "ISOHybrid"); in initialise_gpt()
879 part--; in initialise_gpt()
882 part--; in initialise_gpt()
884 header->partitionEntriesCRC = lendian_int (chksum_crc32((uint8_t *)part, in initialise_gpt()
894 struct apple_part_header *part = (struct apple_part_header *)gpt; in initialise_apm() local
896 part->signature = bendian_short(0x504d); in initialise_apm()
897 part->map_count = bendian_int(apm_parts); in initialise_apm()
898 part->start_block = bendian_int(1); in initialise_apm()
899 part->block_count = bendian_int(4); in initialise_apm()
900 strcpy(part->name, "Apple"); in initialise_apm()
901 strcpy(part->type, "Apple_partition_map"); in initialise_apm()
902 part->data_start = bendian_int(0); in initialise_apm()
903 part->data_count = bendian_int(10); in initialise_apm()
904 part->status = bendian_int(0x03); in initialise_apm()
906 part = (struct apple_part_header *)(gpt + 2048); in initialise_apm()
908 part->signature = bendian_short(0x504d); in initialise_apm()
909 part->map_count = bendian_int(3); in initialise_apm()
910 part->start_block = bendian_int(efi_lba); in initialise_apm()
911 part->block_count = bendian_int(efi_count / 4); in initialise_apm()
912 strcpy(part->name, "EFI"); in initialise_apm()
913 strcpy(part->type, "Apple_HFS"); in initialise_apm()
914 part->data_start = bendian_int(0); in initialise_apm()
915 part->data_count = bendian_int(efi_count / 4); in initialise_apm()
916 part->status = bendian_int(0x33); in initialise_apm()
918 part = (struct apple_part_header *)(gpt + 4096); in initialise_apm()
922 part->signature = bendian_short(0x504d); in initialise_apm()
923 part->map_count = bendian_int(3); in initialise_apm()
924 part->start_block = bendian_int(mac_lba); in initialise_apm()
925 part->block_count = bendian_int(mac_count / 4); in initialise_apm()
926 strcpy(part->name, "EFI"); in initialise_apm()
927 strcpy(part->type, "Apple_HFS"); in initialise_apm()
928 part->data_start = bendian_int(0); in initialise_apm()
929 part->data_count = bendian_int(mac_count / 4); in initialise_apm()
930 part->status = bendian_int(0x33); in initialise_apm()
932 part->signature = bendian_short(0x504d); in initialise_apm()
933 part->map_count = bendian_int(3); in initialise_apm()
934 part->start_block = bendian_int((start/2048) + 10); in initialise_apm()
935 part->block_count = bendian_int(efi_lba - start/2048 - 10); in initialise_apm()
936 strcpy(part->name, "ISO"); in initialise_apm()
937 strcpy(part->type, "Apple_Free"); in initialise_apm()
938 part->data_start = bendian_int(0); in initialise_apm()
939 part->data_count = bendian_int(efi_lba - start/2048 - 10); in initialise_apm()
940 part->status = bendian_int(0x01); in initialise_apm()