Home
last modified time | relevance | path

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

/linux/drivers/media/dvb-core/
H A Ddvb_ringbuffer.c40 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 Ddvb_ringbuffer.h45 ssize_t pwrite; member
178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \
179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
/linux/drivers/rapidio/
H A Drio.c566 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 Dhv_fcopy_daemon.c
H A Dhv_fcopy_uio_daemon.c124 len = pwrite(target_fd, cpmsg->data, cpmsg->size, cpmsg->offset); in hv_copy_data()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c130 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 Dcopyfile.c58 ssize_t ret = pwrite(ofd, ptr + off_in, size, off_out); in copyfile_offset()
H A Dtrace-event-info.c77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object_types.h86 int (*pwrite)(struct drm_i915_gem_object *obj, member
H A Di915_gem_userptr.c393 .pwrite = i915_gem_userptr_pwrite,
H A Di915_gem_shmem.c540 .pwrite = shmem_pwrite,
/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c33 TEST_ASSERT(pwrite(fd, buf, sizeof(buf), 0) < 0, in test_file_read_write()
H A Daccess_tracking_perf_test.c122 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle()
/linux/tools/testing/selftests/mm/
H A Dmemfd_secret.c52 (pwrite(fd, buf, sizeof(buf), 0) >= 0)) in test_file_apis()
H A Dhmm-tests.c874 len = pwrite(fd, buffer->mirror, size, 0); in TEST_F()
/linux/Documentation/arch/sparc/oradax/
H A Doracle-dax.rst143 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 Dspufs.rst68 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 Dmemfd_test.c661 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 Di915_gem.c776 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 Dadi-test.c270 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
/linux/tools/mm/
H A Dpage-types.c592 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
/linux/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c715 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
/linux/drivers/staging/media/av7110/
H A Dav7110_av.c263 (unsigned long)buf->pread, (unsigned long)buf->pwrite); in av7110_pes_play()
/linux/Documentation/driver-api/
H A Duio-howto.rst647 err = pwrite(configfd, &command_high, 1, 5);
/linux/Documentation/filesystems/
H A Dproc.rst1805 write() and pwrite().