Lines Matching refs:split
140 size_t split; in dvb_ringbuffer_read_user() local
142 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()
143 if (split > 0) { in dvb_ringbuffer_read_user()
144 if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) in dvb_ringbuffer_read_user()
146 buf += split; in dvb_ringbuffer_read_user()
147 todo -= split; in dvb_ringbuffer_read_user()
166 size_t split; in dvb_ringbuffer_read() local
168 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read()
169 if (split > 0) { in dvb_ringbuffer_read()
170 memcpy(buf, rbuf->data+rbuf->pread, split); in dvb_ringbuffer_read()
171 buf += split; in dvb_ringbuffer_read()
172 todo -= split; in dvb_ringbuffer_read()
189 size_t split; in dvb_ringbuffer_write() local
191 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write()
193 if (split > 0) { in dvb_ringbuffer_write()
194 memcpy(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write()
195 buf += split; in dvb_ringbuffer_write()
196 todo -= split; in dvb_ringbuffer_write()
216 size_t split; in dvb_ringbuffer_write_user() local
218 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write_user()
220 if (split > 0) { in dvb_ringbuffer_write_user()
221 status = copy_from_user(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write_user()
224 buf += split; in dvb_ringbuffer_write_user()
225 todo -= split; in dvb_ringbuffer_write_user()
260 size_t split; in dvb_ringbuffer_pkt_read_user() local
270 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read_user()
271 if (split > 0) { in dvb_ringbuffer_pkt_read_user()
272 if (copy_to_user(buf, rbuf->data+idx, split)) in dvb_ringbuffer_pkt_read_user()
274 buf += split; in dvb_ringbuffer_pkt_read_user()
275 todo -= split; in dvb_ringbuffer_pkt_read_user()
288 size_t split; in dvb_ringbuffer_pkt_read() local
298 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read()
299 if (split > 0) { in dvb_ringbuffer_pkt_read()
300 memcpy(buf, rbuf->data+idx, split); in dvb_ringbuffer_pkt_read()
301 buf += split; in dvb_ringbuffer_pkt_read()
302 todo -= split; in dvb_ringbuffer_pkt_read()