Home
last modified time | relevance | path

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

/freebsd-9-stable/sys/geom/part/
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) in g_part_bsd_bootcode()
190 if (gpp->gpp_codesize == BBSIZE) in g_part_bsd_bootcode()
210 if (BBSIZE % pp->sectorsize) in g_part_bsd_create()
218 table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO); in g_part_bsd_create()
231 le32enc(ptr + 140, BBSIZE); /* d_bbsize */ in g_part_bsd_create()
341 pp->mediasize < BBSIZE) in g_part_bsd_probe()
343 if (BBSIZE % pp->sectorsize) in g_part_bsd_probe()
374 table->bbarea = g_read_data(cp, 0, BBSIZE, &error); in g_part_bsd_read()
[all …]
/freebsd-9-stable/lib/libdisk/
Dwrite_amd64_disk.c35 u_char buf[BBSIZE]; in Write_FreeBSD()
37 for (i = 0; i < BBSIZE/512; i++) { in Write_FreeBSD()
47 memcpy(buf + 512, new->boot2, BBSIZE - 512); in Write_FreeBSD()
52 for (i = 0; i < BBSIZE / 512; i++) in Write_FreeBSD()
Dwrite_i386_disk.c35 u_char buf[BBSIZE]; in Write_FreeBSD()
37 for (i = 0; i < BBSIZE/512; i++) { in Write_FreeBSD()
47 memcpy(buf + 512, new->boot2, BBSIZE - 512); in Write_FreeBSD()
52 for (i = 0; i < BBSIZE / 512; i++) in Write_FreeBSD()
Dwrite_pc98_disk.c37 u_char buf[BBSIZE]; in Write_FreeBSD()
39 for (i = 0; i < BBSIZE / 512; i++) { in Write_FreeBSD()
49 memcpy(buf + 512, new->boot2, BBSIZE - 512); in Write_FreeBSD()
54 for (i = 0; i < BBSIZE / 512; i++) in Write_FreeBSD()
Dwrite_disk.c47 dl->d_bbsize = BBSIZE; in Fill_Disklabel()
/freebsd-9-stable/sbin/bsdlabel/
Dbsdlabel.c106 static u_char bootarea[BBSIZE];
131 static int bbsize = BBSIZE;
314 dp->p_offset = BBSIZE / secsize; in fixlabel()
348 if (st.st_size <= BBSIZE) { in readboot()
450 gctl_ro_param(grq, "bootcode", BBSIZE, bootarea); in writelabel()
511 nbytes = read(f, bootarea, BBSIZE); in readlabel()
514 if (nbytes != BBSIZE) in readlabel()
515 errx(4, "couldn't read %d bytes from %s", BBSIZE, specname); in readlabel()
781 lp->d_bbsize = BBSIZE; /* XXX */ in getasciilabel()
1279 base_offset = BBSIZE / secsize; in checklabel()
[all …]
/freebsd-9-stable/sbin/newfs/
Dnewfs.c116 static u_char bootarea[BBSIZE];
442 if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE) in getdisklabel()
476 if (write(disk.d_fd, bootarea, BBSIZE) != BBSIZE) in rewritelabel()
/freebsd-9-stable/sys/geom/
Dgeom_bsd.c276 error = g_write_data(cp, 0, bootcode, BBSIZE); in g_bsd_writelabel()
356 buf = g_malloc(BBSIZE, M_WAITOK); in g_bsd_ioctl()
358 error = copyin(p, buf, BBSIZE); in g_bsd_ioctl()
373 error = g_write_data(cp, 0, buf, BBSIZE); in g_bsd_ioctl()
676 label = gctl_get_paraml(req, "bootcode", BBSIZE); in g_bsd_config()
/freebsd-9-stable/sys/gnu/fs/xfs/
Dxfs_fs.h519 #define BBSIZE (1<<BBSHIFT) macro
520 #define BBMASK (BBSIZE-1)
521 #define BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT)
Dxfs_log.c1066 log->l_iclog_hsize = BBSIZE; in xlog_get_iclog_buffer_size()
1086 log->l_iclog_hsize = BBSIZE; in xlog_get_iclog_buffer_size()
1491 for (i=0; i<split; i += BBSIZE) { in xlog_sync()
1495 dptr += BBSIZE; in xlog_sync()
3343 unit_bytes += 2*BBSIZE; in xlog_ticket_get()
3480 for (ptr += BBSIZE; ptr < ((xfs_caddr_t)&(iclog->ic_header))+count; in xlog_verify_iclog()
3481 ptr += BBSIZE) { in xlog_verify_iclog()
3502 if (idx >= (XLOG_HEADER_CYCLE_SIZE / BBSIZE)) { in xlog_verify_iclog()
3503 j = idx / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); in xlog_verify_iclog()
3504 k = idx % (XLOG_HEADER_CYCLE_SIZE / BBSIZE); in xlog_verify_iclog()
[all …]
Dxfs_log_recover.c382 buf += BBSIZE; in xlog_find_verify_cycle()
457 offset -= BBSIZE; in xlog_find_verify_log_record()
1092 memset(buf, 0, BBSIZE); in xlog_add_record()
1165 offset += BBSIZE; in xlog_write_log_records()
3380 i < (XLOG_HEADER_CYCLE_SIZE / BBSIZE); i++) { in xlog_pack_data()
3383 dp += BBSIZE; in xlog_pack_data()
3389 j = i / (XLOG_HEADER_CYCLE_SIZE / BBSIZE); in xlog_pack_data()
3390 k = i % (XLOG_HEADER_CYCLE_SIZE / BBSIZE); in xlog_pack_data()
3393 dp += BBSIZE; in xlog_pack_data()
3448 i < (XLOG_HEADER_CYCLE_SIZE / BBSIZE); i++) { in xlog_unpack_data()
[all …]
Dxfs_log_priv.h340 uint h_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE];
349 uint xh_cycle_data[XLOG_HEADER_CYCLE_SIZE / BBSIZE]; /* : 256 */
Dxfs_fsops.c102 mp->m_sb.sb_logsectsize : BBSIZE; in xfs_fs_geometry()
Dxfs_vfsops.c532 unsigned int log_sector_size = BBSIZE; in xfs_mount()
Dxfsidbg.c6490 log->l_grant_reserve_bytes % BBSIZE, in xfsidbg_xlog()
6492 log->l_grant_write_bytes % BBSIZE); in xfsidbg_xlog()
/freebsd-9-stable/sys/sys/
Ddisklabel.h66 #define BBSIZE 8192 macro
/freebsd-9-stable/contrib/gnu-sort/src/
Dsystem.h287 #if !defined DEV_BSIZE && defined BBSIZE /* SGI */
288 # define DEV_BSIZE BBSIZE
/freebsd-9-stable/lib/libc/gen/
Ddisklabel.c119 getnumdflt(dp->d_bbsize, "bs", BBSIZE); in getdiskbyname()
/freebsd-9-stable/usr.sbin/makefs/ffs/
Dmkfs.c65 #ifndef BBSIZE
66 #define BBSIZE 8192 /* size of boot area, with label */ macro
140 bbsize = BBSIZE; in ffs_mkfs()
/freebsd-9-stable/sys/fs/ntfs/
Dntfs.h37 #define BBSIZE 1024 macro
Dntfs_vfsops.c309 error = bread(devvp, BBLOCK, BBSIZE, NOCRED, &bp);
320 if (ntfs_cntob(1) != BBSIZE)