Home
last modified time | relevance | path

Searched refs:d_magic (Results 1 – 14 of 14) sorted by relevance

/NextBSD/sys/geom/part/
HDg_part_bsd64.c60 u_int32_t d_magic; /* the magic number */ member
361 if (pp->sectorsize > offsetof(struct disklabel64, d_magic)) in g_part_bsd64_destroy()
481 offsetof(struct disklabel64, d_magic)) & ~(pp->sectorsize - 1); in g_part_bsd64_probe()
485 v = le32dec(buf + offsetof(struct disklabel64, d_magic)); in g_part_bsd64_probe()
517 if (crc32(&dlp->d_magic, offsetof(struct disklabel64, in g_part_bsd64_read()
519 offsetof(struct disklabel64, d_magic)) != v32) in g_part_bsd64_read()
631 le32enc(&dlp->d_magic, DISKMAGIC64); in g_part_bsd64_write()
661 offsetof(struct disklabel64, d_magic); in g_part_bsd64_write()
662 le32enc(&dlp->d_crc, crc32(&dlp->d_magic, v)); in g_part_bsd64_write()
/NextBSD/sys/geom/
HDgeom_bsd_enc.c74 d->d_magic = le32dec(ptr + 0); in bsd_disklabel_le_dec()
75 if (d->d_magic != DISKMAGIC) in bsd_disklabel_le_dec()
153 le32enc(ptr + 0, d->d_magic); in bsd_disklabel_le_enc()
/NextBSD/sys/boot/arm/ixp425/boot2/
HDboot2.c378 if ((d->d_magic == DISKMAGIC && d->d_magic2 == DISKMAGIC) || in dskread()
379 (swap32(d->d_magic) == DISKMAGIC && in dskread()
/NextBSD/sys/sys/
HDdisklabel.h73 u_int32_t d_magic; /* the magic number */ member
/NextBSD/usr.bin/mkimg/
HDbsd.c92 le32enc(&d->d_magic, DISKMAGIC); in bsd_write()
/NextBSD/sys/sys/mach/device/
HDdisk_status.h134 uint32 d_magic; /* the magic number */ member
/NextBSD/lib/libc/gen/
HDdisklabel.c162 dp->d_magic = DISKMAGIC; in getdiskbyname()
/NextBSD/sys/boot/arm/at91/boot2/
HDboot2.c314 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
/NextBSD/sys/boot/pc98/libpc98/
HDbiosdisk.c366 if (lp->d_magic != DISKMAGIC) { in bd_printbsdslice()
605 if (lp->d_magic != DISKMAGIC) { in bd_open_pc98()
/NextBSD/sys/boot/mips/beri/boot2/
HDboot2.c639 if (le32toh(d->d_magic) != DISKMAGIC || in dskread()
/NextBSD/sbin/bsdlabel/
HDbsdlabel.c393 lp->d_magic = DISKMAGIC; in writelabel()
1509 loclab.d_magic = DISKMAGIC; in getvirginlabel()
/NextBSD/sys/boot/i386/boot2/
HDboot2.c539 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
/NextBSD/sys/boot/pc98/boot2/
HDboot2.c677 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
/NextBSD/sys/boot/common/
HDpart.c463 if (le32toh(dl->d_magic) != DISKMAGIC && in ptable_bsdread()