/linux/drivers/comedi/ |
H A D | comedi_buf.c | 55 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 …]
|
H A D | drivers.c | 169 if (s->async) { in comedi_device_detach_cleanup() 171 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 …]
|
/linux/drivers/base/regmap/ |
H A D | regmap-spi.c | 23 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 D | msm_atomic_trace.h | 12 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/comedi/drivers/ |
H A D | ni_tiocmd.c | 79 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 D | mite.c | 273 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 D | usbduxsigma.c | 205 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 D | comedi_test.c | 203 struct comedi_async *async = s->async; in waveform_ai_timer() local 204 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer() 213 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer() 221 if (async->scan_progress == 0) { in waveform_ai_timer() 234 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer() 235 async->events |= COMEDI_CB_EOA; in waveform_ai_timer() 358 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd() 450 struct comedi_async *async = s->async; in waveform_ao_timer() local 451 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer() 480 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer() [all …]
|
H A D | dt2814.c | 204 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 D | usbdux.c | 243 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 D | amplc_pci230.c | 1021 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 D | usbduxfast.c | 228 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 D | adv_pci1710.c | 395 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 D | ni_labpc_isadma.c | 28 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 D | cb_pcidas.c | 789 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 D | addi_apci_3120.c | 207 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 D | adl_pci9118.c | 409 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 D | das800.c | 368 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()
|
H A D | ni_pcidio.c | 343 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma() 378 struct comedi_async *async = s->async; in nidio_interrupt() local 433 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 439 async->events |= COMEDI_CB_ERROR; in nidio_interrupt() 444 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 448 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 606 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_inttrig() 612 s->async->inttrig = NULL; in ni_pcidio_inttrig() 620 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_cmd() 722 s->async->inttrig = NULL; in ni_pcidio_cmd() [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.c | 471 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls_tx.c | 170 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/base/power/ |
H A D | main.c | 235 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument 240 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait() 250 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument 252 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children() 255 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument 271 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers() 276 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument 298 dpm_wait(parent, async); in dpm_wait_for_superior() 301 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior() 310 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument [all …]
|
/linux/fs/btrfs/ |
H A D | bio.c | 544 struct async_submit_bio *async = in run_one_async_start() local 548 ret = btrfs_bio_csum(async->bbio); in run_one_async_start() 550 async->bbio->bio.bi_status = ret; in run_one_async_start() 565 struct async_submit_bio *async = in run_one_async_done() local 567 struct bio *bio = &async->bbio->bio; in run_one_async_done() 576 btrfs_bio_end_io(async->bbio, async->bbio->bio.bi_status); in run_one_async_done() 586 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done() 631 struct async_submit_bio *async; in btrfs_wq_submit_bio() local 633 async = kmalloc(sizeof(*async), GFP_NOFS); in btrfs_wq_submit_bio() 634 if (!async) in btrfs_wq_submit_bio() [all …]
|
/linux/Documentation/driver-api/ |
H A D | mailbox.rst | 44 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/usb/host/ |
H A D | ehci-mem.c | 108 if (ehci->async) in ehci_mem_cleanup() 109 qh_destroy(ehci, ehci->async); in ehci_mem_cleanup() 110 ehci->async = NULL; in ehci_mem_cleanup() 161 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init() 162 if (!ehci->async) { in ehci_mem_init()
|