| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | parallels-checks | 78 file_size=`stat --printf="%s" "$TEST_IMG"` 79 echo "file size: $file_size" 82 fallocate -xl $((file_size + CLUSTER_SIZE)) "$TEST_IMG" 84 file_size=`stat --printf="%s" "$TEST_IMG"` 85 echo "file size: $file_size" 90 file_size=`stat --printf="%s" "$TEST_IMG"` 91 echo "file size: $file_size"
|
| /openbmc/qemu/hw/cxl/ |
| H A D | cxl-cdat.c | 122 gsize file_size = 0; in ct3_load_cdat() local 128 &file_size, &error)) { in ct3_load_cdat() 133 if (file_size < sizeof(CDATTableHeader)) { in ct3_load_cdat() 139 while (i < file_size) { in ct3_load_cdat() 141 if (i + sizeof(CDATSubHeader) > file_size) { in ct3_load_cdat() 147 if (i > file_size) { in ct3_load_cdat() 153 if (i != file_size) { in ct3_load_cdat() 170 while (i < file_size) { in ct3_load_cdat() 176 assert(i < file_size); in ct3_load_cdat()
|
| /openbmc/qemu/contrib/elf2dmp/ |
| H A D | pdb.c | 33 return r->ds.toc->file_size[idx]; in pdb_get_file_size() 138 const uint32_t *file_size; in pdb_ds_read_file() local 145 file_size = r->ds.toc->file_size; in pdb_ds_read_file() 148 if (file_size[file_number] == 0 || file_size[file_number] == 0xFFFFFFFF) { in pdb_ds_read_file() 152 block_list = file_size + r->ds.toc->num_files; in pdb_ds_read_file() 156 block_list += (file_size[i] + block_size - 1) / block_size; in pdb_ds_read_file() 159 return pdb_ds_read(r->ds.header, block_list, file_size[file_number]); in pdb_ds_read_file() 285 reader->file_size = g_mapped_file_get_length(reader->gmf); in pdb_init_from_file()
|
| /openbmc/u-boot/tools/ |
| H A D | mksunxiboot.c | 70 unsigned file_size; in main() local 118 file_size = lseek(fd_in, 0, SEEK_END); in main() 120 if (file_size > SRAM_LOAD_MAX_SIZE) { in main() 133 count = read(fd_in, img.code, file_size); in main() 134 if (count != file_size) { in main() 146 ALIGN(file_size + sizeof(struct boot_file_head), BLOCK_SIZE); in main()
|
| H A D | rkcommon.c | 156 static void rkcommon_set_header0(void *buf, uint file_size, in rkcommon_set_header0() argument 166 hdr->init_size = DIV_ROUND_UP(file_size, RK_BLK_SIZE); in rkcommon_set_header0() 188 int rkcommon_set_header(void *buf, uint file_size, in rkcommon_set_header() argument 193 if (file_size > rkcommon_get_spl_size(params)) in rkcommon_set_header() 196 rkcommon_set_header0(buf, file_size, params); in rkcommon_set_header() 203 params->file_size - RK_SPL_HDR_START); in rkcommon_set_header() 374 unpadded_size = tparams->header_size + params->file_size; in rkcommon_vrec_header()
|
| H A D | rkimage.c | 21 rkcommon_rc4_encode_spl(buf, 4, params->file_size); in rkimage_set_header()
|
| H A D | rksd.c | 27 size = params->file_size - RK_SPL_HDR_START; in rksd_set_header()
|
| H A D | rkcommon.h | 55 int rkcommon_set_header(void *buf, uint file_size,
|
| /openbmc/phosphor-ipmi-flash/bmc/ |
| H A D | file_handler.cpp | 58 uint32_t file_size = getSize(); in read() local 59 if (offset > file_size) in read() 63 std::vector<uint8_t> ret(std::min(file_size - offset, size)); in read() 76 auto ret = std::filesystem::file_size(filename, ec); in getSize()
|
| /openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/ |
| H A D | test_builddashboard_page_artifacts.py | 92 file_size=100000, 96 file_size=120000, 155 file_name='/home/foo/core-image-minimal.ext4', file_size=9000) 158 file_name='/home/foo/bzImage', file_size=2000) 161 file_name='/home/foo/bzImage', file_size=2000)
|
| /openbmc/qemu/include/hw/ |
| H A D | elf_ops.h.inc | 330 elf_word mem_size, file_size, data_offset; 427 file_size = ph->p_filesz; /* Size of the allocated data */ 430 if (file_size > 0) { 432 file_size + data_offset) { 459 if (mem_size > file_size) { 463 * only file_size bytes are loaded will be rejected by 468 elf_word zero_start = ph->p_paddr + file_size; 480 mem_size = file_size; 504 for (j = 0; j < file_size; j += (1 << data_swab)) { 548 rom_add_elf_program(label, mapped_file, data, file_size, [all …]
|
| /openbmc/u-boot/lib/efi_loader/ |
| H A D | efi_file.c | 376 info->file_size = dent->size; in dir_read() 506 loff_t file_size; in efi_file_setpos() local 513 if (fs_size(fh->path, &file_size)) { in efi_file_setpos() 518 pos = file_size; in efi_file_setpos() 541 loff_t file_size; in efi_file_getinfo() local 556 if (fs_size(fh->path, &file_size)) { in efi_file_getinfo() 564 info->file_size = file_size; in efi_file_getinfo() 565 info->physical_size = file_size; in efi_file_getinfo()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/leveldb/leveldb/ |
| H A D | 0001-Fix-printing-64-bit-integer-types.patch | 28 - (unsigned long long)meta.number, (unsigned long long)meta.file_size, 30 + meta.number, meta.file_size,
|
| /openbmc/u-boot/cmd/ |
| H A D | ini.c | 233 size_t file_size; in do_ini() local 241 file_size = (size_t)simple_strtoul( in do_ini() 244 return ini_parse(file_address, file_size, ini_handler, (void *)section); in do_ini()
|
| /openbmc/pldm/tools/fw-update/ |
| H A D | pldm_fwup_pkg_creator.py | 571 file_size = os.stat(image_files[index]).st_size 573 pldm_fw_up_pkg.write(struct.pack("<II", start_offset, file_size)) 574 start_offset += file_size 602 file_size = pldm_fw_up_pkg.tell() + pkg_header_checksum_size 606 pldm_fw_up_pkg.write(struct.pack("<H", file_size))
|
| /openbmc/libcper/tests/ |
| H A D | ir-tests.c | 89 size_t file_size; in cper_create_examples() local 111 file_size = ftell(record); in cper_create_examples() 113 file_data = malloc(file_size); in cper_create_examples() 114 if (fread(file_data, 1, file_size, record) != file_size) { in cper_create_examples() 122 for (size_t index = 0; index < file_size; index++) { in cper_create_examples()
|
| /openbmc/u-boot/fs/yaffs2/ |
| H A D | yaffs_yaffs2.c | 385 cp->size_or_equiv_obj = obj->variant.file_variant.file_size; in yaffs2_obj_checkpt_obj() 436 obj->variant.file_variant.file_size = cp->size_or_equiv_obj; in yaffs2_checkpt_obj_to_obj() 858 old_file_size = obj->variant.file_variant.file_size; in yaffs2_handle_hole() 945 loff_t file_size; in yaffs2_scan_chunk() local 1074 file_size = endpos; in yaffs2_scan_chunk() 1232 file_size = yaffs_oh_to_size(oh); in yaffs2_scan_chunk() 1240 file_size = tags.extra_file_size; in yaffs2_scan_chunk() 1296 if (file_var->scanned_size < file_size) { in yaffs2_scan_chunk() 1303 file_var->file_size = file_size; in yaffs2_scan_chunk() 1304 file_var->scanned_size = file_size; in yaffs2_scan_chunk() [all …]
|
| /openbmc/u-boot/drivers/usb/emul/ |
| H A D | sandbox_flash.c | 61 loff_t file_size; member 271 if (priv->file_size) in handle_ufi_command() 272 blocks = priv->file_size / SANDBOX_FLASH_BLOCK_LEN - 1; in handle_ufi_command() 400 return os_get_filesize(plat->pathname, &priv->file_size); in sandbox_flash_probe()
|
| /openbmc/phosphor-debug-collector/ |
| H A D | dump_manager_bmc.cpp | 188 ->update(timestamp, std::filesystem::file_size(file), file); in createEntry() 202 std::filesystem::file_size(file), file, in createEntry() 213 timestamp, "SIZE", std::filesystem::file_size(file), "FILENAME", in createEntry() 313 std::uintmax_t fileSize = std::filesystem::file_size(p); in getDirectorySize()
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/test/ |
| H A D | utest.cpp | 365 auto sz = static_cast<std::streamsize>(fs::file_size(path)); in readFile() 424 ASSERT_NE(fs::file_size(retFile), static_cast<uintmax_t>(-1)); in TEST_F() 425 ASSERT_NE(fs::file_size(dstFile), static_cast<uintmax_t>(-1)); in TEST_F() 426 ASSERT_EQ(fs::file_size(retFile), fs::file_size(dstFile)); in TEST_F()
|
| /openbmc/openpower-pnor-code-mgmt/ |
| H A D | image_verify.cpp | 246 auto size = std::filesystem::file_size(file); in verifyFile() 258 size = std::filesystem::file_size(sigFile); in verifyFile() 285 auto size = std::filesystem::file_size(publicKey); in createPublicRSA()
|
| /openbmc/u-boot/include/ |
| H A D | bmp_layout.h | 26 __u32 file_size; member
|
| /openbmc/phosphor-mboxd/vpnor/ |
| H A D | pnor_partition.cpp | 102 size_t fileSize = fs::file_size(path); in resize() 134 size_t fileSize = fs::file_size(path); in fulfil()
|
| /openbmc/pldm/oem/ibm/libpldmresponder/ |
| H A D | file_io_by_type.cpp | 88 size_t fileSize = fs::file_size(path); in transferFileData() 197 size_t fileSize = fs::file_size(filePath); in readFile()
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/ |
| H A D | image_verify.cpp | 349 auto size = fs::file_size(file, ec); in verifyFile() 361 size = fs::file_size(sigFile, ec); in verifyFile() 388 auto size = fs::file_size(publicKey, ec); in createPublicRSA()
|