Home
last modified time | relevance | path

Searched refs:async (Results 1 – 25 of 168) sorted by relevance

1234567

/linux-3.4.99/drivers/staging/comedi/
Ddrivers.c68 if (s->async) { in cleanup_device()
70 kfree(s->async); in cleanup_device()
232 struct comedi_async *async = NULL; in postconfig() local
249 async = in postconfig()
251 if (async == NULL) { in postconfig()
256 init_waitqueue_head(&async->wait_head); in postconfig()
257 async->subdevice = s; in postconfig()
258 s->async = async; in postconfig()
263 async->max_bufsize = DEFAULT_BUF_MAXSIZE; in postconfig()
265 async->prealloc_buf = NULL; in postconfig()
[all …]
Dcomedi_fops.c113 struct comedi_async *async, unsigned new_size);
319 struct comedi_async *async; in do_bufconfig_ioctl() local
330 async = s->async; in do_bufconfig_ioctl()
332 if (!async) { in do_bufconfig_ioctl()
343 async->max_bufsize = bc.maximum_size; in do_bufconfig_ioctl()
347 retval = resize_async_buffer(dev, s, async, bc.size); in do_bufconfig_ioctl()
352 bc.size = async->prealloc_bufsz; in do_bufconfig_ioctl()
353 bc.maximum_size = async->max_bufsize; in do_bufconfig_ioctl()
580 struct comedi_async *async; in do_bufinfo_ioctl() local
593 async = s->async; in do_bufinfo_ioctl()
[all …]
Dcomedidev.h73 struct comedi_async *async; member
406 int comedi_buf_put(struct comedi_async *async, short x);
407 int comedi_buf_get(struct comedi_async *async, short *x);
409 unsigned int comedi_buf_write_n_available(struct comedi_async *async);
410 unsigned int comedi_buf_write_alloc(struct comedi_async *async,
412 unsigned int comedi_buf_write_alloc_strict(struct comedi_async *async,
414 unsigned comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes);
415 unsigned comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes);
416 unsigned comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes);
417 unsigned int comedi_buf_read_n_available(struct comedi_async *async);
[all …]
/linux-3.4.99/drivers/staging/comedi/drivers/
Dcomedi_fc.c34 struct 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 struct 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 …]
Dni_tiocmd.c119 s->async->inttrig = NULL; in ni_tio_input_inttrig()
124 static int ni_tio_input_cmd(struct ni_gpct *counter, struct comedi_async *async) in ni_tio_input_cmd() argument
127 struct comedi_cmd *cmd = &async->cmd; in ni_tio_input_cmd()
131 comedi_buf_write_alloc(async, async->prealloc_bufsz); in ni_tio_input_cmd()
150 async->inttrig = NULL; in ni_tio_input_cmd()
155 async->inttrig = &ni_tio_input_inttrig; in ni_tio_input_cmd()
158 async->inttrig = NULL; in ni_tio_input_cmd()
162 async->inttrig = NULL; in ni_tio_input_cmd()
173 struct comedi_async *async) in ni_tio_output_cmd() argument
185 static int ni_tio_cmd_setup(struct ni_gpct *counter, struct comedi_async *async) in ni_tio_cmd_setup() argument
[all …]
Dmite.c341 struct comedi_async *async) in mite_buf_change() argument
357 if (async->prealloc_bufsz == 0) in mite_buf_change()
360 n_links = async->prealloc_bufsz >> PAGE_SHIFT; in mite_buf_change()
377 cpu_to_le32(async->buf_page_list[i].dma_addr); in mite_buf_change()
568 struct comedi_async *async) in mite_sync_input_dma() argument
572 const unsigned bytes_per_scan = cfc_bytes_per_scan(async->subdevice); in mite_sync_input_dma()
574 old_alloc_count = async->buf_write_alloc_count; in mite_sync_input_dma()
576 comedi_buf_write_alloc(async, async->prealloc_bufsz); in mite_sync_input_dma()
582 async->events |= COMEDI_CB_OVERFLOW; in mite_sync_input_dma()
586 count = nbytes - async->buf_write_count; in mite_sync_input_dma()
[all …]
Ddas800.c370 struct comedi_async *async; in das800_interrupt() local
388 async = s->async; in das800_interrupt()
426 async->events |= COMEDI_CB_BLOCK; in das800_interrupt()
438 async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; in das800_interrupt()
440 async->events = 0; in das800_interrupt()
454 async->events |= COMEDI_CB_EOA; in das800_interrupt()
457 async->events = 0; in das800_interrupt()
737 struct comedi_async *async = s->async; in das800_ai_do_cmd() local
748 startChan = CR_CHAN(async->cmd.chanlist[0]); in das800_ai_do_cmd()
749 endChan = (startChan + async->cmd.chanlist_len - 1) % 8; in das800_ai_do_cmd()
[all …]
Dadv_pci1710.c622 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pci1710_every_sample()
631 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pci1710_every_sample()
645 devpriv->act_chanlist[s->async->cur_chan]) { in interrupt_pci1710_every_sample()
651 async->cur_chan] & 0xf000) >> in interrupt_pci1710_every_sample()
654 s->async->events |= in interrupt_pci1710_every_sample()
659 DPRINTK("%8d %2d %8d~", s->async->buf_int_ptr, in interrupt_pci1710_every_sample()
660 s->async->cur_chan, s->async->buf_int_count); in interrupt_pci1710_every_sample()
661 comedi_buf_put(s->async, sampl & 0x0fff); in interrupt_pci1710_every_sample()
663 comedi_buf_put(s->async, in interrupt_pci1710_every_sample()
666 ++s->async->cur_chan; in interrupt_pci1710_every_sample()
[all …]
Dni_pcidio.c484 async->events & (COMEDI_CB_EOA | COMEDI_CB_ERROR | in ni_pcidio_event()
499 mite_sync_input_dma(devpriv->di_mite_chan, s->async); in ni_pcidio_poll()
501 count = s->async->buf_write_count - s->async->buf_read_count; in ni_pcidio_poll()
510 struct comedi_async *async = s->async; in nidio_interrupt() local
559 mite_sync_input_dma(devpriv->di_mite_chan, s->async); in nidio_interrupt()
565 async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in nidio_interrupt()
600 comedi_buf_put(async, data1); in nidio_interrupt()
601 comedi_buf_put(async, data2); in nidio_interrupt()
612 async->events |= COMEDI_CB_BLOCK; in nidio_interrupt()
620 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
[all …]
Damplc_pci230.c1510 struct comedi_async *async = s->async; in pci230_ao_start() local
1511 struct comedi_cmd *cmd = &async->cmd; in pci230_ao_start()
1517 async->events |= COMEDI_CB_EOA; in pci230_ao_start()
1581 async->inttrig = pci230_ao_inttrig_scan_begin; in pci230_ao_start()
1603 s->async->inttrig = NULLFUNC; in pci230_ao_inttrig_start()
1615 struct comedi_cmd *cmd = &s->async->cmd; in pci230_ao_cmd()
1681 s->async->inttrig = pci230_ao_inttrig_start; in pci230_ao_cmd()
2098 struct comedi_cmd *cmd = &s->async->cmd; in pci230_ai_update_fifo_trigger_level()
2208 struct comedi_async *async = s->async; in pci230_ai_start() local
2209 struct comedi_cmd *cmd = &async->cmd; in pci230_ai_start()
[all …]
Dpcl818.c553 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pcl818_ai_mode13_int()
559 …comedi_buf_put(s->async, ((inb(dev->iobase + PCL818_AD_HI) << 4) | (low >> 4))); /* get one sampl… in interrupt_pcl818_ai_mode13_int()
568 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pcl818_ai_mode13_int()
576 s->async->cur_chan++; in interrupt_pcl818_ai_mode13_int()
577 if (s->async->cur_chan >= devpriv->ai_n_chan) { in interrupt_pcl818_ai_mode13_int()
579 s->async->cur_chan = 0; in interrupt_pcl818_ai_mode13_int()
586 s->async->events |= COMEDI_CB_EOA; in interrupt_pcl818_ai_mode13_int()
639 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pcl818_ai_mode13_dma()
644 comedi_buf_put(s->async, ptr[bufptr++] >> 4); /* get one sample */ in interrupt_pcl818_ai_mode13_dma()
650 s->async->cur_chan++; in interrupt_pcl818_ai_mode13_dma()
[all …]
Ddas16m1.c346 struct comedi_async *async = s->async; in das16m1_cmd_exec() local
347 struct comedi_cmd *cmd = &async->cmd; in das16m1_cmd_exec()
498 return s->async->buf_write_count - s->async->buf_read_count; in das16m1_poll()
541 struct comedi_async *async; in das16m1_handler() local
547 async = s->async; in das16m1_handler()
548 async->events = 0; in das16m1_handler()
549 cmd = &async->cmd; in das16m1_handler()
583 async->events |= COMEDI_CB_EOA; in das16m1_handler()
591 async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in das16m1_handler()
Dpcl816.c325 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pcl816_ai_mode13_int()
335 comedi_buf_put(s->async, (hi << 8) | low); in interrupt_pcl816_ai_mode13_int()
342 s->async->cur_chan++; in interrupt_pcl816_ai_mode13_int()
343 if (s->async->cur_chan >= devpriv->ai_n_chan) { in interrupt_pcl816_ai_mode13_int()
344 s->async->cur_chan = 0; in interrupt_pcl816_ai_mode13_int()
353 s->async->events |= COMEDI_CB_EOA; in interrupt_pcl816_ai_mode13_int()
369 s->async->events = 0; in transfer_from_dma_buf()
373 comedi_buf_put(s->async, ptr[bufptr++]); in transfer_from_dma_buf()
380 s->async->cur_chan++; in transfer_from_dma_buf()
381 if (s->async->cur_chan >= devpriv->ai_n_chan) { in transfer_from_dma_buf()
[all …]
Dpcmuio.c769 oldevents = s->async->events; in interrupt_pcmuio()
791 async->cmd.chanlist_len; in interrupt_pcmuio()
795 ch = CR_CHAN(s->async->cmd.chanlist[n]); in interrupt_pcmuio()
801 if (comedi_buf_put(s->async, ((short *)&val)[0]) in interrupt_pcmuio()
804 (s->async, in interrupt_pcmuio()
808 s->async->events |= (COMEDI_CB_BLOCK | COMEDI_CB_EOS); in interrupt_pcmuio()
823 s->async->events |= COMEDI_CB_EOA; in interrupt_pcmuio()
839 s->async->events) { in interrupt_pcmuio()
866 s->async->inttrig = 0; in pcmuio_stop_intr()
881 s->async->events |= COMEDI_CB_EOA; in pcmuio_start_intr()
[all …]
Dcb_pcidas.c1250 struct comedi_async *async = s->async; in cb_pcidas_ai_cmd() local
1251 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ai_cmd()
1459 struct comedi_async *async = s->async; in cb_pcidas_ao_cmd() local
1460 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_cmd()
1517 async->inttrig = cb_pcidas_ao_inttrig; in cb_pcidas_ao_cmd()
1527 struct comedi_async *async = s->async; in cb_pcidas_ao_inttrig() local
1528 struct comedi_cmd *cmd = &s->async->cmd; in cb_pcidas_ao_inttrig()
1567 async->inttrig = NULL; in cb_pcidas_ao_inttrig()
1576 struct comedi_async *async; in cb_pcidas_interrupt() local
1586 async = s->async; in cb_pcidas_interrupt()
[all …]
Dni_at_a2150.c233 struct comedi_async *async; in a2150_interrupt() local
244 async = s->async; in a2150_interrupt()
245 async->events = 0; in a2150_interrupt()
246 cmd = &async->cmd; in a2150_interrupt()
258 async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; in a2150_interrupt()
264 async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA; in a2150_interrupt()
311 async->events |= COMEDI_CB_EOA; in a2150_interrupt()
324 async->events |= COMEDI_CB_BLOCK; in a2150_interrupt()
635 struct comedi_async *async = s->async; in a2150_ai_cmd() local
636 struct comedi_cmd *cmd = &async->cmd; in a2150_ai_cmd()
Dusbdux.c438 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
439 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
453 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
454 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
486 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
487 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
510 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
516 n = s->async->cmd.chanlist_len; in usbduxsub_ai_IsocIrq()
519 if (CR_RANGE(s->async->cmd.chanlist[i]) <= 1) { in usbduxsub_ai_IsocIrq()
521 (s->async, in usbduxsub_ai_IsocIrq()
[all …]
Dpcl812.c830 struct comedi_cmd *cmd = &s->async->cmd; in pcl812_ai_cmd()
883 devpriv->ai_data_len = s->async->prealloc_bufsz; in pcl812_ai_cmd()
884 devpriv->ai_data = s->async->prealloc_buf; in pcl812_ai_cmd()
895 s->async->cur_chan = 0; in pcl812_ai_cmd()
997 s->async->events = 0; in interrupt_pcl812_ai_int()
1026 s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in interrupt_pcl812_ai_int()
1031 comedi_buf_put(s->async, in interrupt_pcl812_ai_int()
1036 next_chan = s->async->cur_chan + 1; in interrupt_pcl812_ai_int()
1039 if (devpriv->ai_chanlist[s->async->cur_chan] != in interrupt_pcl812_ai_int()
1045 s->async->cur_chan = next_chan; in interrupt_pcl812_ai_int()
[all …]
Dgsc_hpdi.c902 struct comedi_async *async = s->async; in di_cmd() local
903 struct comedi_cmd *cmd = &async->cmd; in di_cmd()
961 struct comedi_async *async = dev->read_subdev->async; in drain_dma_buffers() local
986 if (async->cmd.stop_src == TRIG_COUNT) { in drain_dma_buffers()
1010 struct comedi_async *async = s->async; in handle_interrupt() local
1027 async->events = 0; in handle_interrupt()
1069 async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in handle_interrupt()
1077 async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; in handle_interrupt()
1081 async->events |= COMEDI_CB_EOA; in handle_interrupt()
1085 if (async->events) in handle_interrupt()
[all …]
Dcomedi_fc.h66 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()
Dusbduxsigma.c390 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
391 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
405 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
406 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
439 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
440 s->async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_IsocIrq()
466 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ai_IsocIrq()
472 n = s->async->cmd.chanlist_len; in usbduxsub_ai_IsocIrq()
489 s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS; in usbduxsub_ai_IsocIrq()
579 s->async->events |= COMEDI_CB_EOA; in usbduxsub_ao_IsocIrq()
[all …]
Dpcmmio.c910 oldevents = s->async->events; in interrupt_pcmmio()
932 async->cmd.chanlist_len; in interrupt_pcmmio()
936 ch = CR_CHAN(s->async->cmd.chanlist[n]); in interrupt_pcmmio()
941 if (comedi_buf_put(s->async, ((short *)&val)[0]) in interrupt_pcmmio()
944 (s->async, in interrupt_pcmmio()
947 s->async->events |= (COMEDI_CB_BLOCK | COMEDI_CB_EOS); in interrupt_pcmmio()
962 s->async->events |= COMEDI_CB_EOA; in interrupt_pcmmio()
978 s->async->events) { in interrupt_pcmmio()
1005 s->async->inttrig = 0; in pcmmio_stop_intr()
1020 s->async->events |= COMEDI_CB_EOA; in pcmmio_start_intr()
[all …]
Damplc_dio200.c669 struct comedi_cmd *cmd = &s->async->cmd; in dio200_start_intr()
674 s->async->events |= COMEDI_CB_EOA; in dio200_start_intr()
711 s->async->inttrig = NULL; in dio200_inttrig_start_intr()
740 oldevents = s->async->events; in dio200_handle_read_intr()
792 len = s->async->cmd.chanlist_len; in dio200_handle_read_intr()
794 ch = CR_CHAN(s->async->cmd.chanlist[n]); in dio200_handle_read_intr()
799 if (comedi_buf_put(s->async, val)) { in dio200_handle_read_intr()
800 s->async->events |= (COMEDI_CB_BLOCK | in dio200_handle_read_intr()
805 s->async->events |= COMEDI_CB_ERROR in dio200_handle_read_intr()
816 s->async->events |= in dio200_handle_read_intr()
[all …]
/linux-3.4.99/arch/tile/mm/
Dfault.c752 struct async_tlb *async; in do_page_fault() local
759 async = &current->thread.dma_async_tlb; in do_page_fault()
765 async = &current->thread.sn_async_tlb; in do_page_fault()
769 async = NULL; in do_page_fault()
771 if (async) { in do_page_fault()
780 if (async->fault_num != 0) { in do_page_fault()
783 fault_num, async->fault_num, in do_page_fault()
787 async->fault_num = fault_num; in do_page_fault()
788 async->is_fault = is_page_fault; in do_page_fault()
789 async->is_write = write; in do_page_fault()
[all …]
/linux-3.4.99/drivers/usb/host/
Dehci-mem.c140 if (ehci->async) in ehci_mem_cleanup()
141 qh_put (ehci->async); in ehci_mem_cleanup()
142 ehci->async = NULL; in ehci_mem_cleanup()
201 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init()
202 if (!ehci->async) { in ehci_mem_init()

1234567