Home
last modified time | relevance | path

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

1234567

/drivers/staging/comedi/
Dcomedi_buf.c56 struct comedi_async *async = s->async; in __comedi_buf_free() local
60 if (async->prealloc_buf) { in __comedi_buf_free()
62 vunmap(async->prealloc_buf); in __comedi_buf_free()
63 async->prealloc_buf = NULL; in __comedi_buf_free()
64 async->prealloc_bufsz = 0; in __comedi_buf_free()
68 bm = async->buf_map; in __comedi_buf_free()
69 async->buf_map = NULL; in __comedi_buf_free()
144 struct comedi_async *async = s->async; in __comedi_buf_alloc() local
162 async->buf_map = bm; in __comedi_buf_alloc()
171 async->prealloc_buf = buf->virt_addr; in __comedi_buf_alloc()
[all …]
Dcomedi_fops.c339 struct comedi_async *async = s->async; in resize_async_buffer() local
344 if (new_size > async->max_bufsize) in resize_async_buffer()
372 s->index, async->prealloc_bufsz); in resize_async_buffer()
392 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show()
393 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show()
423 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store()
424 s->async->max_bufsize = size; in max_read_buffer_kb_store()
448 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show()
449 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show()
479 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store()
[all …]
Ddrivers.c170 if (s->async) { in comedi_device_detach_cleanup()
172 kfree(s->async); in comedi_device_detach_cleanup()
454 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan()
463 struct comedi_async *async = s->async; in __comedi_nscans_left() local
464 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left()
469 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left()
470 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left()
515 struct comedi_async *async = s->async; in comedi_nsamples_left() local
516 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left()
528 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left()
[all …]
/drivers/base/regmap/
Dregmap-spi.c23 struct regmap_async_spi *async = data; in regmap_spi_complete() local
25 regmap_async_complete_cb(&async->core, async->m.status); in regmap_spi_complete()
58 struct regmap_async_spi *async = container_of(a, in regmap_spi_async_write() local
64 async->t[0].tx_buf = reg; in regmap_spi_async_write()
65 async->t[0].len = reg_len; in regmap_spi_async_write()
66 async->t[1].tx_buf = val; in regmap_spi_async_write()
67 async->t[1].len = val_len; in regmap_spi_async_write()
69 spi_message_init(&async->m); in regmap_spi_async_write()
70 spi_message_add_tail(&async->t[0], &async->m); in regmap_spi_async_write()
72 spi_message_add_tail(&async->t[1], &async->m); in regmap_spi_async_write()
[all …]
Dregmap.c1340 struct regmap_async *async; in regmap_exit() local
1349 async = list_first_entry_or_null(&map->async_free, in regmap_exit()
1352 list_del(&async->list); in regmap_exit()
1353 kfree(async->work_buf); in regmap_exit()
1354 kfree(async); in regmap_exit()
1563 if (map->async && map->bus->async_write) { in _regmap_raw_write_impl()
1564 struct regmap_async *async; in _regmap_raw_write_impl() local
1569 async = list_first_entry_or_null(&map->async_free, in _regmap_raw_write_impl()
1572 if (async) in _regmap_raw_write_impl()
1573 list_del(&async->list); in _regmap_raw_write_impl()
[all …]
/drivers/gpu/drm/msm/
Dmsm_atomic_trace.h12 TP_PROTO(bool async, unsigned crtc_mask),
13 TP_ARGS(async, crtc_mask),
15 __field(bool, async)
19 __entry->async = async;
23 __entry->async, __entry->crtc_mask)
27 TP_PROTO(bool async, unsigned crtc_mask),
28 TP_ARGS(async, crtc_mask),
30 __field(bool, async)
34 __entry->async = async;
38 __entry->async, __entry->crtc_mask)
Dmsm_atomic.c149 bool async = kms->funcs->vsync_time && in msm_atomic_commit_tail() local
152 trace_msm_atomic_commit_tail_start(async, crtc_mask); in msm_atomic_commit_tail()
179 if (async) { in msm_atomic_commit_tail()
213 trace_msm_atomic_commit_tail_finish(async, crtc_mask); in msm_atomic_commit_tail()
246 trace_msm_atomic_commit_tail_finish(async, crtc_mask); in msm_atomic_commit_tail()
/drivers/staging/comedi/drivers/
Dni_tiocmd.c79 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_input_inttrig()
95 s->async->inttrig = NULL; in ni_tio_input_inttrig()
107 struct comedi_async *async = s->async; in ni_tio_input_cmd() local
108 struct comedi_cmd *cmd = &async->cmd; in ni_tio_input_cmd()
112 comedi_buf_write_alloc(s, async->prealloc_bufsz); in ni_tio_input_cmd()
127 async->inttrig = &ni_tio_input_inttrig; in ni_tio_input_cmd()
129 async->inttrig = NULL; in ni_tio_input_cmd()
162 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_cmd_setup()
207 struct comedi_async *async = s->async; in ni_tio_cmd() local
208 struct comedi_cmd *cmd = &async->cmd; in ni_tio_cmd()
[all …]
Dcomedi_test.c201 struct comedi_async *async = s->async; in waveform_ai_timer() local
202 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer()
211 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer()
219 if (async->scan_progress == 0) { in waveform_ai_timer()
232 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer()
233 async->events |= COMEDI_CB_EOA; in waveform_ai_timer()
352 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd()
438 struct comedi_async *async = s->async; in waveform_ao_timer() local
439 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer()
468 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer()
[all …]
Dmite.c274 struct comedi_async *async = s->async; in mite_sync_input_dma() local
278 old_alloc_count = async->buf_write_alloc_count; in mite_sync_input_dma()
280 comedi_buf_write_alloc(s, async->prealloc_bufsz); in mite_sync_input_dma()
287 async->events |= COMEDI_CB_OVERFLOW; in mite_sync_input_dma()
291 count = nbytes - async->buf_write_count; in mite_sync_input_dma()
299 async->events |= COMEDI_CB_BLOCK; in mite_sync_input_dma()
306 struct comedi_async *async = s->async; in mite_sync_output_dma() local
307 struct comedi_cmd *cmd = &async->cmd; in mite_sync_output_dma()
309 unsigned int old_alloc_count = async->buf_read_alloc_count; in mite_sync_output_dma()
315 comedi_buf_read_alloc(s, async->prealloc_bufsz); in mite_sync_output_dma()
[all …]
Dusbduxsigma.c206 struct comedi_async *async = s->async; in usbduxsigma_ai_handle_urb() local
207 struct comedi_cmd *cmd = &async->cmd; in usbduxsigma_ai_handle_urb()
230 async->scans_done >= cmd->stop_arg) in usbduxsigma_ai_handle_urb()
231 async->events |= COMEDI_CB_EOA; in usbduxsigma_ai_handle_urb()
236 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsigma_ai_handle_urb()
245 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_handle_urb()
255 struct comedi_async *async = s->async; in usbduxsigma_ai_urb_complete() local
283 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
290 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
298 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsigma_ai_urb_complete()
[all …]
Dusbdux.c244 struct comedi_async *async = s->async; in usbduxsub_ai_handle_urb() local
245 struct comedi_cmd *cmd = &async->cmd; in usbduxsub_ai_handle_urb()
268 async->scans_done >= cmd->stop_arg) in usbduxsub_ai_handle_urb()
269 async->events |= COMEDI_CB_EOA; in usbduxsub_ai_handle_urb()
273 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ai_handle_urb()
283 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_handle_urb()
292 struct comedi_async *async = s->async; in usbduxsub_ai_isoc_irq() local
321 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
329 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq()
337 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsub_ai_isoc_irq()
[all …]
Damplc_pci230.c1023 cmd = &s->async->cmd; in pci230_ao_stop()
1065 struct comedi_async *async = s->async; in pci230_handle_ao_nofifo() local
1066 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_nofifo()
1070 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1077 async->events |= COMEDI_CB_OVERFLOW; in pci230_handle_ao_nofifo()
1084 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1085 async->events |= COMEDI_CB_EOA; in pci230_handle_ao_nofifo()
1096 struct comedi_async *async = s->async; in pci230_handle_ao_fifo() local
1097 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_fifo()
1155 async->scans_done >= cmd->stop_arg) { in pci230_handle_ao_fifo()
[all …]
Dusbduxfast.c228 struct comedi_async *async = s->async; in usbduxfast_ai_handle_urb() local
229 struct comedi_cmd *cmd = &async->cmd; in usbduxfast_ai_handle_urb()
242 async->scans_done >= cmd->stop_arg) in usbduxfast_ai_handle_urb()
243 async->events |= COMEDI_CB_EOA; in usbduxfast_ai_handle_urb()
247 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxfast_ai_handle_urb()
253 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_handle_urb()
262 struct comedi_async *async = s->async; in usbduxfast_ai_interrupt() local
279 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt()
287 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt()
295 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxfast_ai_interrupt()
[all …]
Dadv_pci1710.c396 struct comedi_cmd *cmd = &s->async->cmd; in pci1710_handle_every_sample()
404 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
410 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
417 ret = pci1710_ai_read_sample(dev, s, s->async->cur_chan, &val); in pci1710_handle_every_sample()
419 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
426 s->async->scans_done >= cmd->stop_arg) { in pci1710_handle_every_sample()
427 s->async->events |= COMEDI_CB_EOA; in pci1710_handle_every_sample()
439 struct comedi_async *async = s->async; in pci1710_handle_fifo() local
440 struct comedi_cmd *cmd = &async->cmd; in pci1710_handle_fifo()
447 async->events |= COMEDI_CB_ERROR; in pci1710_handle_fifo()
[all …]
Dcb_pcidas.c790 struct comedi_async *async = s->async; in cb_pcidas_ai_cmd() local
791 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ai_cmd()
1002 struct comedi_async *async = s->async; in cb_pcidas_ao_inttrig() local
1003 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_inttrig()
1025 async->inttrig = NULL; in cb_pcidas_ao_inttrig()
1034 struct comedi_async *async = s->async; in cb_pcidas_ao_cmd() local
1035 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_cmd()
1080 async->inttrig = cb_pcidas_ao_inttrig; in cb_pcidas_ao_cmd()
1110 struct comedi_async *async = s->async; in cb_pcidas_ao_interrupt() local
1111 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_interrupt()
[all …]
Dni_labpc_isadma.c29 struct comedi_cmd *cmd = &s->async->cmd; in labpc_suggest_transfer_size()
56 struct comedi_cmd *cmd = &s->async->cmd; in labpc_setup_dma()
77 struct comedi_async *async = s->async; in labpc_drain_dma() local
78 struct comedi_cmd *cmd = &async->cmd; in labpc_drain_dma()
Daddi_apci_3120.c207 struct comedi_cmd *cmd = &s->async->cmd; in apci3120_setup_dma()
243 if (dmalen0 > s->async->prealloc_bufsz) in apci3120_setup_dma()
244 dmalen0 = s->async->prealloc_bufsz; in apci3120_setup_dma()
245 if (dmalen1 > s->async->prealloc_bufsz) in apci3120_setup_dma()
246 dmalen1 = s->async->prealloc_bufsz; in apci3120_setup_dma()
428 struct comedi_async *async = s->async; in apci3120_interrupt_dma() local
429 struct comedi_cmd *cmd = &async->cmd; in apci3120_interrupt_dma()
442 async->events |= COMEDI_CB_ERROR; in apci3120_interrupt_dma()
451 async->events |= COMEDI_CB_EOS; in apci3120_interrupt_dma()
454 if ((async->events & COMEDI_CB_CANCEL_MASK) || in apci3120_interrupt_dma()
[all …]
Dadl_pci9118.c410 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_samples_ready()
467 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_dma_xfer()
537 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_calc_divisors()
591 s->async->inttrig = NULL; in pci9118_ai_cancel()
623 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_get_onesample()
631 if (s->async->scans_done >= cmd->stop_arg) in pci9118_ai_get_onesample()
632 s->async->events |= COMEDI_CB_EOA; in pci9118_ai_get_onesample()
640 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_get_dma()
662 if (s->async->scans_done >= cmd->stop_arg) in pci9118_ai_get_dma()
663 s->async->events |= COMEDI_CB_EOA; in pci9118_ai_get_dma()
[all …]
Ddas800.c370 struct comedi_async *async = s->async; in das800_ai_do_cmd() local
371 struct comedi_cmd *cmd = &async->cmd; in das800_ai_do_cmd()
426 struct comedi_async *async; in das800_interrupt() local
441 async = s->async; in das800_interrupt()
442 cmd = &async->cmd; in das800_interrupt()
478 async->scans_done >= cmd->stop_arg) { in das800_interrupt()
479 async->events |= COMEDI_CB_EOA; in das800_interrupt()
486 async->events |= COMEDI_CB_ERROR; in das800_interrupt()
491 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in das800_interrupt()
Dni_pcidio.c344 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma()
379 struct comedi_async *async = s->async; in nidio_interrupt() local
434 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
440 async->events |= COMEDI_CB_ERROR; in nidio_interrupt()
445 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
449 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
607 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_inttrig()
613 s->async->inttrig = NULL; in ni_pcidio_inttrig()
621 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_cmd()
723 s->async->inttrig = NULL; in ni_pcidio_cmd()
[all …]
Dpcmuio.c293 s->async->inttrig = NULL; in pcmuio_stop_intr()
306 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_handle_intr_subdev()
329 s->async->scans_done >= cmd->stop_arg) in pcmuio_handle_intr_subdev()
330 s->async->events |= COMEDI_CB_EOA; in pcmuio_handle_intr_subdev()
381 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_start_intr()
427 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_inttrig_start_intr()
436 s->async->inttrig = NULL; in pcmuio_inttrig_start_intr()
451 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_cmd()
461 s->async->inttrig = pcmuio_inttrig_start_intr; in pcmuio_cmd()
/drivers/net/ethernet/sfc/
Dmcdi.c468 struct efx_mcdi_async_param *async; in efx_mcdi_release() local
473 async = list_first_entry_or_null( in efx_mcdi_release()
475 if (async) { in efx_mcdi_release()
477 efx_mcdi_send_request(efx, async->cmd, in efx_mcdi_release()
478 (const efx_dword_t *)(async + 1), in efx_mcdi_release()
479 async->inlen); in efx_mcdi_release()
485 if (async) in efx_mcdi_release()
501 struct efx_mcdi_async_param *async; in efx_mcdi_complete_async() local
537 async = list_first_entry(&mcdi->async_list, in efx_mcdi_complete_async()
539 list_del(&async->list); in efx_mcdi_complete_async()
[all …]
/drivers/base/power/
Dmain.c236 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument
241 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait()
251 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument
253 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children()
256 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument
272 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers()
277 static void dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument
279 dpm_wait(dev->parent, async); in dpm_wait_for_superior()
280 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior()
283 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument
[all …]
/drivers/usb/host/
Dehci-mem.c109 if (ehci->async) in ehci_mem_cleanup()
110 qh_destroy(ehci, ehci->async); in ehci_mem_cleanup()
111 ehci->async = NULL; in ehci_mem_cleanup()
162 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init()
163 if (!ehci->async) { in ehci_mem_init()

1234567