Home
last modified time | relevance | path

Searched refs:DL_GETPOFFSET (Results 1 – 25 of 35) sorted by relevance

12

/openbsd/src/sbin/disklabel/
Ddisklabel.c428 (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 …]
Deditor.c537 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/
Ddisksubr.c413 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/
Ddisksubr.c313 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/
Dsoftraid_sparc64.c160 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/
Dbootstrap.c95 if ((u_int64_t)bootsec <= DL_GETPOFFSET(pp)) in bootstrap()
Dlandisk_installboot.c180 if (bootpos + (u_int64_t)bootsec <= DL_GETPOFFSET(pp)) in md_bootstrap()
Dloongson_installboot.c243 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
Defi_installboot.c556 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findgptefisys()
596 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
Dmacppc_installboot.c286 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
Docteon_installboot.c286 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
Dpowerpc64_installboot.c321 DL_GETPOFFSET(&dl->d_partitions[i]) == start) in findmbrfat()
/openbsd/src/sys/arch/loongson/stand/boot/
Ddev.c159 pi->partoff = DL_GETPOFFSET(&pi->label.d_partitions[part]); in pmon_ioopen()
/openbsd/src/sys/arch/luna88k/stand/boot/
Dufs_disksubr.c198 if (slp->sl_rpm == 0 && DL_GETPOFFSET(&lp->d_partitions[2]) != 0) { in readdisklabel()
/openbsd/src/sys/kern/
Dsubr_disk.c293 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/
Ddiskprobe.c295 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
/openbsd/src/sys/sys/
Ddisklabel.h163 #define DL_GETPOFFSET(p) (((u_int64_t)(p)->p_offseth << 32) + (p)->p_offset) macro
/openbsd/src/sys/dev/
Drd.c226 off = DL_GETPOFFSET(p) * sc->sc_dk.dk_label->d_secsize + in rdstrategy()
/openbsd/src/sys/arch/amd64/stand/libsa/
Ddiskprobe.c403 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
Dsoftraid_amd64.c163 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()
/openbsd/src/sys/arch/i386/stand/libsa/
Ddiskprobe.c480 sec = DL_GETPOFFSET(&dip->disklabel.d_partitions[1]) + in check_hibernate()
Dsoftraid_i386.c159 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()
/openbsd/src/sys/dev/ata/
Dwd.c465 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/
Dinstallboot.c172 partoffset = DL_GETPOFFSET(&dl.d_partitions[minor(bootsb.st_dev) % in main()
/openbsd/src/sys/arch/riscv64/stand/efiboot/
Dsoftraid_riscv64.c160 off = DL_SECTOBLK(&dip->disklabel, DL_GETPOFFSET(pp)); in srprobe()

12