Lines Matching defs:partition
130 device_contains_partition(EfiDevice *device, boot::Partition *partition)
132 EFI::Header *header = (EFI::Header*)partition->content_cookie;
134 // check if device is GPT, and contains partition entry
147 // partition->cookie == int partition entry index
148 uint32 index = (uint32)(addr_t)partition->cookie;
165 // Our partition has an EFI header, but we couldn't find one, so bail
169 if ((partition->offset + partition->size) <= device->Size())
196 // All block devices has one for the disk and one per partition
197 // There is a special case for a device with one fixed partition
199 // So find all disk block devices and let Haiku do partition scan
247 boot::Partition *partition = NULL;
248 while ((partition = (boot::Partition*)iterator.Next()) != NULL) {
249 if (device_contains_partition((EfiDevice*)bootDevice, partition)) {
250 bootPartitions->Insert(partition);
276 // ...HARD_DISK, as we pick partition and have checksum (no need to use _CD)