Home
last modified time | relevance | path

Searched refs:fread (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/tools/perf/util/
Dsymbol-minimal.c103 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id()
119 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in filename__read_build_id()
134 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
158 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
170 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in filename__read_build_id()
185 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
209 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
Dlzma.c68 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file()
Djitdump.c157 ret = fread(buf, sizeof(header), 1, jd->in); in jit_open()
223 ret = fread(buf, bs - bsz, 1, jd->in); in jit_open()
269 ret = fread(prefix, sizeof(*prefix), 1, jd->in); in jit_get_next_entry()
299 ret = fread(addr, bs - sizeof(*prefix), 1, jd->in); in jit_get_next_entry()
Dvdso.c169 count = fread(buf, 1, sizeof(buf), f); in vdso__do_copy_compat()
/kernel/linux/linux-5.10/tools/wmi/
Ddell-smbios-example.c71 fread(buf, 1, 4096, f); in find_token()
85 fread(buf, 1, 4096, f); in find_token()
150 fread(buffer_size, sizeof(__u64), 1, f); in query_buffer_size()
/kernel/linux/linux-5.10/arch/mips/boot/tools/
Drelocs.c207 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in read_ehdr()
276 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs()
313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != in read_strtabs()
337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs()
381 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) != in read_relocs()
422 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in remove_relocs()
Drelocs_main.c75 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) in main()
/kernel/linux/linux-5.10/tools/usb/
Dtestusb.c136 if (fread(u.buf, 1, 1, fd) != 1) in testdev_ffs_ifnum()
138 if (fread(u.buf + 1, (unsigned char)u.buf[0] - 1, 1, fd) != 1) in testdev_ffs_ifnum()
155 if (fread(&dev, sizeof dev, 1, fd) != 1) in testdev_ifnum()
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/pauth/
Dexec_target.c16 fread(&val, sizeof(size_t), 1, stdin); in main()
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdio/
Dfeof_fuzz.c67 (void)fread(str, MAX_BUFFER_SIZE, 1, stream); in FeofFuzzTest()
/kernel/linux/linux-5.10/scripts/mod/
Dmk_elfconfig.c13 if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) { in main()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/
Ddmx_fcalls.rst14 dmx-fread
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
Dmkpiggy.c44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main()
/kernel/liteos_m/testsuites/unittest/posix/src/fs/
Dposix_fs_func_test.c965 ret = fread(str, strlen(chr1) + 1, 1, fp);
1078 ret = fread((void *)chr1, strlen(chr1) + 1, 1, fp);
1105 ret = fread(0, 0, 1, fp);
1164 ret = fread(str, TEST_RW_SIZE, 1, fp);
1171 ret = fread(str, TEST_RW_SIZE, 1, fp);
1210 ret = fread(str, TEST_RW_SIZE, 1, fp);
1252 ret = fread(str, TEST_RW_SIZE, 1, fp);
1287 ret = fread(str, TEST_RW_SIZE, 1, fp);
/kernel/linux/linux-5.10/arch/x86/tools/
Drelocs.c340 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) { in read_ehdr()
394 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_ehdr()
424 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs()
460 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
485 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
518 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) in read_relocs()
Drelocs_common.c71 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) { in main()
/kernel/linux/linux-5.10/arch/x86/boot/tools/
Dbuild.c346 c = fread(buf, 1, sizeof(buf) - 1, file); in parse_zoffset()
395 c = fread(buf, 1, sizeof(buf), file); in main()
/kernel/linux/linux-5.10/arch/mips/tools/
Delf-entry.c51 nread = fread(&hdr, 1, sizeof(hdr), file); in main()
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/
Dapfiles.c216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c37 if (fread(buf, sizeof(*buf), sizeof(buf), f) > 0) { in smt_possible()
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
Dusbip_device_driver.c81 ret = fread((char *) &descr, sizeof(descr), 1, fd); in read_usb_vudc_device()
/kernel/linux/linux-5.10/scripts/dtc/
Ddtc.c148 if (fread(&magic, 4, 1, f) != 1) { in guess_input_format()
Dflattree.c815 rc = fread(&magic_buf, sizeof(magic_buf), 1, f); in dt_from_blob()
830 rc = fread(&totalsize_buf, sizeof(totalsize_buf), 1, f); in dt_from_blob()
858 rc = fread(p, 1, sizeleft, f); in dt_from_blob()
Ddata.c93 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c1219 count = fread(&header, 1, sizeof(struct acpi_table_header), table_file); in osl_read_table_from_file()
1268 count = fread(local_table, 1, table_length, table_file); in osl_read_table_from_file()

12