/kernel/linux/linux-5.10/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, in dvb_ringbuffer_write() [all...] |
/kernel/linux/linux-6.6/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, in dvb_ringbuffer_write() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pwrite.c | 46 size_t cnt = pwrite(fd, txt, strlen(txt), 0); in pwrite_0100() 65 size_t cnt = pwrite(-1, txt, strlen(txt), 0); in pwrite_0200() 74 cnt = pwrite(fd, txt, 0, 0); in pwrite_0200() 77 cnt = pwrite(fd, NULL, 0, 0); in pwrite_0200()
|
H A D | pread.c | 38 pwrite(fd, txt, strlen(txt), 0); in pread_0100() 63 pwrite(fd, txt, strlen(txt), 0); in pread_0200() 87 pwrite(fd, txt, strlen(txt), 0); in pread_0300()
|
/kernel/linux/linux-5.10/include/media/ |
H A D | dvb_ringbuffer.h | 35 * @pwrite: next position to write 45 ssize_t pwrite; member 178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \ 179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
|
/kernel/linux/linux-6.6/include/media/ |
H A D | dvb_ringbuffer.h | 35 * @pwrite: next position to write 45 ssize_t pwrite; member 178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \ 179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
|
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
H A D | ttsbit.c | 762 FT_Byte* pwrite = line; in tt_sbit_decoder_load_byte_aligned() local 768 pwrite[0] = (FT_Byte)( pwrite[0] | *p++ ); in tt_sbit_decoder_load_byte_aligned() 769 pwrite += 1; in tt_sbit_decoder_load_byte_aligned() 773 pwrite[0] = (FT_Byte)( pwrite[0] | ( *p++ & ( 0xFF00U >> w ) ) ); in tt_sbit_decoder_load_byte_aligned() 780 FT_Byte* pwrite = line; in tt_sbit_decoder_load_byte_aligned() local 788 pwrite[0] = (FT_Byte)( pwrite[0] | ( wval >> x_pos ) ); in tt_sbit_decoder_load_byte_aligned() 789 pwrite in tt_sbit_decoder_load_byte_aligned() 915 FT_Byte* pwrite = line; tt_sbit_decoder_load_bit_aligned() local [all...] |
/third_party/musl/src/unistd/ |
H A D | pwrite.c | 4 ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs) in pwrite() function 9 weak_alias(pwrite, pwrite64);
|
/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_pwrite_test.c | 35 * @tc.name pwrite 47 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */ 62 * @tc.name pwrite 74 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */ 90 * @tc.name pwrite 102 ret = pwrite(fd, writeBuf, TEST_BUF_SIZE, 0); /* 0, offset distance */
|
/third_party/musl/porting/linux/user/include/fortify/ |
H A D | unistd.h | 45 ssize_t __pwrite_real(int, const void*, size_t, off_t) __DIAGNOSE_RENAME(pwrite); variable 88 ssize_t pwrite(int fd, const void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset) 90 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pwrite) 91 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pwrite) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
|
/third_party/musl/include/fortify/linux/ |
H A D | unistd.h | 45 ssize_t __pwrite_real(int, const void*, size_t, off_t) __DIAGNOSE_RENAME(pwrite); variable 88 ssize_t pwrite(int fd, const void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset) 90 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pwrite) 91 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pwrite) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | unistdndk1.cpp | 134 size_t ret = pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PWrite_One() 144 int ret = pwrite(MPARAM_1, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PWrite_Two() 155 pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in PRead64_One() 199 pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in Lseek_One() 222 pwrite(fileDescribe, g_tempFileContent, strlen(g_tempFileContent), PARAM_0);
in Lseek64_One()
|
/third_party/rust/crates/rustix/src/io/ |
H A D | read_write.rs | 63 /// `pwrite(fd, bufs)`—Writes to a file at a given position. 74 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html 75 /// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html 76 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pwrite.2.html 78 pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> { in pwrite() functions 79 backend::io::syscalls::pwrite(fd.as_fd(), buf, offset) in pwrite()
|
/kernel/linux/linux-5.10/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 in rio_del_mport_pw_handler() 1175 struct rio_pwrite *pwrite; rio_inb_pwrite_handler() local [all...] |
/kernel/linux/linux-6.6/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 in rio_del_mport_pw_handler() 1175 struct rio_pwrite *pwrite; rio_inb_pwrite_handler() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/pwrite/ |
H A D | pwrite03.c | 20 TST_EXP_PASS(pwrite(fd, NULL, 0, 0), "pwrite(%d, NULL, 0) == 0", fd); in verify_pwrite()
|
/kernel/linux/linux-5.10/tools/hv/ |
H A D | hv_fcopy_daemon.c | 93 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data() 106 syslog(LOG_ERR, "pwrite failed to write %llu bytes: %ld (%s)", in hv_copy_data() 257 * pwrite() may return an error due to the faked CANCEL_FCOPY in main() 261 if (pwrite(fcopy_fd, &error, sizeof(int), 0) != sizeof(int)) { in main() 262 syslog(LOG_ERR, "pwrite failed: %s", strerror(errno)); in main()
|
/kernel/linux/linux-6.6/tools/hv/ |
H A D | hv_fcopy_daemon.c | 93 bytes_written = pwrite(target_fd, cpmsg->data, cpmsg->size, in hv_copy_data() 106 syslog(LOG_ERR, "pwrite failed to write %llu bytes: %ld (%s)", in hv_copy_data() 257 * pwrite() may return an error due to the faked CANCEL_FCOPY in main() 261 if (pwrite(fcopy_fd, &error, sizeof(int), 0) != sizeof(int)) { in main() 262 syslog(LOG_ERR, "pwrite failed: %s", strerror(errno)); in main()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | uio.rs | 45 /// See also: [`writev`](fn.writev.html) and [`pwrite`](fn.pwrite.html) 97 /// See also [pwrite(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html) 99 pub fn pwrite(fd: RawFd, buf: &[u8], offset: off_t) -> Result<usize> { in pwrite() functions 101 libc::pwrite( in pwrite()
|
/third_party/rust/crates/rustix/tests/fs/ |
H A D | invalid_offset.rs | 127 use rustix::io::pwrite; in invalid_offset_pwrite() 139 pwrite(&file, &buf, u64::MAX).unwrap_err(); in invalid_offset_pwrite() 140 pwrite(&file, &buf, i64::MAX as u64 + 1).unwrap_err(); in invalid_offset_pwrite()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | read_write.rs | 48 use rustix::io::{pread, pwrite}; in test_readwrite_p() 60 pwrite(&foo, b"hello", 200).unwrap(); in test_readwrite_p() 61 pwrite(&foo, b"world", 300).unwrap(); in test_readwrite_p()
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_pwrite.c | 41 * Equivalent to the standard pwrite function except that is accepts a 100 * Name: pwrite 103 * The pwrite() function performs the same action as write(), except that 105 * first three arguments to pwrite() are the same as write() with the 110 * it is not. Why? Because if pwrite were implemented in libc, it would 126 * effect on the location at which pwrite() writes data. However, on NuttX 127 * like on Linux, if a file is opened with O_APPEND, pwrite() appends data 132 ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset) in pwrite() function
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | unix_io.c | 323 return pwrite(DEV_FD(dev), buf, count, offset); in ntfs_device_unix_io_pwrite() 388 .pwrite = ntfs_device_unix_io_pwrite,
|
/kernel/linux/linux-6.6/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()
|
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_writev.c | 126 : pwrite(fd, buf, bytestowrite, *offset); in vfs_writev()
|