/freebsd-9.3-release/sys/geom/part/ |
H A D | g_part_bsd.c | 52 #define BOOT2_SIZE (BBSIZE - BOOT2_OFF) 111 .gps_bootcodesz = BBSIZE, 184 if (gpp->gpp_codesize != BOOT1_SIZE && gpp->gpp_codesize != BBSIZE) 190 if (gpp->gpp_codesize == BBSIZE) 210 if (BBSIZE % pp->sectorsize) 218 table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO); 231 le32enc(ptr + 140, BBSIZE); /* d_bbsize */ 341 pp->mediasize < BBSIZE) 343 if (BBSIZE % pp->sectorsize) 374 table->bbarea = g_read_data(cp, 0, BBSIZE, [all...] |
/freebsd-9.3-release/lib/libdisk/ |
H A D | write_amd64_disk.c | 35 u_char buf[BBSIZE]; 37 for (i = 0; i < BBSIZE/512; i++) { 47 memcpy(buf + 512, new->boot2, BBSIZE - 512); 52 for (i = 0; i < BBSIZE / 512; i++)
|
H A D | write_i386_disk.c | 35 u_char buf[BBSIZE]; 37 for (i = 0; i < BBSIZE/512; i++) { 47 memcpy(buf + 512, new->boot2, BBSIZE - 512); 52 for (i = 0; i < BBSIZE / 512; i++)
|
H A D | write_pc98_disk.c | 37 u_char buf[BBSIZE]; 39 for (i = 0; i < BBSIZE / 512; i++) { 49 memcpy(buf + 512, new->boot2, BBSIZE - 512); 54 for (i = 0; i < BBSIZE / 512; i++)
|
H A D | write_disk.c | 47 dl->d_bbsize = BBSIZE;
|
/freebsd-9.3-release/sbin/newfs/ |
H A D | newfs.c | 116 static u_char bootarea[BBSIZE]; 442 if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE) 476 if (write(disk.d_fd, bootarea, BBSIZE) != BBSIZE)
|
/freebsd-9.3-release/sbin/bsdlabel/ |
H A D | bsdlabel.c | 106 static u_char bootarea[BBSIZE]; 131 static int bbsize = BBSIZE; 314 dp->p_offset = BBSIZE / secsize; 348 if (st.st_size <= BBSIZE) { 450 gctl_ro_param(grq, "bootcode", BBSIZE, bootarea); 511 nbytes = read(f, bootarea, BBSIZE); 514 if (nbytes != BBSIZE) 515 errx(4, "couldn't read %d bytes from %s", BBSIZE, specname); 781 lp->d_bbsize = BBSIZE; /* XXX */ 1279 base_offset = BBSIZE / secsiz [all...] |
/freebsd-9.3-release/sys/gnu/fs/xfs/ |
H A D | xfs_fs.h | 519 #define BBSIZE (1<<BBSHIFT) macro 520 #define BBMASK (BBSIZE-1) 521 #define BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT)
|
H A D | xfs_log_priv.h | 340 uint h_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE]; 349 uint xh_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE]; /* : 256 */
|
H A D | xfs_log.c | 474 * blk_offset - Start block # where block size is 512 bytes (BBSIZE) 475 * num_bblocks - Number of BBSIZE blocks in on-disk log 1066 log->l_iclog_hsize = BBSIZE; 1086 log->l_iclog_hsize = BBSIZE; 1186 /* log record size must be multiple of BBSIZE; see xlog_rec_header_t */ 1346 * to save away the 1st word of each BBSIZE block into the header. We replace 1347 * it with the current cycle count. Each BBSIZE block is tagged with the 1491 for (i=0; i<split; i += BBSIZE) { 1495 dptr += BBSIZE; 3343 unit_bytes += 2*BBSIZE; [all...] |
H A D | xfs_log_recover.c | 382 buf += BBSIZE; 457 offset -= BBSIZE; 1092 memset(buf, 0, BBSIZE); 1165 offset += BBSIZE; 3380 i < (XLOG_HEADER_CYCLE_SIZE / BBSIZE); i++) { 3383 dp += BBSIZE; 3389 j = i / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); 3390 k = i % (XLOG_HEADER_CYCLE_SIZE / BBSIZE); 3393 dp += BBSIZE; 3448 i < (XLOG_HEADER_CYCLE_SIZE / BBSIZE); [all...] |
H A D | xfs_fsops.c | 102 mp->m_sb.sb_logsectsize : BBSIZE;
|
H A D | xfs_vfsops.c | 532 unsigned int log_sector_size = BBSIZE;
|
H A D | xfsidbg.c | 6490 log->l_grant_reserve_bytes % BBSIZE, 6492 log->l_grant_write_bytes % BBSIZE);
|
/freebsd-9.3-release/sys/geom/ |
H A D | geom_bsd.c | 276 error = g_write_data(cp, 0, bootcode, BBSIZE); 356 buf = g_malloc(BBSIZE, M_WAITOK); 358 error = copyin(p, buf, BBSIZE); 373 error = g_write_data(cp, 0, buf, BBSIZE); 676 label = gctl_get_paraml(req, "bootcode", BBSIZE);
|
/freebsd-9.3-release/lib/libc/gen/ |
H A D | disklabel.c | 115 getnumdflt(dp->d_bbsize, "bs", BBSIZE);
|
/freebsd-9.3-release/sys/sys/ |
H A D | disklabel.h | 66 #define BBSIZE 8192 macro
|
/freebsd-9.3-release/contrib/gnu-sort/src/ |
H A D | system.h | 287 #if !defined DEV_BSIZE && defined BBSIZE /* SGI */ 288 # define DEV_BSIZE BBSIZE
|
/freebsd-9.3-release/sys/fs/ntfs/ |
H A D | ntfs.h | 37 #define BBSIZE 1024 macro
|
H A D | ntfs_vfsops.c | 309 error = bread(devvp, BBLOCK, BBSIZE, NOCRED, &bp); 320 if (ntfs_cntob(1) != BBSIZE)
|
/freebsd-9.3-release/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 65 #ifndef BBSIZE 66 #define BBSIZE 8192 /* size of boot area, with label */ macro 140 bbsize = BBSIZE;
|