Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 25 of 136) sorted by relevance

123456

/openbmc/linux/fs/
H A Dkernel_read_file.c36 size_t buf_size, size_t *file_size, in kernel_read_file() argument
45 if (offset != 0 && (!*buf || !file_size)) in kernel_read_file()
66 if (!file_size && offset == 0 && i_size > buf_size) { in kernel_read_file()
76 if (file_size) in kernel_read_file()
77 *file_size = i_size; in kernel_read_file()
128 size_t buf_size, size_t *file_size, in kernel_read_file_from_path() argument
141 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path()
149 size_t *file_size, in kernel_read_file_from_path_initns() argument
168 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path_initns()
175 size_t buf_size, size_t *file_size, in kernel_read_file_from_fd() argument
[all …]
/openbmc/linux/tools/power/acpi/tools/acpidump/
H A Dapfiles.c184 u32 file_size; in ap_get_table_from_file() local
197 file_size = cm_get_file_size(file); in ap_get_table_from_file()
198 if (file_size == ACPI_UINT32_MAX) { in ap_get_table_from_file()
206 buffer = ACPI_ALLOCATE_ZEROED(file_size); in ap_get_table_from_file()
210 file_size); in ap_get_table_from_file()
216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
217 if (actual != file_size) { in ap_get_table_from_file()
224 *out_file_size = file_size; in ap_get_table_from_file()
H A Dapdump.c368 u32 file_size = 0; in ap_dump_table_from_file() local
373 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
386 if (table->length > file_size) { in ap_dump_table_from_file()
389 table->length, file_size, pathname); in ap_dump_table_from_file()
396 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
H A Dapmain.c295 u32 file_size; in main() local
356 file_size = cm_get_file_size(gbl_output_file); in main()
359 gbl_output_filename, file_size, file_size); in main()
/openbmc/qemu/hw/cxl/
H A Dcxl-cdat.c122 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/linux/tools/power/acpi/common/
H A Dcmfsize.c31 long file_size; in cm_get_file_size() local
47 file_size = ftell(file); in cm_get_file_size()
48 if (file_size < 0) { in cm_get_file_size()
59 return ((u32)file_size); in cm_get_file_size()
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_coredump.c66 u32 byte_read, num_entries, file_size; in ipc_coredump_get_list() local
102 file_size = le32_to_cpu(cd_table->list.entry[i].size); in ipc_coredump_get_list()
105 if (file_size > devlink->cd_file_info[i].default_size) { in ipc_coredump_get_list()
110 devlink->cd_file_info[i].actual_size = file_size; in ipc_coredump_get_list()
112 filename, file_size); in ipc_coredump_get_list()
116 snprintf(size, sizeof(size), "%d", file_size); in ipc_coredump_get_list()
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dparallels-checks78 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/contrib/elf2dmp/
H A Dpdb.c33 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 Dmksunxiboot.c70 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 Drkcommon.c156 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()
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_dump.c69 hdr->file_size = data_end - iter->data; in panfrost_core_dump_header()
72 iter->data += hdr->file_size; in panfrost_core_dump_header()
110 size_t file_size; in panfrost_core_dump() local
126 file_size = ARRAY_SIZE(panfrost_dump_registers) * in panfrost_core_dump()
141 file_size += dbo->size; in panfrost_core_dump()
148 file_size += n_bomap_pages * sizeof(*bomap); in panfrost_core_dump()
153 file_size += sizeof(*iter.hdr) * n_obj; in panfrost_core_dump()
163 iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | in panfrost_core_dump()
/openbmc/linux/include/linux/
H A Dkernel_read_file.h40 size_t *file_size,
44 size_t *file_size,
48 size_t *file_size,
52 size_t *file_size,
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_dump.c75 hdr->file_size = cpu_to_le32(data_end - iter->data); in etnaviv_core_dump_header()
78 iter->data += le32_to_cpu(hdr->file_size); in etnaviv_core_dump_header()
124 size_t file_size, mmu_size; in etnaviv_core_dump() local
140 file_size = ARRAY_SIZE(etnaviv_dump_registers) * in etnaviv_core_dump()
147 file_size += obj->base.size; in etnaviv_core_dump()
154 file_size += n_bomap_pages * sizeof(__le64); in etnaviv_core_dump()
159 file_size += sizeof(*iter.hdr) * n_obj; in etnaviv_core_dump()
162 iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | in etnaviv_core_dump()
/openbmc/phosphor-ipmi-flash/bmc/
H A Dfile_handler.cpp58 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 Dtest_builddashboard_page_artifacts.py92 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 Delf_ops.h.inc330 elf_word mem_size, file_size, data_offset;
430 if (file_size > 0) {
432 file_size + data_offset) {
459 if (mem_size > file_size) {
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)) {
555 data, file_size);
563 if (file_size < mem_size) {
589 if (file_size > 0) {
[all …]
/openbmc/u-boot/lib/efi_loader/
H A Defi_file.c376 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/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-dump.c245 unsigned int file_size = 0; in mcp251xfd_dump() local
253 file_size += mcp251xfd_dump_reg_space[i].size / sizeof(u32) * in mcp251xfd_dump()
259 file_size += rings_num * __MCP251XFD_DUMP_OBJECT_RING_KEY_MAX * in mcp251xfd_dump()
263 file_size += sizeof(*iter.hdr) * obj_num; in mcp251xfd_dump()
266 iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | in mcp251xfd_dump()
/openbmc/linux/fs/hpfs/
H A Dinode.c138 i->i_size = le32_to_cpu(fnode->file_size); in hpfs_read_inode()
225 fnode->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
226 if (de) de->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
228 fnode->file_size = cpu_to_le32(0); in hpfs_write_inode_nolock()
229 if (de) de->file_size = cpu_to_le32(0); in hpfs_write_inode_nolock()
248 de->file_size = cpu_to_le32(0); in hpfs_write_inode_nolock()
/openbmc/u-boot/cmd/
H A Dini.c233 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 Dpldm_fwup_pkg_creator.py571 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/openbmc/meta-openembedded/meta-oe/recipes-dbs/leveldb/leveldb/
H A D0001-Fix-printing-64-bit-integer-types.patch28 - (unsigned long long)meta.number, (unsigned long long)meta.file_size,
30 + meta.number, meta.file_size,
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_yaffs2.c385 cp->size_or_equiv_obj = obj->variant.file_variant.file_size; in yaffs2_obj_checkpt_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()
1307 if (file_var->shrink_size > file_size) in yaffs2_scan_chunk()
[all …]
/openbmc/linux/fs/squashfs/
H A Dsquashfs_fs.h344 __le32 file_size; member
356 __le64 file_size; member
374 __le16 file_size; member
387 __le32 file_size; member

123456