Lines Matching refs:async
243 struct comedi_async *async = s->async; in usbduxsub_ai_handle_urb() local
244 struct comedi_cmd *cmd = &async->cmd; in usbduxsub_ai_handle_urb()
267 async->scans_done >= cmd->stop_arg) in usbduxsub_ai_handle_urb()
268 async->events |= COMEDI_CB_EOA; in usbduxsub_ai_handle_urb()
272 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ai_handle_urb()
282 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_handle_urb()
291 struct comedi_async *async = s->async; in usbduxsub_ai_isoc_irq() local
320 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
328 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
336 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsub_ai_isoc_irq()
371 struct comedi_async *async = s->async; in usbduxsub_ao_handle_urb() local
372 struct comedi_cmd *cmd = &async->cmd; in usbduxsub_ao_handle_urb()
382 async->scans_done >= cmd->stop_arg) { in usbduxsub_ao_handle_urb()
383 async->events |= COMEDI_CB_EOA; in usbduxsub_ao_handle_urb()
396 async->events |= COMEDI_CB_OVERFLOW; in usbduxsub_ao_handle_urb()
409 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ao_handle_urb()
429 async->events |= COMEDI_CB_ERROR; in usbduxsub_ao_handle_urb()
438 struct comedi_async *async = s->async; in usbduxsub_ao_isoc_irq() local
455 async->events |= COMEDI_CB_ERROR; in usbduxsub_ao_isoc_irq()
463 async->events |= COMEDI_CB_ERROR; in usbduxsub_ao_isoc_irq()
471 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsub_ao_isoc_irq()
633 struct comedi_cmd *cmd = &s->async->cmd; in usbdux_ai_inttrig()
649 s->async->inttrig = NULL; in usbdux_ai_inttrig()
662 struct comedi_cmd *cmd = &s->async->cmd; in usbdux_ai_cmd()
720 s->async->inttrig = NULL; in usbdux_ai_cmd()
725 s->async->inttrig = usbdux_ai_inttrig; in usbdux_ai_cmd()
840 struct comedi_cmd *cmd = &s->async->cmd; in usbdux_ao_inttrig()
856 s->async->inttrig = NULL; in usbdux_ao_inttrig()
949 struct comedi_cmd *cmd = &s->async->cmd; in usbdux_ao_cmd()
985 s->async->inttrig = NULL; in usbdux_ao_cmd()
990 s->async->inttrig = usbdux_ao_inttrig; in usbdux_ao_cmd()