| /openbsd/src/sbin/disklabel/ |
| D | disklabel.c | 428 (void)fprintf(f, "o%c#%llu:", c, DL_GETPOFFSET(pp)); in makedisktab() 499 DL_GETPSIZE(pp), DL_GETPOFFSET(pp)); in display_partition() 503 DL_GETPOFFSET(pp)); in display_partition() 1048 if (DL_GETPSIZE(pp) == 0 && DL_GETPOFFSET(pp) != 0) in checklabel() 1050 part, DL_GETPOFFSET(pp)); in checklabel() 1056 if (i != RAW_PART && DL_GETPOFFSET(pp) % lp->d_secpercyl) in checklabel() 1063 i == 0 && DL_GETPSIZE(pp) != 0 && DL_GETPOFFSET(pp) != 0) { in checklabel() 1069 if (DL_GETPOFFSET(pp) > DL_GETDSIZE(lp)) { in checklabel() 1072 } else if (DL_GETPOFFSET(pp) + DL_GETPSIZE(pp) > in checklabel() 1088 if (DL_GETPSIZE(pp) || DL_GETPOFFSET(pp)) in checklabel() [all …]
|
| D | editor.c | 537 pstart = DL_GETPOFFSET(pp); in editor_allocspace() 739 if (DL_GETPOFFSET(pp) + ui > ending_sector) { in editor_resize() 765 off = DL_GETPOFFSET(prev) + DL_GETPSIZE(prev); in editor_resize() 944 u_int64_t o1 = DL_GETPOFFSET(p1); in partition_cmp() 945 u_int64_t o2 = DL_GETPOFFSET(p2); in partition_cmp() 1193 if (DL_GETPOFFSET(spp[i]) + DL_GETPSIZE(spp[i]) > in has_overlap() 1194 DL_GETPOFFSET(spp[i+1])) in has_overlap() 1371 if (DL_GETPOFFSET(spp[0]) > starting_sector) { in free_chunks() 1373 chunks[0].stop = DL_GETPOFFSET(spp[0]); in free_chunks() 1377 start = DL_GETPOFFSET(spp[i]) + DL_GETPSIZE(spp[i]); in free_chunks() [all …]
|
| /openbsd/src/sys/arch/sparc64/sparc64/ |
| D | disksubr.c | 413 if (DL_GETPOFFSET(npp) % secpercyl) in disklabel_bsd_to_sun() 415 spp->sdkp_cyloffset = DL_GETPOFFSET(npp) / secpercyl; in disklabel_bsd_to_sun() 427 if (DL_GETPOFFSET(npp) % secpercyl) in disklabel_bsd_to_sun() 429 spp->sdkp_cyloffset = DL_GETPOFFSET(npp) / secpercyl; in disklabel_bsd_to_sun()
|
| /openbsd/src/sys/arch/luna88k/luna88k/ |
| D | disksubr.c | 313 if (sl->sl_rpm == 0 && DL_GETPOFFSET(&lp->d_partitions[2]) != 0) { in disklabel_om_to_bsd() 408 spp->sdkp_cyloffset = DL_GETPOFFSET(npp); /* UniOS */ in disklabel_bsd_to_om() 421 spp->sdkp_cyloffset = DL_GETPOFFSET(npp); in disklabel_bsd_to_om()
|
| /openbsd/src/sys/arch/sparc64/stand/ofwboot/ |
| D | softraid_sparc64.c | 160 DL_GETPOFFSET(pp)); in srprobe() 350 DL_GETPOFFSET(&sr_dip->disklabel.d_partitions[bv->sbv_part - 'a']); in sr_strategy() 362 ofdev.partoff = DL_GETPOFFSET(pp); in sr_strategy()
|
| /openbsd/src/usr.sbin/installboot/ |
| D | bootstrap.c | 95 if ((u_int64_t)bootsec <= DL_GETPOFFSET(pp)) in bootstrap()
|
| D | landisk_installboot.c | 180 if (bootpos + (u_int64_t)bootsec <= DL_GETPOFFSET(pp)) in md_bootstrap()
|
| D | loongson_installboot.c | 243 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
|
| D | efi_installboot.c | 556 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findgptefisys() 596 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
|
| D | macppc_installboot.c | 286 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
|
| D | octeon_installboot.c | 286 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
|
| D | powerpc64_installboot.c | 321 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
|
| /openbsd/src/sys/arch/loongson/stand/boot/ |
| D | dev.c | 159 pi->partoff = DL_GETPOFFSET(&pi->label.d_partitions[part]); in pmon_ioopen()
|
| /openbsd/src/sys/arch/luna88k/stand/boot/ |
| D | ufs_disksubr.c | 198 if (slp->sl_rpm == 0 && DL_GETPOFFSET(&lp->d_partitions[2]) != 0) { in readdisklabel()
|
| /openbsd/src/sys/kern/ |
| D | subr_disk.c | 293 if (DL_GETPOFFSET(&lp->d_partitions[RAW_PART]) != 0) in checkdisklabel() 295 DL_GETPOFFSET(&lp->d_partitions[RAW_PART])); in checkdisklabel() 905 (DL_GETPOFFSET(npp) != DL_GETPOFFSET(opp) || in setdisklabel() 1032 sn += DL_SECTOBLK(lp, DL_GETPOFFSET(&lp->d_partitions[part])); in diskerr()
|
| /openbsd/src/sys/arch/amd64/stand/efiboot/ |
| D | diskprobe.c | 295 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
|
| /openbsd/src/sys/sys/ |
| D | disklabel.h | 163 #define DL_GETPOFFSET(p) (((u_int64_t)(p)->p_offseth << 32) + (p)->p_offset) macro
|
| /openbsd/src/sys/dev/ |
| D | rd.c | 226 off = DL_GETPOFFSET(p) * sc->sc_dk.dk_label->d_secsize + in rdstrategy()
|
| /openbsd/src/sys/arch/amd64/stand/libsa/ |
| D | diskprobe.c | 403 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
|
| D | softraid_amd64.c | 163 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()
|
| /openbsd/src/sys/arch/i386/stand/libsa/ |
| D | diskprobe.c | 480 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
|
| D | softraid_i386.c | 159 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()
|
| /openbsd/src/sys/dev/ata/ |
| D | wd.c | 465 DL_GETPOFFSET(&lp->d_partitions[DISKPART(bp->b_dev)]))); in __wdstart() 929 blkno += DL_GETPOFFSET(&lp->d_partitions[part]); in wddump()
|
| /openbsd/src/sys/arch/alpha/stand/ |
| D | installboot.c | 172 partoffset = DL_GETPOFFSET(&dl.d_partitions[minor(bootsb.st_dev) % in main()
|
| /openbsd/src/sys/arch/riscv64/stand/efiboot/ |
| D | softraid_riscv64.c | 160 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()
|