Home
last modified time | relevance | path

Searched refs:bootsize (Results 1 – 17 of 17) sorted by relevance

/netbsd/usr.sbin/installboot/arch/
H A Dnext68k.c83 size_t bootsize; in next68k_setboot() local
142 bootbuf = malloc(bootsize); in next68k_setboot()
144 warn("Allocating %zu bytes", bootsize); in next68k_setboot()
147 memset(bootbuf, 0, bootsize); in next68k_setboot()
175 if (((bootsize / cd_secsize) > b1 - b0) || in next68k_setboot()
176 ((bootsize / cd_secsize) > fp - b1)) { in next68k_setboot()
181 if (2 * bootsize > (fp * cd_secsize - in next68k_setboot()
194 if (bootsize / cd_secsize > (fp - b1)) in next68k_setboot()
196 b1 = fp - bootsize / cd_secsize; in next68k_setboot()
247 rv = pwrite(params->fsfd, bootbuf, bootsize, in next68k_setboot()
[all …]
/netbsd/sys/arch/prep/stand/installboot/
H A Dinstallboot.c75 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/distrib/utils/embedded/conf/
H A Driscv.conf26 local bootsize=$(( ${boot} * 1024 ))
30 local asize=$(( ${totalsize} - ${bootsize} - ${bootoffset} ))
31 local aoffset=$(( ${bootoffset} + ${bootsize} ))
62 e: ${bootsize} ${bootoffset} MSDOS #
H A Devbmips.conf28 local bootsize=$(( ${boot} * 1024 ))
32 local asize=$(( ${totalsize} - ${bootsize} - ${bootoffset} ))
33 local aoffset=$(( ${bootoffset} + ${bootsize} ))
64 e: ${bootsize} ${bootoffset} MSDOS #
H A Devbarm.conf28 local bootsize=$(( ${boot} * 1024 ))
32 local asize=$(( ${totalsize} - ${bootsize} - ${bootoffset} ))
33 local aoffset=$(( ${bootoffset} + ${bootsize} ))
64 e: ${bootsize} ${bootoffset} MSDOS #
/netbsd/usr.sbin/sysinst/arch/ofppc/
H A Dmd.c223 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/usr.sbin/bootp/bootpd/
H A Dbootpd.c596 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/usr.sbin/sysinst/arch/arc/
H A Dmd.c253 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/usr.sbin/sysinst/arch/cobalt/
H A Dmd.c268 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/usr.sbin/sysinst/arch/prep/
H A Dmd.c269 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/usr.sbin/bootp/common/
H A Dbootpd.h98 bootsize :1, member
186 u_int32 bootsize, member
H A Dreadfile.c1035 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 Ddumptab.c137 if (hp->flags.bootsize) { in dump_host()
142 fprintf(fp, "%d:", hp->bootsize); in dump_host()
/netbsd/sbin/fdisk/
H A Dfdisk.c237 static int bootsize; /* actual size of bootcode */ variable
485 bootsize = read_boot(optarg, bootcode, in main()
1122 if (bootsize == 0) in init_sector0()
1123 bootsize = read_boot(DEFAULT_BOOTCODE, bootcode, in init_sector0()
1132 if (bootsize != 0) { in init_sector0()
1493 if (!f_flag && bootsize == 0 && !i_flag) in install_bootsel()
1500 if (bootsize != 0 && needed != 0 in install_bootsel()
1512 bootsize = 0; in install_bootsel()
1515 if (bootsize == 0) { in install_bootsel()
1526 if (bootsize == 0) in install_bootsel()
[all …]
/netbsd/sys/arch/sparc64/sparc64/
H A Dautoconf.c272 bootstrap(void *o0, void *bootargs, void *bootsize, void *o3, void *ofw) in bootstrap() argument
305 ("sparc64_init(%p, %p, %p, %p, %p)\n", o0, bootargs, bootsize, in bootstrap()
309 if ((long)bootsize >= (4 * sizeof(uint64_t))) { in bootstrap()
313 } else if ((long)bootsize >= (4 * sizeof(uint32_t))) { in bootstrap()
/netbsd/sys/arch/sparc/stand/ofwboot/
H A Dboot.c69 typedef void (*entry_t)(long o0, long bootargs, long bootsize, long o3,
/netbsd/usr.sbin/sysinst/
H A Ddefs.h482 daddr_t bootstart, bootsize; member