Lines Matching refs:async
273 struct comedi_async *async = s->async;
277 old_alloc_count = async->buf_write_alloc_count;
279 comedi_buf_write_alloc(s, async->prealloc_bufsz);
286 async->events |= COMEDI_CB_OVERFLOW;
290 count = nbytes - async->buf_write_count;
298 async->events |= COMEDI_CB_BLOCK;
305 struct comedi_async *async = s->async;
306 struct comedi_cmd *cmd = &async->cmd;
308 unsigned int old_alloc_count = async->buf_read_alloc_count;
314 comedi_buf_read_alloc(s, async->prealloc_bufsz);
325 async->events |= COMEDI_CB_OVERFLOW;
339 count = nbytes_lb - async->buf_read_count;
342 async->events |= COMEDI_CB_BLOCK;
347 * mite_sync_dma() - Sync the MITE dma with the COMEDI async buffer.
403 s->async->events |= COMEDI_CB_ERROR;
653 struct comedi_async *async = s->async;
672 desc->addr = cpu_to_le32(async->buf_map->page_list[i].dma_addr);
682 desc->addr = cpu_to_le32(async->buf_map->page_list[i].dma_addr);
718 struct comedi_async *async = s->async;
724 if (async->prealloc_bufsz == 0)
727 n_links = async->prealloc_bufsz >> PAGE_SHIFT;