/linux-6.12.1/drivers/media/dvb-core/ |
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 …]
|
/linux-6.12.1/tools/testing/selftests/intel_pstate/ |
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()
|
D | msr.c | 36 pread(fd, &msr, sizeof(msr), 0x199); in main()
|
/linux-6.12.1/include/media/ |
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;\
|
/linux-6.12.1/tools/testing/selftests/turbostat/ |
D | smi_aperf_mperf.py | 6 from os import pread 58 if len(pread(file_msr.fileno(), 8, MSR_IA32_MPERF)) != 8: 61 if len(pread(file_msr.fileno(), 8, MSR_IA32_APERF)) != 8:
|
D | added_perf_counters.py | 6 from os import pread
|
/linux-6.12.1/tools/testing/selftests/powerpc/papr_vpd/ |
D | papr_vpd.c | 54 ssize_t consumed = pread(fd, buf, size, 0); in dev_papr_vpd_get_handle_all() 203 ssize_t consumed = pread(fd, bufs[i], size, 0); in papr_vpd_reread() 286 ssize_t consumed = pread(fd, buf, size, 0); in papr_vpd_system_loc_code()
|
/linux-6.12.1/tools/testing/selftests/proc/ |
D | proc-uptime.h | 45 rv = pread(fd, buf, sizeof(buf), 0); in proc_uptime()
|
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | kvm_binary_stats_test.c | 44 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test() 156 ret = pread(stats_fd, stats_data, size_data, header.data_offset); in stats_test()
|
D | guest_memfd_test.c | 31 TEST_ASSERT(pread(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
|
D | access_tracking_perf_test.c | 84 TEST_ASSERT(pread(fd, &value, sizeof(value), offset) == sizeof(value), in pread_uint64()
|
/linux-6.12.1/tools/testing/selftests/mm/ |
D | ksm_functional_tests.c | 87 read_size = pread(proc_self_ksm_stat_fd, buf, sizeof(buf) - 1, 0); in get_my_ksm_zero_pages() 111 ret = pread(proc_self_ksm_merging_pages_fd, buf, sizeof(buf) - 1, 0); in get_my_merging_pages() 124 ret = pread(ksm_full_scans_fd, buf, sizeof(buf) - 1, 0); in ksm_get_full_scans()
|
D | vm_util.c | 27 ret = pread(fd, &entry, sizeof(entry), pfn * sizeof(entry)); in pagemap_get_entry() 265 if (pread(pagemap_fd, ent, sizeof(ent), in allocate_transhuge()
|
D | split_huge_page_test.c | 43 pread(pagemap_file, &paddr, sizeof(paddr), in is_backed_by_thp() 47 pread(kpageflags_file, &page_flags, sizeof(page_flags), in is_backed_by_thp()
|
D | memfd_secret.c | 51 (pread(fd, buf, sizeof(buf), 0) >= 0) || in test_file_apis()
|
/linux-6.12.1/tools/lib/perf/ |
D | lib.c | 46 ssize_t ret = pread(fd, buf, left, offs); in preadn()
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_object_types.h | 84 int (*pread)(struct drm_i915_gem_object *obj, member
|
D | i915_gem_userptr.c | 394 .pread = i915_gem_userptr_pread,
|
/linux-6.12.1/tools/hv/ |
D | hv_fcopy_uio_daemon.c | 469 ret = pread(fcopy_fd, &tmp, sizeof(int), 0); in main()
|
/linux-6.12.1/Documentation/translations/zh_CN/filesystems/ |
D | sysfs.txt | 198 向后搜索到零或使用‘0’偏移执行一个pread(2)操作,show()方法将
|
/linux-6.12.1/Documentation/translations/zh_TW/filesystems/ |
D | sysfs.txt | 201 向後搜索到零或使用‘0’偏移執行一個pread(2)操作,show()方法將
|
/linux-6.12.1/arch/um/drivers/ |
D | cow_user.c | 273 return pread(fd, buf, len, offset); in file_reader()
|
/linux-6.12.1/tools/thermal/thermometer/ |
D | thermometer.c | 346 pread(tz->fd_temp, buf, sizeof(buf), 0); in timer_temperature_callback()
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_gem.c | 488 if (obj->ops->pread) in i915_gem_pread_ioctl() 489 ret = obj->ops->pread(obj, args); in i915_gem_pread_ioctl()
|
/linux-6.12.1/tools/testing/selftests/cgroup/ |
D | cgroup_util.c | 148 if (pread(fd, buf, sizeof(buf), 0) <= 0) in cg_read_long_fd()
|