/linux/drivers/comedi/ |
H A D | comedi_buf.c | 53 struct comedi_async *async = s->async; in __comedi_buf_free() local 57 async->prealloc_bufsz = 0; in __comedi_buf_free() 59 bm = async->buf_map; in __comedi_buf_free() 60 async->buf_map = NULL; in __comedi_buf_free() 122 struct comedi_async *async = s->async; in __comedi_buf_alloc() local 137 async->buf_map = bm; in __comedi_buf_alloc() 139 async->prealloc_bufsz = n_pages << PAGE_SHIFT; in __comedi_buf_alloc() 179 /* returns s->async->buf_map and increments its kref refcount */ 183 struct comedi_async *async = s->async; in comedi_buf_map_from_subdev_get() local 187 if (!async) in comedi_buf_map_from_subdev_get() [all …]
|
H A D | comedi_fops.c | 328 struct comedi_async *async = s->async; in resize_async_buffer() local 333 if (new_size > async->max_bufsize) in resize_async_buffer() 361 s->index, async->prealloc_bufsz); in resize_async_buffer() 381 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_show() 382 size = s->async->max_bufsize / 1024; in max_read_buffer_kb_show() 412 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in max_read_buffer_kb_store() 413 s->async->max_bufsize = size; in max_read_buffer_kb_store() 437 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_show() 438 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show() 468 if (s && (s->subdev_flags & SDF_CMD_READ) && s->async) in read_buffer_kb_store() [all …]
|
H A D | drivers.c | 169 if (s->async) { in comedi_device_detach_cleanup() 171 kfree(s->async); in comedi_device_detach_cleanup() 461 struct comedi_cmd *cmd = &s->async->cmd; in comedi_bytes_per_scan() 470 struct comedi_async *async = s->async; in __comedi_nscans_left() local 471 struct comedi_cmd *cmd = &async->cmd; in __comedi_nscans_left() 476 if (async->scans_done < cmd->stop_arg) in __comedi_nscans_left() 477 scans_left = cmd->stop_arg - async->scans_done; in __comedi_nscans_left() 491 * async buffer. 493 * If the async command has a stop_src of %TRIG_COUNT, the @nscans will be 522 struct comedi_async *async = s->async; in comedi_nsamples_left() local [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; 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 …]
|
/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/include/media/ |
H A D | v4l2-async.h | 37 * 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 D | v4l2-async.c | 22 #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 D | main.c | 31 #include <linux/async.h> 244 * @async: If unset, wait only if the device's power.async_suspend flag is set. 246 static void dpm_wait(struct device *dev, bool async) in dpm_wait() argument 251 if (async || (pm_async_enabled && dev->power.async_suspend)) in dpm_wait() 261 static void dpm_wait_for_children(struct device *dev, bool async) in dpm_wait_for_children() argument 263 device_for_each_child(dev, &async, dpm_wait_fn); in dpm_wait_for_children() 266 static void dpm_wait_for_suppliers(struct device *dev, bool async) in dpm_wait_for_suppliers() argument 283 dpm_wait(link->supplier, async); in dpm_wait_for_suppliers() 288 static bool dpm_wait_for_superior(struct device *dev, bool async) in dpm_wait_for_superior() argument 310 dpm_wait(parent, async); in dpm_wait_for_superior() [all …]
|
/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 | comedi_test.c | 204 struct comedi_async *async = s->async; in waveform_ai_timer() local 205 struct comedi_cmd *cmd = &async->cmd; in waveform_ai_timer() 214 unsigned int chanspec = cmd->chanlist[async->cur_chan]; in waveform_ai_timer() 222 if (async->scan_progress == 0) { in waveform_ai_timer() 235 if (cmd->stop_src == TRIG_COUNT && async->scans_done >= cmd->stop_arg) { in waveform_ai_timer() 236 async->events |= COMEDI_CB_EOA; in waveform_ai_timer() 359 struct comedi_cmd *cmd = &s->async->cmd; in waveform_ai_cmd() 452 struct comedi_async *async = s->async; in waveform_ao_timer() local 453 struct comedi_cmd *cmd = &async->cmd; in waveform_ao_timer() 482 async->events |= COMEDI_CB_OVERFLOW; in waveform_ao_timer() [all …]
|
H A D | usbduxsigma.c | 71 * 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 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 | 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 …]
|
/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; 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/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/fs/btrfs/ |
H A D | bio.c | 12 #include "async-thread.h" 516 * Async submit bios are used to offload expensive checksumming onto the worker 537 struct async_submit_bio *async = in run_one_async_start() local 541 ret = btrfs_bio_csum(async->bbio); in run_one_async_start() 543 async->bbio->bio.bi_status = errno_to_blk_status(ret); in run_one_async_start() 558 struct async_submit_bio *async = in run_one_async_done() local 560 struct bio *bio = &async->bbio->bio; in run_one_async_done() 569 btrfs_bio_end_io(async->bbio, bio->bi_status); in run_one_async_done() 574 * All of the bios that pass through here are from async helpers. in run_one_async_done() 579 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done() [all …]
|
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_prctl.c | 58 ksft_print_msg("ASYNC enabled\n"); in check_basic_read() 110 …_MTE_TCF_ASYNC, HWCAP2_MTE, 0, "ASYNC" }, 111 …CF_SYNC | PR_MTE_TCF_ASYNC, HWCAP2_MTE, 0, "SYNC+ASYNC" }, 113 …F_ASYNC | PR_MTE_STORE_ONLY, HWCAP2_MTE, HWCAP3_MTE_STORE_ONLY, "ASYNC+STONLY" }, 114 …C | PR_MTE_TCF_ASYNC | PR_MTE_STORE_ONLY, HWCAP2_MTE, HWCAP3_MTE_STORE_ONLY, "SYNC+ASYNC+STONLY" },
|
/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/Documentation/devicetree/bindings/gpio/ |
H A D | sprd,gpio-eic.yaml | 19 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/Documentation/power/powercap/ |
H A D | powercap.rst | 58 │ │ │ ├──async 75 │ │ │ ├──async 84 │ │ ├──async 111 │ │ │ ├──async 128 │ │ │ ├──async 137 │ │ ├──async 142 │ ├──async
|
/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.h | 34 * 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/arch/arm64/kernel/ |
H A D | mte.c | 111 * async mode previously. in mte_enable_kernel_sync() 114 "MTE async mode enabled system wide!"); in mte_enable_kernel_sync() 124 * MTE async mode is set system wide by the first PE that in mte_enable_kernel_async() 128 * mode in between sync and async, this strategy needs in mte_enable_kernel_async() 141 * MTE asymm mode behaves as async mode for store in mte_enable_kernel_asymm() 146 * mode in between sync and async, this strategy needs in mte_enable_kernel_asymm() 230 sctlr |= SYS_FIELD_PREP_ENUM(SCTLR_EL1, TCF0, ASYNC); in mte_update_sctlr_user() 295 * Check if an async tag exception occurred at EL1. in mte_thread_switch() 386 * If the system supports it and both sync and async modes are in set_mte_ctrl() 388 * Userspace could see a mix of both sync and async anyway due in set_mte_ctrl() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A 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 …]
|
/linux/drivers/android/ |
H A D | binder_alloc.h | 27 * @async_transaction: %true if buffer is in use for an async txn 28 * @oneway_spam_suspect: %true if total async allocate size just exceed 90 * @free_async_space: VA space available for async buffers. This is 100 * flag once the async buffer has returned to a healthy state 151 * binder_alloc_get_free_async_space() - get free space available for async 154 * Return: the bytes remaining in the address-space for async transactions
|