| /linux/arch/arm64/boot/dts/arm/ |
| H A D | juno-cs-r1r2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 8 clock-names = "apb_pclk"; 9 power-domains = <&scpi_devpd 0>; 10 out-ports { 13 remote-endpoint = <&etf1_in_port>; 17 in-ports { 27 compatible = "arm,coresight-tmc", "arm,primecell"; 31 clock-names = "apb_pclk"; 32 power-domains = <&scpi_devpd 0>; [all …]
|
| H A D | juno-base.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "juno-clocks.dtsi" 3 #include "juno-motherboard.dtsi" 11 compatible = "arm,armv7-timer-mem"; 13 #address-cells = <1>; 14 #size-cells = <1>; 18 frame-number = <1>; 30 #mbox-cells = <1>; 32 clock-names = "apb_pclk"; 36 compatible = "arm,mmu-400", "arm,smmu-v1"; [all …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-cti-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <dt-bindings/arm/coresight-cti-dt.h> 14 #include "coresight-cti.h" 15 #include "coresight-priv.h" 23 #define CTI_DT_CONNS "trig-conns" 26 #define CTI_DT_V8ARCH_COMPAT "arm,coresight-cti-v8-arch" 27 #define CTI_DT_CSDEV_ASSOC "arm,cs-dev-assoc" 28 #define CTI_DT_TRIGIN_SIGS "arm,trig-in-sigs" 29 #define CTI_DT_TRIGOUT_SIGS "arm,trig-out-sigs" 30 #define CTI_DT_TRIGIN_TYPES "arm,trig-in-types" [all …]
|
| H A D | coresight-cti.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/types.h> 17 #include "coresight-priv.h" 23 * 0x000 - 0x144: CTI programming and status 24 * 0xEDC - 0xEF8: CTI integration test. 25 * 0xF00 - 0xFFC: Coresight management registers. 44 #define ITCHOUT 0xEE4 /* WO RW-600 */ 45 #define ITTRIGOUT 0xEE8 /* WO RW-600 */ 56 * CTI CSSoc 400 has 8 IO triggers - other CTIs can be impl def. 57 * Max of in and out defined in the DEVID register. [all …]
|
| H A D | coresight-cti-core.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include "coresight-priv.h" 23 #include "coresight-cti.h" 30 * We assume that the non-CPU CTIs are always powered as we do with sinks etc. 32 * We leave the client to figure out if all the CTIs are interconnected with 43 dev_get_drvdata(csdev->dev.parent) 56 * CTI device name list - for CTI not bound to cores. 60 /* write set of regs to hardware - call with spinlock claimed */ 63 struct cti_config *config = &drvdata->config; in cti_write_all_hw_regs() 66 CS_UNLOCK(drvdata->base); in cti_write_all_hw_regs() [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | ad_sigma_delta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support code for Analog Devices Sigma-Delta ADCs 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 27 #include <linux/types.h> 31 #include <linux/iio/buffer-dmaengine.h> 47 * ad_sd_set_comm() - Set communications register 56 sigma_delta->comm = comm & AD_SD_COMM_CHAN_MASK; in ad_sd_set_comm() 61 * ad_sd_write_reg() - Write a register 65 * @size: Size of the register (0-3) 73 u8 *data = sigma_delta->tx_buf; in ad_sd_write_reg() [all …]
|
| H A D | mcp3911.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Microchip MCP3911, Two-channel Analog Front End 125 struct iio_trigger *trig; member 141 reg = MCP3911_REG_READ(reg, adc->dev_addr); in mcp3911_read() 142 ret = spi_write_then_read(adc->spi, ®, 1, val, len); in mcp3911_read() 147 *val >>= ((4 - len) * 8); in mcp3911_read() 148 dev_dbg(&adc->spi->dev, "reading 0x%x from register 0x%lx\n", *val, in mcp3911_read() 155 dev_dbg(&adc->spi->dev, "writing 0x%x to register 0x%x\n", val, reg); in mcp3911_write() 157 val <<= (3 - len) * 8; in mcp3911_write() 159 val |= MCP3911_REG_WRITE(reg, adc->dev_addr); in mcp3911_write() [all …]
|
| H A D | ad4170-4.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Analog Devices AD4170-4 ADC driver 6 * Author: Ana-Maria Cusco <ana-maria.cusco@analog.com> 17 #include <linux/clk-provider.h> 37 #include <linux/types.h> 81 /* AD4170_CONFIG_A_REG - INTERFACE_CONFIG_A REGISTER */ 246 [AD4170_CHAN_SETUP_REG(0) ... AD4170_CHAN_MAP_REG(AD4170_MAX_ADC_CHANNELS - 1)] = 2, 249 * also interleaved but MISC, AFE, FILTER, FILTER_FS, OFFSET are 16-bit 250 * while OFFSET, GAIN are 24-bit registers so we can't init them all to 278 AD4170_REF_BUF_PRE, /* Pre-charge referrence buffer */ [all …]
|
| H A D | rtq6056.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include <linux/types.h> 57 * RTQ6053/6 is OPMODE->VSHUNTCT->VBUSCT->AVG->RESET 58 * RTQ6059 is OPMODE->SADC->BADC->PGA->RESET 195 * - Fixed sampling conversion time 196 * - Average sample numbers 197 * - Channel scale 198 * - calibration coefficient 279 const struct richtek_dev_data *devdata = priv->devdata; in rtq6056_adc_read_channel() 280 struct device *dev = priv->dev; in rtq6056_adc_read_channel() [all …]
|
| H A D | ad7380.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * ad7380/1 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7380-7381.pdf 10 * ad7383/4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-7384.pdf 11 …* ad7386/7/8 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7386-7387-738… 12 * ad7380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7380-4.pdf 13 * ad7381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf 14 …* ad7383/4-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384… 15 …* ad7386/7/8-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387… 16 * ad7389-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7389-4.pdf 17 * adaq4370-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-dbg-tlv.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2018-2025 Intel Corporation 6 #include "iwl-drv.h" 7 #include "iwl-trans.h" 8 #include "iwl-dbg-tlv.h" 13 * enum iwl_dbg_tlv_type - debug TLV types 24 IWL_UCODE_TLV_TYPE_DEBUG_INFO - IWL_UCODE_TLV_DEBUG_BASE, 34 * struct iwl_dbg_tlv_ver_data - debug TLV version struct 44 * struct iwl_dbg_tlv_timer_node - timer node struct 71 u32 len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_add() [all …]
|
| /linux/drivers/iio/addac/ |
| H A D | ad74413r.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #include <linux/types.h> 29 #include <dt-bindings/iio/addac/adi,ad74413r.h> 67 * Synchronize consecutive operations when doing a one-shot 76 struct iio_trigger *trig; member 177 ad74413r_format_reg_write(reg, val, st->reg_tx_buf); in ad74413r_reg_write() 179 return spi_write(st->spi, st->reg_tx_buf, AD74413R_FRAME_SIZE); in ad74413r_reg_write() 187 dev_err(st->dev, "Bad CRC %02x for %02x%02x%02x\n", in ad74413r_crc_check() 189 return -EINVAL; in ad74413r_crc_check() 200 .tx_buf = st->reg_tx_buf, in ad74413r_reg_read() [all …]
|
| /linux/drivers/acpi/ |
| H A D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/acpi/resource.c - ACPI device resources interpretation. 26 /* On X86 IO space is limited to the [0 - 64K] IO port range */ in acpi_iospace_resource_valid() 27 return res->end < 0x10003; in acpi_iospace_resource_valid() 34 * resources can be placed anywhere in the 64-bit physical address space. 43 return ext_irq->resource_source.string_length == 0 && in is_gsi() 44 ext_irq->producer_consumer == ACPI_CONSUMER; in is_gsi() 55 u64 reslen = end - start + 1; in acpi_dev_resource_len_valid() 67 pr_debug("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", in acpi_dev_resource_len_valid() 76 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags() [all …]
|
| /linux/drivers/iio/accel/ |
| H A D | kionix-kx022a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 #include <linux/types.h> 39 #include "kionix-kx022a.h" 99 * The HW does not set WHO_AM_I reg as read-only but we don't want to write it 100 * so we still include it in the read-only ranges. 279 struct iio_trigger *trig; member 317 return &data->orientation; in kx022a_get_mount_matrix() 403 * range is typically +-2G/4G/8G/16G, distributed over the amount of bits. 406 * => KX022A uses 16 bit (HiRes mode - assume the low 8 bits are zeroed 407 * in low-power mode(?) ) [all …]
|
| /linux/drivers/iio/chemical/ |
| H A D | scd4x.c | 1 // SPDX-License-Identifier: GPL-2.0 25 #include <linux/iio/types.h> 30 #include <linux/types.h> 76 struct i2c_client *client = state->client; in scd4x_i2c_xfer() 84 return -EIO; in scd4x_i2c_xfer() 93 return -EIO; in scd4x_i2c_xfer() 134 struct i2c_client *client = state->client; in scd4x_read() 165 dev_err(&client->dev, "CRC error\n"); in scd4x_read() 166 return -EIO; in scd4x_read() 223 struct i2c_client *client = state->client; in scd4x_write_and_fetch() [all …]
|
| /linux/drivers/pinctrl/intel/ |
| H A D | pinctrl-baytrail.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013, Intel Corporation 18 #include <linux/types.h> 28 #include <linux/pinctrl/pinconf-generic.h> 30 #include "pinctrl-intel.h" 570 offset -= comm->pin_base; in byt_gpio_reg() 579 reg_offset = comm->pad_map[offset] * 16; in byt_gpio_reg() 583 return comm->pad_regs + reg_offset + reg; in byt_gpio_reg() 606 dev_warn(vg->dev, "Group %s, pin %i not muxed (can't retrieve CONF0)\n", in byt_set_group_simple_mux() 632 dev_warn(vg->dev, "Group %s, pin %i not muxed (can't retrieve CONF0)\n", in byt_set_group_mixed_mux() [all …]
|
| /linux/arch/x86/pci/ |
| H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Low-Level PCI Support for PC -- Routing of Interrupts 5 * (c) 1999--2000 Martin Mares <mj@ucw.cz> 8 #include <linux/types.h> 22 #include <asm/pc-conf-reg.h> 81 if (rt->signature != PIRQ_SIGNATURE || in pirq_check_routing_table() 82 rt->version != PIRQ_VERSION || in pirq_check_routing_table() 83 rt->size % 16 || in pirq_check_routing_table() 84 rt->size < sizeof(struct irq_routing_table) || in pirq_check_routing_table() 85 (limit && rt->size > limit - addr)) in pirq_check_routing_table() [all …]
|
| /linux/drivers/iio/ |
| H A D | industrialio-buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * - Better memory allocation techniques? 10 * - Alternative access techniques? 18 #include <linux/dma-buf.h> 19 #include <linux/dma-fence.h> 20 #include <linux/dma-resv.h> 30 #include <linux/iio/iio-opaque.h> 72 return !list_empty(&buf->buffer_list); in iio_buffer_is_active() 77 return buf->access->data_available(buf); in iio_buffer_data_available() 83 if (!indio_dev->info->hwfifo_flush_to_buffer) in iio_buffer_flush_hwfifo() [all …]
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A D | hw.h | 31 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 37 #include <linux/types.h> 43 /* Transmit Packet Descriptor, contains 4 32-bit words. 46 * +----------------+----------------+ 47 * | vlan-tag | buf length | 48 * +----------------+----------------+ 50 * +----------------+----------------+ 52 * +----------------+----------------+ 54 * +----------------+----------------+ 56 * Word 2 and 3 combine to form a 64-bit buffer address [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | das1800.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Comedi driver for Keithley DAS-1700/DAS-1800 series boards 6 * COMEDI - Linux Control and Measurement Device Interface 14 * Devices: [Keithley Metrabyte] DAS-1701ST (das-1701st), 15 * DAS-1701ST-DA (das-1701st-da), DAS-1701/AO (das-1701ao), 16 * DAS-1702ST (das-1702st), DAS-1702ST-DA (das-1702st-da), 17 * DAS-1702HR (das-1702hr), DAS-1702HR-DA (das-1702hr-da), 18 * DAS-1702/AO (das-1702ao), DAS-1801ST (das-1801st), 19 * DAS-1801ST-DA (das-1801st-da), DAS-1801HC (das-1801hc), 20 * DAS-1801AO (das-1801ao), DAS-1802ST (das-1802st), [all …]
|
| H A D | s626.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 2002-2004 Sensoray Co., Inc. 57 #include <linux/types.h> 68 * struct s626_private - Working data for s626 driver. 69 * @ai_cmd_running: non-zero if ai_cmd is running. 98 #define S626_INDXMASK(C) (1 << (((C) > 2) ? ((C) * 2 - 1) : ((C) * 2 + 4))) 110 writel(val, dev->mmio + reg); in s626_mc_enable() 116 writel(cmd << 16, dev->mmio + reg); in s626_mc_disable() 124 val = readl(dev->mmio + reg); in s626_mc_test() [all …]
|
| /linux/drivers/pinctrl/nomadik/ |
| H A D | pinctrl-nomadik-db8500.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/types.h> 8 #include <linux/gpio/gpio-nomadik.h> 572 /* Optional 4-bit Memory Stick interface */ 844 * UART2 can be muxed out with just RX/TX in four places, CTS+RTS is however 869 /* The image processor has 8 GPIO pins that can be muxed out */ 883 DB8500_FUNC_GROUPS(trig, "trig_b_1"); 951 FUNCTION(trig),
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright(c) 2008 - 2009 Atheros Corporation. All rights reserved. 6 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 12 #include <linux/types.h> 56 /* hw-ids */ 152 * ->L0s not L1 */ 206 #define MASTER_CTRL_OOB_DIS BIT(6) /* OUT OF BOX DIS */ 245 #define GPHY_CTRL_EXT_RESET BIT(0) /* 1:out of DSP RST status */ 308 * un-repairable because 311 * stuck-to-x failure */ [all …]
|
| /linux/include/uapi/linux/ |
| H A D | comedi.h | 1 /* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org> 32 * NOTE: 'comedi_config --init-data' is deprecated 40 /* length of nth chunk of firmware data -*/ 78 /* counters -- these are arbitrary values */ 120 /* try to use a real-time interrupt while performing command */ 123 /* wake up on end-of-scan events */ 161 #define TRIG_FOLLOW 0x00000004 /* trigger on next lower level trig */ 166 #define TRIG_INT 0x00000080 /* trigger on comedi-internal signal N */ [all …]
|
| /linux/drivers/iio/resolver/ |
| H A D | ad2s1210.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2010 Analog Devices Inc. 11 * ----------------------------|------|------------------------------------------- 23 * Resolution | D1:0 | *device tree: assigned-resolution-bits* 34 * ----------------------------------------|----|--------------------------------- 62 #include <linux/types.h> 153 /* adi,fixed-mode property - only valid when mode_gpios == NULL. */ 178 struct gpio_descs *gpios = st->mode_gpios; in ad2s1210_set_mode() 182 return mode == st->fixed_mode ? 0 : -EOPNOTSUPP; in ad2s1210_set_mode() 202 .rx_buf = &st->rx[0], in ad2s1210_regmap_reg_write() [all …]
|