Home
last modified time | relevance | path

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

1234567

/drivers/comedi/
Dcomedi_buf.c55 struct comedi_async *async = s->async; in __comedi_buf_free() local
59 if (async->prealloc_buf) { in __comedi_buf_free()
61 vunmap(async->prealloc_buf); in __comedi_buf_free()
62 async->prealloc_buf = NULL; in __comedi_buf_free()
63 async->prealloc_bufsz = 0; in __comedi_buf_free()
67 bm = async->buf_map; in __comedi_buf_free()
68 async->buf_map = NULL; in __comedi_buf_free()
143 struct comedi_async *async = s->async; in __comedi_buf_alloc() local
161 async->buf_map = bm; in __comedi_buf_alloc()
170 async->prealloc_buf = buf->virt_addr; in __comedi_buf_alloc()
[all …]
Ddrivers.c169 if (s->async) { in comedi_device_detach_cleanup()
171 kfree(s->async); in comedi_device_detach_cleanup()
453 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan()
462 struct comedi_async *async = s->async; in __comedi_nscans_left() local
463 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left()
468 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left()
469 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left()
514 struct comedi_async *async = s->async; in comedi_nsamples_left() local
515 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left()
527 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left()
[all …]
Dcomedi_fops.c341 struct comedi_async *async = s->async; in resize_async_buffer() local
346 if (new_size > async->max_bufsize) in resize_async_buffer()
374 s->index, async->prealloc_bufsz); in resize_async_buffer()
394 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show()
395 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show()
425 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store()
426 s->async->max_bufsize = size; in max_read_buffer_kb_store()
450 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show()
451 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show()
481 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store()
[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.c1537 struct regmap_async *async; in regmap_exit() local
1546 async = list_first_entry_or_null(&map->async_free, in regmap_exit()
1549 list_del(&async->list); in regmap_exit()
1550 kfree(async->work_buf); in regmap_exit()
1551 kfree(async); in regmap_exit()
1774 if (map->async && map->bus && map->bus->async_write) { in _regmap_raw_write_impl()
1775 struct regmap_async *async; in _regmap_raw_write_impl() local
1780 async = list_first_entry_or_null(&map->async_free, in _regmap_raw_write_impl()
1783 if (async) in _regmap_raw_write_impl()
1784 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)
/drivers/staging/vc04_services/interface/
DTESTING60 vchi ping (size 0, 0 async, 0 oneway) -> 122.000000us
61 vchi bulk (size 0, 0 async, 0 oneway) -> 546.000000us
64 vchi ping (size 0, 0 async, 0 oneway) -> 70.000000us
65 vchi bulk (size 0, 0 async, 0 oneway) -> 296.000000us
67 vchi ping (size 0, 1 async, 0 oneway) -> 65.000000us
69 vchi ping (size 0, 2 async, 0 oneway) -> 74.000000us
71 vchi ping (size 0, 10 async, 0 oneway) -> 125.000000us
73 vchi ping (size 0, 0 async, 1 oneway) -> 70.000000us
74 vchi ping (size 0, 0 async, 2 oneway) -> 76.000000us
75 vchi ping (size 0, 0 async, 10 oneway) -> 105.000000us
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c149 struct mlx5e_async_ctx *async = &bulk_async[i]; in mlx5e_bulk_async_init() local
151 mlx5_cmd_init_async_ctx(mdev, &async->async_ctx); in mlx5e_bulk_async_init()
152 init_completion(&async->complete); in mlx5e_bulk_async_init()
163 struct mlx5e_async_ctx *async = &bulk_async[i]; in mlx5e_bulk_async_cleanup() local
165 mlx5_cmd_cleanup_async_ctx(&async->async_ctx); in mlx5e_bulk_async_cleanup()
172 struct mlx5e_async_ctx *async = in create_tis_callback() local
174 struct mlx5e_ktls_offload_context_tx *priv_tx = async->priv_tx; in create_tis_callback()
177 async->err = status; in create_tis_callback()
182 priv_tx->tisn = MLX5_GET(create_tis_out, async->out_create, tisn); in create_tis_callback()
184 complete(&async->complete); in create_tis_callback()
[all …]
/drivers/comedi/drivers/
Dcomedi_test.c199 struct comedi_async *async = s->async; in waveform_ai_timer() local
200 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer()
209 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer()
217 if (async->scan_progress == 0) { in waveform_ai_timer()
230 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer()
231 async->events |= COMEDI_CB_EOA; in waveform_ai_timer()
350 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd()
436 struct comedi_async *async = s->async; in waveform_ao_timer() local
437 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer()
466 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer()
[all …]
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 …]
Dmite.c273 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()
[all …]
Dusbduxsigma.c205 struct comedi_async *async = s->async; in usbduxsigma_ai_handle_urb() local
206 struct comedi_cmd *cmd = &async->cmd; in usbduxsigma_ai_handle_urb()
229 async->scans_done >= cmd->stop_arg) in usbduxsigma_ai_handle_urb()
230 async->events |= COMEDI_CB_EOA; in usbduxsigma_ai_handle_urb()
235 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsigma_ai_handle_urb()
244 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_handle_urb()
254 struct comedi_async *async = s->async; in usbduxsigma_ai_urb_complete() local
282 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
289 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete()
297 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsigma_ai_urb_complete()
[all …]
Dusbdux.c243 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()
[all …]
Ddt2814.c204 struct comedi_cmd *cmd = &s->async->cmd; in dt2814_ai_cmd()
244 struct comedi_async *async; in dt2814_interrupt() local
254 async = s->async; in dt2814_interrupt()
278 async->events |= COMEDI_CB_ERROR; in dt2814_interrupt()
281 if (async->cmd.stop_src == TRIG_COUNT && in dt2814_interrupt()
282 async->scans_done >= async->cmd.stop_arg) { in dt2814_interrupt()
283 async->events |= COMEDI_CB_EOA; in dt2814_interrupt()
286 if (async->events & COMEDI_CB_CANCEL_MASK) { in dt2814_interrupt()
Damplc_pci230.c1021 cmd = &s->async->cmd; in pci230_ao_stop()
1063 struct comedi_async *async = s->async; in pci230_handle_ao_nofifo() local
1064 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_nofifo()
1068 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1075 async->events |= COMEDI_CB_OVERFLOW; in pci230_handle_ao_nofifo()
1082 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1083 async->events |= COMEDI_CB_EOA; in pci230_handle_ao_nofifo()
1094 struct comedi_async *async = s->async; in pci230_handle_ao_fifo() local
1095 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_fifo()
1153 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.c395 struct comedi_cmd *cmd = &s->async->cmd; in pci1710_handle_every_sample()
403 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
409 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
416 ret = pci1710_ai_read_sample(dev, s, s->async->cur_chan, &val); in pci1710_handle_every_sample()
418 s->async->events |= COMEDI_CB_ERROR; in pci1710_handle_every_sample()
425 s->async->scans_done >= cmd->stop_arg) { in pci1710_handle_every_sample()
426 s->async->events |= COMEDI_CB_EOA; in pci1710_handle_every_sample()
438 struct comedi_async *async = s->async; in pci1710_handle_fifo() local
439 struct comedi_cmd *cmd = &async->cmd; in pci1710_handle_fifo()
446 async->events |= COMEDI_CB_ERROR; in pci1710_handle_fifo()
[all …]
Dcb_pcidas.c789 struct comedi_async *async = s->async; in cb_pcidas_ai_cmd() local
790 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ai_cmd()
1001 struct comedi_async *async = s->async; in cb_pcidas_ao_inttrig() local
1002 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_inttrig()
1024 async->inttrig = NULL; in cb_pcidas_ao_inttrig()
1033 struct comedi_async *async = s->async; in cb_pcidas_ao_cmd() local
1034 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_cmd()
1079 async->inttrig = cb_pcidas_ao_inttrig; in cb_pcidas_ao_cmd()
1109 struct comedi_async *async = s->async; in cb_pcidas_ao_interrupt() local
1110 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_interrupt()
[all …]
Dni_labpc_isadma.c28 struct comedi_cmd *cmd = &s->async->cmd; in labpc_suggest_transfer_size()
55 struct comedi_cmd *cmd = &s->async->cmd; in labpc_setup_dma()
76 struct comedi_async *async = s->async; in labpc_drain_dma() local
77 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.c409 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_samples_ready()
466 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_dma_xfer()
536 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_calc_divisors()
590 s->async->inttrig = NULL; in pci9118_ai_cancel()
622 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_get_onesample()
630 if (s->async->scans_done >= cmd->stop_arg) in pci9118_ai_get_onesample()
631 s->async->events |= COMEDI_CB_EOA; in pci9118_ai_get_onesample()
639 struct comedi_cmd *cmd = &s->async->cmd; in pci9118_ai_get_dma()
661 if (s->async->scans_done >= cmd->stop_arg) in pci9118_ai_get_dma()
662 s->async->events |= COMEDI_CB_EOA; in pci9118_ai_get_dma()
[all …]
Ddas800.c368 struct comedi_async *async = s->async; in das800_ai_do_cmd() local
369 struct comedi_cmd *cmd = &async->cmd; in das800_ai_do_cmd()
424 struct comedi_async *async; in das800_interrupt() local
439 async = s->async; in das800_interrupt()
440 cmd = &async->cmd; in das800_interrupt()
476 async->scans_done >= cmd->stop_arg) { in das800_interrupt()
477 async->events |= COMEDI_CB_EOA; in das800_interrupt()
484 async->events |= COMEDI_CB_ERROR; in das800_interrupt()
489 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in das800_interrupt()
/drivers/net/ethernet/sfc/siena/
Dmcdi.c471 struct efx_mcdi_async_param *async; in efx_mcdi_release() local
476 async = list_first_entry_or_null( in efx_mcdi_release()
478 if (async) { in efx_mcdi_release()
480 efx_mcdi_send_request(efx, async->cmd, in efx_mcdi_release()
481 (const efx_dword_t *)(async + 1), in efx_mcdi_release()
482 async->inlen); in efx_mcdi_release()
488 if (async) in efx_mcdi_release()
504 struct efx_mcdi_async_param *async; in efx_mcdi_complete_async() local
540 async = list_first_entry(&mcdi->async_list, in efx_mcdi_complete_async()
542 list_del(&async->list); in efx_mcdi_complete_async()
[all …]
/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.c237 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument
242 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait()
252 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument
254 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children()
257 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument
273 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers()
278 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument
300 dpm_wait(parent, async); in dpm_wait_for_superior()
303 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior()
312 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument
[all …]

1234567