Home
last modified time | relevance | path

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

123

/linux-6.1.9/fs/
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 …]
/linux-6.1.9/tools/power/acpi/tools/acpidump/
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()
Dapdump.c366 u32 file_size = 0; in ap_dump_table_from_file() local
371 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
384 if (table->length > file_size) { in ap_dump_table_from_file()
387 table->length, file_size, pathname); in ap_dump_table_from_file()
394 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
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()
Dacpidump.h85 u32 *file_size);
/linux-6.1.9/drivers/net/wwan/iosm/
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()
/linux-6.1.9/tools/power/acpi/common/
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()
/linux-6.1.9/drivers/gpu/drm/panfrost/
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()
/linux-6.1.9/drivers/gpu/drm/etnaviv/
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()
119 size_t file_size, mmu_size; in etnaviv_core_dump() local
135 file_size = ARRAY_SIZE(etnaviv_dump_registers) * in etnaviv_core_dump()
142 file_size += obj->base.size; in etnaviv_core_dump()
149 file_size += n_bomap_pages * sizeof(__le64); in etnaviv_core_dump()
154 file_size += sizeof(*iter.hdr) * n_obj; in etnaviv_core_dump()
157 iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | in etnaviv_core_dump()
Detnaviv_dump.h26 __le32 file_size; member
/linux-6.1.9/include/linux/
Dkernel_read_file.h40 size_t *file_size,
44 size_t *file_size,
48 size_t *file_size,
52 size_t *file_size,
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/
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()
/linux-6.1.9/fs/hpfs/
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()
/linux-6.1.9/drivers/firmware/efi/libstub/
Dfile.c40 unsigned long *file_size) in efi_open_file() argument
62 *file_size = fi->info.file_size; in efi_open_file()
/linux-6.1.9/fs/squashfs/
Dsquashfs_fs.h344 __le32 file_size; member
356 __le64 file_size; member
374 __le16 file_size; member
387 __le32 file_size; member
Dinode.c155 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
199 inode->i_size = le64_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
228 inode->i_size = le16_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
253 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
/linux-6.1.9/fs/ntfs/
Dlogfile.c146 u64 file_size; in ntfs_check_restart_area() local
159 if (ra_ofs + offsetof(RESTART_AREA, file_size) > in ntfs_check_restart_area()
215 file_size = (u64)sle64_to_cpu(ra->file_size); in ntfs_check_restart_area()
217 while (file_size) { in ntfs_check_restart_area()
218 file_size >>= 1; in ntfs_check_restart_area()
Dlogfile.h208 /* 24*/ sle64 file_size; /* Usable byte size of the log file. If the member
/linux-6.1.9/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c846 int file_size; in copyfd_io() local
858 file_size = get_infd_size(infd); in copyfd_io()
859 if (file_size < 0) in copyfd_io()
860 return file_size; in copyfd_io()
861 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, &in_closed_after_out); in copyfd_io()
865 file_size = get_infd_size(infd); in copyfd_io()
866 if (file_size < 0) in copyfd_io()
867 return file_size; in copyfd_io()
868 ret = copyfd_io_sendfile(infd, peerfd, outfd, file_size, &in_closed_after_out); in copyfd_io()
/linux-6.1.9/fs/ecryptfs/
Dcrypto.c980 u8 file_size[ECRYPTFS_SIZE_AND_MARKER_BYTES]; in ecryptfs_read_and_validate_header_region() local
981 u8 *marker = file_size + ECRYPTFS_FILE_SIZE_BYTES; in ecryptfs_read_and_validate_header_region()
984 rc = ecryptfs_read_lower(file_size, 0, ECRYPTFS_SIZE_AND_MARKER_BYTES, in ecryptfs_read_and_validate_header_region()
992 ecryptfs_i_size_init(file_size, inode); in ecryptfs_read_and_validate_header_region()
1241 u64 file_size; in ecryptfs_i_size_init() local
1247 file_size = i_size_read(ecryptfs_inode_to_lower(inode)); in ecryptfs_i_size_init()
1249 file_size += crypt_stat->metadata_size; in ecryptfs_i_size_init()
1251 file_size = get_unaligned_be64(page_virt); in ecryptfs_i_size_init()
1252 i_size_write(inode, (loff_t)file_size); in ecryptfs_i_size_init()
1350 u8 file_size[ECRYPTFS_SIZE_AND_MARKER_BYTES]; in ecryptfs_read_and_validate_xattr_region() local
[all …]
/linux-6.1.9/fs/reiserfs/
Dstree.c1894 loff_t file_size, /* Old file size. */ in reiserfs_do_truncate() local
1943 file_size = 0; in reiserfs_do_truncate()
1954 file_size = offset + bytes - 1; in reiserfs_do_truncate()
1963 if (file_size == 0 || file_size < new_file_size) { in reiserfs_do_truncate()
1968 set_cpu_key_k_offset(&s_item_key, file_size); in reiserfs_do_truncate()
1982 RFALSE(deleted > file_size, in reiserfs_do_truncate()
1984 deleted, file_size, &s_item_key); in reiserfs_do_truncate()
1987 file_size -= deleted; in reiserfs_do_truncate()
1989 set_cpu_key_k_offset(&s_item_key, file_size); in reiserfs_do_truncate()
2022 } while (file_size > ROUND_UP(new_file_size) && in reiserfs_do_truncate()
[all …]
/linux-6.1.9/sound/soc/sof/
Dipc3-loader.c398 if (fw_size != header->file_size + sizeof(*header)) { in sof_ipc3_validate_firmware()
401 fw_size, header->file_size + sizeof(*header)); in sof_ipc3_validate_firmware()
406 header->file_size, header->num_modules, in sof_ipc3_validate_firmware()
/linux-6.1.9/include/uapi/sound/sof/
Dfw.h75 __u32 file_size; /* size of file minus this header */ member
/linux-6.1.9/tools/perf/util/
Ddso.c590 dso->data.file_size = 0; in close_data_fd()
792 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size()
1010 static int file_size(struct dso *dso, struct machine *machine) in file_size() function
1037 dso->data.file_size = st.st_size; in file_size()
1046 if (dso->data.file_size) in dso__data_file_size()
1055 return file_size(dso, machine); in dso__data_file_size()
1071 return dso->data.file_size; in dso__data_size()
1082 if (offset > dso->data.file_size) in data_read_write_offset()
/linux-6.1.9/drivers/hv/
Dhv_fcopy.c160 smsg_out->file_size = smsg_in->file_size; in fcopy_send_data()

123