Lines Matching refs:prealloc_bufsz
64 async->prealloc_bufsz = 0; in __comedi_buf_free()
268 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
286 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
316 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_unalloc()
324 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_available()
383 buf_end = async->prealloc_bufsz - async->munge_ptr; in comedi_buf_munge()
401 async->munge_ptr %= async->prealloc_bufsz; in comedi_buf_munge()
442 if (async->buf_write_ptr >= async->prealloc_bufsz) in comedi_buf_write_free()
443 async->buf_write_ptr %= async->prealloc_bufsz; in comedi_buf_write_free()
553 async->buf_read_ptr %= async->prealloc_bufsz; in comedi_buf_read_free()
567 if (write_ptr + num_bytes > async->prealloc_bufsz) in comedi_buf_memcpy_to()
568 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
593 if (nbytes >= async->prealloc_bufsz - read_ptr) in comedi_buf_memcpy_from()
594 block_size = async->prealloc_bufsz - read_ptr; in comedi_buf_memcpy_from()