/drivers/staging/comedi/ |
D | comedi_buf.c | 64 struct comedi_async *async = s->async; in __comedi_buf_free() local 68 if (async->prealloc_buf) { in __comedi_buf_free() 69 vunmap(async->prealloc_buf); in __comedi_buf_free() 70 async->prealloc_buf = NULL; in __comedi_buf_free() 71 async->prealloc_bufsz = 0; in __comedi_buf_free() 75 bm = async->buf_map; in __comedi_buf_free() 76 async->buf_map = NULL; in __comedi_buf_free() 85 struct comedi_async *async = s->async; in __comedi_buf_alloc() local 98 bm = kzalloc(sizeof(*async->buf_map), GFP_KERNEL); in __comedi_buf_alloc() 104 async->buf_map = bm; in __comedi_buf_alloc() [all …]
|
D | comedi_fops.c | 349 struct comedi_async *async = s->async; in resize_async_buffer() local 352 if (new_size > async->max_bufsize) in resize_async_buffer() 380 s->index, async->prealloc_bufsz); in resize_async_buffer() 400 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show() 401 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show() 431 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store() 432 s->async->max_bufsize = size; in max_read_buffer_kb_store() 456 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show() 457 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show() 487 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store() [all …]
|
D | drivers.c | 177 if (s->async) { in comedi_device_detach_cleanup() 179 kfree(s->async); in comedi_device_detach_cleanup() 409 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan() 431 struct comedi_async *async = s->async; in __comedi_nscans_left() local 432 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left() 437 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left() 438 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left() 483 struct comedi_async *async = s->async; in comedi_nsamples_left() local 484 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left() 489 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left() [all …]
|
/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 | 1212 struct regmap_async *async; in regmap_exit() local 1221 async = list_first_entry_or_null(&map->async_free, in regmap_exit() 1224 list_del(&async->list); in regmap_exit() 1225 kfree(async->work_buf); in regmap_exit() 1226 kfree(async); in regmap_exit() 1432 if (map->async && map->bus->async_write) { in _regmap_raw_write() 1433 struct regmap_async *async; in _regmap_raw_write() local 1438 async = list_first_entry_or_null(&map->async_free, in _regmap_raw_write() 1441 if (async) in _regmap_raw_write() 1442 list_del(&async->list); in _regmap_raw_write() [all …]
|
/drivers/staging/comedi/drivers/ |
D | comedi_test.c | 182 struct comedi_async *async = s->async; in waveform_ai_timer() local 183 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer() 192 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer() 200 if (async->scan_progress == 0) { in waveform_ai_timer() 213 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer() 214 async->events |= COMEDI_CB_EOA; in waveform_ai_timer() 333 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd() 419 struct comedi_async *async = s->async; in waveform_ao_timer() local 420 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer() 449 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer() [all …]
|
D | ni_tiocmd.c | 87 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_input_inttrig() 103 s->async->inttrig = NULL; in ni_tio_input_inttrig() 113 struct comedi_async *async = s->async; in ni_tio_input_cmd() local 114 struct comedi_cmd *cmd = &async->cmd; in ni_tio_input_cmd() 118 comedi_buf_write_alloc(s, async->prealloc_bufsz); in ni_tio_input_cmd() 133 async->inttrig = &ni_tio_input_inttrig; in ni_tio_input_cmd() 135 async->inttrig = NULL; in ni_tio_input_cmd() 157 struct comedi_cmd *cmd = &s->async->cmd; in ni_tio_cmd_setup() 184 struct comedi_async *async = s->async; in ni_tio_cmd() local 185 struct comedi_cmd *cmd = &async->cmd; in ni_tio_cmd() [all …]
|
D | mite.c | 283 struct comedi_async *async = s->async; in mite_sync_input_dma() local 287 old_alloc_count = async->buf_write_alloc_count; in mite_sync_input_dma() 289 comedi_buf_write_alloc(s, async->prealloc_bufsz); in mite_sync_input_dma() 296 async->events |= COMEDI_CB_OVERFLOW; in mite_sync_input_dma() 300 count = nbytes - async->buf_write_count; in mite_sync_input_dma() 308 async->events |= COMEDI_CB_BLOCK; in mite_sync_input_dma() 315 struct comedi_async *async = s->async; in mite_sync_output_dma() local 316 struct comedi_cmd *cmd = &async->cmd; in mite_sync_output_dma() 318 unsigned int old_alloc_count = async->buf_read_alloc_count; in mite_sync_output_dma() 324 comedi_buf_read_alloc(s, async->prealloc_bufsz); in mite_sync_output_dma() [all …]
|
D | usbduxsigma.c | 215 struct comedi_async *async = s->async; in usbduxsigma_ai_handle_urb() local 216 struct comedi_cmd *cmd = &async->cmd; in usbduxsigma_ai_handle_urb() 239 async->scans_done >= cmd->stop_arg) in usbduxsigma_ai_handle_urb() 240 async->events |= COMEDI_CB_EOA; in usbduxsigma_ai_handle_urb() 245 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsigma_ai_handle_urb() 254 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_handle_urb() 264 struct comedi_async *async = s->async; in usbduxsigma_ai_urb_complete() local 292 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete() 299 async->events |= COMEDI_CB_ERROR; in usbduxsigma_ai_urb_complete() 307 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsigma_ai_urb_complete() [all …]
|
D | usbdux.c | 253 struct comedi_async *async = s->async; in usbduxsub_ai_handle_urb() local 254 struct comedi_cmd *cmd = &async->cmd; in usbduxsub_ai_handle_urb() 277 async->scans_done >= cmd->stop_arg) in usbduxsub_ai_handle_urb() 278 async->events |= COMEDI_CB_EOA; in usbduxsub_ai_handle_urb() 282 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxsub_ai_handle_urb() 292 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_handle_urb() 301 struct comedi_async *async = s->async; in usbduxsub_ai_isoc_irq() local 330 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq() 338 async->events |= COMEDI_CB_ERROR; in usbduxsub_ai_isoc_irq() 346 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxsub_ai_isoc_irq() [all …]
|
D | amplc_pci230.c | 1030 cmd = &s->async->cmd; in pci230_ao_stop() 1072 struct comedi_async *async = s->async; in pci230_handle_ao_nofifo() local 1073 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_nofifo() 1077 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo() 1084 async->events |= COMEDI_CB_OVERFLOW; in pci230_handle_ao_nofifo() 1091 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo() 1092 async->events |= COMEDI_CB_EOA; in pci230_handle_ao_nofifo() 1103 struct comedi_async *async = s->async; in pci230_handle_ao_fifo() local 1104 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_fifo() 1162 async->scans_done >= cmd->stop_arg) { in pci230_handle_ao_fifo() [all …]
|
D | usbduxfast.c | 236 struct comedi_async *async = s->async; in usbduxfast_ai_handle_urb() local 237 struct comedi_cmd *cmd = &async->cmd; in usbduxfast_ai_handle_urb() 250 async->scans_done >= cmd->stop_arg) in usbduxfast_ai_handle_urb() 251 async->events |= COMEDI_CB_EOA; in usbduxfast_ai_handle_urb() 255 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxfast_ai_handle_urb() 261 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_handle_urb() 270 struct comedi_async *async = s->async; in usbduxfast_ai_interrupt() local 287 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt() 295 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt() 303 if (async->events & COMEDI_CB_CANCEL_MASK) in usbduxfast_ai_interrupt() [all …]
|
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 …]
|
D | cb_pcidas.c | 799 struct comedi_async *async = s->async; in cb_pcidas_ai_cmd() local 800 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ai_cmd() 1011 struct comedi_async *async = s->async; in cb_pcidas_ao_inttrig() local 1012 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_inttrig() 1034 async->inttrig = NULL; in cb_pcidas_ao_inttrig() 1043 struct comedi_async *async = s->async; in cb_pcidas_ao_cmd() local 1044 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_cmd() 1089 async->inttrig = cb_pcidas_ao_inttrig; in cb_pcidas_ao_cmd() 1119 struct comedi_async *async = s->async; in cb_pcidas_ao_interrupt() local 1120 struct comedi_cmd *cmd = &async->cmd; in cb_pcidas_ao_interrupt() [all …]
|
D | ni_labpc_isadma.c | 38 struct comedi_cmd *cmd = &s->async->cmd; in labpc_suggest_transfer_size() 65 struct comedi_cmd *cmd = &s->async->cmd; in labpc_setup_dma() 86 struct comedi_async *async = s->async; in labpc_drain_dma() local 87 struct comedi_cmd *cmd = &async->cmd; in labpc_drain_dma()
|
D | addi_apci_3120.c | 216 struct comedi_cmd *cmd = &s->async->cmd; in apci3120_setup_dma() 252 if (dmalen0 > s->async->prealloc_bufsz) in apci3120_setup_dma() 253 dmalen0 = s->async->prealloc_bufsz; in apci3120_setup_dma() 254 if (dmalen1 > s->async->prealloc_bufsz) in apci3120_setup_dma() 255 dmalen1 = s->async->prealloc_bufsz; in apci3120_setup_dma() 437 struct comedi_async *async = s->async; in apci3120_interrupt_dma() local 438 struct comedi_cmd *cmd = &async->cmd; in apci3120_interrupt_dma() 451 async->events |= COMEDI_CB_ERROR; in apci3120_interrupt_dma() 460 async->events |= COMEDI_CB_EOS; in apci3120_interrupt_dma() 463 if ((async->events & COMEDI_CB_CANCEL_MASK) || in apci3120_interrupt_dma() [all …]
|
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 …]
|
D | das800.c | 379 struct comedi_async *async = s->async; in das800_ai_do_cmd() local 380 struct comedi_cmd *cmd = &async->cmd; in das800_ai_do_cmd() 435 struct comedi_async *async; in das800_interrupt() local 450 async = s->async; in das800_interrupt() 451 cmd = &async->cmd; in das800_interrupt() 487 async->scans_done >= cmd->stop_arg) { in das800_interrupt() 488 async->events |= COMEDI_CB_EOA; in das800_interrupt() 495 async->events |= COMEDI_CB_ERROR; in das800_interrupt() 500 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in das800_interrupt()
|
D | ni_pcidio.c | 347 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma() 382 struct comedi_async *async = s->async; in nidio_interrupt() local 437 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 443 async->events |= COMEDI_CB_ERROR; in nidio_interrupt() 448 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 452 async->events |= COMEDI_CB_EOA; in nidio_interrupt() 601 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_inttrig() 607 s->async->inttrig = NULL; in ni_pcidio_inttrig() 615 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_cmd() 717 s->async->inttrig = NULL; in ni_pcidio_cmd() [all …]
|
D | pcmuio.c | 302 s->async->inttrig = NULL; in pcmuio_stop_intr() 315 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_handle_intr_subdev() 338 s->async->scans_done >= cmd->stop_arg) in pcmuio_handle_intr_subdev() 339 s->async->events |= COMEDI_CB_EOA; in pcmuio_handle_intr_subdev() 390 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_start_intr() 436 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_inttrig_start_intr() 445 s->async->inttrig = NULL; in pcmuio_inttrig_start_intr() 460 struct comedi_cmd *cmd = &s->async->cmd; in pcmuio_cmd() 470 s->async->inttrig = pcmuio_inttrig_start_intr; in pcmuio_cmd()
|
D | das16m1.c | 252 struct comedi_async *async = s->async; in das16m1_ai_cmd() local 253 struct comedi_cmd *cmd = &async->cmd; in das16m1_ai_cmd() 387 struct comedi_async *async = s->async; in das16m1_handler() local 388 struct comedi_cmd *cmd = &async->cmd; in das16m1_handler() 429 async->events |= COMEDI_CB_EOA; in das16m1_handler() 438 async->events |= COMEDI_CB_ERROR; in das16m1_handler()
|
D | amplc_pci224.c | 489 struct comedi_cmd *cmd = &s->async->cmd; in pci224_ao_start() 512 struct comedi_cmd *cmd = &s->async->cmd; in pci224_ao_handle_fifo() 524 s->async->scans_done >= cmd->stop_arg) { in pci224_ao_handle_fifo() 526 s->async->events |= COMEDI_CB_EOA; in pci224_ao_handle_fifo() 546 s->async->events |= COMEDI_CB_OVERFLOW; in pci224_ao_handle_fifo() 566 s->async->scans_done >= cmd->stop_arg) { in pci224_ao_handle_fifo() 613 struct comedi_cmd *cmd = &s->async->cmd; in pci224_ao_inttrig_start() 618 s->async->inttrig = NULL; in pci224_ao_inttrig_start() 836 struct comedi_cmd *cmd = &s->async->cmd; in pci224_ao_cmd() 891 s->async->inttrig = pci224_ao_inttrig_start; in pci224_ao_cmd() [all …]
|
D | dt2811.c | 206 struct comedi_async *async = s->async; in dt2811_interrupt() local 207 struct comedi_cmd *cmd = &async->cmd; in dt2811_interrupt() 216 async->events |= COMEDI_CB_OVERFLOW; in dt2811_interrupt() 229 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in dt2811_interrupt() 230 async->events |= COMEDI_CB_EOA; in dt2811_interrupt() 265 struct comedi_cmd *cmd = &s->async->cmd; in dt2811_ai_cmd()
|
/drivers/net/ethernet/sfc/ |
D | mcdi.c | 467 struct efx_mcdi_async_param *async; in efx_mcdi_release() local 472 async = list_first_entry_or_null( in efx_mcdi_release() 474 if (async) { in efx_mcdi_release() 476 efx_mcdi_send_request(efx, async->cmd, in efx_mcdi_release() 477 (const efx_dword_t *)(async + 1), in efx_mcdi_release() 478 async->inlen); in efx_mcdi_release() 484 if (async) in efx_mcdi_release() 500 struct efx_mcdi_async_param *async; in efx_mcdi_complete_async() local 536 async = list_first_entry(&mcdi->async_list, in efx_mcdi_complete_async() 538 list_del(&async->list); in efx_mcdi_complete_async() [all …]
|
/drivers/usb/host/ |
D | ehci-mem.c | 122 if (ehci->async) in ehci_mem_cleanup() 123 qh_destroy(ehci, ehci->async); in ehci_mem_cleanup() 124 ehci->async = NULL; in ehci_mem_cleanup() 175 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init() 176 if (!ehci->async) { in ehci_mem_init()
|