/linux-6.6.21/fs/ |
D | kernel_read_file.c | 36 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.6.21/tools/power/acpi/tools/acpidump/ |
D | apfiles.c | 184 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()
|
D | apdump.c | 368 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()
|
D | apmain.c | 295 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()
|
D | acpidump.h | 85 u32 *file_size);
|
/linux-6.6.21/drivers/net/wwan/iosm/ |
D | iosm_ipc_coredump.c | 66 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.6.21/tools/power/acpi/common/ |
D | cmfsize.c | 31 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.6.21/drivers/gpu/drm/panfrost/ |
D | panfrost_dump.c | 69 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.6.21/drivers/gpu/drm/etnaviv/ |
D | etnaviv_dump.c | 75 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()
|
D | etnaviv_dump.h | 26 __le32 file_size; member
|
/linux-6.6.21/include/linux/ |
D | kernel_read_file.h | 40 size_t *file_size, 44 size_t *file_size, 48 size_t *file_size, 52 size_t *file_size,
|
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-dump.c | 245 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.6.21/fs/hpfs/ |
D | inode.c | 138 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.6.21/fs/squashfs/ |
D | squashfs_fs.h | 344 __le32 file_size; member 356 __le64 file_size; member 374 __le16 file_size; member 387 __le32 file_size; member
|
D | inode.c | 155 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.6.21/fs/ntfs/ |
D | logfile.c | 146 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()
|
D | logfile.h | 208 /* 24*/ sle64 file_size; /* Usable byte size of the log file. If the member
|
/linux-6.6.21/fs/ecryptfs/ |
D | crypto.c | 956 u8 file_size[ECRYPTFS_SIZE_AND_MARKER_BYTES]; in ecryptfs_read_and_validate_header_region() local 957 u8 *marker = file_size + ECRYPTFS_FILE_SIZE_BYTES; in ecryptfs_read_and_validate_header_region() 960 rc = ecryptfs_read_lower(file_size, 0, ECRYPTFS_SIZE_AND_MARKER_BYTES, in ecryptfs_read_and_validate_header_region() 968 ecryptfs_i_size_init(file_size, inode); in ecryptfs_read_and_validate_header_region() 1217 u64 file_size; in ecryptfs_i_size_init() local 1223 file_size = i_size_read(ecryptfs_inode_to_lower(inode)); in ecryptfs_i_size_init() 1225 file_size += crypt_stat->metadata_size; in ecryptfs_i_size_init() 1227 file_size = get_unaligned_be64(page_virt); in ecryptfs_i_size_init() 1228 i_size_write(inode, (loff_t)file_size); in ecryptfs_i_size_init() 1326 u8 file_size[ECRYPTFS_SIZE_AND_MARKER_BYTES]; in ecryptfs_read_and_validate_xattr_region() local [all …]
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | file.c | 40 unsigned long *file_size) in efi_open_file() argument 70 *file_size = fi->info.file_size; in efi_open_file()
|
/linux-6.6.21/fs/reiserfs/ |
D | stree.c | 1892 loff_t file_size, /* Old file size. */ in reiserfs_do_truncate() local 1941 file_size = 0; in reiserfs_do_truncate() 1952 file_size = offset + bytes - 1; in reiserfs_do_truncate() 1961 if (file_size == 0 || file_size < new_file_size) { in reiserfs_do_truncate() 1966 set_cpu_key_k_offset(&s_item_key, file_size); in reiserfs_do_truncate() 1980 RFALSE(deleted > file_size, in reiserfs_do_truncate() 1982 deleted, file_size, &s_item_key); in reiserfs_do_truncate() 1985 file_size -= deleted; in reiserfs_do_truncate() 1987 set_cpu_key_k_offset(&s_item_key, file_size); in reiserfs_do_truncate() 2020 } while (file_size > ROUND_UP(new_file_size) && in reiserfs_do_truncate() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 917 int file_size; in copyfd_io() local 930 file_size = get_infd_size(infd); in copyfd_io() 931 if (file_size < 0) in copyfd_io() 932 return file_size; in copyfd_io() 933 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, in copyfd_io() 938 file_size = get_infd_size(infd); in copyfd_io() 939 if (file_size < 0) in copyfd_io() 940 return file_size; in copyfd_io() 941 ret = copyfd_io_sendfile(infd, peerfd, outfd, file_size, in copyfd_io()
|
/linux-6.6.21/sound/soc/sof/ |
D | ipc3-loader.c | 396 if (fw_size != header->file_size + sizeof(*header)) { in sof_ipc3_validate_firmware() 399 fw_size, header->file_size + sizeof(*header)); in sof_ipc3_validate_firmware() 404 header->file_size, header->num_modules, in sof_ipc3_validate_firmware()
|
/linux-6.6.21/include/uapi/sound/sof/ |
D | fw.h | 75 __u32 file_size; /* size of file minus this header */ member
|
/linux-6.6.21/tools/perf/util/ |
D | dso.c | 628 dso->data.file_size = 0; in close_data_fd() 830 dso->data.file_size = node->info_linear->info.jited_prog_len; in bpf_size() 1048 static int file_size(struct dso *dso, struct machine *machine) in file_size() function 1075 dso->data.file_size = st.st_size; in file_size() 1084 if (dso->data.file_size) in dso__data_file_size() 1093 return file_size(dso, machine); in dso__data_file_size() 1109 return dso->data.file_size; in dso__data_size() 1120 if (offset > dso->data.file_size) in data_read_write_offset()
|
/linux-6.6.21/drivers/hv/ |
D | hv_fcopy.c | 160 smsg_out->file_size = smsg_in->file_size; in fcopy_send_data()
|