/Linux-v4.19/drivers/staging/comedi/ |
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() 60 vunmap(async->prealloc_buf); in __comedi_buf_free() 61 async->prealloc_buf = NULL; in __comedi_buf_free() 62 async->prealloc_bufsz = 0; in __comedi_buf_free() 66 bm = async->buf_map; in __comedi_buf_free() 67 async->buf_map = NULL; in __comedi_buf_free() 76 struct comedi_async *async = s->async; in __comedi_buf_alloc() local 89 bm = kzalloc(sizeof(*async->buf_map), GFP_KERNEL); in __comedi_buf_alloc() 95 async->buf_map = bm; in __comedi_buf_alloc() [all …]
|
D | comedi_fops.c | 336 struct comedi_async *async = s->async; in resize_async_buffer() local 339 if (new_size > async->max_bufsize) in resize_async_buffer() 367 s->index, async->prealloc_bufsz); in resize_async_buffer() 387 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show() 388 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show() 418 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store() 419 s->async->max_bufsize = size; in max_read_buffer_kb_store() 443 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show() 444 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show() 474 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store() [all …]
|
D | drivers.c | 168 if (s->async) { in comedi_device_detach_cleanup() 170 kfree(s->async); in comedi_device_detach_cleanup() 400 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan() 422 struct comedi_async *async = s->async; in __comedi_nscans_left() local 423 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left() 428 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left() 429 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left() 474 struct comedi_async *async = s->async; in comedi_nsamples_left() local 475 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left() 487 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left() [all …]
|
/Linux-v4.19/drivers/base/regmap/ |
D | regmap-spi.c | 27 struct regmap_async_spi *async = data; in regmap_spi_complete() local 29 regmap_async_complete_cb(&async->core, async->m.status); in regmap_spi_complete() 62 struct regmap_async_spi *async = container_of(a, in regmap_spi_async_write() local 68 async->t[0].tx_buf = reg; in regmap_spi_async_write() 69 async->t[0].len = reg_len; in regmap_spi_async_write() 70 async->t[1].tx_buf = val; in regmap_spi_async_write() 71 async->t[1].len = val_len; in regmap_spi_async_write() 73 spi_message_init(&async->m); in regmap_spi_async_write() 74 spi_message_add_tail(&async->t[0], &async->m); in regmap_spi_async_write() 76 spi_message_add_tail(&async->t[1], &async->m); in regmap_spi_async_write() [all …]
|
D | regmap.c | 1320 struct regmap_async *async; in regmap_exit() local 1329 async = list_first_entry_or_null(&map->async_free, in regmap_exit() 1332 list_del(&async->list); in regmap_exit() 1333 kfree(async->work_buf); in regmap_exit() 1334 kfree(async); in regmap_exit() 1544 if (map->async && map->bus->async_write) { in _regmap_raw_write_impl() 1545 struct regmap_async *async; in _regmap_raw_write_impl() local 1550 async = list_first_entry_or_null(&map->async_free, in _regmap_raw_write_impl() 1553 if (async) in _regmap_raw_write_impl() 1554 list_del(&async->list); in _regmap_raw_write_impl() [all …]
|
/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | ni_tiocmd.c | 78 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_input_inttrig() 94 s->async->inttrig = NULL; in ni_tio_input_inttrig() 104 struct comedi_async *async = s->async; in ni_tio_input_cmd() local 105 struct comedi_cmd *cmd = &async->cmd; in ni_tio_input_cmd() 109 comedi_buf_write_alloc(s, async->prealloc_bufsz); in ni_tio_input_cmd() 124 async->inttrig = &ni_tio_input_inttrig; in ni_tio_input_cmd() 126 async->inttrig = NULL; in ni_tio_input_cmd() 148 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_cmd_setup() 175 struct comedi_async *async = s->async; in ni_tio_cmd() local 176 struct comedi_cmd *cmd = &async->cmd; in ni_tio_cmd() [all …]
|
D | comedi_test.c | 201 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 …]
|
D | mite.c | 274 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 …]
|
D | usbduxsigma.c | 206 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 …]
|
D | usbdux.c | 244 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 …]
|
D | amplc_pci230.c | 1023 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 …]
|
D | usbduxfast.c | 227 struct comedi_async *async = s->async; in usbduxfast_ai_handle_urb() local 228 struct comedi_cmd *cmd = &async->cmd; in usbduxfast_ai_handle_urb() 241 async->scans_done >= cmd->stop_arg) in usbduxfast_ai_handle_urb() 242 async->events |= COMEDI_CB_EOA; in usbduxfast_ai_handle_urb() 246 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxfast_ai_handle_urb() 252 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_handle_urb() 261 struct comedi_async *async = s->async; in usbduxfast_ai_interrupt() local 278 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt() 286 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt() 294 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxfast_ai_interrupt() [all …]
|
D | adv_pci1710.c | 396 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 …]
|
D | ni_labpc_isadma.c | 29 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()
|
D | cb_pcidas.c | 790 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 …]
|
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 …]
|
D | adl_pci9118.c | 410 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 …]
|
D | das800.c | 370 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()
|
D | ni_pcidio.c | 340 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma() 375 struct comedi_async *async = s->async; in nidio_interrupt() local 430 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 436 async->events |= COMEDI_CB_ERROR; in nidio_interrupt() 441 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 445 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 594 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_inttrig() 600 s->async->inttrig = NULL; in ni_pcidio_inttrig() 608 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_cmd() 710 s->async->inttrig = NULL; in ni_pcidio_cmd() [all …]
|
D | pcmuio.c | 293 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()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
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-v4.19/Documentation/ |
D | mailbox.txt | 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-v4.19/Documentation/media/kapi/ |
D | v4l2-async.rst | 1 V4L2 async kAPI 3 .. kernel-doc:: include/media/v4l2-async.h
|
/Linux-v4.19/drivers/usb/host/ |
D | ehci-mem.c | 109 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()
|
/Linux-v4.19/drivers/base/power/ |
D | main.c | 227 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument 232 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait() 242 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument 244 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children() 247 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument 263 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers() 268 static void dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument 270 dpm_wait(dev->parent, async); in dpm_wait_for_superior() 271 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior() 274 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument [all …]
|