Searched refs:BBSIZE (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/geom/part/ |
H A D | g_part_bsd.c | 51 #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() 365 pp->mediasize < BBSIZE) in g_part_bsd_probe() 367 if (BBSIZE % pp->sectorsize) in g_part_bsd_probe() 398 table->bbarea = g_read_data(cp, 0, BBSIZE, &error); in g_part_bsd_read() [all …]
|
/freebsd/sbin/bsdlabel/ |
H A D | bsdlabel.c | 93 static u_char bootarea[BBSIZE]; 118 static int bbsize = BBSIZE; 303 dp->p_offset = BBSIZE / secsize; in fixlabel() 337 if (st.st_size <= BBSIZE) { in readboot() 467 nbytes = read(f, bootarea, BBSIZE); in readlabel() 470 if (nbytes != BBSIZE) in readlabel() 471 errx(4, "couldn't read %d bytes from %s", BBSIZE, specname); in readlabel() 737 lp->d_bbsize = BBSIZE; /* XXX */ in getasciilabel() 1231 base_offset = BBSIZE / secsize; in checklabel() 1280 base_offset = BBSIZE / secsize; in checklabel() [all …]
|
/freebsd/sys/geom/label/ |
H A D | g_label_ufs.c | 106 pp->mediasize < BBSIZE) in g_label_ufs_ignore_bsdlabel_slice() 108 if (BBSIZE % pp->sectorsize) in g_label_ufs_ignore_bsdlabel_slice()
|
/freebsd/sbin/newfs/ |
H A D | newfs.c | 106 static u_char bootarea[BBSIZE]; 430 if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE) in getdisklabel()
|
/freebsd/sys/sys/ |
H A D | disklabel.h | 64 #define BBSIZE BSD_BOOTBLOCK_SIZE macro
|
/freebsd/lib/libc/gen/ |
H A D | disklabel.c | 115 getnumdflt(dp->d_bbsize, "bs", BBSIZE); in getdiskbyname()
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 65 #ifndef BBSIZE 66 #define BBSIZE 8192 /* size of boot area, with label */ macro 160 bbsize = BBSIZE; in ffs_mkfs()
|
/freebsd/sbin/swapon/ |
H A D | swapon.c | 696 ioarg[0] = BBSIZE; in run_cmd() 697 ioarg[1] = sz - BBSIZE; in run_cmd()
|
/freebsd/sys/vm/ |
H A D | swap_pager.c | 2723 blist_free(sp->sw_blist, howmany(BBSIZE, PAGE_SIZE), in swaponsomething() 2724 nblks - howmany(BBSIZE, PAGE_SIZE)); in swaponsomething() 2742 swap_pager_avail += nblks - howmany(BBSIZE, PAGE_SIZE); in swaponsomething() 2916 nswapdev * howmany(BBSIZE, PAGE_SIZE); in swap_pager_status()
|