Lines Matching refs:part

63 	struct ptable_entry	part;  member
337 entry->part.start = ent->ent_lba_start; in ptable_gptread()
338 entry->part.end = ent->ent_lba_end; in ptable_gptread()
339 entry->part.index = i + 1; in ptable_gptread()
340 entry->part.type = gpt_parttype(ent->ent_type); in ptable_gptread()
396 offset = e1->part.start; in ptable_ebrread()
414 offset = e1->part.start + start; in ptable_ebrread()
421 entry->part.start = offset + start; in ptable_ebrread()
422 entry->part.end = entry->part.start + end - 1; in ptable_ebrread()
423 entry->part.index = index++; in ptable_ebrread()
424 entry->part.type = mbr_parttype(dp[0].dp_typ); in ptable_ebrread()
431 offset = e1->part.start + le32toh(dp[1].dp_start); in ptable_ebrread()
459 struct partition *part; in ptable_bsdread() local
492 part = &dl->d_partitions[0]; in ptable_bsdread()
493 raw_offset = le32toh(part[RAW_PART].p_offset); in ptable_bsdread()
494 for (i = 0; i < dl->d_npartitions; i++, part++) { in ptable_bsdread()
497 if (part->p_size == 0) in ptable_bsdread()
502 entry->part.start = le32toh(part->p_offset) - raw_offset; in ptable_bsdread()
503 entry->part.end = entry->part.start + in ptable_bsdread()
504 le32toh(part->p_size) - 1; in ptable_bsdread()
505 entry->part.type = bsd_parttype(part->p_fstype); in ptable_bsdread()
506 entry->part.index = i; /* starts from zero */ in ptable_bsdread()
507 entry->type.bsd = part->p_fstype; in ptable_bsdread()
543 entry->part.start = 0; in ptable_iso9660read()
544 entry->part.end = table->sectors; in ptable_iso9660read()
545 entry->part.type = PART_ISO9660; in ptable_iso9660read()
546 entry->part.index = 0; in ptable_iso9660read()
664 entry->part.start = start; in ptable_open()
665 entry->part.end = start + end - 1; in ptable_open()
666 entry->part.index = i + 1; in ptable_open()
667 entry->part.type = mbr_parttype(dp[i].dp_typ); in ptable_open()
722 ptable_getpart(const struct ptable *table, struct ptable_entry *part, int index) in ptable_getpart() argument
726 if (part == NULL || table == NULL) in ptable_getpart()
730 if (entry->part.index != index) in ptable_getpart()
732 memcpy(part, &entry->part, sizeof(*part)); in ptable_getpart()
757 ptable_getbestpart(const struct ptable *table, struct ptable_entry *part) in ptable_getbestpart() argument
762 if (part == NULL || table == NULL) in ptable_getbestpart()
795 if (entry->part.type == PART_DOS) in ptable_getbestpart()
797 else if (entry->part.type == PART_FREEBSD_UFS || in ptable_getbestpart()
798 entry->part.type == PART_FREEBSD_ZFS) in ptable_getbestpart()
810 memcpy(part, &best->part, sizeof(*part)); in ptable_getbestpart()
827 sprintf(name, "s%d", entry->part.index); in ptable_iterate()
832 sprintf(name, "p%d", entry->part.index); in ptable_iterate()
837 entry->part.index); in ptable_iterate()
838 if ((ret = iter(arg, name, &entry->part)) != 0) in ptable_iterate()