Home
last modified time | relevance | path

Searched full:async (Results 1 – 25 of 1123) sorted by relevance

12345678910>>...45

/linux/drivers/comedi/
H A Dcomedi_buf.c55 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 Ddrivers.c169 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()
484 * async buffer.
486 * If the async command has a stop_src of %TRIG_COUNT, the @nscans will be
515 struct comedi_async *async = s->async; in comedi_nsamples_left() local
[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;
22 TP_printk("async=%d crtc_mask=%x",
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;
[all …]
H A Dmsm_atomic.c209 bool async = can_do_async(state, &async_crtc); in msm_atomic_commit_tail() local
211 trace_msm_atomic_commit_tail_start(async, crtc_mask); in msm_atomic_commit_tail()
216 * Ensure any previous (potentially async) commit has in msm_atomic_commit_tail()
238 if (async) { in msm_atomic_commit_tail()
242 /* async updates are limited to single-crtc updates: */ in msm_atomic_commit_tail()
273 trace_msm_atomic_commit_tail_finish(async, crtc_mask); in msm_atomic_commit_tail()
280 * If there is any async flush pending on updated crtcs, fold in msm_atomic_commit_tail()
310 trace_msm_atomic_commit_tail_finish(async, crtc_mask); in msm_atomic_commit_tail()
/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/include/media/
H A Dv4l2-async.h37 * struct v4l2_async_match_desc - async connection match information
69 * @notifier: the async notifier the connection is related to
181 * v4l2_async_nf_add_fwnode - Allocate and add a fwnode async
187 * @type: Type of the driver's async sub-device or connection struct. The
189 * driver's async struct, i.e. both begin at the same memory address.
204 * remote async subdev to the
210 * @type: Type of the driver's async connection struct. The &struct
211 * v4l2_async_connection shall be the first member of the driver's async
215 * matching and adds the async connection to the notifier's @asc_list. The
230 * v4l2_async_nf_add_i2c - Allocate and add an i2c async
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c22 #include <media/v4l2-async.h>
101 "v4l2-async: fwnode match: need %pfw, trying %pfw\n", in match_fwnode_one()
106 "v4l2-async: direct match found\n"); in match_fwnode_one()
112 "v4l2-async: direct match not found\n"); in match_fwnode_one()
123 "v4l2-async: device--endpoint match %sfound\n", in match_fwnode_one()
134 "v4l2-async: matching for notifier %pfw, sd fwnode %pfw\n", in match_fwnode()
141 "v4l2-async: endpoint fwnode list available, looking for %pfw\n", in match_fwnode()
149 "v4l2-async: endpoint-endpoint match %sfound with %pfw\n", in match_fwnode()
156 dev_dbg(sd->dev, "async: no endpoint matched\n"); in match_fwnode()
169 "v4l2-async: trying secondary fwnode match\n"); in match_fwnode()
[all …]
/linux/drivers/base/power/
H A Dmain.c31 #include <linux/async.h>
233 * @async: If unset, wait only if the device's power.async_suspend flag is set.
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()
[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 Dcomedi_test.c203 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 Dusbduxsigma.c71 * Size of the async input-buffer IN BYTES, the DIO state is transmitted
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()
[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 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 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 …]
/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;
112 /* ASync mailbox is listed second in 'mboxes' property */
116 /* Send async message to remote */
127 /* Now wait for async chan to be done */
/linux/fs/btrfs/
H A Dbio.c12 #include "async-thread.h"
523 * Async submit bios are used to offload expensive checksumming onto the worker
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()
581 * All of the bios that pass through here are from async helpers. in run_one_async_done()
586 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done()
[all …]
/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/drivers/usb/fotg210/
H A Dfotg210-hcd.h34 * fotg210_hcd: async, unlink, periodic (and shadow), ...
62 FOTG210_HRTIMER_POLL_ASS, /* Poll for async schedule off */
67 FOTG210_HRTIMER_ASYNC_UNLINKS, /* Unlink empty async QHs */
70 FOTG210_HRTIMER_DISABLE_ASYNC, /* Wait to disable async sched */
104 /* async schedule support */
105 struct fotg210_qh *async; member
111 unsigned async_count; /* async activity count */
221 #define HCC_CANPARK(p) ((p)&(1 << 2)) /* true: can park on async qh */
235 #define CMD_PARK (1<<11) /* enable "park" on async qh */
237 #define CMD_IAAD (1<<6) /* "doorbell" interrupt async advance */
[all …]
/linux/Documentation/power/powercap/
H A Dpowercap.rst58 │   │   │   ├──async
75 │   │   │   ├──async
84 │   │   ├──async
111 │   │   │   ├──async
128 │   │   │   ├──async
137 │   │   ├──async
142 │   ├──async
/linux/Documentation/devicetree/bindings/gpio/
H A Dsprd,gpio-eic.yaml19 controller contains 4 sub-modules, i.e. EIC-debounce, EIC-latch, EIC-async and
36 The EIC-async sub-module uses a 32kHz clock to capture the short signals
49 - sprd,sc9860-eic-async
62 - sprd,ums512-eic-async
63 - const: sprd,sc9860-eic-async
/linux/include/linux/usb/
H A Dehci_def.h46 #define HCC_CANPARK(p) ((p)&(1 << 2)) /* true: can park on async qh */
63 #define CMD_ASPE (1<<13) /* async schedule prefetch enable */
66 #define CMD_PARK (1<<11) /* enable "park" on async qh */
69 #define CMD_IAAD (1<<6) /* "doorbell" interrupt async advance */
70 #define CMD_ASE (1<<5) /* async schedule enable */
79 #define STS_ASS (1<<15) /* Async Schedule Status */
85 #define STS_IAA (1<<5) /* Interrupted on async advance */
102 u32 async_next; /* address of next async queue head */
/linux/kernel/
H A Dasync.c3 * async.c: Asynchronous function calls for boot performance
28 The async core will assign each scheduled event such a sequence cookie and
47 #include <linux/async.h>
338 * current_is_async - is %current an async worker task?
340 * Returns %true if %current is an async worker task.
353 * Async can schedule a number of interdependent work items. However, in async_init()
355 * work items. The default min_active of 8 isn't sufficient for async in async_init()
359 async_wq = alloc_workqueue("async", WQ_UNBOUND, 0); in async_init()
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_mmap_options.c232 "Check anonymous memory with private mapping, async error mode, mmap memory and tag check on\n"); in main()
234 …"Check anonymous memory with private mapping, async error mode, mmap/mprotect memory and tag check… in main()
236 "Check anonymous memory with shared mapping, async error mode, mmap memory and tag check on\n"); in main()
238 …"Check anonymous memory with shared mapping, async error mode, mmap/mprotect memory and tag check … in main()
249 "Check file memory with private mapping, async error mode, mmap memory and tag check on\n"); in main()
251 …"Check file memory with private mapping, async error mode, mmap/mprotect memory and tag check on\n… in main()
253 "Check file memory with shared mapping, async error mode, mmap memory and tag check on\n"); in main()
255 …"Check file memory with shared mapping, async error mode, mmap/mprotect memory and tag check on\n"… in main()

12345678910>>...45