/linux/drivers/i2c/ |
H A D | i2c-core-of-prober.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/gpio/consumer.h> 15 #include <linux/i2c-of-prober.h> 27 * resources, they can be marked as "fail-needs-probe" and have a prober 30 * This prober assumes such drop-in parts are on the same I2C bus, have 31 * non-conflicting addresses, and can be directly probed by seeing which 35 * - Support I2C muxes 68 return -ENOMEM; in i2c_of_probe_enable_node() 93 * i2c_of_probe_component() - probe for devices of "type" on the same i2c bus 95 * @cfg: Pointer to the &struct i2c_of_probe_cfg containing callbacks and other options [all …]
|
/linux/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 23 * Derived from Das U-Boot source code 24 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 38 * - atmel_nand_: all generic structures/functions 39 * - atmel_smc_nand_: all structures/functions specific to the SMC interface 41 * - atmel_hsmc_nand_: all structures/functions specific to the HSMC interface 43 * - atmel_nfc_: all structures/functions used to manipulate the NFC sub-block 45 * - <soc>_nand_: all SoC specific structures/functions 49 #include <linux/dma-mapping.h> [all …]
|
/linux/include/dt-bindings/sound/ |
H A D | cs35l45.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * cs35l45.h -- CS35L45 ALSA SoC audio driver DT bindings header 12 * cirrus,asp-sdout-hiz-ctrl 14 * TX_HIZ_UNUSED: TX pin high-impedance during unused slots. 15 * TX_HIZ_DISABLED: TX pin high-impedance when all channels disabled. 21 * Optional GPIOX Sub-nodes: 22 * The cs35l45 node can have up to three "cirrus,gpio-ctrlX" ('X' = [1,2,3]) 23 * sub-nodes for configuring the GPIO pins. 25 * - gpio-dir : GPIO pin direction. Valid only when 'gpio-ctrl' 30 * - gpio-lvl : GPIO level. Valid only when 'gpio-ctrl' is 1 and 'gpio-dir' is 0. [all …]
|
/linux/drivers/spi/ |
H A D | spi-dw-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 18 #include <linux/spi/spi-mem.h> 23 #include "spi-dw.h" 66 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init() 67 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init() 69 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init() 70 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init() 71 dws->regset.base = dws->regs; in dw_spi_debugfs_init() 72 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cirrus,cs35l45.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com> 11 - Richard Fitzgerald <rf@opensource.cirrus.com> 18 - $ref: dai-common.yaml# 23 - cirrus,cs35l45 31 '#sound-dai-cells': 34 reset-gpios: 37 vdd-a-supply: [all …]
|
H A D | davinci-mcasp-audio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/davinci-mcasp-audio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jayesh Choudhary <j-choudhary@ti.com> 15 - ti,dm646x-mcasp-audio 16 - ti,da830-mcasp-audio 17 - ti,am33xx-mcasp-audio 18 - ti,dra7-mcasp-audio 19 - ti,omap4-mcasp-audio [all …]
|
/linux/drivers/leds/flash/ |
H A D | leds-aat1290.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * 1.5A Step-Up Current Regulator for Flash LEDs 12 #include <linux/gpio/consumer.h> 13 #include <linux/led-class-flash.h> 21 #include <media/v4l2-flash-led-class.h> 99 gpiod_direction_output(led->gpio_fl_en, 0); in aat1290_as2cwire_write() 100 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() 107 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() 109 gpiod_direction_output(led->gpio_en_set, 1); in aat1290_as2cwire_write() 117 gpiod_direction_output(led->gpio_en_set, 0); in aat1290_as2cwire_write() [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8dxl-evk.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 12 compatible = "fsl,imx8dxl-evk", "fsl,imx8dxl"; 24 stdout-path = &lpuart0; 27 imx8dxl-cm4 { 28 compatible = "fsl,imx8qxp-cm4"; 30 mbox-names = "tx", "rx", "rxdb"; 32 memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, 34 power-domains = <&pd IMX_SC_R_M4_0_PID0>, <&pd IMX_SC_R_M4_0_MU_1A>; 35 fsl,resource-id = <IMX_SC_R_M4_0_PID0>; [all …]
|
/linux/drivers/leds/ |
H A D | leds-lp55xx-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Derived from leds-lp5521.c, leds-lp5523.c 21 #include <linux/platform_data/leds-lp55xx.h> 23 #include <linux/gpio/consumer.h> 24 #include <dt-bindings/leds/leds-lp55xx.h> 26 #include "leds-lp55xx-common.h" 28 /* OP MODE require at least 153 us to clear regs */ 48 #define LP55xx_MODE_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 59 #define LP55xx_EXEC_ENGn_SHIFT(n, shift) ((shift) + (2 * (3 - (n)))) 65 #define LP55xx_PAGE_OFFSET(n, pages) (((n) - 1) * (pages)) [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | stm32_fmc2_nand.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/dma-mapping.h> 12 #include <linux/gpio/consumer.h> 294 struct stm32_fmc2_nfc *nfc = to_stm32_nfc(chip->controller); in stm32_fmc2_nfc_timings_init() 296 struct stm32_fmc2_timings *timings = &nand->timings; in stm32_fmc2_nfc_timings_init() 300 regmap_update_bits(nfc->regmap, FMC2_PCR, in stm32_fmc2_nfc_timings_init() 302 FIELD_PREP(FMC2_PCR_TCLR, timings->tclr) | in stm32_fmc2_nfc_timings_init() 303 FIELD_PREP(FMC2_PCR_TAR, timings->tar)); in stm32_fmc2_nfc_timings_init() 306 pmem = FIELD_PREP(FMC2_PMEM_MEMSET, timings->tset_mem); in stm32_fmc2_nfc_timings_init() 307 pmem |= FIELD_PREP(FMC2_PMEM_MEMWAIT, timings->twait); in stm32_fmc2_nfc_timings_init() [all …]
|
H A D | omap2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/dma-mapping.h> 12 #include <linux/gpio/consumer.h> 18 #include <linux/mtd/nand-ecc-sw-bch.h> 21 #include <linux/omap-dma.h> 29 #include <linux/omap-gpmc.h> 30 #include <linux/platform_data/mtd-nand-omap2.h> 32 #define DRIVER_NAME "omap2-nand" 172 /* NAND ready gpio */ 198 * omap_prefetch_enable - configures and starts prefetch transfer [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am65-main.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 5 * Copyright (C) 2016-2024 Texas Instruments Incorporated - https://www.ti.com/ 7 #include <dt-bindings/phy/phy-am654-serdes.h> 11 compatible = "mmio-sram"; 13 #address-cells = <1>; 14 #size-cells = <1>; 17 atf-sram@0 { 21 sysfw-sram@f0000 { 25 l3cache-sram@100000 { 30 gic500: interrupt-controller@1800000 { [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | dib7000p.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's second generation DiB7000P (PC). 5 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/) 27 MODULE_PARM_DESC(buggy_sfn_workaround, "Enable work-around for buggy SFNs (default: 0)"); 37 struct dib7000p_config cfg; member 99 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000p_read_word() 104 state->i2c_write_buffer[0] = reg >> 8; in dib7000p_read_word() 105 state->i2c_write_buffer[1] = reg & 0xff; in dib7000p_read_word() 107 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000p_read_word() 108 state->msg[0].addr = state->i2c_addr >> 1; in dib7000p_read_word() [all …]
|
H A D | dib8000.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's DiB8000 chip (ISDB-T). 22 #define LAYER_ALL -1 66 struct dib8000_config cfg; member 149 {.addr = i2c->addr >> 1, .flags = 0, .len = 2}, in dib8000_i2c_read16() 150 {.addr = i2c->addr >> 1, .flags = I2C_M_RD, .len = 2}, in dib8000_i2c_read16() 153 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_read16() 158 msg[0].buf = i2c->i2c_write_buffer; in dib8000_i2c_read16() 161 msg[1].buf = i2c->i2c_read_buffer; in dib8000_i2c_read16() 163 if (i2c_transfer(i2c->adap, msg, 2) != 2) in dib8000_i2c_read16() [all …]
|
/linux/drivers/media/pci/bt8xx/ |
H A D | dvb-bt8xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 #include "dvb-bt8xx.h" 45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_work() 47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_work() 49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_work() 50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_work() 51 (&card->demux, in dvb_bt8xx_work() 52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_work() 53 card->bt->block_bytes], in dvb_bt8xx_work() 54 card->bt->block_bytes); in dvb_bt8xx_work() [all …]
|
/linux/sound/soc/codecs/ |
H A D | cs35l45.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // cs35l45.c - CS35L45 ALSA SoC audio driver 5 // Copyright 2019-2022 Cirrus Logic, Inc. 9 #include <linux/gpio/consumer.h> 53 if (!cs35l45->dsp.cs_dsp.running) { in cs35l45_set_cspl_mbox_cmd() 54 dev_err(cs35l45->dev, "DSP not running\n"); in cs35l45_set_cspl_mbox_cmd() 55 return -EPERM; in cs35l45_set_cspl_mbox_cmd() 62 dev_err(cs35l45->dev, "Failed to write MBOX: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 72 dev_err(cs35l45->dev, "Failed to read MBOX STS: %d\n", ret); in cs35l45_set_cspl_mbox_cmd() 77 dev_dbg(cs35l45->dev, "[%u] cmd %u returned invalid sts %u", i, cmd, sts); in cs35l45_set_cspl_mbox_cmd() [all …]
|
/linux/drivers/tty/serial/ |
H A D | sh-sci.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * SuperH on-chip serial module support. (SCI with no FIFO / with FIFO) 5 * Copyright (C) 2002 - 2011 Paul Mundt 9 * based off of the old drivers/char/sh-sci.c by: 26 #include <linux/dma-mapping.h> 58 #include "sh-sci.h" 60 /* Offsets into the sci_port->irqs array */ 74 ((port)->irqs[SCIx_ERI_IRQ] == \ 75 (port)->irqs[SCIx_RXI_IRQ]) || \ 76 ((port)->irqs[SCIx_ERI_IRQ] && \ [all …]
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_ethtool.c | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 219 struct octeon_device *oct = lio->oct_dev; in lio_get_link_ksettings() 222 linfo = &lio->linfo; in lio_get_link_ksettings() 227 switch (linfo->link.s.phy_type) { in lio_get_link_ksettings() 229 ecmd->base.port = PORT_TP; in lio_get_link_ksettings() 230 ecmd->base.autoneg = AUTONEG_DISABLE; in lio_get_link_ksettings() 243 if (linfo->link.s.if_mode == INTERFACE_MODE_XAUI || in lio_get_link_ksettings() 244 linfo->link.s.if_mode == INTERFACE_MODE_RXAUI || in lio_get_link_ksettings() 245 linfo->link.s.if_mode == INTERFACE_MODE_XLAUI || in lio_get_link_ksettings() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 36 #include <linux/dma-mapping.h> 83 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 84 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E1_V15 "bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 87 #define FW_FILE_NAME_E1H_V15 "bnx2x/bnx2x-e1h-" FW_FILE_VERSION_V15 ".fw" 88 #define FW_FILE_NAME_E2_V15 "bnx2x/bnx2x-e2-" FW_FILE_VERSION_V15 ".fw" 117 MODULE_PARM_DESC(int_mode, " Force interrupt mode other than MSI-X " 124 static int mrrs = -1; [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | main.c | 3 * Copyright (c) 2013 Hauke Mehrtens <hauke@hauke-m.de> 50 /* n-mode support capability */ 82 #define EDCF_ECW2CW(exp) ((1 << (exp)) - 1) 133 /* Per-AC retry limit register definitions; uses defs.h bitfield macros */ 167 #define BRCMS_PLCP_AUTO -1 172 #define BRCMS_PROTECTION_AUTO -1 199 /* MSC in use,indicates b0-6 holds an mcs */ 355 return wlc->band->basic_rate[mcs_table[rspec & RSPEC_RATE_MASK] in brcms_basic_rate() 357 return wlc->band->basic_rate[rspec & RSPEC_RATE_MASK]; in brcms_basic_rate() 370 return band->bandtype == BRCM_BAND_5G ? APHY_SIFS_TIME : in get_sifs() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | hal_btc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 19 if (!rtlpriv->btcoexist.bt_coexistence) in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 22 if (ppsc->inactiveps) { in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 25 rtlpriv->btcoexist.cstate = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 26 rtlpriv->btcoexist.previous_state = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 27 rtlpriv->btcoexist.cstate_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 28 rtlpriv->btcoexist.previous_state_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 38 u8 bibss = (mac->opmode == NL80211_IFTYPE_ADHOC) ? 1 : 0; in mgnt_link_status_query() 39 if (bibss || rtlpriv->mac80211.link_state >= MAC80211_LINKED) in mgnt_link_status_query() [all …]
|
/linux/sound/pci/hda/ |
H A D | patch_realtek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 /* extra amp-initialization sequence types */ 90 /* GPIO bits */ 147 struct alc_spec *spec = codec->spec; in coef_mutex_lock() 150 mutex_lock(&spec->coef_mutex); in coef_mutex_lock() 155 struct alc_spec *spec = codec->spec; in coef_mutex_unlock() 157 mutex_unlock(&spec->coef_mutex); in coef_mutex_unlock() 209 if (val != -1) in __alc_update_coefex_idx() 229 struct alc_spec *spec = codec->spec; in alc_get_coef0() 231 if (!spec->coef0) in alc_get_coef0() [all …]
|
/linux/sound/soc/ti/ |
H A D | davinci-mcasp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Multi-channel Audio Serial Port Driver 7 * Author: Nirmal Pandey <n-pandey@ti.com>, 27 #include <linux/gpio/driver.h> 37 #include "edma-pcm.h" 38 #include "sdma-pcm.h" 39 #include "udma-pcm.h" 40 #include "davinci-mcasp.h" 134 void __iomem *reg = mcasp->base + offset; in mcasp_set_bits() 141 void __iomem *reg = mcasp->base + offset; in mcasp_clr_bits() [all …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | core.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 16 #include <linux/nvmem-consumer.h> 28 #include "wmi-ops.h" 58 MODULE_PARM_DESC(cryptmode, "Crypto mode: 0-hardware, 1-software"); 474 * or 2x2 160Mhz, long-guard-interval. 525 * 1x1 160Mhz, long-guard-interval. [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_adminq_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 149 /* Manage MAC address, read command - indirect (0x0107) 176 /* Manage MAC address, write command - direct (0x0108) */ 664 /* Bit 0:1 - Action type */ 668 /* Bit 2 - Loop back enable 669 * Bit 3 - LAN enable 674 /* Action type = 0 - Forward to VSI or VSI list */ 686 /* Action type = 1 - Forward to Queue of Queue group */ 694 /* Action type = 2 - Prune */ 701 /* Action type = 2 - Pointer */ [all …]
|