Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.c66 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file()
Djitdump.c163 ret = fread(buf, sizeof(header), 1, jd->in); in jit_open()
229 ret = fread(buf, bs - bsz, 1, jd->in); in jit_open()
277 ret = fread(prefix, sizeof(*prefix), 1, jd->in); in jit_get_next_entry()
307 ret = fread(addr, bs - sizeof(*prefix), 1, jd->in); in jit_get_next_entry()
Ddata.c390 if (fread(buf, size, 1, data->file.fptr) == 1) in perf_data__read()
552 if (fread(&magic, 1, 8, file) < 8) in is_perf_data()
Dvdso.c170 count = fread(buf, 1, sizeof(buf), f); in vdso__do_copy_compat()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dxdp_synproxy.c103 size = fread(buf, 1, sizeof(buf), ctrl_file); in test_synproxy()
111 size = fread(buf, 1, sizeof(buf), ctrl_file); in test_synproxy()
152 size = fread(buf, 1, sizeof(buf), ctrl_file); in test_synproxy()
/linux-6.6.21/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()
/linux-6.6.21/arch/x86/boot/tools/
Dbuild.c155 c = fread(buf, 1, sizeof(buf) - 1, file); in parse_zoffset()
194 c = fread(buf, 1, sizeof(buf), file); in main()
/linux-6.6.21/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()
/linux-6.6.21/tools/usb/
Dtestusb.c142 if (fread(u.buf, 1, 1, fd) != 1) in testdev_ffs_ifnum()
144 if (fread(u.buf + 1, (unsigned char)u.buf[0] - 1, 1, fd) != 1) in testdev_ffs_ifnum()
161 if (fread(&dev, sizeof dev, 1, fd) != 1) in testdev_ifnum()
/linux-6.6.21/tools/testing/selftests/arm64/pauth/
Dexec_target.c16 fread(&val, sizeof(size_t), 1, stdin); in main()
/linux-6.6.21/scripts/mod/
Dmk_elfconfig.c13 if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) { in main()
/linux-6.6.21/arch/x86/tools/
Drelocs.c368 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) { in read_ehdr()
422 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_ehdr()
452 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_shdrs()
488 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
515 if (fread(sec->xsymtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
535 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
575 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()
/linux-6.6.21/Documentation/userspace-api/media/dvb/
Ddmx_fcalls.rst14 dmx-fread
/linux-6.6.21/arch/x86/boot/compressed/
Dmkpiggy.c44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main()
/linux-6.6.21/arch/mips/tools/
Delf-entry.c51 nread = fread(&hdr, 1, sizeof(hdr), file); in main()
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c35 if (fread(buf, sizeof(*buf), sizeof(buf), f) > 0) { in smt_possible()
/linux-6.6.21/tools/power/acpi/tools/acpidump/
Dapfiles.c216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
/linux-6.6.21/tools/usb/usbip/libsrc/
Dusbip_device_driver.c81 ret = fread((char *) &descr, sizeof(descr), 1, fd); in read_usb_vudc_device()
/linux-6.6.21/tools/arch/x86/intel_sdsi/
Dintel_sdsi.c237 ret = fread(&s->regs, sizeof(uint8_t), sizeof(s->regs), regs_ptr); in sdsi_update_registers()
365 size = fread(buf, 1, sizeof(buf), cert_ptr); in sdsi_meter_cert_show()
441 size = fread(buf, 1, sizeof(buf), cert_ptr); in sdsi_state_cert_show()
/linux-6.6.21/scripts/dtc/
Dflattree.c816 rc = fread(&magic_buf, sizeof(magic_buf), 1, f); in dt_from_blob()
831 rc = fread(&totalsize_buf, sizeof(totalsize_buf), 1, f); in dt_from_blob()
859 rc = fread(p, 1, sizeleft, f); in dt_from_blob()
Ddtc.c150 if (fread(&magic, 4, 1, f) != 1) { in guess_input_format()
Ddata.c93 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()

12