Home
last modified time | relevance | path

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

/freebsd/sys/geom/part/
H A Dg_part_bsd.c51 #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 Dbsdlabel.c93 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 Dg_label_ufs.c106 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 Dnewfs.c106 static u_char bootarea[BBSIZE];
430 if (read(disk.d_fd, bootarea, BBSIZE) != BBSIZE) in getdisklabel()
/freebsd/sys/sys/
H A Ddisklabel.h64 #define BBSIZE BSD_BOOTBLOCK_SIZE macro
/freebsd/lib/libc/gen/
H A Ddisklabel.c115 getnumdflt(dp->d_bbsize, "bs", BBSIZE); in getdiskbyname()
/freebsd/usr.sbin/makefs/ffs/
H A Dmkfs.c65 #ifndef BBSIZE
66 #define BBSIZE 8192 /* size of boot area, with label */ macro
160 bbsize = BBSIZE; in ffs_mkfs()
/freebsd/sbin/swapon/
H A Dswapon.c696 ioarg[0] = BBSIZE; in run_cmd()
697 ioarg[1] = sz - BBSIZE; in run_cmd()
/freebsd/sys/vm/
H A Dswap_pager.c2723 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()