/openbmc/u-boot/test/fs/ |
H A D | fs-test.sh | 236 printenv filesize 237 setenv filesize 240 printenv filesize 241 setenv filesize 246 printenv filesize 247 setenv filesize 255 printenv filesize 257 md5sum $addr \$filesize 258 setenv filesize 262 printenv filesize [all …]
|
/openbmc/u-boot/tools/ |
H A D | mkenvimage.c | 75 unsigned int filesize = 0, envsize = 0, datasize = 0; in main() local 164 filebuf = realloc(filebuf, filesize + readlen); in main() 169 readbytes = read(txt_fd, filebuf + filesize, readlen); in main() 175 filesize += readbytes; in main() 194 filesize = txt_file_stat.st_size; in main() 196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, in main() 200 sizeof(*envptr) * filesize, in main() 204 filebuf = malloc(sizeof(*envptr) * filesize); in main() 205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); in main() 206 if (ret != sizeof(*envptr) * filesize) { in main() [all …]
|
H A D | mtk_image.c | 644 static void mtk_image_set_gen_header(void *ptr, off_t filesize, in mtk_image_set_gen_header() argument 666 hdr->brlyt.total_size = cpu_to_le32(filesize); in mtk_image_set_gen_header() 672 put_ghf_header(gfh, filesize, sizeof(struct gen_device_header), in mtk_image_set_gen_header() 677 filesize - sizeof(struct gen_device_header) - SHA256_SUM_LEN); in mtk_image_set_gen_header() 680 static void mtk_image_set_nand_header(void *ptr, off_t filesize, in mtk_image_set_nand_header() argument 694 payload_pages = (filesize + le16_to_cpu(hdr_nand->pagesize) - 1) / in mtk_image_set_nand_header() 707 put_ghf_header(gfh, filesize, 2 * le16_to_cpu(hdr_nand->pagesize), in mtk_image_set_nand_header() 712 filesize - 2 * le16_to_cpu(hdr_nand->pagesize) - SHA256_SUM_LEN); in mtk_image_set_nand_header()
|
/openbmc/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 36 bool write_exactly(int fd, size_t filesize) in write_exactly() argument 49 data = malloc(filesize); in write_exactly() 56 remained = filesize; in write_exactly() 73 remained = filesize; in write_exactly() 123 int filesize = num_pages * PS; in test_cachestat() local 127 struct cachestat_range cs_range = { 0, filesize }; in test_cachestat() 140 if (!write_exactly(fd, filesize)) { in test_cachestat() 208 size_t filesize = PS * 512 * 2; /* 2 2MB huge pages */ in test_cachestat_shmem() local 224 if (ftruncate(fd, filesize)) { in test_cachestat_shmem() 230 if (!write_exactly(fd, filesize)) { in test_cachestat_shmem()
|
/openbmc/qemu/tests/qtest/ |
H A D | fw_cfg-test.c | 183 size_t filesize; in test_fw_cfg_reboot_timeout() local 188 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-fail-wait", in test_fw_cfg_reboot_timeout() 190 g_assert_cmpint(filesize, ==, sizeof(reboot_timeout)); in test_fw_cfg_reboot_timeout() 202 size_t filesize; in test_fw_cfg_no_reboot_timeout() local 208 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-fail-wait", in test_fw_cfg_no_reboot_timeout() 210 g_assert_cmpint(filesize, ==, sizeof(reboot_timeout)); in test_fw_cfg_no_reboot_timeout() 222 size_t filesize; in test_fw_cfg_splash_time() local 227 filesize = qfw_cfg_get_file(fw_cfg, "etc/boot-menu-wait", in test_fw_cfg_splash_time() 229 g_assert_cmpint(filesize, ==, sizeof(splash_time)); in test_fw_cfg_splash_time()
|
/openbmc/u-boot/board/boundary/nitrogen6x/ |
H A D | 6x_upgrade.txt | 5 echo "read $filesize bytes from SD card" ; 9 if sf read 0x12400000 $offset $filesize ; then 10 if cmp.b 0x12000000 0x12400000 $filesize ; then 23 sf write 0x12000000 $offset $filesize ; 25 if sf read 0x12400000 $offset $filesize ; then 26 if cmp.b 0x12000000 0x12400000 $filesize ; then
|
/openbmc/linux/tools/testing/selftests/powerpc/mm/ |
H A D | subpage_prot.c | 192 off_t filesize; in test_file() local 204 filesize = lseek(fd, 0, SEEK_END); in test_file() 205 if (filesize & 0xffff) in test_file() 206 filesize &= ~0xfffful; in test_file() 208 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file() 215 file_name, filesize, fileblock); in test_file() 219 return run_test(fileblock, filesize); in test_file()
|
/openbmc/u-boot/board/freescale/c29xpcie/ |
H A D | README | 65 => protect off eff40000 +$filesize 66 => erase eff40000 +$filesize 67 => cp.b $loadaddr eff40000 $filesize 76 => protect off e9f40000 +$filesize 77 => erase e9f40000 +$filesize 78 => cp.b $loadaddr e9f40000 $filesize 98 => sf write $loadaddr 0 $filesize
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_fit.py | 128 def filesize(fname): function 327 'kernel_size' : filesize(kernel), 331 'fdt_size' : filesize(control_dtb), 337 'ramdisk_size' : filesize(ramdisk), 344 'loadables1_size' : filesize(loadables1), 350 'loadables2_size' : filesize(loadables2),
|
/openbmc/u-boot/board/freescale/mpc8610hpcd/ |
H A D | README | 26 erase fff00000 +$filesize 27 cp.b 1000000 fff00000 $filesize 33 erase fbf00000 +$filesize 34 cp.b 1000000 fbf00000 $filesize
|
/openbmc/openbmc-tools/ddconvnotrunc/ |
H A D | ddconvnotrunc | 78 filesize() function 138 OF_UPDATE_OFF=$(filesize "$OF_FILE") 142 OF_SUFFIX_OFF=$(filesize "$OF_FILE")
|
/openbmc/linux/tools/hv/ |
H A D | hv_fcopy_daemon.c | 26 static unsigned long long filesize; variable 33 filesize = 0; in hv_start_fcopy() 96 filesize += cpmsg->size; in hv_copy_data() 107 filesize, (long)bytes_written, strerror(errno)); in hv_copy_data()
|
/openbmc/u-boot/board/freescale/p1010rdb/ |
H A D | README.P1010RDB-PA | 107 => protect off eff40000 +$filesize 108 => erase eff40000 +$filesize 109 => cp.b $loadaddr eff40000 $filesize 118 => protect off eef40000 +$filesize 119 => erase eef40000 +$filesize 120 => cp.b $loadaddr eef40000 $filesize 143 => nand erase 0 $filesize 144 => nand write $loadaddr 0 $filesize 163 => sf write $loadaddr 0 $filesize
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | rawcopy.py | 107 filesize = int(out.split()[0]) 109 if filesize > part.size: 110 part.size = filesize
|
/openbmc/u-boot/fs/fat/ |
H A D | fat.c | 312 loff_t filesize = FAT2CPU32(dentptr->size); in get_contents() local 319 debug("Filesize: %llu bytes\n", filesize); in get_contents() 321 if (pos >= filesize) { in get_contents() 326 if (maxsize > 0 && filesize > pos + maxsize) in get_contents() 327 filesize = pos + maxsize; in get_contents() 329 debug("%llu bytes\n", filesize); in get_contents() 346 filesize -= actsize; in get_contents() 353 actsize = min(filesize, (loff_t)bytesperclust); in get_contents() 365 filesize -= actsize; in get_contents() 370 if (!filesize) in get_contents() [all …]
|
H A D | fat_write.c | 702 u64 cur_pos, filesize; in set_contents() local 706 filesize = pos + maxsize; in set_contents() 708 debug("%llu bytes\n", filesize); in set_contents() 710 if (!filesize) { in set_contents() 765 if (filesize <= (cur_pos + actsize)) in set_contents() 787 wsize = min(cur_pos + actsize, filesize) - pos; in set_contents() 797 if (filesize <= cur_pos) in set_contents() 809 if (filesize <= cur_pos) { in set_contents() 830 filesize -= cur_pos; in set_contents() 855 if (check_overflow(mydata, curclust, filesize)) { in set_contents() [all …]
|
/openbmc/u-boot/board/freescale/mpc8323erdb/ |
H A D | README | 43 protect off fe000000 +$filesize 44 erase fe000000 +$filesize 45 cp.b $loadaddr fe000000 $filesize
|
/openbmc/qemu/hw/misc/ |
H A D | sifive_u_otp.c | 216 int filesize; in sifive_u_otp_realize() local 220 filesize = SIFIVE_U_OTP_NUM_FUSES * SIFIVE_U_OTP_FUSE_WORD; in sifive_u_otp_realize() 221 if (blk_getlength(blk) < filesize) { in sifive_u_otp_realize() 236 if (blk_pread(s->blk, 0, filesize, s->fuse, 0) < 0) { in sifive_u_otp_realize()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | fw_cfg.c | 83 size_t filesize = 0; in qfw_cfg_get_file() local 95 filesize = len; in qfw_cfg_get_file() 104 return filesize; in qfw_cfg_get_file()
|
/openbmc/u-boot/board/theobroma-systems/puma_rk3399/ |
H A D | README | 100 > sf erase 0 +$filesize 101 > sf write $kernel_addr_r 0 ${filesize} 103 > sf erase 0x40000 +$filesize 104 > sf write $kernel_addr_r 0x40000 ${filesize}
|
/openbmc/u-boot/board/work-microwave/work_92105/ |
H A D | README | 78 nand write $loadaddr 0x00000000 $filesize 84 nand write $loadaddr 0x00000000 $filesize 85 nand write $loadaddr 0x00020000 $filesize 91 nand write $loadaddr 0x00040000 $filesize
|
/openbmc/u-boot/fs/ext4/ |
H A D | ext4fs.c | 57 unsigned int filesize = le32_to_cpu(node->inode.size); in ext4fs_read_file() local 70 if (len + pos > filesize) in ext4fs_read_file() 71 len = (filesize - pos); in ext4fs_read_file()
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0031-corstone1000-detect-inflated-kernel-size.patch | 6 use filesize variable set by unzip command 23 …y ... ; unzip $kernel_addr 0x90000000; loadm 0x90000000 $kernel_addr_r $filesize; usb start; usb r…
|
/openbmc/u-boot/board/freescale/mpc8349itx/ |
H A D | README | 154 erase FEF00000 +$filesize 155 cp.b $loadaddr FEF00000 $filesize 166 protect off FE000000 +$filesize 167 erase FE000000 +$filesize 168 cp.b $loadaddr FE000000 $filesize
|
/openbmc/u-boot/board/freescale/mpc8641hpcn/ |
H A D | README | 99 erase eff00000 +$filesize 100 cp.b 1000000 eff00000 $filesize 108 erase efb00000 +$filesize 109 cp.b 1000000 efb00000 $filesize
|