Searched refs:BBSIZE (Results 1 – 9 of 9) sorted by relevance
| /NextBSD/usr.bin/mkimg/ |
| HD | bsd.c | 60 blk += BBSIZE / secsz; in bsd_metadata() 78 buf = malloc(BBSIZE); in bsd_write() 82 memcpy(buf, bootcode, BBSIZE); in bsd_write() 85 memset(buf, 0, BBSIZE); in bsd_write() 102 le32enc(&d->d_bbsize, BBSIZE); in bsd_write() 123 error = image_write(0, buf, BBSIZE / secsz); in bsd_write() 135 .bootcode = BBSIZE,
|
| /NextBSD/sys/geom/part/ |
| HD | g_part_bsd.c | 52 #define BOOT2_SIZE (BBSIZE - BOOT2_OFF) 111 .gps_bootcodesz = BBSIZE, 181 if (gpp->gpp_codesize != BOOT1_SIZE && gpp->gpp_codesize != BBSIZE) in g_part_bsd_bootcode() 187 if (gpp->gpp_codesize == BBSIZE) in g_part_bsd_bootcode() 207 if (BBSIZE % pp->sectorsize) in g_part_bsd_create() 215 table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO); in g_part_bsd_create() 228 le32enc(ptr + 140, BBSIZE); /* d_bbsize */ in g_part_bsd_create() 366 pp->mediasize < BBSIZE) in g_part_bsd_probe() 368 if (BBSIZE % pp->sectorsize) in g_part_bsd_probe() 399 table->bbarea = g_read_data(cp, 0, BBSIZE, &error); in g_part_bsd_read() [all …]
|
| /NextBSD/sbin/bsdlabel/ |
| HD | bsdlabel.c | 106 static u_char bootarea[BBSIZE]; 131 static int bbsize = BBSIZE; 313 dp->p_offset = BBSIZE / secsize; in fixlabel() 347 if (st.st_size <= BBSIZE) { in readboot() 449 gctl_ro_param(grq, "bootcode", BBSIZE, bootarea); in writelabel() 510 nbytes = read(f, bootarea, BBSIZE); in readlabel() 513 if (nbytes != BBSIZE) in readlabel() 514 errx(4, "couldn't read %d bytes from %s", BBSIZE, specname); in readlabel() 780 lp->d_bbsize = BBSIZE; /* XXX */ in getasciilabel() 1278 base_offset = BBSIZE / secsize; in checklabel() [all …]
|
| /NextBSD/sbin/newfs/ |
| HD | newfs.c | 116 static u_char bootarea[BBSIZE]; 432 if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE) in getdisklabel()
|
| /NextBSD/sys/arm/at91/ |
| HD | at91_mci.c | 139 #define BBSIZE (16*1024) macro 140 #define MAX_BLOCKS ((BBSIZE*BBCOUNT)/512) 406 BBSIZE, 1, BBSIZE, 0, NULL, NULL, &sc->dmatag); in at91_mci_attach() 748 if (remaining > (BBCOUNT*BBSIZE)) in at91_mci_start_cmd() 785 len = min(BBSIZE, remaining); in at91_mci_start_cmd() 812 ((char *)data->data)+BBSIZE, len); in at91_mci_start_cmd()
|
| /NextBSD/sys/sys/ |
| HD | disklabel.h | 66 #define BBSIZE 8192 macro
|
| /NextBSD/sys/geom/ |
| HD | geom_bsd.c | 276 error = g_write_data(cp, 0, bootcode, BBSIZE); in g_bsd_writelabel() 589 label = gctl_get_paraml(req, "bootcode", BBSIZE); in g_bsd_config()
|
| /NextBSD/lib/libc/gen/ |
| HD | disklabel.c | 119 getnumdflt(dp->d_bbsize, "bs", BBSIZE); in getdiskbyname()
|
| /NextBSD/usr.sbin/makefs/ffs/ |
| HD | mkfs.c | 65 #ifndef BBSIZE 66 #define BBSIZE 8192 /* size of boot area, with label */ macro 140 bbsize = BBSIZE; in ffs_mkfs()
|