Lines Matching refs:async
76 struct comedi_async *async;
208 /* hw_dev is passed to dma_alloc_coherent when allocating async buffers
408 int comedi_buf_put(struct comedi_async *async, short x);
409 int comedi_buf_get(struct comedi_async *async, short *x);
411 unsigned int comedi_buf_write_n_available(struct comedi_async *async);
412 unsigned int comedi_buf_write_alloc(struct comedi_async *async,
414 unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async,
416 unsigned comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes);
417 unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes);
418 unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes);
419 unsigned int comedi_buf_read_n_available(struct comedi_async *async);
420 void comedi_buf_memcpy_to(struct comedi_async *async, unsigned int offset,
422 void comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset,
424 static inline unsigned comedi_buf_write_n_allocated(struct comedi_async *async)
426 return async->buf_write_alloc_count - async->buf_write_count;
429 static inline unsigned comedi_buf_read_n_allocated(struct comedi_async *async)
431 return async->buf_read_alloc_count - async->buf_read_count;