Lines Matching refs:prealloc_bufsz
63 async->prealloc_bufsz = 0; in __comedi_buf_free()
267 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
285 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
315 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_unalloc()
323 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_available()
382 buf_end = async->prealloc_bufsz - async->munge_ptr; in comedi_buf_munge()
400 async->munge_ptr %= async->prealloc_bufsz; in comedi_buf_munge()
441 if (async->buf_write_ptr >= async->prealloc_bufsz) in comedi_buf_write_free()
442 async->buf_write_ptr %= async->prealloc_bufsz; in comedi_buf_write_free()
552 async->buf_read_ptr %= async->prealloc_bufsz; in comedi_buf_read_free()
566 if (write_ptr + num_bytes > async->prealloc_bufsz) in comedi_buf_memcpy_to()
567 block_size = async->prealloc_bufsz - write_ptr; in comedi_buf_memcpy_to()
592 if (nbytes >= async->prealloc_bufsz - read_ptr) in comedi_buf_memcpy_from()
593 block_size = async->prealloc_bufsz - read_ptr; in comedi_buf_memcpy_from()