Lines Matching refs:todo
135 size_t todo = len; in dvb_ringbuffer_read_user() local
143 todo -= split; in dvb_ringbuffer_read_user()
150 if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) in dvb_ringbuffer_read_user()
154 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read_user()
161 size_t todo = len; in dvb_ringbuffer_read() local
168 todo -= split; in dvb_ringbuffer_read()
175 memcpy(buf, rbuf->data+rbuf->pread, todo); in dvb_ringbuffer_read()
178 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read()
184 size_t todo = len; in dvb_ringbuffer_write() local
192 todo -= split; in dvb_ringbuffer_write()
200 memcpy(rbuf->data+rbuf->pwrite, buf, todo); in dvb_ringbuffer_write()
202 smp_store_release(&rbuf->pwrite, (rbuf->pwrite + todo) % rbuf->size); in dvb_ringbuffer_write()
211 size_t todo = len; in dvb_ringbuffer_write_user() local
219 return len - todo; in dvb_ringbuffer_write_user()
221 todo -= split; in dvb_ringbuffer_write_user()
229 status = copy_from_user(rbuf->data+rbuf->pwrite, buf, todo); in dvb_ringbuffer_write_user()
231 return len - todo; in dvb_ringbuffer_write_user()
233 smp_store_release(&rbuf->pwrite, (rbuf->pwrite + todo) % rbuf->size); in dvb_ringbuffer_write_user()
255 size_t todo; in dvb_ringbuffer_pkt_read_user() local
265 todo = len; in dvb_ringbuffer_pkt_read_user()
271 todo -= split; in dvb_ringbuffer_pkt_read_user()
274 if (copy_to_user(buf, rbuf->data+idx, todo)) in dvb_ringbuffer_pkt_read_user()
283 size_t todo; in dvb_ringbuffer_pkt_read() local
293 todo = len; in dvb_ringbuffer_pkt_read()
298 todo -= split; in dvb_ringbuffer_pkt_read()
301 memcpy(buf, rbuf->data+idx, todo); in dvb_ringbuffer_pkt_read()