/linux-6.14.4/drivers/pinctrl/ |
D | pinctrl-mcp23s08_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* MCP23S08 SPI GPIO driver */ 8 #include <linux/spi/spi.h> 10 #include "pinctrl-mcp23s08.h" 18 * Driver data holds all the per-chip data. 29 struct spi_device *spi = to_spi_device(mcp->dev); in mcp23sxx_spi_write() local 31 struct spi_transfer t[2] = { { .tx_buf = &mcp->addr, .len = 1, }, in mcp23sxx_spi_write() 38 return spi_sync(spi, &m); in mcp23sxx_spi_write() 46 struct spi_device *spi = to_spi_device(mcp->dev); in mcp23sxx_spi_gather_write() local 48 struct spi_transfer t[3] = { { .tx_buf = &mcp->addr, .len = 1, }, in mcp23sxx_spi_gather_write() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/pinctrl/ |
D | microchip,mcp23s08.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Microchip I/O expander with serial interface (I2C/SPI) 10 - Himanshu Bhavani <[email protected]> 14 chips.These chips provide 8 or 16 GPIO pins with either I2C or SPI interface. 17 - $ref: /schemas/spi/spi-peripheral-props.yaml# 22 - microchip,mcp23s08 23 - microchip,mcp23s17 24 - microchip,mcp23s18 [all …]
|
/linux-6.14.4/drivers/iio/dac/ |
D | ad5421.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/spi/spi.h> 59 * struct ad5421_state - driver instance specific data 60 * @spi: spi_device 63 * @data: spi transfer buffers 65 * @lock: lock to protect the data buffer during SPI ops 68 struct spi_device *spi; member 128 .channel = -1, 139 st->data[0].d32 = cpu_to_be32((reg << 16) | val); in ad5421_write_unlocked() 141 return spi_write(st->spi, &st->data[0].d8[1], 3); in ad5421_write_unlocked() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/sound/ |
D | renesas,idt821034.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <[email protected]> 16 The time-slots used by the codec must be set and so, the properties 17 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 18 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for 19 sub-nodes that involve the codec. The codec uses one 8bit time-slot per 21 'dai-tdm-tdm-slot-with' must be set to 8. 26 - $ref: /schemas/spi/spi-peripheral-props.yaml# [all …]
|
D | infineon,peb2466.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <[email protected]> 13 The Infineon PEB2466 codec is a programmable DSP-based four channels codec 16 The time-slots used by the codec must be set and so, the properties 17 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 18 'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes 19 that involve the codec. The codec uses one 8bit time-slot per channel. 20 'dai-tdm-tdm-slot-with' must be set to 8. [all …]
|
/linux-6.14.4/sound/pci/ice1712/ |
D | delta.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * Lowlevel functions for M-Audio Delta 1010, 44, 66, Dio2496, Audiophile 44 * MidiMan M-Audio Delta GPIO definitions 47 /* MidiMan M-Audio Delta shared pins */ 52 /* 0 = valid signal is present */ 57 /* (writing on rising edge - 0->1) */ 64 /* MidiMan M-Audio DeltaDiO */ 73 /* MidiMan M-Audio Delta1010 */ 79 /* 1 - clock are taken from S/PDIF input */ 80 /* 0 - clock are taken from Word Clock input */ [all …]
|
/linux-6.14.4/drivers/iio/imu/ |
D | smi240.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 11 #include <linux/spi/spi.h> 115 * Ensure natural alignment for timestamp if present. 165 } while (--i >= 0); in smi240_crc3() 189 struct spi_device *spi = context; in smi240_regmap_spi_read() local 190 struct iio_dev *indio_dev = dev_get_drvdata(&spi->dev); in smi240_regmap_spi_read() 194 return -EINVAL; in smi240_regmap_spi_read() 197 request |= FIELD_PREP(SMI240_WRITE_CAP_BIT_MASK, iio_priv_data->capture); in smi240_regmap_spi_read() 201 iio_priv_data->spi_buf = cpu_to_be32(request); in smi240_regmap_spi_read() 205 * SPI protocol, where the slave interface responds to in smi240_regmap_spi_read() [all …]
|
/linux-6.14.4/drivers/iio/gyro/ |
D | adxrs290.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ADXRS290 SPI Gyroscope Driver 15 #include <linux/spi/spi.h> 68 struct spi_device *spi; member 75 /* Ensure correct alignment of timestamp when present */ 83 * Available cut-off frequencies of the low pass filter in Hz. 98 * Available cut-off frequencies of the high pass filter in Hz. 121 mutex_lock(&st->lock); in adxrs290_get_rate_data() 122 temp = spi_w8r16(st->spi, cmd); in adxrs290_get_rate_data() 131 mutex_unlock(&st->lock); in adxrs290_get_rate_data() [all …]
|
/linux-6.14.4/drivers/net/wireless/broadcom/brcm80211/include/ |
D | chipcommon.h | 1 // SPDX-License-Identifier: ISC 49 /* gpio - cleared only by power-on-reset */ 222 #define CID_ID_MASK 0x0000ffff /* Chip Id mask */ 223 #define CID_REV_MASK 0x000f0000 /* Chip Revision mask */ 225 #define CID_PKG_MASK 0x00f00000 /* Package Option mask */ 234 #define CC_CAP_MIPSEB 0x00000004 /* MIPS is in big-endian mode */ 239 #define CC_CAP_EXTBUS_MASK 0x000000c0 /* External bus mask */ 240 #define CC_CAP_EXTBUS_NONE 0x00000000 /* No ExtBus present */ 249 #define CC_CAP_JTAGP 0x00400000 /* JTAG Master Present */ 251 #define CC_CAP_BKPLN64 0x08000000 /* 64-bit backplane */ [all …]
|
/linux-6.14.4/drivers/iio/adc/ |
D | mcp3564.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2022-2023 Microchip Technology Inc. and its subsidiaries 10 …s/aemDocuments/documents/MSLD/ProductDocuments/DataSheets/MCP3561-2-4-Family-Data-Sheet-DS20006181… 12 …ds/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3561_2_4R-Data-Sheet-DS200006391C.pdf 14 …ProductDocuments/DataSheets/MCP3461-2-4-Two-Four-Eight-Channel-153.6-ksps-Low-Noise-16-Bit-Delta-S… 16 …/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP3461-2-4R-Family-Data-Sheet-DS20006404… 22 #include <linux/spi/spi.h> 35 /* Internal clock is selected and AMCLK is present on the analog master clock output pin */ 37 /* Internal clock is selected and no clock output is present on the CLK pin */ 64 * ADC Output Data Format 32-bit (25-bit right justified data + Channel ID): [all …]
|
D | ad7779.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright 2023-2024 Analog Devices Inc. 21 #include <linux/spi/spi.h> 141 struct spi_device *spi; member 177 .tx_buf = st->reg_tx_buf, in ad7779_spi_read() 178 .rx_buf = st->reg_rx_buf, in ad7779_spi_read() 181 st->reg_tx_buf[0] = AD7779_SPI_READ_CMD | FIELD_GET(AD7779_REG_MSK, reg); in ad7779_spi_read() 182 st->reg_tx_buf[1] = 0; in ad7779_spi_read() 188 st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf, in ad7779_spi_read() 189 t.len - 1, 0); in ad7779_spi_read() [all …]
|
D | ad4695.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SPI ADC driver for Analog Devices Inc. AD4695 and similar chips 30 #include <linux/spi/spi.h> 33 #include <dt-bindings/iio/adc/adi,ad4695.h> 124 struct spi_device *spi; member 189 .name = "ad4695-8", 219 .name = "ad4695-16", 296 * ad4695_set_single_cycle_mode - Set the device in single cycle mode 312 ret = regmap_clear_bits(st->regmap, AD4695_REG_SEQ_CTRL, in ad4695_set_single_cycle_mode() 318 ret = regmap_write(st->regmap, AD4695_REG_AS_SLOT(0), in ad4695_set_single_cycle_mode() [all …]
|
D | ti-ads7950.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Texas Instruments ADS7950 SPI ADC driver 12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 26 #include <linux/spi/spi.h> 36 * Device tree users encode that via the vref-supply regulator. 52 /* val = value, dec = left shift, bits = number of bits of the mask */ 54 (((val) >> (dec)) & ((1 << (bits)) - 1)) 61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask)) 64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask)) 67 struct spi_device *spi; member [all …]
|
/linux-6.14.4/drivers/mfd/ |
D | ezx-pcap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for Motorola PCAP2 as present in EZX phones 14 #include <linux/mfd/ezx-pcap.h> 15 #include <linux/spi/spi.h> 34 struct spi_device *spi; member 66 pcap->buf = *data; in ezx_pcap_putget() 67 t.tx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget() 68 t.rx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget() 69 status = spi_sync(pcap->spi, &m); in ezx_pcap_putget() 72 *data = pcap->buf; in ezx_pcap_putget() [all …]
|
/linux-6.14.4/drivers/spi/ |
D | spi-qup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2008-2014, The Linux foundation. All rights reserved. 8 #include <linux/dma-mapping.h> 20 #include <linux/spi/spi.h> 118 #define SPI_MAX_XFER (SZ_64K - 64) 146 int w_size; /* bytes per SPI word */ 161 static int spi_qup_io_config(struct spi_device *spi, struct spi_transfer *xfer); 165 u32 opflag = readl_relaxed(controller->base + QUP_OPERATIONAL); in spi_qup_is_flag_set() 181 return controller->n_words * controller->w_size; in spi_qup_len() 186 u32 opstate = readl_relaxed(controller->base + QUP_STATE); in spi_qup_is_valid_state() [all …]
|
/linux-6.14.4/drivers/iio/dummy/ |
D | iio_simple_dummy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * as being present to allow us to 'fake' the presence of hardware. 31 * struct iio_dummy_accel_calibscale - realworld to register mapping 32 * @val: first value in read_raw - here integer part. 33 * @val2: second value in read_raw etc - here micro part. 34 * @regval: register value - magic device specific numbers. 51 * simple event - triggered when value rises above 61 * simple step detect event - triggered when a step is detected 70 * simple transition event - triggered when the reported running confidence 80 * simple transition event - triggered when the reported walking confidence [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/interrupt-controller/ |
D | arm,gic.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/arm,gic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marc Zyngier <[email protected]> 14 interrupts (PPI), shared processor interrupts (SPI) and software 22 - $ref: /schemas/interrupt-controller.yaml# 27 - items: 28 - enum: 29 - arm,arm11mp-gic [all …]
|
/linux-6.14.4/drivers/rtc/ |
D | rtc-ds1305.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips 14 #include <linux/spi/spi.h> 15 #include <linux/spi/ds1305.h> 20 * Registers ... mask DS1305_WRITE into register address to write, 21 * otherwise you're reading it. All non-bitmask values are BCD. 27 * - Need fancy "hours" encoding in 12hour mode 28 * - Don't rely on the "day-of-week" field (or tm_wday) 29 * - Are a 21st-century clock (2000 <= year < 2100) 50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we [all …]
|
/linux-6.14.4/sound/soc/intel/boards/ |
D | bdw-rt5677.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <sound/soc-acpi.h> 30 struct snd_soc_dapm_context *dapm = w->dapm; in bdw_rt5677_event_hp() 31 struct snd_soc_card *card = dapm->card; in bdw_rt5677_event_hp() 37 gpiod_set_value_cansleep(bdw_rt5677->gpio_hp_en, in bdw_rt5677_event_hp() 95 .mask = SND_JACK_HEADPHONE, 100 .mask = SND_JACK_MICROPHONE, 104 .name = "plug-det", 110 .name = "mic-present", 130 { "plug-det-gpios", &plug_det_gpio, 1 }, [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/mfd/ |
D | st,stmpe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 peripherals connected to SPI or I2C. 15 - Linus Walleij <[email protected]> 18 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 - st,stmpe601 24 - st,stmpe801 25 - st,stmpe811 26 - st,stmpe1600 [all …]
|
/linux-6.14.4/net/netfilter/ |
D | xt_HMARK.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * xt_HMARK - Netfilter module to set mark by means of hashing 40 static inline __be32 hmark_addr6_mask(const __be32 *addr32, const __be32 *mask) in hmark_addr6_mask() argument 42 return (addr32[0] & mask[0]) ^ in hmark_addr6_mask() 43 (addr32[1] & mask[1]) ^ in hmark_addr6_mask() 44 (addr32[2] & mask[2]) ^ in hmark_addr6_mask() 45 (addr32[3] & mask[3]); in hmark_addr6_mask() 49 hmark_addr_mask(int l3num, const __be32 *addr32, const __be32 *mask) in hmark_addr_mask() argument 53 return *addr32 & *mask; in hmark_addr_mask() 55 return hmark_addr6_mask(addr32, mask); in hmark_addr_mask() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/soc/tegra/ |
D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <[email protected]> 11 - Jonathan Hunter <[email protected]> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra30-pmc 18 - nvidia,tegra114-pmc 19 - nvidia,tegra124-pmc [all …]
|
/linux-6.14.4/drivers/net/ethernet/sfc/falcon/ |
D | nic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 12 #include <linux/i2c-algo-bit.h> 24 return efx->type->revision; in ef4_nic_rev() 39 return ((ef4_qword_t *) (channel->eventq.buf.addr)) + in ef4_event() 40 (index & channel->eventq_mask); in ef4_event() 43 /* See if an event is present 50 * Note that using a single 64-bit comparison is incorrect; even 55 return !(EF4_DWORD_IS_ALL_ONES(event->dword[0]) | in ef4_event_present() [all …]
|
/linux-6.14.4/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 1 // SPDX-License-Identifier: GPL-2.0 45 [NPC_IPSEC_SPI] = "SPI ", 62 struct npc_mcam *mcam = &rvu->hw->mcam; in npc_is_feature_supported() 66 mcam_features = is_npc_intf_tx(intf) ? mcam->tx_features : mcam->rx_features; in npc_is_feature_supported() 87 struct npc_key_field *field = &mcam->rx_key_fields[type]; in npc_set_kw_masks() 91 if (mcam->banks_per_entry == 1) in npc_set_kw_masks() 93 else if (mcam->banks_per_entry == 2) in npc_set_kw_masks() 99 field = &mcam->tx_key_fields[type]; in npc_set_kw_masks() 105 field->kw_mask[start_kwi] |= GENMASK_ULL(nr_bits - 1, 0) in npc_set_kw_masks() 107 field->nr_kws = 1; in npc_set_kw_masks() [all …]
|
/linux-6.14.4/arch/arm/boot/dts/renesas/ |
D | r7s72100.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2013-14 Renesas Solutions Corp. 6 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com> 9 #include <dt-bindings/clock/r7s72100-clock.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 15 #address-cells = <1>; 16 #size-cells = <1>; 32 #clock-cells = <0>; 33 compatible = "fixed-factor-clock"; [all …]
|