/linux/drivers/media/dvb-core/ |
A D | dvb_ringbuffer.c | 40 rbuf->pread=rbuf->pwrite=0; in dvb_ringbuffer_init() 74 free = READ_ONCE(rbuf->pread) - rbuf->pwrite; in dvb_ringbuffer_free() 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() 198 smp_store_release(&rbuf->pwrite, 0); in dvb_ringbuffer_write() 202 smp_store_release(&rbuf->pwrite, (rbuf->pwrite + todo) % rbuf->size); in dvb_ringbuffer_write() 214 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write_user() 227 smp_store_release(&rbuf->pwrite, 0); in dvb_ringbuffer_write_user() 233 smp_store_release(&rbuf->pwrite, (rbuf->pwrite + todo) % rbuf->size); in dvb_ringbuffer_write_user() 241 ssize_t oldpwrite = rbuf->pwrite; in dvb_ringbuffer_pkt_write() [all …]
|
/linux/include/media/ |
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/ |
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 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() 1175 struct rio_pwrite *pwrite; in rio_inb_pwrite_handler() local [all …]
|
/linux/tools/hv/ |
A D | hv_fcopy_daemon.c | 93 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data() 261 if (pwrite(fcopy_fd, &error, sizeof(int), 0) != sizeof(int)) { in main()
|
/linux/tools/perf/util/ |
A D | copyfile.c | 58 ssize_t ret = pwrite(ofd, ptr + off_in, size, off_out); in copyfile_offset()
|
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/ |
A D | i915_gem_object_types.h | 62 int (*pwrite)(struct drm_i915_gem_object *obj, member
|
A D | i915_gem_userptr.c | 418 .pwrite = i915_gem_userptr_pwrite,
|
A D | i915_gem_shmem.c | 478 .pwrite = shmem_pwrite,
|
/linux/tools/testing/selftests/vm/ |
A D | memfd_secret.c | 53 (pwrite(fd, buf, sizeof(buf), 0) >= 0)) in test_file_apis()
|
A D | hmm-tests.c | 762 len = pwrite(fd, buffer->mirror, size, 0); in TEST_F()
|
/linux/tools/testing/selftests/kvm/ |
A D | access_tracking_perf_test.c | 126 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle()
|
/linux/Documentation/sparc/oradax/ |
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/tools/testing/selftests/memfd/ |
A D | memfd_test.c | 565 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_assert_grow_write() 589 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_fail_grow_write()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_gem.c | 747 if (obj->ops->pwrite) in i915_gem_pwrite_ioctl() 748 ret = obj->ops->pwrite(obj, args); in i915_gem_pwrite_ioctl()
|
/linux/Documentation/filesystems/spufs/ |
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/arch/um/os-Linux/ |
A D | file.c | 302 int n = pwrite(fd, (void *) buf, len, offset); in os_pwrite_file()
|
/linux/tools/testing/selftests/sparc64/drivers/ |
A D | adi-test.c | 274 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
|
/linux/tools/vm/ |
A D | page-types.c | 590 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
|
/linux/tools/power/x86/x86_energy_perf_policy/ |
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/ |
A D | av7110_av.c | 261 (unsigned long) buf->pread, (unsigned long) buf->pwrite); in av7110_pes_play()
|
/linux/Documentation/driver-api/ |
A D | uio-howto.rst | 647 err = pwrite(configfd, &command_high, 1, 5);
|
/linux/Documentation/filesystems/ |
A D | proc.rst | 1762 write() and pwrite().
|