/drivers/staging/comedi/ |
D | drivers.c | 74 if (s->async) { in cleanup_device() 76 kfree(s->async); in cleanup_device() 232 comedi_async *async = NULL; in postconfig() local 249 async = kzalloc(sizeof(comedi_async), GFP_KERNEL); in postconfig() 250 if (async == NULL) { in postconfig() 254 init_waitqueue_head(&async->wait_head); in postconfig() 255 async->subdevice = s; in postconfig() 256 s->async = async; in postconfig() 261 async->max_bufsize = DEFAULT_BUF_MAXSIZE; in postconfig() 263 async->prealloc_buf = NULL; in postconfig() [all …]
|
D | comedi_fops.c | 268 comedi_async *async; in do_bufconfig_ioctl() local 279 async = s->async; in do_bufconfig_ioctl() 281 if (!async) { in do_bufconfig_ioctl() 292 async->max_bufsize = bc.maximum_size; in do_bufconfig_ioctl() 296 if (bc.size > async->max_bufsize) in do_bufconfig_ioctl() 303 if (async->mmap_count) { in do_bufconfig_ioctl() 308 if (!async->prealloc_buf) in do_bufconfig_ioctl() 326 dev->minor, bc.subdevice, async->prealloc_bufsz); in do_bufconfig_ioctl() 329 bc.size = async->prealloc_bufsz; in do_bufconfig_ioctl() 330 bc.maximum_size = async->max_bufsize; in do_bufconfig_ioctl() [all …]
|
D | comedidev.h | 147 comedi_async *async; member 477 int comedi_buf_put(comedi_async *async, sampl_t x); 478 int comedi_buf_get(comedi_async *async, sampl_t *x); 480 unsigned int comedi_buf_write_n_available(comedi_async *async); 481 unsigned int comedi_buf_write_alloc(comedi_async *async, unsigned int nbytes); 482 unsigned int comedi_buf_write_alloc_strict(comedi_async *async, 484 unsigned comedi_buf_write_free(comedi_async *async, unsigned int nbytes); 485 unsigned comedi_buf_read_alloc(comedi_async *async, unsigned nbytes); 486 unsigned comedi_buf_read_free(comedi_async *async, unsigned int nbytes); 487 unsigned int comedi_buf_read_n_available(comedi_async *async); [all …]
|
/drivers/staging/comedi/kcomedilib/ |
D | get.c | 178 comedi_async *async; in comedi_get_buf_head_pos() local 180 async = s->async; in comedi_get_buf_head_pos() 181 if (async == NULL) in comedi_get_buf_head_pos() 184 return async->buf_write_count; in comedi_get_buf_head_pos() 191 comedi_async *async; in comedi_get_buffer_contents() local 196 async = s->async; in comedi_get_buffer_contents() 197 if (async == NULL) in comedi_get_buffer_contents() 199 num_bytes = comedi_buf_read_n_available(s->async); in comedi_get_buffer_contents() 211 comedi_async *async; in comedi_set_user_int_count() local 214 async = s->async; in comedi_set_user_int_count() [all …]
|
D | kcomedilib_main.c | 128 comedi_async *async; in comedi_command() local 138 async = s->async; in comedi_command() 139 if (async == NULL) in comedi_command() 146 if (async->cb_mask & COMEDI_CB_EOS) in comedi_command() 149 async->cmd = *cmd; in comedi_command() 159 comedi_reset_async_buf(async); in comedi_command() 176 if (s->async == NULL) in comedi_command_test() 226 if (!s->async) { in comedi_do_insn() 231 if (!s->async->inttrig) { in comedi_do_insn() 236 ret = s->async->inttrig(dev, s, insn->data[0]); in comedi_do_insn() [all …]
|
/drivers/staging/comedi/drivers/ |
D | comedi_fc.c | 34 comedi_async *async = subd->async; in increment_scan_progress() local 37 async->scan_progress += num_bytes; in increment_scan_progress() 38 if (async->scan_progress >= scan_length) { in increment_scan_progress() 39 async->scan_progress %= scan_length; in increment_scan_progress() 40 async->events |= COMEDI_CB_EOS; in increment_scan_progress() 48 comedi_async *async = subd->async; in cfc_write_array_to_buffer() local 54 retval = comedi_buf_write_alloc(async, num_bytes); in cfc_write_array_to_buffer() 57 async->events |= COMEDI_CB_OVERFLOW; in cfc_write_array_to_buffer() 61 comedi_buf_memcpy_to(async, 0, data, num_bytes); in cfc_write_array_to_buffer() 62 comedi_buf_write_free(async, num_bytes); in cfc_write_array_to_buffer() [all …]
|
D | mite.c | 320 int mite_buf_change(struct mite_dma_descriptor_ring *ring, comedi_async * async) in mite_buf_change() argument 334 if (async->prealloc_bufsz == 0) { in mite_buf_change() 337 n_links = async->prealloc_bufsz >> PAGE_SHIFT; in mite_buf_change() 354 cpu_to_le32(async->buf_page_list[i].dma_addr); in mite_buf_change() 529 int mite_sync_input_dma(struct mite_channel *mite_chan, comedi_async * async) in mite_sync_input_dma() argument 533 const unsigned bytes_per_scan = cfc_bytes_per_scan(async->subdevice); in mite_sync_input_dma() 535 old_alloc_count = async->buf_write_alloc_count; in mite_sync_input_dma() 537 comedi_buf_write_alloc(async, async->prealloc_bufsz); in mite_sync_input_dma() 543 async->events |= COMEDI_CB_OVERFLOW; in mite_sync_input_dma() 547 count = nbytes - async->buf_write_count; in mite_sync_input_dma() [all …]
|
D | usbdux.c | 428 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq() 429 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq() 443 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq() 444 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq() 476 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq() 477 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq() 500 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq() 506 n = s->async->cmd.chanlist_len; in usbduxsub_ai_IsocIrq() 509 if (CR_RANGE(s->async->cmd.chanlist[i]) <= 1) { in usbduxsub_ai_IsocIrq() 511 (s->async, in usbduxsub_ai_IsocIrq() [all …]
|
D | comedi_test.c | 147 comedi_async *async = dev->read_subdev->async; in waveform_ai_interrupt() local 148 comedi_cmd *cmd = &async->cmd; in waveform_ai_interrupt() 165 async->events = 0; in waveform_ai_interrupt() 179 async->events |= COMEDI_CB_EOA; in waveform_ai_interrupt() 187 if ((async->events & COMEDI_CB_EOA) == 0 && devpriv->timer_running) in waveform_ai_interrupt() 402 comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd()
|
D | rtd520.c | 1329 if (CHAN_ARRAY_TEST(devpriv->chanBipolar, s->async->cur_chan)) { in ai_read_n() 1334 if (!comedi_buf_put(s->async, sample)) in ai_read_n() 1357 if (CHAN_ARRAY_TEST(devpriv->chanBipolar, s->async->cur_chan)) { in ai_read_dregs() 1362 if (!comedi_buf_put(s->async, sample)) in ai_read_dregs() 1446 if (CHAN_ARRAY_TEST(devpriv->chanBipolar, s->async->cur_chan)) { in ai_process_dma() 1453 if (++s->async->cur_chan >= s->async->cmd.chanlist_len) in ai_process_dma() 1454 s->async->cur_chan = 0; in ai_process_dma() 1467 n = comedi_buf_write_alloc(s->async, ii * sizeof(s16)); in ai_process_dma() 1471 s->async->events |= COMEDI_CB_ERROR; in ai_process_dma() 1474 comedi_buf_memcpy_to(s->async, 0, dp, n); in ai_process_dma() [all …]
|
D | comedi_fc.h | 66 num_samples = (subd->async->cmd.chanlist_len + in cfc_bytes_per_scan() 70 num_samples = subd->async->cmd.chanlist_len; in cfc_bytes_per_scan()
|
D | mite.h | 145 int mite_sync_input_dma(struct mite_channel *mite_chan, comedi_async * async); 146 int mite_sync_output_dma(struct mite_channel *mite_chan, comedi_async * async); 156 unsigned long mite_ll_from_kvmem(struct mite_struct *mite, comedi_async * async, 165 comedi_async * async);
|
D | usbduxfast.c | 355 s->async->events |= COMEDI_CB_EOA; in usbduxfastsub_ai_Irq() 356 s->async->events |= COMEDI_CB_ERROR; in usbduxfastsub_ai_Irq() 364 s->async->events |= COMEDI_CB_EOA; in usbduxfastsub_ai_Irq() 365 s->async->events |= COMEDI_CB_ERROR; in usbduxfastsub_ai_Irq() 384 s->async->events |= COMEDI_CB_EOA; in usbduxfastsub_ai_Irq() 410 s->async->events |= COMEDI_CB_EOA; in usbduxfastsub_ai_Irq() 411 s->async->events |= COMEDI_CB_ERROR; in usbduxfastsub_ai_Irq() 746 s->async->inttrig = NULL; in usbduxfast_ai_inttrig() 764 comedi_cmd *cmd = &s->async->cmd; in usbduxfast_ai_cmd() 788 s->async->cur_chan = 0; in usbduxfast_ai_cmd() [all …]
|
D | me4000.c | 1346 comedi_cmd *cmd = &s->async->cmd; in me4000_ai_do_cmd() 1769 s->async->events = 0; in me4000_ai_isr() 1800 s->async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; in me4000_ai_isr() 1810 s->async->events |= COMEDI_CB_BLOCK; in me4000_ai_isr() 1825 s->async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; in me4000_ai_isr() 1839 if (!comedi_buf_put(s->async, lval)) { in me4000_ai_isr() 1846 s->async->events |= COMEDI_CB_OVERFLOW; in me4000_ai_isr() 1870 s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOA; in me4000_ai_isr() 1884 if (!comedi_buf_put(s->async, lval)) { in me4000_ai_isr() 1888 s->async->events |= COMEDI_CB_OVERFLOW; in me4000_ai_isr() [all …]
|
D | s626.c | 1009 cmd = &(s->async->cmd); in s626_irq_handler() 1017 for (i = 0; i < (s->async->cmd.chanlist_len); i++) { in s626_irq_handler() 1033 s->async->events |= COMEDI_CB_EOS; in s626_irq_handler() 1044 s->async->events |= COMEDI_CB_EOA; in s626_irq_handler() 1058 DEBUG("s626_irq_handler: events %d\n", s->async->events); in s626_irq_handler() 1067 cmd = &(s->async->cmd); in s626_irq_handler() 1318 comedi_cmd *cmd = &(dev->subdevices->async->cmd); in ResetADC() 1652 s->async->inttrig = NULL; in s626_ai_inttrig() 1664 comedi_cmd *cmd = &s->async->cmd; in s626_ai_cmd() 1783 s->async->inttrig = NULL; in s626_ai_cmd() [all …]
|
D | comedi_parport.c | 287 comedi_buf_put(s->async, 0); in parport_interrupt() 288 s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS; in parport_interrupt()
|
/drivers/ieee1394/ |
D | pcilynx.c | 463 d = (what == hpsb_iso ? &lynx->iso_send : &lynx->async); in send_next() 465 d = &lynx->async; in send_next() 531 d = &lynx->async; in lynx_transmit() 738 spin_lock_irqsave(&lynx->async.queue_lock, flags); in lynx_devctl() 741 list_splice_init(&lynx->async.queue, &packet_list); in lynx_devctl() 743 if (list_empty(&lynx->async.pcl_queue)) { in lynx_devctl() 744 spin_unlock_irqrestore(&lynx->async.queue_lock, flags); in lynx_devctl() 752 get_pcl(lynx, lynx->async.pcl, &pcl); in lynx_devctl() 754 packet = driver_packet(lynx->async.pcl_queue.next); in lynx_devctl() 757 pci_unmap_single(lynx->dev, lynx->async.header_dma, in lynx_devctl() [all …]
|
/drivers/usb/host/ |
D | ehci-hcd.c | 319 start_unlink_async (ehci, ehci->async); in ehci_watchdog() 417 (ehci->async->qh_next.ptr != NULL || in ehci_work() 448 if (ehci->async) in ehci_stop() 510 ehci->async->qh_next.qh = NULL; in ehci_init() 511 ehci->async->hw_next = QH_NEXT(ehci, ehci->async->qh_dma); in ehci_init() 512 ehci->async->hw_info1 = cpu_to_hc32(ehci, QH_HEAD); in ehci_init() 513 ehci->async->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_init() 514 ehci->async->hw_qtd_next = EHCI_LIST_END(ehci); in ehci_init() 515 ehci->async->qh_state = QH_STATE_LINKED; in ehci_init() 516 ehci->async->hw_alt_next = QTD_NEXT(ehci, ehci->async->dummy->qtd_dma); in ehci_init() [all …]
|
D | ehci-mem.c | 132 if (ehci->async) in ehci_mem_cleanup() 133 qh_put (ehci->async); in ehci_mem_cleanup() 134 ehci->async = NULL; in ehci_mem_cleanup() 189 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init() 190 if (!ehci->async) { in ehci_mem_init()
|
D | oxu210hp-hcd.c | 734 if (oxu->async) in ehci_mem_cleanup() 735 qh_put(oxu->async); in ehci_mem_cleanup() 736 oxu->async = NULL; in ehci_mem_cleanup() 767 oxu->async = oxu_qh_alloc(oxu); in ehci_mem_init() 768 if (!oxu->async) in ehci_mem_init() 1292 qtd->hw_alt_next = oxu->async->hw_alt_next; in qh_urb_transaction() 1510 head = oxu->async; in qh_link_async() 1701 && oxu->async->qh_next.qh == NULL) in end_unlink_async() 1727 if (unlikely(qh == oxu->async)) { in start_unlink_async() 1743 prev = oxu->async; in start_unlink_async() [all …]
|
D | ehci-q.c | 579 qtd->hw_alt_next = ehci->async->hw_alt_next; in qh_urb_transaction() 837 head = ehci->async; in qh_link_async() 1045 && ehci->async->qh_next.qh == NULL) in end_unlink_async() 1073 if (unlikely (qh == ehci->async)) { in start_unlink_async() 1090 prev = ehci->async; in start_unlink_async() 1123 qh = ehci->async->qh_next.qh; in scan_async()
|
D | sl811-hcd.c | 323 else if (!list_empty(&sl811->async)) in start() 324 ep = container_of(sl811->async.next, in start() 338 if (ep->schedule.next == &sl811->async) in start() 742 if (sl811->periodic_count == 0 && list_empty(&sl811->async)) in sl811h_irq() 889 list_add_tail(&ep->schedule, &sl811->async); in sl811h_urb_enqueue() 1432 list_for_each_entry (ep, &sl811->async, schedule) { in proc_sl811h_show() 1455 if (!list_empty(&sl811->async)) in proc_sl811h_show() 1690 INIT_LIST_HEAD(&sl811->async); in sl811h_probe()
|
/drivers/usb/core/ |
D | devio.c | 78 struct async { struct 227 static struct async *alloc_async(unsigned int numisoframes) in alloc_async() 229 struct async *as; in alloc_async() 231 as = kzalloc(sizeof(struct async), GFP_KERNEL); in alloc_async() 242 static void free_async(struct async *as) in free_async() 251 static inline void async_newpending(struct async *as) in async_newpending() 261 static inline void async_removepending(struct async *as) in async_removepending() 271 static inline struct async *async_getcompleted(struct dev_state *ps) in async_getcompleted() 274 struct async *as = NULL; in async_getcompleted() 278 as = list_entry(ps->async_completed.next, struct async, in async_getcompleted() [all …]
|
/drivers/scsi/ |
D | atp870u.h | 44 unsigned short async[2]; member
|
/drivers/net/irda/ |
D | donauboe.c | 426 if (self->async) in toshoboe_setbaud() 924 self->async = 1; in toshoboe_probe() 956 self->async = 0; in toshoboe_probe() 1350 if (self->async) in toshoboe_net_open() 1560 self->async = 0; in toshoboe_open() 1708 if ((!self->irdad) && (!self->async)) in toshoboe_gotosleep() 1736 if ((!self->irdad) && (!self->async)) in toshoboe_wakeup()
|