Home
last modified time | relevance | path

Searched +full:io +full:- +full:backends (Results 1 – 24 of 24) sorted by relevance

/linux/Documentation/devicetree/bindings/iio/adc/
H A Dst,stm32-dfsdm-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
11 - Olivier Moysan <olivier.moysan@foss.st.com>
14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to
17 - Sigma delta modulators (motor control, metering...)
18 - PDM microphones (audio digital microphone)
28 - st,stm32h7-dfsdm
[all …]
H A Dadi,ad9467.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD9467 and similar High-Speed ADCs
10 - Michael Hennerich <michael.hennerich@analog.com>
13 The AD9467 and the parts similar with it, are high-speed analog-to-digital
18 All the parts support the register map described by Application Note AN-877
19 https://www.analog.com/media/en/technical-documentation/application-notes/AN-877.pdf
21 https://www.analog.com/media/en/technical-documentation/data-sheets/AD9265.pdf
22 https://www.analog.com/media/en/technical-documentation/data-sheets/AD9434.pdf
[all …]
/linux/drivers/iio/
H A Dindustrialio-backend.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * device which will callback into the backends when needed (to get/set some
11 * -------------------------------------------------------
12 * ------------------ | ------------ ------------ ------- FPGA|
13 * | ADC |------------------------| | ADC CORE |---------| DMA CORE |------| RAM | |
14 * | (Frontend/IIO) | Serial Data (eg: LVDS) | |(backend) |---------| |------| | |
15 * | |------------------------| ------------ ------------ ------- |
16 * ------------------ -------------------------------------------------------
19 * - Backends should register themselves with devm_iio_backend_register()
20 * - Frontend devices should get backends with devm_iio_backend_get()
[all …]
/linux/drivers/gpu/drm/i915/
H A Dintel_region_ttm.c1 // SPDX-License-Identifier: MIT
26 * intel_region_ttm_device_init - Initialize a TTM device
33 struct drm_device *drm = &dev_priv->drm; in intel_region_ttm_device_init()
35 return ttm_device_init(&dev_priv->bdev, i915_ttm_driver(), in intel_region_ttm_device_init()
36 drm->dev, drm->anon_inode->i_mapping, in intel_region_ttm_device_init()
37 drm->vma_offset_manager, false, false); in intel_region_ttm_device_init()
41 * intel_region_ttm_device_fini - Finalize a TTM device
46 ttm_device_fini(&dev_priv->bdev); in intel_region_ttm_device_fini()
51 * driver-private types for now, reserving TTM_PL_VRAM for stolen
58 GEM_BUG_ON(mem->type != INTEL_MEMORY_LOCAL && in intel_region_to_ttm_type()
[all …]
H A Di915_perf.c2 * Copyright © 2015-2016 Intel Corporation
44 * without special privileges. Access to system-wide metrics requires root
58 * might sample sets of tightly-coupled counters, depending on the
70 * interleaved with event-type specific members.
76 * would be acceptable to expose them to unprivileged applications - to hide
96 * side-band OA data captured via MI_REPORT_PERF_COUNT commands; we're
102 * For posterity, in case we might re-visit trying to adapt core perf to be
106 * - The perf based OA PMU driver broke some significant design assumptions:
110 * implications, the need to fake cpu-related data (such as user/kernel
112 * as a way to forward device-specific status records.
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_protocol.h1 /* SPDX-License-Identifier: GPL-2.0-only */
33 P_SUPERSEDED = 0x18, /* Used in proto C, two-primaries conflict detection */
74 P_ZEROES = 0x36, /* data sock: zero-out, WRITE_ZEROES */
154 u32 size; /* == bio->bi_size */
159 u32 size; /* == bio->bi_size */
166 * P_SUPERSEDED (proto C, two-primaries conflict detection)
196 /* Detect all-zeros during resync, and rather TRIM/UNMAP/DISCARD those blocks
203 * - indicates support for 128 MiB "batch bios",
206 * - indicates that we exchange additional settings in p_sizes
215 * back to zero-out.
[all …]
/linux/drivers/iio/adc/
H A Dad7606_par.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2011 - 2024 Analog Devices Inc.
11 #include <linux/io.h>
39 for (c = 0; c < indio_dev->num_channels; c++) { in ad7606_bi_update_scan_mode()
41 ret = iio_backend_chan_enable(st->back, c); in ad7606_bi_update_scan_mode()
43 ret = iio_backend_chan_disable(st->back, c); in ad7606_bi_update_scan_mode()
60 st->back = devm_iio_backend_get(dev, NULL); in ad7606_bi_setup_iio_backend()
61 if (IS_ERR(st->back)) in ad7606_bi_setup_iio_backend()
62 return PTR_ERR(st->back); in ad7606_bi_setup_iio_backend()
65 if (!st->cnvst_pwm) in ad7606_bi_setup_iio_backend()
[all …]
H A Dad9467.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2012-2020 Analog Devices Inc.
32 * ADI High-Speed ADC common spi interface registers
33 * See Application-Note AN-877:
34 * https://www.analog.com/media/en/technical-documentation/application-notes/AN-877.pdf
85 * Analog Devices AD9265 16-Bit, 125/105/80 MSPS ADC
93 * Analog Devices AD9434 12-Bit, 370/500 MSPS ADC
101 * Analog Devices AD9467 16-Bit, 200/250 MSPS ADC
109 * Analog Devices AD9643 14-Bit, 170/210/250 MSPS ADC
116 * Analog Devices AD9652 16-bit 310 MSPS ADC
[all …]
/linux/tools/testing/selftests/powerpc/eeh/
H A Deeh-functions.sh2 # SPDX-License-Identifier: GPL-2.0-only
15 # device is recovered by removing and re-probing it. This causes the
19 if [ -z "$eeh_state" ]; then
23 local fw_state="$(echo $eeh_state | cut -d' ' -f1)"
24 local sw_state="$(echo $eeh_state | cut -d' ' -f2)"
28 if [ "$((sw_state & 0x3))" -ne 0 ] ; then
34 # the platform backends set these when the PE is in reset. The
36 if [ "$((fw_state & 0x18))" -ne "$((0x18))" ] ; then
44 test -e /proc/powerpc/eeh && \
45 grep -q 'EEH Subsystem is enabled' /proc/powerpc/eeh
[all …]
/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Maxime Ripard <maxime.ripard@free-electrons.com>
11 #include <linux/media-bus-format.h>
48 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector()
50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector()
66 return -EINVAL; in sun4i_tcon_get_pixel_depth()
68 info = &connector->display_info; in sun4i_tcon_get_pixel_depth()
69 if (info->num_bus_formats != 1) in sun4i_tcon_get_pixel_depth()
70 return -EINVAL; in sun4i_tcon_get_pixel_depth()
72 switch (info->bus_formats[0]) { in sun4i_tcon_get_pixel_depth()
[all …]
/linux/drivers/platform/x86/dell/
H A Ddell-smbios-base.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Copyright (C) 2005-2014 Dell Inc.
23 #include "dell-smbios.h"
76 {0x0000, 19, -1}, /* diagnostics */
77 /* handled by kernel: dell-laptop */
122 /* handled by kernel: dell-laptop */
138 case -1: /* Completed with error */ in dell_smbios_error()
139 return -EIO; in dell_smbios_error()
140 case -2: /* Function not supported */ in dell_smbios_error()
141 return -ENXIO; in dell_smbios_error()
[all …]
/linux/include/xen/interface/io/
H A Dblkif.h1 /* SPDX-License-Identifier: MIT */
5 * Unified block-device I/O interface for Xen guest OSes.
7 * Copyright (c) 2003-2004, Keir Fraser
13 #include <xen/interface/io/ring.h>
17 * Front->back notifications: When enqueuing a new request, sending a
19 * hold-off mechanism provided by the ring macros). Backends must set
22 * Back->front notifications: When enqueuing a new response, sending a
24 * hold-off mechanism provided by the ring macros). Frontends must set
33 * If supported, the backend will write the key "multi-queue-max-queues" to
37 * key "multi-queue-num-queues" with the number they wish to use, which must be
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_resource.c26 #include <linux/io-mapping.h>
27 #include <linux/iosys-map.h>
41 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_clear_bulk()
43 cursor->bulk = NULL; in ttm_resource_cursor_clear_bulk()
44 list_del_init(&cursor->bulk_link); in ttm_resource_cursor_clear_bulk()
53 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_move_bulk_tail()
55 if (WARN_ON_ONCE(bulk != cursor->bulk)) { in ttm_resource_cursor_move_bulk_tail()
56 list_del_init(&cursor->bulk_link); in ttm_resource_cursor_move_bulk_tail()
60 pos = &bulk->pos[cursor->mem_type][cursor->priority]; in ttm_resource_cursor_move_bulk_tail()
61 if (pos->last) in ttm_resource_cursor_move_bulk_tail()
[all …]
/linux/Documentation/filesystems/caching/
H A Dfscache.rst1 .. SPDX-License-Identifier: GPL-2.0
13 FS-Cache mediates between cache backends (such as CacheFiles) and network
16 +---------+
17 | | +--------------+
18 | NFS |--+ | |
19 | | | +-->| CacheFS |
20 +---------+ | +----------+ | | /dev/hda5 |
21 | | | | +--------------+
22 +---------+ +-------------->| | |
23 | | +-------+ | |--+
[all …]
/linux/drivers/of/
H A Dproperty.c1 // SPDX-License-Identifier: GPL-2.0+
3 * drivers/of/property.c - Procedures for accessing and interpreting
11 * Copyright (C) 1996-2005 Paul Mackerras.
35 * of_graph_is_present() - check graph's presence
38 * Return: True if @node has a port or ports (with a port) sub-node,
55 * of_property_count_elems_of_size - Count the number of elements in a property
64 * Return: The number of elements on sucess, -EINVAL if the property does not
65 * exist or its length does not match a multiple of elem_size and -ENODATA if
74 return -EINVAL; in of_property_count_elems_of_size()
75 if (!prop->value) in of_property_count_elems_of_size()
[all …]
/linux/drivers/tty/hvc/
H A Dhvc_console.c1 // SPDX-License-Identifier: GPL-2.0+
47 * future to better deal with backends that want other buffer sizes.
61 static atomic_t hvc_needs_init __read_mostly = ATOMIC_INIT(-1);
79 * This value is used to assign a tty->index value to a hvc_struct based
83 static int last_hvc = -1;
98 spin_lock_irqsave(&hp->lock, flags); in hvc_get_by_index()
99 if (hp->index == index) { in hvc_get_by_index()
100 tty_port_get(&hp->port); in hvc_get_by_index()
101 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index()
105 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index()
[all …]
/linux/drivers/target/
H A Dtarget_core_transport.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * (c) Copyright 2002-2013 Datera, Inc.
159 return -ENOMEM; in init_se_kmem_caches()
228 wake_up(&cmd_cnt->refcnt_wq); in target_release_cmd_refcnt()
240 init_completion(&cmd_cnt->stop_done); in target_alloc_cmd_counter()
241 init_waitqueue_head(&cmd_cnt->refcnt_wq); in target_alloc_cmd_counter()
242 atomic_set(&cmd_cnt->stopped, 0); in target_alloc_cmd_counter()
244 rc = percpu_ref_init(&cmd_cnt->refcnt, target_release_cmd_refcnt, 0, in target_alloc_cmd_counter()
263 if (!atomic_read(&cmd_cnt->stopped)) in target_free_cmd_counter()
264 percpu_ref_put(&cmd_cnt->refcnt); in target_free_cmd_counter()
[all …]
H A Dtarget_core_user.c1 // SPDX-License-Identifier: GPL-2.0-only
36 * -------------
38 * Define a shared-memory interface for LIO to pass SCSI commands and
39 * data to userspace for processing. This is to allow backends that
40 * are too complex for in-kernel support to be possible.
42 * It uses the UIO framework to do a lot of the device-creation and
48 * internal to the mmap-ed area. There is separate space outside the
68 #define CMDR_SIZE_DEF (MB_CMDR_SIZE_DEF - CMDR_OFF)
77 #define TCMU_MBS_TO_PAGES(_mbs) ((size_t)_mbs << (20 - PAGE_SHIFT))
78 #define TCMU_PAGES_TO_MBS(_pages) (_pages >> (20 - PAGE_SHIFT))
[all …]
/linux/drivers/block/
H A Dxen-blkfront.c6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand
40 #include <linux/blk-mq.h>
61 #include <xen/interface/io/blkif.h>
62 #include <xen/interface/io/protocols.h>
160 __CONST_RING_SIZE(blkif, XEN_PAGE_SIZE * (info)->nr_ring_pages)
163 * ring-ref%u i=(-1UL) would take 11 characters + 'ring-ref' is 8, so 19
168 * queue-%u would take 7 + 10(UINT_MAX) = 17 characters.
173 * Per-ring info.
196 * putting all kinds of interesting stuff here :-)
216 /* Connect-time cached feature_persistent parameter */
[all …]
/linux/mm/
H A Dmemory.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * demand-loading started 01.12.91 - seems it is high on the list of
10 * things wanted, and it should be easy to implement. - Linus
14 * Ok, demand-loading was easy, shared pages a little bit tricker. Shared
15 * pages started 02.12.91, seems to work. - Linus.
21 * Also corrected some "invalidate()"s - I wasn't doing enough of them.
27 * 19.12.91 - works, somewhat. Sometimes I get faults, don't know why.
29 * 20.12.91 - Ok, making the swap-device changeable like the root.
33 * 05.04.94 - Multi-page memory management added for v1.1.
36 * 16.07.99 - Support of BIGMEM added by Gerhard Wichert, Siemens AG
[all …]
/linux/drivers/net/
H A Dxen-netfront.c2 * Virtual network driver for conversing with remote driver backends.
4 * Copyright (c) 2002-2005, K A Fraser
58 #include <xen/interface/io/netif.h>
81 #define NETFRONT_SKB_CB(skb) ((struct netfront_cb *)((skb)->cb))
91 /* Queue name is interface name with "-qNNN" appended */
94 /* IRQ name is queue name with "-tx" or "-rx" appended */
108 unsigned int id; /* Queue ID, 0-based */
109 char name[QUEUE_NAME_SIZE]; /* DEVNAME-qN */
122 char tx_irq_name[IRQ_NAME_SIZE]; /* DEVNAME-qN-tx */
123 char rx_irq_name[IRQ_NAME_SIZE]; /* DEVNAME-qN-rx */
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dni.c52 spin_lock_irqsave(&rdev->smc_idx_lock, flags); in tn_smc_rreg()
55 spin_unlock_irqrestore(&rdev->smc_idx_lock, flags); in tn_smc_rreg()
63 spin_lock_irqsave(&rdev->smc_idx_lock, flags); in tn_smc_wreg()
66 spin_unlock_irqrestore(&rdev->smc_idx_lock, flags); in tn_smc_wreg()
439 switch (rdev->family) { in ni_init_golden_registers()
449 if ((rdev->pdev->device == 0x9900) || in ni_init_golden_registers()
450 (rdev->pdev->device == 0x9901) || in ni_init_golden_registers()
451 (rdev->pdev->device == 0x9903) || in ni_init_golden_registers()
452 (rdev->pdev->device == 0x9904) || in ni_init_golden_registers()
453 (rdev->pdev->device == 0x9905) || in ni_init_golden_registers()
[all …]
H A Dcik.c144 * cik_get_allowed_info_register - fetch the register for the info ioctl
150 * Returns 0 for success or -EINVAL for an invalid register
172 return -EINVAL; in cik_get_allowed_info_register()
184 spin_lock_irqsave(&rdev->didt_idx_lock, flags); in cik_didt_rreg()
187 spin_unlock_irqrestore(&rdev->didt_idx_lock, flags); in cik_didt_rreg()
195 spin_lock_irqsave(&rdev->didt_idx_lock, flags); in cik_didt_wreg()
198 spin_unlock_irqrestore(&rdev->didt_idx_lock, flags); in cik_didt_wreg()
227 actual_temp = (temp / 8) - 49; in kv_get_temp()
242 spin_lock_irqsave(&rdev->pciep_idx_lock, flags); in cik_pciep_rreg()
246 spin_unlock_irqrestore(&rdev->pciep_idx_lock, flags); in cik_pciep_rreg()
[all …]
/linux/drivers/scsi/
H A Dhpsa.c3 * Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries
5 * Copyright 2014-2015 PMC-Sierra, Inc.
6 * Copyright 2000,2009-2015 Hewlett-Packard Development Company, L.P.
35 #include <linux/io.h>
36 #include <linux/dma-mapping.h>
52 #include <linux/percpu-defs.h>
60 * HPSA_DRIVER_VERSION must be 3 byte values (0-255) separated by '.'
61 * with an optional trailing '-' followed by a byte value (0-255).
63 #define HPSA_DRIVER_VERSION "3.4.20-200"
79 /* Embedded module documentation macros - see modules.h */
[all …]