Home
last modified time | relevance | path

Searched refs:d_partitions (Results 1 – 17 of 17) sorted by relevance

/NextBSD/sbin/bsdlabel/
HDbsdlabel.c308 if (lp->d_partitions[i].p_size) in fixlabel()
312 dp = &lp->d_partitions[0]; in fixlabel()
400 if (lab.d_partitions[i].p_size) in writelabel()
401 lab.d_partitions[i].p_offset += lba_offset; in writelabel()
532 if (lab.d_partitions[i].p_size) in readlabel()
533 lba = MIN(lba, lab.d_partitions[i].p_offset); in readlabel()
535 if (lba != 0 && lab.d_partitions[RAW_PART].p_offset == lba) { in readlabel()
537 if (lab.d_partitions[i].p_size) in readlabel()
538 lab.d_partitions[i].p_offset -= lba; in readlabel()
604 pp = lp->d_partitions; in display()
[all …]
/NextBSD/sys/geom/part/
HDg_part_bsd64.c99 } d_partitions[MAXPARTITIONS64];/* actually may be more */ member
319 ressize = offsetof(struct disklabel64, d_partitions[RESPARTITIONS64]); in g_part_bsd64_create()
518 d_partitions[basetable->gpt_entries]) - in g_part_bsd64_read()
552 v64 = le64toh(dlp->d_partitions[index].p_boffset); in g_part_bsd64_read()
553 sz = le64toh(dlp->d_partitions[index].p_bsize); in g_part_bsd64_read()
561 le_uuid_dec(&dlp->d_partitions[index].p_type_uuid, in g_part_bsd64_read()
563 le_uuid_dec(&dlp->d_partitions[index].p_stor_uuid, in g_part_bsd64_read()
565 entry->fstype = dlp->d_partitions[index].p_fstype; in g_part_bsd64_read()
648 le64enc(&dlp->d_partitions[index].p_boffset, in g_part_bsd64_write()
650 le64enc(&dlp->d_partitions[index].p_bsize, pp->sectorsize * in g_part_bsd64_write()
[all …]
/NextBSD/sys/boot/pc98/libpc98/
HDbiosdisk.c380 if ((lp->d_partitions[i].p_fstype == FS_BSDFFS) || in bd_printbsdslice()
381 (lp->d_partitions[i].p_fstype == FS_SWAP) || in bd_printbsdslice()
382 (lp->d_partitions[i].p_fstype == FS_VINUM) || in bd_printbsdslice()
383 ((lp->d_partitions[i].p_fstype == FS_UNUSED) && in bd_printbsdslice()
389 (lp->d_partitions[i].p_fstype == FS_SWAP) ? "swap " : in bd_printbsdslice()
390 (lp->d_partitions[i].p_fstype == FS_VINUM) ? "vinum" : in bd_printbsdslice()
392 display_size(lp->d_partitions[i].p_size), in bd_printbsdslice()
393 lp->d_partitions[i].p_offset, in bd_printbsdslice()
394 lp->d_partitions[i].p_offset + lp->d_partitions[i].p_size); in bd_printbsdslice()
397 (lp->d_partitions[i].p_fstype == FS_SWAP) ? "swap" : in bd_printbsdslice()
[all …]
/NextBSD/sys/boot/arm/ixp425/boot2/
HDboot2.c382 !d->d_partitions[bootpart].p_size); in dskread()
383 if (!d->d_partitions[bootpart].p_size) { in dskread()
388 swap32(d->d_partitions[bootpart].p_offset), in dskread()
389 swap32(d->d_partitions[RAW_PART].p_offset)); in dskread()
390 dsk_start += swap32(d->d_partitions[bootpart].p_offset); in dskread()
391 dsk_start -= swap32(d->d_partitions[RAW_PART].p_offset); in dskread()
/NextBSD/usr.bin/mkimg/
HDbsd.c104 dp = &d->d_partitions[RAW_PART]; in bsd_write()
108 dp = &d->d_partitions[n]; in bsd_write()
117 dp = &d->d_partitions[bsdparts]; in bsd_write()
/NextBSD/sys/geom/
HDgeom_bsd.c131 rawoffset = (off_t)dl.d_partitions[RAW_PART].p_offset * dl.d_secsize; in g_bsd_modify()
134 ppp = &dl.d_partitions[i]; in g_bsd_modify()
151 ppp = &dl.d_partitions[i]; in g_bsd_modify()
167 ppp = &dl.d_partitions[u]; in g_bsd_modify()
360 ms->ondisk.d_partitions[pp->index].p_fstype); in g_bsd_dumpconf()
363 ms->ondisk.d_partitions[pp->index].p_fstype); in g_bsd_dumpconf()
HDgeom_bsd_enc.c131 bsd_partition_le_dec(ptr + 148 + 16 * i, &d->d_partitions[i]); in bsd_disklabel_le_dec()
190 bsd_partition_le_enc(ptr + 148 + 16 * i, &d->d_partitions[i]); in bsd_disklabel_le_enc()
/NextBSD/sys/boot/arm/at91/boot2/
HDboot2.c318 if (!d->d_partitions[0].p_size) { in dskread()
322 dsk_start += d->d_partitions[0].p_offset; in dskread()
323 dsk_start -= d->d_partitions[RAW_PART].p_offset; in dskread()
/NextBSD/sys/sys/
HDdisklabel.h144 } d_partitions[MAXPARTITIONS]; /* actually may be more */ member
159 end = (u_int16_t *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
/NextBSD/sys/boot/mips/beri/boot2/
HDboot2.c652 !(le32toh(d->d_partitions[dsk.part].p_size))) { in dskread()
656 dsk.start += le32toh(d->d_partitions[dsk.part].p_offset); in dskread()
657 dsk.start -= le32toh(d->d_partitions[RAW_PART].p_offset); in dskread()
/NextBSD/sys/boot/i386/boot2/
HDboot2.c551 !d->d_partitions[dsk.part].p_size) { in dskread()
555 dsk.start += d->d_partitions[dsk.part].p_offset; in dskread()
556 dsk.start -= d->d_partitions[RAW_PART].p_offset; in dskread()
/NextBSD/sbin/newfs/
HDnewfs.c361 pp = &lp->d_partitions[RAW_PART]; in main()
363 pp = &lp->d_partitions[*cp - 'a']; in main()
/NextBSD/sys/boot/pc98/boot2/
HDboot2.c684 !d->d_partitions[dsk.part].p_size) { in dskread()
688 dsk.start += d->d_partitions[dsk.part].p_offset; in dskread()
689 dsk.start -= d->d_partitions[RAW_PART].p_offset; in dskread()
/NextBSD/sys/sys/mach/device/
HDdisk_status.h223 } d_partitions[PARTITIONS]; /* actually may be more */ member
/NextBSD/lib/libc/gen/
HDdisklabel.c127 pp = &dp->d_partitions[0]; in getdiskbyname()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_read_open_filename.c325 dl.d_partitions[DISKPART(st.st_rdev)].p_size > 0) { in file_open()
/NextBSD/sys/boot/common/
HDpart.c476 part = &dl->d_partitions[0]; in ptable_bsdread()