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