Home
last modified time | relevance | path

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

12

/linux/tools/perf/util/
H A 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()
171 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in filename__read_build_id()
186 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
210 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
H A Dlzma.c66 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file()
H A 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()
H A Ddata.c407 if (fread(buf, size, 1, data->file.fptr) == 1) in perf_data__read()
567 if (fread(&magic, 1, 8, file) < 8) in is_perf_data()
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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/tools/wmi/
H A 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/arch/s390/tools/
H A Drelocs.c120 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in read_ehdr()
168 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) in read_ehdr()
197 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) { in read_shdrs()
236 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_relocs()
378 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) in main()
/linux/arch/x86/boot/tools/
H A Dbuild.c155 c = fread(buf, 1, sizeof(buf) - 1, file); in parse_zoffset()
194 c = fread(buf, 1, sizeof(buf), file); in main()
/linux/arch/mips/boot/tools/
H A 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()
H A Drelocs_main.c75 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) in main()
/linux/tools/usb/
H A 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/scripts/mod/
H A Dmk_elfconfig.c12 if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) { in main()
/linux/tools/testing/selftests/arm64/pauth/
H A Dexec_target.c16 fread(&val, sizeof(size_t), 1, stdin); in main()
/linux/Documentation/userspace-api/media/dvb/
H A Ddmx_fcalls.rst14 dmx-fread
/linux/arch/x86/boot/compressed/
H A Dmkpiggy.c44 if (fread(&olen, sizeof(olen), 1, f) != 1) { in main()
/linux/tools/testing/selftests/lsm/
H A Dcommon.c61 red = fread(lsms, 1, size, fp); in read_sysfs_lsms()
/linux/arch/x86/tools/
H A Drelocs_common.c71 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) { in main()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dproc.c91 if (fread(&tmp, 1, 1, fnetstat) != 1 || tmp != ':') in netstat_read_type()
114 if (fread(&tmp, 1, 1, fnetstat) != 1 || tmp != '\n') in netstat_read_type()
/linux/arch/mips/tools/
H A Delf-entry.c51 nread = fread(&hdr, 1, sizeof(hdr), file); in main()
/linux/scripts/ipe/polgen/
H A Dpolgen.c42 read = fread((void *)lbuf, sizeof(*lbuf), fsize, fd); in policy_to_buffer()
/linux/tools/power/acpi/tools/acpidump/
H A Dapfiles.c216 actual = fread(buffer, 1, file_size, file); in ap_get_table_from_file()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_cpuid.c33 if (fread(buf, sizeof(*buf), sizeof(buf), f) > 0) { in smt_possible()
/linux/tools/usb/usbip/libsrc/
H A Dusbip_device_driver.c81 ret = fread((char *) &descr, sizeof(descr), 1, fd); in read_usb_vudc_device()
/linux/tools/arch/x86/intel_sdsi/
H A Dintel_sdsi.c244 ret = fread(&s->regs, sizeof(uint8_t), sizeof(s->regs), regs_ptr); in sdsi_update_registers()
376 size = fread(buf, 1, sizeof(buf), cert_ptr); in sdsi_meter_cert_show()
459 size = fread(buf, 1, sizeof(buf), cert_ptr); in sdsi_state_cert_show()
/linux/scripts/dtc/
H A Dflattree.c813 rc = fread(&magic_buf, sizeof(magic_buf), 1, f); in dt_from_blob()
828 rc = fread(&totalsize_buf, sizeof(totalsize_buf), 1, f); in dt_from_blob()
856 rc = fread(p, 1, sizeleft, f); in dt_from_blob()

12