| /netbsd-src/usr.sbin/installboot/arch/ |
| H A D | next68k.c | 83 size_t bootsize; in next68k_setboot() local 140 bootsize = roundup(params->s1stat.st_size, cd_secsize); in next68k_setboot() 142 bootbuf = malloc(bootsize); in next68k_setboot() 144 warn("Allocating %zu bytes", bootsize); in next68k_setboot() 147 memset(bootbuf, 0, bootsize); in next68k_setboot() 161 if (bootsize > be16toh(next68klabel->cd_front) * cd_secsize - in next68k_setboot() 175 if (((bootsize / cd_secsize) > b1 - b0) || in next68k_setboot() 176 ((bootsize / cd_secsize) > fp - b1)) { in next68k_setboot() 177 if (2 * bootsize > (fp * cd_secsize - NEXT68K_LABEL_SIZE)) in next68k_setboot() 181 if (2 * bootsize > (fp * cd_secsize - in next68k_setboot() [all …]
|
| /netbsd-src/sys/arch/prep/stand/installboot/ |
| H A D | installboot.c | 75 load_boot(char *boot, size_t *bootsize) in load_boot() argument 169 *bootsize = roundup(imgsz, DEV_BSIZE); in load_boot() 224 size_t bootsize; in main() local 254 if ((bp = load_boot(boot, &bootsize)) == NULL) in main() 267 if (bootsize + dbtob(2) > dbtob(ppp.mbrp_size)) { in main() 296 boot00[1] = htole32(bootsize); in main() 305 boot00[1] = htole32(bootsize + dbtob(2)); in main() 313 if (write(devfd, bp, bootsize) != bootsize) { in main()
|
| /netbsd-src/usr.sbin/sysinst/arch/ofppc/ |
| H A D | md.c | 223 if (pm->bootsize != 0) { in md_make_bsd_partitions() 225 pm->bsdlabel[PART_BOOT_FAT12].pi_size = pm->bootsize; in md_make_bsd_partitions() 404 if (pm->bootstart == 0 || pm->bootsize == 0 || rdb_found) in md_post_disklabel() 553 pm->bootsize = part->mbrp_size; in md_check_mbr() 571 if (!(pm->bootsize >= (MIN_FAT12_BOOT/512) || in md_check_mbr() 591 if (pm->bootsize > 0 && pm->bootsize < (MIN_FAT12_BOOT/512)) { in md_check_mbr() 599 if ((pm->bootstart == 0 || pm->bootsize == 0) && in md_check_mbr()
|
| /netbsd-src/usr.sbin/bootp/bootpd/ |
| H A D | bootpd.c | 596 int32 bootsize = 0; in handle_request() local 890 if (chk_access(lrealpath, &bootsize) < 0) { in handle_request() 892 if (chk_access(lrealpath, &bootsize) < 0) { in handle_request() 959 dovend_rfc1048(bp, hp, bootsize); in handle_request() 1212 dovend_rfc1048(struct bootp *bp, struct host *hp, int32 bootsize) in dovend_rfc1048() argument 1306 if (hp->flags.bootsize) { in dovend_rfc1048() 1308 bootsize = (hp->flags.bootsize_auto) ? in dovend_rfc1048() 1309 ((bootsize + 511) / 512) : ((int32_t)hp->bootsize); /* Round up */ in dovend_rfc1048() 1312 *vp++ = (byte) ((bootsize >> 8) & 0xFF); in dovend_rfc1048() 1313 *vp++ = (byte) (bootsize & 0xFF); in dovend_rfc1048()
|
| /netbsd-src/usr.sbin/sysinst/arch/arc/ |
| H A D | md.c | 253 pm->bootsize = part->mbrp_size; in md_check_mbr() 258 if (pm->bootsize < (PART_BOOT_MIN / 512)) { in md_check_mbr() 264 if (pm->bootstart == 0 || pm->bootsize == 0) { in md_check_mbr()
|
| /netbsd-src/usr.sbin/sysinst/arch/cobalt/ |
| H A D | md.c | 268 pm->bootsize = part->mbrp_size; in md_check_mbr() 273 if (pm->bootsize < (PART_BOOT_MIN / 512)) { in md_check_mbr() 279 if (pm->bootstart == 0 || pm->bootsize == 0) { in md_check_mbr()
|
| /netbsd-src/usr.sbin/sysinst/arch/prep/ |
| H A D | md.c | 269 pm->bootsize = part->mbrp_size; in md_check_mbr() 273 if (pm->bootsize < (int)(MIN_PREP_BOOT/512)) { in md_check_mbr() 277 if (pm->bootstart == 0 || pm->bootsize == 0) { in md_check_mbr()
|
| /netbsd-src/usr.sbin/bootp/common/ |
| H A D | bootpd.h | 98 bootsize :1, member 186 u_int32 bootsize, member
|
| H A D | readfile.c | 1035 hp->flags.bootsize = TRUE; in eval_symbol() 1038 hp->bootsize = (unsigned int) get_u_long(symbol); in eval_symbol() 1039 hp->flags.bootsize = TRUE; in eval_symbol() 1044 hp->flags.bootsize = FALSE; in eval_symbol() 1047 hp->flags.bootsize = TRUE; in eval_symbol() 1456 if (!hp->flags.bootsize) { in fill_defaults() 1457 if ((hp->flags.bootsize = hp2->flags.bootsize)) { in fill_defaults() 1459 hp->bootsize = hp2->bootsize; in fill_defaults()
|
| H A D | dumptab.c | 137 if (hp->flags.bootsize) { in dump_host() 142 fprintf(fp, "%d:", hp->bootsize); in dump_host()
|
| /netbsd-src/sbin/fdisk/ |
| H A D | fdisk.c | 236 static int bootsize; /* actual size of bootcode */ 485 bootsize = read_boot(optarg, bootcode, in main() 1105 if (bootsize == 0) in read_boot() 1106 bootsize = read_boot(DEFAULT_BOOTCODE, bootcode, in read_boot() 1115 if (bootsize != 0) { 1476 if (!f_flag && bootsize == 0 && !i_flag) in install_bootsel() 1483 if (bootsize != 0 && needed != 0 in install_bootsel() 1495 bootsize = 0; in install_bootsel() 1498 if (bootsize == 0) { in install_bootsel() 1508 bootsize in install_bootsel() 237 static int bootsize; /* actual size of bootcode */ global() variable [all...] |
| /netbsd-src/sys/arch/sparc64/sparc64/ |
| H A D | autoconf.c | 274 bootstrap(void *o0, void *bootargs, void *bootsize, void *o3, void *ofw) in bootstrap() argument 307 ("sparc64_init(%p, %p, %p, %p, %p)\n", o0, bootargs, bootsize, in bootstrap() 311 if ((long)bootsize >= (4 * sizeof(uint64_t))) { in bootstrap() 315 } else if ((long)bootsize >= (4 * sizeof(uint32_t))) { in bootstrap()
|
| /netbsd-src/sys/arch/sparc/stand/ofwboot/ |
| H A D | boot.c | 69 typedef void (*entry_t)(long o0, long bootargs, long bootsize, long o3,
|
| /netbsd-src/usr.sbin/sysinst/ |
| H A D | defs.h | 488 daddr_t bootstart, bootsize; member
|