Home
last modified time | relevance | path

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

12345678910>>...12

/linux/drivers/comedi/
H A Dcomedi_buf.c53 struct comedi_async *async = s->async; in __comedi_buf_free() local
57 async->prealloc_bufsz = 0; in __comedi_buf_free()
59 bm = async->buf_map; in __comedi_buf_free()
60 async->buf_map = NULL; in __comedi_buf_free()
122 struct comedi_async *async = s->async; in __comedi_buf_alloc() local
137 async->buf_map = bm; in __comedi_buf_alloc()
139 async->prealloc_bufsz = n_pages << PAGE_SHIFT; in __comedi_buf_alloc()
183 struct comedi_async *async = s->async; in comedi_buf_map_from_subdev_get() local
187 if (!async) in comedi_buf_map_from_subdev_get()
191 bm = async->buf_map; in comedi_buf_map_from_subdev_get()
[all …]
H A Ddrivers.c169 if (s->async) { in comedi_device_detach_cleanup()
171 kfree(s->async); in comedi_device_detach_cleanup()
461 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan()
470 struct comedi_async *async = s->async; in __comedi_nscans_left() local
471 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left()
476 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left()
477 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left()
522 struct comedi_async *async = s->async; in comedi_nsamples_left() local
523 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left()
535 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left()
[all …]
H A Dcomedi_fops.c328 struct comedi_async *async = s->async; in resize_async_buffer() local
333 if (new_size > async->max_bufsize) in resize_async_buffer()
361 s->index, async->prealloc_bufsz); in resize_async_buffer()
381 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show()
382 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show()
412 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store()
413 s->async->max_bufsize = size; in max_read_buffer_kb_store()
437 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show()
438 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show()
468 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store()
[all …]
/linux/drivers/base/regmap/
H A 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 …]
/linux/drivers/gpu/drm/msm/
H A 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)
/linux/drivers/staging/vc04_services/interface/
H A 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 …]
/linux/drivers/comedi/drivers/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dcomedi_test.c204 struct comedi_async *async = s->async; in waveform_ai_timer() local
205 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer()
214 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer()
222 if (async->scan_progress == 0) { in waveform_ai_timer()
235 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer()
236 async->events |= COMEDI_CB_EOA; in waveform_ai_timer()
359 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd()
452 struct comedi_async *async = s->async; in waveform_ao_timer() local
453 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer()
482 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer()
[all …]
H A 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()
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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()
H A 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 …]
H A 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 …]
H A 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 …]
H A 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_tx.c170 struct mlx5e_async_ctx *async = in create_tis_callback() local
172 struct mlx5e_ktls_offload_context_tx *priv_tx = async->priv_tx; in create_tis_callback()
175 async->err = status; in create_tis_callback()
180 priv_tx->tisn = MLX5_GET(create_tis_out, async->out_create, tisn); in create_tis_callback()
185 struct mlx5e_async_ctx *async = in destroy_tis_callback() local
187 struct mlx5e_ktls_offload_context_tx *priv_tx = async->priv_tx; in destroy_tis_callback()
194 struct mlx5e_async_ctx *async) in mlx5e_tls_priv_tx_init() argument
206 if (!async) { in mlx5e_tls_priv_tx_init()
211 async->priv_tx = priv_tx; in mlx5e_tls_priv_tx_init()
212 err = mlx5e_ktls_create_tis_cb(mdev, async->async_ctx, in mlx5e_tls_priv_tx_init()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A 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 …]
/linux/fs/btrfs/
H A Dbio.c538 struct async_submit_bio *async = in run_one_async_start() local
542 ret = btrfs_bio_csum(async->bbio); in run_one_async_start()
544 async->bbio->bio.bi_status = errno_to_blk_status(ret); in run_one_async_start()
559 struct async_submit_bio *async = in run_one_async_done() local
561 struct bio *bio = &async->bbio->bio; in run_one_async_done()
570 btrfs_bio_end_io(async->bbio, bio->bi_status); in run_one_async_done()
580 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done()
625 struct async_submit_bio *async; in btrfs_wq_submit_bio() local
627 async = kmalloc(sizeof(*async), GFP_NOFS); in btrfs_wq_submit_bio()
628 if (!async) in btrfs_wq_submit_bio()
[all …]
/linux/Documentation/driver-api/
H A Dmailbox.rst44 send a message through before returning) or non-blocking/async mode (submit
53 bool async;
64 if (dc->async) {
100 dc_async->async = true;
110 dc_sync->async = false;
116 /* Send async message to remote */
127 /* Now wait for async chan to be done */
/linux/drivers/crypto/inside-secure/eip93/
H A Deip93-cipher.c20 void eip93_skcipher_handle_result(struct crypto_async_request *async, int err) in eip93_skcipher_handle_result() argument
22 struct eip93_crypto_ctx *ctx = crypto_tfm_ctx(async->tfm); in eip93_skcipher_handle_result()
24 struct skcipher_request *req = skcipher_request_cast(async); in eip93_skcipher_handle_result()
33 static int eip93_skcipher_send_req(struct crypto_async_request *async) in eip93_skcipher_send_req() argument
35 struct skcipher_request *req = skcipher_request_cast(async); in eip93_skcipher_send_req()
46 return eip93_send_req(async, req->iv, rctx); in eip93_skcipher_send_req()
139 struct crypto_async_request *async = &req->base; in eip93_skcipher_crypt() local
172 return eip93_skcipher_send_req(async); in eip93_skcipher_crypt()

12345678910>>...12