/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() 118 smp_store_release(&rbuf->pwrite, 0); in dvb_ringbuffer_reset() 187 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write() 190 memcpy(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write() 198 smp_store_release(&rbuf->pwrite, 0); in dvb_ringbuffer_write() 200 memcpy(rbuf->data+rbuf->pwrite, buf, todo); in dvb_ringbuffer_write() [all …]
|
/linux/include/media/ |
H A D | dvb_ringbuffer.h | 45 ssize_t pwrite; member 178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \ 179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
|
/linux/drivers/rapidio/ |
H A D | rio.c | 566 struct rio_pwrite *pwrite = kzalloc(sizeof(*pwrite), GFP_KERNEL); in rio_add_mport_pw_handler() local 568 if (!pwrite) in rio_add_mport_pw_handler() 571 pwrite->pwcback = pwcback; in rio_add_mport_pw_handler() 572 pwrite->context = context; in rio_add_mport_pw_handler() 574 list_add_tail(&pwrite->node, &mport->pwrites); in rio_add_mport_pw_handler() 594 struct rio_pwrite *pwrite; in rio_del_mport_pw_handler() local 597 list_for_each_entry(pwrite, &mport->pwrites, node) { in rio_del_mport_pw_handler() 598 if (pwrite->pwcback == pwcback && pwrite->context == context) { in rio_del_mport_pw_handler() 599 list_del(&pwrite->node); in rio_del_mport_pw_handler() 600 kfree(pwrite); in rio_del_mport_pw_handler() [all …]
|
/linux/tools/hv/ |
H A D | hv_fcopy_daemon.c |
|
H A D | hv_fcopy_uio_daemon.c | 124 len = pwrite(target_fd, cpmsg->data, cpmsg->size, cpmsg->offset); in hv_copy_data()
|
/linux/tools/testing/selftests/iommu/ |
H A D | iommufd_fail_nth.c | 130 res2 = pwrite(nth_state->proc_fd, disable_nth, in fail_nth_next() 133 res2 = pwrite(nth_state->proc_fd, disable_nth, in fail_nth_next() 169 ASSERT_EQ(len, pwrite(nth_state->proc_fd, buf, len, 0)); in __fail_nth_enable()
|
/linux/tools/perf/util/ |
H A D | copyfile.c | 58 ssize_t ret = pwrite(ofd, ptr + off_in, size, off_out); in copyfile_offset()
|
H A D | trace-event-info.c | 77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object_types.h | 86 int (*pwrite)(struct drm_i915_gem_object *obj, member
|
H A D | i915_gem_userptr.c | 393 .pwrite = i915_gem_userptr_pwrite,
|
H A D | i915_gem_shmem.c | 540 .pwrite = shmem_pwrite,
|
/linux/tools/testing/selftests/kvm/ |
H A D | guest_memfd_test.c | 33 TEST_ASSERT(pwrite(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
|
H A D | access_tracking_perf_test.c | 122 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle()
|
/linux/tools/testing/selftests/mm/ |
H A D | memfd_secret.c | 52 (pwrite(fd, buf, sizeof(buf), 0) >= 0)) in test_file_apis()
|
H A D | hmm-tests.c | 874 len = pwrite(fd, buffer->mirror, size, 0); in TEST_F()
|
/linux/Documentation/arch/sparc/oradax/ |
H A D | oracle-dax.rst | 143 pwrite() system call. If -1 is returned then errno is set to indicate 187 - submit CCB via write() or pwrite() 334 The CCB submission is a write() or pwrite() system call to the 338 if (pwrite(fd, ccb, 64, 0) != 64) {
|
/linux/Documentation/filesystems/spufs/ |
H A D | spufs.rst | 68 read(2), pread(2), write(2), pwrite(2), lseek(2) 70 write(2) and pwrite(2) are not supported beyond the end of the
|
/linux/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 661 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_assert_grow_write() 663 printf("pwrite() failed: %m\n"); in mfd_assert_grow_write() 685 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_fail_grow_write() 687 printf("pwrite() didn't fail as expected\n"); in mfd_fail_grow_write()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_gem.c | 776 if (obj->ops->pwrite) in i915_gem_pwrite_ioctl() 777 ret = obj->ops->pwrite(obj, args); in i915_gem_pwrite_ioctl()
|
/linux/tools/testing/selftests/sparc64/drivers/ |
H A D | adi-test.c | 270 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
|
/linux/tools/mm/ |
H A D | page-types.c | 592 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
|
/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 715 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
|
/linux/drivers/staging/media/av7110/ |
H A D | av7110_av.c | 263 (unsigned long)buf->pread, (unsigned long)buf->pwrite); in av7110_pes_play()
|
/linux/Documentation/driver-api/ |
H A D | uio-howto.rst | 647 err = pwrite(configfd, &command_high, 1, 5);
|
/linux/Documentation/filesystems/ |
H A D | proc.rst | 1805 write() and pwrite().
|