/openbmc/linux/drivers/media/dvb-core/ |
H A D | dvb_ringbuffer.c | 40 rbuf->pread=rbuf->pwrite=0; in dvb_ringbuffer_init() 60 return (rbuf->pread == smp_load_acquire(&rbuf->pwrite)); in dvb_ringbuffer_empty() 74 free = READ_ONCE(rbuf->pread) - rbuf->pwrite; in dvb_ringbuffer_free() 90 avail = smp_load_acquire(&rbuf->pwrite) - rbuf->pread; in dvb_ringbuffer_avail() 106 smp_store_release(&rbuf->pread, smp_load_acquire(&rbuf->pwrite)); in dvb_ringbuffer_flush() 116 smp_store_release(&rbuf->pread, 0); in dvb_ringbuffer_reset() 138 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user() 140 if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) in dvb_ringbuffer_read_user() 148 smp_store_release(&rbuf->pread, 0); in dvb_ringbuffer_read_user() 150 if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) in dvb_ringbuffer_read_user() [all …]
|
/openbmc/linux/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 66 pread(fd, &old_tsc, sizeof(old_tsc), 0x10); in main() 67 pread(fd, &old_aperf, sizeof(old_mperf), 0xe7); in main() 68 pread(fd, &old_mperf, sizeof(old_aperf), 0xe8); in main() 78 pread(fd, &new_tsc, sizeof(new_tsc), 0x10); in main() 79 pread(fd, &new_aperf, sizeof(new_mperf), 0xe7); in main() 80 pread(fd, &new_mperf, sizeof(new_aperf), 0xe8); in main()
|
H A D | msr.c | 36 pread(fd, &msr, sizeof(msr), 0x199); in main()
|
/openbmc/linux/include/media/ |
H A D | dvb_ringbuffer.h | 44 ssize_t pread; member 126 ((rbuf)->data[((rbuf)->pread + (offs)) % (rbuf)->size]) 135 (rbuf)->pread = ((rbuf)->pread + (num)) % (rbuf)->size;\
|
/openbmc/phosphor-ipmi-flash/internal/ |
H A D | sys.cpp | 54 int SysImpl::pread(int fd, void* buf, std::size_t count, off_t offset) const in pread() function in internal::SysImpl 56 return static_cast<int>(::pread(fd, buf, count, offset)); in pread()
|
H A D | sys.hpp | 35 virtual int pread(int fd, void* buf, std::size_t count, 70 int pread(int fd, void* buf, std::size_t count,
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | nbd-multiconn | 120 initial_data = clients[0].pread(1024 * 1024, 0) 126 current_data = clients[0].pread(1024 * 1024, 0)
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | ksm_functional_tests.c | 77 read_size = pread(proc_self_ksm_stat_fd, buf, sizeof(buf) - 1, 0); in get_my_ksm_zero_pages() 101 ret = pread(proc_self_ksm_merging_pages_fd, buf, sizeof(buf) - 1, 0); in get_my_merging_pages() 114 ret = pread(ksm_full_scans_fd, buf, sizeof(buf) - 1, 0); in ksm_get_full_scans()
|
H A D | vm_util.c | 25 ret = pread(fd, &entry, sizeof(entry), pfn * sizeof(entry)); in pagemap_get_entry() 169 if (pread(pagemap_fd, ent, sizeof(ent), in allocate_transhuge()
|
H A D | split_huge_page_test.c | 40 pread(pagemap_file, &paddr, sizeof(paddr), in is_backed_by_thp() 44 pread(kpageflags_file, &page_flags, sizeof(page_flags), in is_backed_by_thp()
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-uptime.h | 45 rv = pread(fd, buf, sizeof(buf), 0); in proc_uptime()
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_binary_stats_test.c | 46 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test() 158 ret = pread(stats_fd, stats_data, size_data, header.data_offset); in stats_test()
|
/openbmc/phosphor-ipmi-flash/tools/test/ |
H A D | io_unittest.cpp | 124 EXPECT_CALL(sys_mock, pread(fd, _, 1, 0)).WillOnce(Return(-1)); in TEST_F() 134 EXPECT_CALL(sys_mock, pread(fd, _, 1, 0)).WillOnce(Return(0)); in TEST_F()
|
H A D | internal_sys_mock.hpp | 21 MOCK_METHOD(int, pread, (int, void*, std::size_t, off_t), (const override));
|
/openbmc/linux/tools/lib/perf/ |
H A D | lib.c | 46 ssize_t ret = pread(fd, buf, left, offs); in preadn()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 004.out | 36 pread past image boundary
|
/openbmc/qemu/hw/vfio/ |
H A D | ccw.c | 140 ret = pread(vcdev->vdev.fd, region, vcdev->schib_region_size, in vfio_ccw_handle_store() 265 size = pread(vcdev->vdev.fd, region, vcdev->crw_region_size, in vfio_ccw_crw_read() 325 size = pread(vcdev->vdev.fd, region, vcdev->io_region_size, in vfio_ccw_io_notifier_handler()
|
H A D | pci.c | 914 bytes = pread(vdev->vbasedev.fd, vdev->rom + off, in vfio_pci_load_rom() 1034 if (pread(fd, &orig, 4, offset) != 4 || in vfio_pci_size_rom() 1036 pread(fd, &size, 4, offset) != 4 || in vfio_pci_size_rom() 1127 if (pread(vga->fd, &buf, size, offset) != size) { in vfio_vga_read() 1230 ret = pread(vdev->vbasedev.fd, &phys_val, len, in vfio_pci_read_config() 1347 if (pread(vdev->vbasedev.fd, &ctrl, sizeof(ctrl), in vfio_msi_setup() 1566 if (pread(fd, &ctrl, sizeof(ctrl), in vfio_msix_early_setup() 1572 if (pread(fd, &table, sizeof(table), in vfio_msix_early_setup() 1578 if (pread(fd, &pba, sizeof(pba), in vfio_msix_early_setup() 1739 ret = pread(vdev->vbasedev.fd, &pci_bar, sizeof(pci_bar), in vfio_bar_prepare() [all …]
|
H A D | igd.c | 154 ret = pread(vdev->vbasedev.fd, pdev->config + list[i].offset, in vfio_pci_igd_copy() 722 if (pread(vdev->vbasedev.fd, &cmd_orig, sizeof(cmd_orig), in vfio_probe_igd_bar4_quirk()
|
/openbmc/phosphor-ipmi-flash/tools/ |
H A D | io.cpp | 120 int ret = sys->pread(ppcMemFd, destination, length, offset); in read()
|
/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-utils/xfsprogs/files/ |
H A D | 0005-Replace-off64_t-stat64-with-off_t-stat.patch | 28 io/pread.c | 22 +++++++++++----------- 309 diff --git a/io/pread.c b/io/pread.c 311 --- a/io/pread.c 312 +++ b/io/pread.c
|
/openbmc/linux/tools/hv/ |
H A D | hv_fcopy_daemon.c | 218 len = pread(fcopy_fd, &buffer, sizeof(buffer), 0); in main()
|
/openbmc/openbmc/poky/meta/recipes-support/sqlite/ |
H A D | sqlite3.inc | 47 # pread() is in POSIX.1-2001 so any reasonable system must surely support it
|
/openbmc/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object_types.h | 84 int (*pread)(struct drm_i915_gem_object *obj, member
|
/openbmc/hiomapd/file/ |
H A D | backend.c | 251 rc = pread(priv->fd, buf, len, 0); in file_reset()
|