Home
last modified time | relevance | path

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

1234567

/drivers/staging/comedi/
Dcomedi_buf.c64 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 …]
Dcomedi_fops.c345 struct comedi_async *async = s->async; in resize_async_buffer() local
348 if (new_size > async->max_bufsize) in resize_async_buffer()
376 s->index, async->prealloc_bufsz); in resize_async_buffer()
396 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show()
397 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show()
427 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store()
428 s->async->max_bufsize = size; in max_read_buffer_kb_store()
452 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show()
453 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show()
483 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store()
[all …]
Ddrivers.c177 if (s->async) { in comedi_device_detach_cleanup()
179 kfree(s->async); in comedi_device_detach_cleanup()
447 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan()
456 struct comedi_async *async = s->async; in __comedi_nscans_left() local
457 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left()
462 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left()
463 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left()
508 struct comedi_async *async = s->async; in comedi_nsamples_left() local
509 struct comedi_cmd *cmd = &async->cmd; in comedi_nsamples_left()
514 comedi_bytes_to_samples(s, async->scan_progress); in comedi_nsamples_left()
[all …]
/drivers/base/regmap/
Dregmap-spi.c27 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 …]
Dregmap.c1215 struct regmap_async *async; in regmap_exit() local
1224 async = list_first_entry_or_null(&map->async_free, in regmap_exit()
1227 list_del(&async->list); in regmap_exit()
1228 kfree(async->work_buf); in regmap_exit()
1229 kfree(async); in regmap_exit()
1435 if (map->async && map->bus->async_write) { in _regmap_raw_write()
1436 struct regmap_async *async; in _regmap_raw_write() local
1441 async = list_first_entry_or_null(&map->async_free, in _regmap_raw_write()
1444 if (async) in _regmap_raw_write()
1445 list_del(&async->list); in _regmap_raw_write()
[all …]
/drivers/staging/comedi/drivers/
Dni_tiocmd.c87 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 …]
Dcomedi_test.c209 struct comedi_async *async = s->async; in waveform_ai_timer() local
210 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer()
219 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer()
227 if (async->scan_progress == 0) { in waveform_ai_timer()
240 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer()
241 async->events |= COMEDI_CB_EOA; in waveform_ai_timer()
360 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd()
446 struct comedi_async *async = s->async; in waveform_ao_timer() local
447 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer()
476 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer()
[all …]
Dmite.c283 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 …]
Dusbduxsigma.c215 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 …]
Dusbdux.c253 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 …]
Damplc_pci230.c1032 cmd = &s->async->cmd; in pci230_ao_stop()
1074 struct comedi_async *async = s->async; in pci230_handle_ao_nofifo() local
1075 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_nofifo()
1079 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1086 async->events |= COMEDI_CB_OVERFLOW; in pci230_handle_ao_nofifo()
1093 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) in pci230_handle_ao_nofifo()
1094 async->events |= COMEDI_CB_EOA; in pci230_handle_ao_nofifo()
1105 struct comedi_async *async = s->async; in pci230_handle_ao_fifo() local
1106 struct comedi_cmd *cmd = &async->cmd; in pci230_handle_ao_fifo()
1164 async->scans_done >= cmd->stop_arg) { in pci230_handle_ao_fifo()
[all …]
Dusbduxfast.c237 struct comedi_async *async = s->async; in usbduxfast_ai_handle_urb() local
238 struct comedi_cmd *cmd = &async->cmd; in usbduxfast_ai_handle_urb()
251 async->scans_done >= cmd->stop_arg) in usbduxfast_ai_handle_urb()
252 async->events |= COMEDI_CB_EOA; in usbduxfast_ai_handle_urb()
256 if (!(async->events & COMEDI_CB_CANCEL_MASK)) { in usbduxfast_ai_handle_urb()
262 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_handle_urb()
271 struct comedi_async *async = s->async; in usbduxfast_ai_interrupt() local
288 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt()
296 async->events |= COMEDI_CB_ERROR; in usbduxfast_ai_interrupt()
304 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.c799 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 …]
Dni_labpc_isadma.c38 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()
Daddi_apci_3120.c216 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 …]
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.c379 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()
Dni_pcidio.c349 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma()
384 struct comedi_async *async = s->async; in nidio_interrupt() local
439 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
445 async->events |= COMEDI_CB_ERROR; in nidio_interrupt()
450 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
454 async->events |= COMEDI_CB_EOA; in nidio_interrupt()
603 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_inttrig()
609 s->async->inttrig = NULL; in ni_pcidio_inttrig()
617 struct comedi_cmd *cmd = &s->async->cmd; in ni_pcidio_cmd()
719 s->async->inttrig = NULL; in ni_pcidio_cmd()
[all …]
Dpcmuio.c302 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()
/drivers/crypto/inside-secure/
Dsafexcel_cipher.c42 struct crypto_async_request *async, in safexcel_cipher_token() argument
46 struct skcipher_request *req = skcipher_request_cast(async); in safexcel_cipher_token()
135 struct crypto_async_request *async, in safexcel_handle_req_result() argument
138 struct skcipher_request *req = skcipher_request_cast(async); in safexcel_handle_req_result()
185 static int safexcel_aes_send(struct crypto_async_request *async, in safexcel_aes_send() argument
189 struct skcipher_request *req = skcipher_request_cast(async); in safexcel_aes_send()
247 safexcel_cipher_token(ctx, async, cdesc, req->cryptlen); in safexcel_aes_send()
305 struct crypto_async_request *async, in safexcel_handle_inv_result() argument
308 struct skcipher_request *req = skcipher_request_cast(async); in safexcel_handle_inv_result()
350 enq_ret = crypto_enqueue_request(&priv->ring[ring].queue, async); in safexcel_handle_inv_result()
[all …]
Dsafexcel_hash.c126 struct crypto_async_request *async, in safexcel_handle_req_result() argument
130 struct ahash_request *areq = ahash_request_cast(async); in safexcel_handle_req_result()
162 safexcel_free_context(priv, async, sreq->state_sz); in safexcel_handle_req_result()
173 static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring, in safexcel_ahash_send_req() argument
177 struct ahash_request *areq = ahash_request_cast(async); in safexcel_ahash_send_req()
224 ctx->base.cache = kzalloc(cache_len, EIP197_GFP_FLAGS(*async)); in safexcel_ahash_send_req()
360 struct crypto_async_request *async, in safexcel_handle_inv_result() argument
364 struct ahash_request *areq = ahash_request_cast(async); in safexcel_handle_inv_result()
399 enq_ret = crypto_enqueue_request(&priv->ring[ring].queue, async); in safexcel_handle_inv_result()
414 struct crypto_async_request *async, in safexcel_handle_result() argument
[all …]
/drivers/net/ethernet/sfc/
Dmcdi.c472 struct efx_mcdi_async_param *async; in efx_mcdi_release() local
477 async = list_first_entry_or_null( in efx_mcdi_release()
479 if (async) { in efx_mcdi_release()
481 efx_mcdi_send_request(efx, async->cmd, in efx_mcdi_release()
482 (const efx_dword_t *)(async + 1), in efx_mcdi_release()
483 async->inlen); in efx_mcdi_release()
489 if (async) in efx_mcdi_release()
505 struct efx_mcdi_async_param *async; in efx_mcdi_complete_async() local
541 async = list_first_entry(&mcdi->async_list, in efx_mcdi_complete_async()
543 list_del(&async->list); in efx_mcdi_complete_async()
[all …]
/drivers/base/power/
Dmain.c232 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument
237 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait()
247 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument
249 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children()
252 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument
268 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers()
273 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument
295 dpm_wait(parent, async); in dpm_wait_for_superior()
298 dpm_wait_for_suppliers(dev, async); in dpm_wait_for_superior()
307 static void dpm_wait_for_consumers(struct device *dev, bool async) in dpm_wait_for_consumers() argument
[all …]
/drivers/usb/host/
Dehci-mem.c122 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()

1234567