Lines Matching refs:block_size
379 int block_size = num_bytes - count; in comedi_buf_munge() local
383 if (block_size > buf_end) in comedi_buf_munge()
384 block_size = buf_end; in comedi_buf_munge()
388 block_size, async->munge_chan); in comedi_buf_munge()
396 async->munge_chan += block_size / num_sample_bytes; in comedi_buf_munge()
398 async->munge_count += block_size; in comedi_buf_munge()
399 async->munge_ptr += block_size; in comedi_buf_munge()
401 count += block_size; in comedi_buf_munge()
564 unsigned int block_size; in comedi_buf_memcpy_to() local
567 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
569 block_size = num_bytes; in comedi_buf_memcpy_to()
571 memcpy(async->prealloc_buf + write_ptr, data, block_size); in comedi_buf_memcpy_to()
573 data += block_size; in comedi_buf_memcpy_to()
574 num_bytes -= block_size; in comedi_buf_memcpy_to()
588 unsigned int block_size; in comedi_buf_memcpy_from() local
593 block_size = async->prealloc_bufsz - read_ptr; in comedi_buf_memcpy_from()
595 block_size = nbytes; in comedi_buf_memcpy_from()
597 memcpy(dest, src, block_size); in comedi_buf_memcpy_from()
598 nbytes -= block_size; in comedi_buf_memcpy_from()
599 dest += block_size; in comedi_buf_memcpy_from()