Lines Matching refs:split

136 	size_t split;  in dvb_ringbuffer_read_user()  local
138 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()
139 if (split > 0) { in dvb_ringbuffer_read_user()
140 if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) in dvb_ringbuffer_read_user()
142 buf += split; in dvb_ringbuffer_read_user()
143 todo -= split; in dvb_ringbuffer_read_user()
162 size_t split; in dvb_ringbuffer_read() local
164 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read()
165 if (split > 0) { in dvb_ringbuffer_read()
166 memcpy(buf, rbuf->data+rbuf->pread, split); in dvb_ringbuffer_read()
167 buf += split; in dvb_ringbuffer_read()
168 todo -= split; in dvb_ringbuffer_read()
185 size_t split; in dvb_ringbuffer_write() local
187 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write()
189 if (split > 0) { in dvb_ringbuffer_write()
190 memcpy(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write()
191 buf += split; in dvb_ringbuffer_write()
192 todo -= split; in dvb_ringbuffer_write()
212 size_t split; in dvb_ringbuffer_write_user() local
214 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write_user()
216 if (split > 0) { in dvb_ringbuffer_write_user()
217 status = copy_from_user(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write_user()
220 buf += split; in dvb_ringbuffer_write_user()
221 todo -= split; in dvb_ringbuffer_write_user()
256 size_t split; in dvb_ringbuffer_pkt_read_user() local
266 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read_user()
267 if (split > 0) { in dvb_ringbuffer_pkt_read_user()
268 if (copy_to_user(buf, rbuf->data+idx, split)) in dvb_ringbuffer_pkt_read_user()
270 buf += split; in dvb_ringbuffer_pkt_read_user()
271 todo -= split; in dvb_ringbuffer_pkt_read_user()
284 size_t split; in dvb_ringbuffer_pkt_read() local
294 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; in dvb_ringbuffer_pkt_read()
295 if (split > 0) { in dvb_ringbuffer_pkt_read()
296 memcpy(buf, rbuf->data+idx, split); in dvb_ringbuffer_pkt_read()
297 buf += split; in dvb_ringbuffer_pkt_read()
298 todo -= split; in dvb_ringbuffer_pkt_read()