Searched refs:d_magic (Results 1 – 14 of 14) sorted by relevance
| /NextBSD/sys/geom/part/ |
| HD | g_part_bsd64.c | 60 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/ |
| HD | geom_bsd_enc.c | 74 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/ |
| HD | boot2.c | 378 if ((d->d_magic == DISKMAGIC && d->d_magic2 == DISKMAGIC) || in dskread() 379 (swap32(d->d_magic) == DISKMAGIC && in dskread()
|
| /NextBSD/sys/sys/ |
| HD | disklabel.h | 73 u_int32_t d_magic; /* the magic number */ member
|
| /NextBSD/usr.bin/mkimg/ |
| HD | bsd.c | 92 le32enc(&d->d_magic, DISKMAGIC); in bsd_write()
|
| /NextBSD/sys/sys/mach/device/ |
| HD | disk_status.h | 134 uint32 d_magic; /* the magic number */ member
|
| /NextBSD/lib/libc/gen/ |
| HD | disklabel.c | 162 dp->d_magic = DISKMAGIC; in getdiskbyname()
|
| /NextBSD/sys/boot/arm/at91/boot2/ |
| HD | boot2.c | 314 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
|
| /NextBSD/sys/boot/pc98/libpc98/ |
| HD | biosdisk.c | 366 if (lp->d_magic != DISKMAGIC) { in bd_printbsdslice() 605 if (lp->d_magic != DISKMAGIC) { in bd_open_pc98()
|
| /NextBSD/sys/boot/mips/beri/boot2/ |
| HD | boot2.c | 639 if (le32toh(d->d_magic) != DISKMAGIC || in dskread()
|
| /NextBSD/sbin/bsdlabel/ |
| HD | bsdlabel.c | 393 lp->d_magic = DISKMAGIC; in writelabel() 1509 loclab.d_magic = DISKMAGIC; in getvirginlabel()
|
| /NextBSD/sys/boot/i386/boot2/ |
| HD | boot2.c | 539 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
|
| /NextBSD/sys/boot/pc98/boot2/ |
| HD | boot2.c | 677 if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { in dskread()
|
| /NextBSD/sys/boot/common/ |
| HD | part.c | 463 if (le32toh(dl->d_magic) != DISKMAGIC && in ptable_bsdread()
|