/linux-6.12.1/arch/mips/ath79/ |
D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com> 6 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org> 29 #include <asm/mach-ath79/ath79.h> 30 #include <asm/mach-ath79/ar71xx_regs.h> 45 char *chip = "????"; in ath79_detect_sys_type() local 46 u32 id; in ath79_detect_sys_type() local 52 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); in ath79_detect_sys_type() 53 major = id & REV_ID_MAJOR_MASK; in ath79_detect_sys_type() 57 minor = id & AR71XX_REV_ID_MINOR_MASK; in ath79_detect_sys_type() [all …]
|
/linux-6.12.1/sound/pci/oxygen/ |
D | oxygen_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * C-Media CMI8788 driver - main driver module 24 MODULE_DESCRIPTION("C-Media CMI8788 helper library"); 29 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument 31 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready() 34 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument 36 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart() 38 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart() 42 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart() 45 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart() [all …]
|
D | oxygen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * C-Media CMI8788 driver for C-Media's reference design and similar models 11 * SPI 0 -> 1st AK4396 (front) 12 * SPI 1 -> 2nd AK4396 (surround) 13 * SPI 2 -> 3rd AK4396 (center/LFE) 14 * SPI 3 -> WM8785 15 * SPI 4 -> 4th AK4396 (back) 17 * GPIO 0 -> DFS0 of AK5385 18 * GPIO 1 -> DFS1 of AK5385 20 * X-Meridian models: [all …]
|
/linux-6.12.1/sound/usb/ |
D | card.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 * - the linked URBs would be preferred but not used so far because of 17 * - type II is not supported properly. there is no device which supports 33 #include <linux/usb/audio-v2.h> 34 #include <linux/usb/audio-v3.h> 63 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 64 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 67 static int vid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 68 static int pid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 83 module_param_array(id, charp, NULL, 0444); [all …]
|
D | clock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/usb/audio-v2.h> 12 #include <linux/usb/audio-v3.h> 40 ((proto) == UAC_VERSION_3 ? (p)->v3.field : (p)->v2.field) 42 static void *find_uac_clock_desc(struct usb_host_interface *iface, int id, in find_uac_clock_desc() argument 48 while ((cs = snd_usb_find_csint_desc(iface->extra, iface->extralen, in find_uac_clock_desc() 50 if (validator(cs, id, proto)) in find_uac_clock_desc() 57 static bool validate_clock_source(void *p, int id, int proto) in validate_clock_source() argument 61 return GET_VAL(cs, proto, bClockID) == id; in validate_clock_source() 64 static bool validate_clock_selector(void *p, int id, int proto) in validate_clock_selector() argument [all …]
|
/linux-6.12.1/drivers/mtd/nand/raw/ |
D | nand_hynix.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 20 * struct hynix_read_retry - read-retry data 21 * @nregs: number of register to set when applying a new read-retry mode 22 * @regs: register offsets (NAND chip dependent) 33 * struct hynix_nand - private Hynix NAND struct 34 * @read_retry: read-retry information 41 * struct hynix_read_retry_otp - structure describing how the read-retry OTP 48 * chip 49 * @size: size of the read-retry OTP section [all …]
|
D | nand_samsung.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 11 static void samsung_nand_decode_id(struct nand_chip *chip) in samsung_nand_decode_id() argument 13 struct nand_device *base = &chip->base; in samsung_nand_decode_id() 15 struct mtd_info *mtd = nand_to_mtd(chip); in samsung_nand_decode_id() 18 memorg = nanddev_get_memorg(&chip->base); in samsung_nand_decode_id() 20 /* New Samsung (6 byte ID): Samsung K9GAG08U0F (p.44) */ in samsung_nand_decode_id() 21 if (chip->id.len == 6 && !nand_is_slc(chip) && in samsung_nand_decode_id() 22 chip->id.data[5] != 0x00) { in samsung_nand_decode_id() 23 u8 extid = chip->id.data[3]; in samsung_nand_decode_id() [all …]
|
D | nand_toshiba.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 29 static int toshiba_nand_benand_read_eccstatus_op(struct nand_chip *chip, in toshiba_nand_benand_read_eccstatus_op() argument 34 if (nand_has_exec_op(chip)) { in toshiba_nand_benand_read_eccstatus_op() 36 nand_get_sdr_timings(nand_get_interface_config(chip)); in toshiba_nand_benand_read_eccstatus_op() 39 PSEC_TO_NSEC(sdr->tADL_min)), in toshiba_nand_benand_read_eccstatus_op() 40 NAND_OP_8BIT_DATA_IN(chip->ecc.steps, ecc_status, 0), in toshiba_nand_benand_read_eccstatus_op() 42 struct nand_operation op = NAND_OPERATION(chip->cur_cs, instrs); in toshiba_nand_benand_read_eccstatus_op() 44 return nand_exec_op(chip, &op); in toshiba_nand_benand_read_eccstatus_op() 47 return -ENOTSUPP; in toshiba_nand_benand_read_eccstatus_op() [all …]
|
D | nand_amd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 11 static void amd_nand_decode_id(struct nand_chip *chip) in amd_nand_decode_id() argument 13 struct mtd_info *mtd = nand_to_mtd(chip); in amd_nand_decode_id() 16 memorg = nanddev_get_memorg(&chip->base); in amd_nand_decode_id() 18 nand_decode_ext_id(chip); in amd_nand_decode_id() 21 * Check for Spansion/AMD ID + repeating 5th, 6th byte since in amd_nand_decode_id() 24 * Data sheet (5 byte ID): Spansion S30ML-P ORNAND (p.39) in amd_nand_decode_id() 26 if (chip->id.data[4] != 0x00 && chip->id.data[5] == 0x00 && in amd_nand_decode_id() 27 chip->id.data[6] == 0x00 && chip->id.data[7] == 0x00 && in amd_nand_decode_id() [all …]
|
/linux-6.12.1/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // (C) 2017-2018 Synopsys, Inc. (www.synopsys.com) 15 #include <linux/dma-mapping.h> 20 #include <linux/io-64-nonatomic-lo-hi.h> 32 #include "dw-axi-dmac.h" 34 #include "../virt-dma.h" 55 axi_dma_iowrite32(struct axi_dma_chip *chip, u32 reg, u32 val) in axi_dma_iowrite32() argument 57 iowrite32(val, chip->regs + reg); in axi_dma_iowrite32() 60 static inline u32 axi_dma_ioread32(struct axi_dma_chip *chip, u32 reg) in axi_dma_ioread32() argument 62 return ioread32(chip->regs + reg); in axi_dma_ioread32() [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | max8925-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Marvell International Ltd. 28 .name = "max8925-backlight", 31 .id = -1, 37 .name = "max8925-tsc", 46 .name = "max8925-touch", 49 .id = -1, 55 .name = "max8925-power", 64 .name = "max8925-power", 67 .id = -1, [all …]
|
D | 88pm860x-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <linux/power/charger-manager.h> 136 /* Hook-switch press or release */ 141 {PM8607_IRQ_AUDIO_SHORT, PM8607_IRQ_AUDIO_SHORT, "audio-short", 170 .name = "88pm860x-backlight", 171 .id = 0, 175 .name = "88pm860x-backlight", 176 .id = 1, 180 .name = "88pm860x-backlight", 181 .id = 2, [all …]
|
D | 88pm80x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 /* 88pm80x chips have same definition for chip id register. */ 24 unsigned int id; member 29 /* 88PM800 chip id number */ 31 /* 88PM805 chip id number */ 33 /* 88PM860 chip id number */ 40 * pm800 and pm805. would remove it after HW chip fixes the issue. 53 struct pm80x_chip *chip; in pm80x_init() local 58 chip = in pm80x_init() 59 devm_kzalloc(&client->dev, sizeof(struct pm80x_chip), GFP_KERNEL); in pm80x_init() [all …]
|
D | adp5520.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * LEDs : drivers/led/leds-adp5520 6 * GPIO : drivers/gpio/adp5520-gpio (ADP5520 only) 7 * Keys : drivers/input/keyboard/adp5520-keys (ADP5520 only) 17 * Copyright (C) 2006-2008 Marvell International Ltd. 38 unsigned long id; member 49 dev_err(&client->dev, "failed reading at 0x%02x\n", reg); in __adp5520_read() 64 dev_err(&client->dev, "failed writing 0x%02x to 0x%02x\n", in __adp5520_write() 74 struct adp5520_chip *chip = i2c_get_clientdata(client); in __adp5520_ack_bits() local 78 mutex_lock(&chip->lock); in __adp5520_ack_bits() [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-moxtet.c | 1 // SPDX-License-Identifier: GPL-2.0 36 struct moxtet_gpio_chip *chip = gpiochip_get_data(gc); in moxtet_gpio_get_value() local 39 if (chip->desc->in_mask & BIT(offset)) { in moxtet_gpio_get_value() 40 ret = moxtet_device_read(chip->dev); in moxtet_gpio_get_value() 41 } else if (chip->desc->out_mask & BIT(offset)) { in moxtet_gpio_get_value() 42 ret = moxtet_device_written(chip->dev); in moxtet_gpio_get_value() 46 return -EINVAL; in moxtet_gpio_get_value() 58 struct moxtet_gpio_chip *chip = gpiochip_get_data(gc); in moxtet_gpio_set_value() local 61 state = moxtet_device_written(chip->dev); in moxtet_gpio_set_value() 65 offset -= MOXTET_GPIO_INPUTS; in moxtet_gpio_set_value() [all …]
|
/linux-6.12.1/drivers/regulator/ |
D | slg51000-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // SLG51000 High PSRR, Multi-Output Regulators 20 #include "slg51000-regulator.h" 206 "gpio-en-ldo"); in slg51000_of_parse_cb() 208 config->ena_gpiod = ena_gpiod; in slg51000_of_parse_cb() 217 .id = SLG51000_REGULATOR_##_id, \ 244 static int slg51000_regulator_init(struct slg51000 *chip) in slg51000_regulator_init() argument 250 int id, ret = 0; in slg51000_regulator_init() local 257 for (id = 0; id < SLG51000_MAX_REGULATORS; id++) { in slg51000_regulator_init() 258 chip->rdesc[id] = ®ls_desc[id]; in slg51000_regulator_init() [all …]
|
D | da9121-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // DA9121 Single-channel dual-phase 10A buck converter 7 // DA9130 Single-channel dual-phase 10A buck converter (Automotive) 8 // DA9217 Single-channel dual-phase 6A buck converter 9 // DA9122 Dual-channel single-phase 5A buck converter 10 // DA9131 Dual-channel single-phase 5A buck converter (Automotive) 11 // DA9220 Dual-channel single-phase 3A buck converter 12 // DA9132 Dual-channel single-phase 3A buck converter (Automotive) 29 #include "da9121-regulator.h" 31 /* Chip data */ [all …]
|
D | aw37503-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 48 struct aw37503_regulator *chip = rdev_get_drvdata(rdev); in aw37503_regulator_enable() local 49 int id = rdev_get_id(rdev); in aw37503_regulator_enable() local 50 struct aw37503_reg_pdata *rpdata = &chip->reg_pdata[id]; in aw37503_regulator_enable() 53 if (!IS_ERR(rpdata->en_gpiod)) { in aw37503_regulator_enable() 54 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in aw37503_regulator_enable() 55 rpdata->ena_gpio_state = 1; in aw37503_regulator_enable() 59 if (rdev->constraints->active_discharge == in aw37503_regulator_enable() 63 dev_err(chip->dev, "Failed to disable active discharge: %d\n", in aw37503_regulator_enable() 74 struct aw37503_regulator *chip = rdev_get_drvdata(rdev); in aw37503_regulator_disable() local [all …]
|
D | pf8x00-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 97 #define PF8X00_SW_BASE(i) (8 * (i - PF8X00_BUCK1) + PF8X00_SW1_CONFIG1) 106 #define PF8X00_LDO_BASE(i) (6 * (i - PF8X00_LDO1) + PF8X00_LDO1_CONFIG1) 179 static void swxilim_select(struct pf8x00_chip *chip, int id, int ilim) in swxilim_select() argument 182 u8 reg = PF8X00_SW_BASE(id) + SW_CONFIG2; in swxilim_select() 202 regmap_update_bits(chip->regmap, reg, in swxilim_select() 211 struct pf8x00_chip *chip = config->driver_data; in handle_ilim_property() local 215 if ((desc->id >= PF8X00_BUCK1) && (desc->id <= PF8X00_BUCK7)) { in handle_ilim_property() 216 ret = of_property_read_u32(np, "nxp,ilim-ma", &val); in handle_ilim_property() 218 dev_dbg(chip->dev, "unspecified ilim for BUCK%d, use value stored in OTP\n", in handle_ilim_property() [all …]
|
/linux-6.12.1/drivers/staging/iio/adc/ |
D | ad7816.c | 1 // SPDX-License-Identifier: GPL-2.0+ 35 #define AD7816_BOUND_VALUE_MIN -95 41 * struct ad7816_chip_info - chip specific information 45 kernel_ulong_t id; member 64 static int ad7816_spi_read(struct ad7816_chip_info *chip, u16 *data) in ad7816_spi_read() argument 66 struct spi_device *spi_dev = chip->spi_dev; in ad7816_spi_read() 70 gpiod_set_value(chip->rdwr_pin, 1); in ad7816_spi_read() 71 gpiod_set_value(chip->rdwr_pin, 0); in ad7816_spi_read() 72 ret = spi_write(spi_dev, &chip->channel_id, sizeof(chip->channel_id)); in ad7816_spi_read() 74 dev_err(&spi_dev->dev, "SPI channel setting error\n"); in ad7816_spi_read() [all …]
|
/linux-6.12.1/drivers/staging/iio/addac/ |
D | adt7316.c | 1 // SPDX-License-Identifier: GPL-2.0+ 163 * Chip ID 177 * struct adt7316_chip_info - chip specific information 190 u8 id; /* chip id */ member 217 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_enabled() local 219 return sprintf(buf, "%d\n", !!(chip->config1 & ADT7316_EN)); in adt7316_show_enabled() 222 static ssize_t _adt7316_store_enabled(struct adt7316_chip_info *chip, in _adt7316_store_enabled() argument 229 config1 = chip->config1 | ADT7316_EN; in _adt7316_store_enabled() 231 config1 = chip->config1 & ~ADT7316_EN; in _adt7316_store_enabled() 233 ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); in _adt7316_store_enabled() [all …]
|
/linux-6.12.1/sound/isa/sb/ |
D | sb16.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 41 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 44 static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 55 static int mic_agc[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 60 static int seq_ports[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; 65 module_param_array(id, charp, NULL, 0444); 66 MODULE_PARM_DESC(id, "ID string for SoundBlaster 16 soundcard."); 76 MODULE_PARM_DESC(mpu_port, "MPU-401 port # for SB16 driver."); 86 MODULE_PARM_DESC(dma8, "8-bit DMA # for SB16 driver."); [all …]
|
/linux-6.12.1/sound/i2c/other/ |
D | ak4114.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Routines for control of the AK4114 via I2C and 4-wire serial interface 25 static void ak4114_init_regs(struct ak4114 *chip); 29 ak4114->write(ak4114->private_data, reg, val); in reg_write() 31 ak4114->regmap[reg] = val; in reg_write() 33 ak4114->txcsb[reg-AK4114_REG_TXCSB0] = val; in reg_write() 38 return ak4114->read(ak4114->private_data, reg); in reg_read() 41 static void snd_ak4114_free(struct ak4114 *chip) in snd_ak4114_free() argument 43 atomic_inc(&chip->wq_processing); /* don't schedule new work */ in snd_ak4114_free() 44 cancel_delayed_work_sync(&chip->work); in snd_ak4114_free() [all …]
|
/linux-6.12.1/sound/isa/ |
D | opl3sa2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for Yamaha OPL3-SA[2,3] soundcards 26 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 27 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 30 static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 43 MODULE_PARM_DESC(index, "Index value for OPL3-SA soundcard."); 44 module_param_array(id, charp, NULL, 0444); 45 MODULE_PARM_DESC(id, "ID string for OPL3-SA soundcard."); 47 MODULE_PARM_DESC(enable, "Enable OPL3-SA soundcard."); 53 MODULE_PARM_DESC(port, "Port # for OPL3-SA driver."); [all …]
|
/linux-6.12.1/sound/usb/6fire/ |
D | chip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "chip.h" 30 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ 31 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for card */ variable 38 module_param_array(id, charp, NULL, 0444); 39 MODULE_PARM_DESC(id, "ID string for the 6fire sound device."); 45 static void usb6fire_chip_abort(struct sfire_chip *chip) in usb6fire_chip_abort() argument 47 if (chip) { in usb6fire_chip_abort() 48 if (chip->pcm) in usb6fire_chip_abort() 49 usb6fire_pcm_abort(chip); in usb6fire_chip_abort() [all …]
|