Home
last modified time | relevance | path

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

/freebsd/sbin/bsdlabel/
H A Dbsdlabel.c298 if (lp->d_partitions[i].p_size) in fixlabel()
302 dp = &lp->d_partitions[0]; in fixlabel()
388 if (lab.d_partitions[i].p_size) in writelabel()
389 lab.d_partitions[i].p_offset += lba_offset; in writelabel()
489 if (lab.d_partitions[i].p_size) in readlabel()
490 lba = MIN(lba, lab.d_partitions[i].p_offset); in readlabel()
492 if (lba != 0 && lab.d_partitions[RAW_PART].p_offset == lba) { in readlabel()
494 if (lab.d_partitions[i].p_size) in readlabel()
495 lab.d_partitions[i].p_offset -= lba; in readlabel()
561 pp = lp->d_partitions; in display()
[all …]
/freebsd/sys/geom/part/
H A Dg_part_bsd64.c97 } 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()
645 le64enc(&dlp->d_partitions[index].p_boffset, in g_part_bsd64_write()
647 le64enc(&dlp->d_partitions[index].p_bsize, pp->sectorsize * in g_part_bsd64_write()
[all …]
/freebsd/usr.bin/mkimg/
H A Dbsd.c100 dp = &d->d_partitions[BSD_PART_RAW]; in bsd_write()
104 dp = &d->d_partitions[n]; in bsd_write()
113 dp = &d->d_partitions[bsdparts]; in bsd_write()
/freebsd/stand/efi/boot1/
H A Dufs_module.c119 dl->d_partitions[0].p_offset == 0) in init_dev()
121 devinfo->partoff = dl->d_partitions[0].p_offset; in init_dev()
/freebsd/sys/geom/
H A Dgeom_bsd_enc.c130 bsd_partition_le_dec(ptr + 148 + 16 * i, &d->d_partitions[i]); in bsd_disklabel_le_dec()
189 bsd_partition_le_enc(ptr + 148 + 16 * i, &d->d_partitions[i]); in bsd_disklabel_le_enc()
/freebsd/sys/sys/
H A Ddisklabel.h81 end = (u_int16_t *)&lp->d_partitions[lp->d_npartitions]; in dkcksum()
/freebsd/stand/i386/boot2/
H A Dboot2.c519 !d->d_partitions[dsk.part].p_size) { in dskread()
523 dsk.start += d->d_partitions[dsk.part].p_offset; in dskread()
524 dsk.start -= d->d_partitions[RAW_PART].p_offset; in dskread()
/freebsd/sys/sys/disk/
H A Dbsd.h126 } d_partitions[BSD_NPARTS_MIN]; /* actually may be more */ member
/freebsd/sbin/newfs/
H A Dnewfs.c361 pp = &lp->d_partitions[RAW_PART]; in main()
363 pp = &lp->d_partitions[*cp - 'a']; in main()
/freebsd/lib/libc/gen/
H A Ddisklabel.c123 pp = &dp->d_partitions[0]; in getdiskbyname()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_open_filename.c368 dl.d_partitions[DISKPART(st.st_rdev)].p_size > 0) { in file_open()
/freebsd/stand/common/
H A Dpart.c492 part = &dl->d_partitions[0]; in ptable_bsdread()