Searched refs:BBSIZE (Results 1 - 21 of 21) sorted by relevance

/freebsd-9.3-release/sys/geom/part/
H A Dg_part_bsd.c52 #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 Dwrite_amd64_disk.c35 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 Dwrite_i386_disk.c35 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 Dwrite_pc98_disk.c37 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 Dwrite_disk.c47 dl->d_bbsize = BBSIZE;
/freebsd-9.3-release/sbin/newfs/
H A Dnewfs.c116 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 Dbsdlabel.c106 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 Dxfs_fs.h519 #define BBSIZE (1<<BBSHIFT) macro
520 #define BBMASK (BBSIZE-1)
521 #define BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT)
H A Dxfs_log_priv.h340 uint h_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE];
349 uint xh_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE]; /* : 256 */
H A Dxfs_log.c474 * 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 Dxfs_log_recover.c382 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 Dxfs_fsops.c102 mp->m_sb.sb_logsectsize : BBSIZE;
H A Dxfs_vfsops.c532 unsigned int log_sector_size = BBSIZE;
H A Dxfsidbg.c6490 log->l_grant_reserve_bytes % BBSIZE,
6492 log->l_grant_write_bytes % BBSIZE);
/freebsd-9.3-release/sys/geom/
H A Dgeom_bsd.c276 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 Ddisklabel.c115 getnumdflt(dp->d_bbsize, "bs", BBSIZE);
/freebsd-9.3-release/sys/sys/
H A Ddisklabel.h66 #define BBSIZE 8192 macro
/freebsd-9.3-release/contrib/gnu-sort/src/
H A Dsystem.h287 #if !defined DEV_BSIZE && defined BBSIZE /* SGI */
288 # define DEV_BSIZE BBSIZE
/freebsd-9.3-release/sys/fs/ntfs/
H A Dntfs.h37 #define BBSIZE 1024 macro
H A Dntfs_vfsops.c309 error = bread(devvp, BBLOCK, BBSIZE, NOCRED, &bp);
320 if (ntfs_cntob(1) != BBSIZE)
/freebsd-9.3-release/usr.sbin/makefs/ffs/
H A Dmkfs.c65 #ifndef BBSIZE
66 #define BBSIZE 8192 /* size of boot area, with label */ macro
140 bbsize = BBSIZE;

Completed in 388 milliseconds