Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/media/dvb-core/
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-4.19.296/include/media/
Ddvb_ringbuffer.h45 ssize_t pwrite; member
178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \
179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }