| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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> 54 char *chip = "????"; in ath79_detect_sys_type() local 55 u32 id; in ath79_detect_sys_type() local 61 id = ath79_reset_rr(AR71XX_RESET_REG_REV_ID); in ath79_detect_sys_type() 62 major = id & REV_ID_MAJOR_MASK; in ath79_detect_sys_type() 66 minor = id & AR71XX_REV_ID_MINOR_MASK; in ath79_detect_sys_type() [all …]
|
| /kernel/linux/linux-5.10/sound/usb/ |
| 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> 24 static void *find_uac_clock_desc(struct usb_host_interface *iface, int id, in find_uac_clock_desc() argument 29 while ((cs = snd_usb_find_csint_desc(iface->extra, iface->extralen, in find_uac_clock_desc() 31 if (validator(cs, id)) in find_uac_clock_desc() 38 static bool validate_clock_source_v2(void *p, int id) in validate_clock_source_v2() argument 41 return cs->bClockID == id; in validate_clock_source_v2() 44 static bool validate_clock_source_v3(void *p, int id) in validate_clock_source_v3() argument 47 return cs->bClockID == id; in validate_clock_source_v3() [all …]
|
| 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> 65 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 66 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ variable 69 static int vid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 70 static int pid[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = -1 }; 82 module_param_array(id, charp, NULL, 0444); [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 35 * @read_retry: read-retry information 42 * struct hynix_read_retry_otp - structure describing how the read-retry OTP 49 * chip 50 * @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 …]
|
| /kernel/linux/linux-6.6/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> 42 ((p)->v3.bLength >= sizeof((p)->v3)) : \ 43 ((p)->v2.bLength >= sizeof((p)->v2))) 46 ((proto) == UAC_VERSION_3 ? (p)->v3.field : (p)->v2.field) 48 static void *find_uac_clock_desc(struct usb_host_interface *iface, int id, in find_uac_clock_desc() argument 54 while ((cs = snd_usb_find_csint_desc(iface->extra, iface->extralen, in find_uac_clock_desc() 56 if (validator(cs, id, proto)) in find_uac_clock_desc() 63 static bool validate_clock_source(void *p, int id, int proto) in validate_clock_source() argument [all …]
|
| /kernel/linux/linux-6.6/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 35 * @read_retry: read-retry information 42 * struct hynix_read_retry_otp - structure describing how the read-retry OTP 49 * chip 50 * @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 …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | max8925-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2010 Marvell International Ltd. 29 .name = "max8925-backlight", 32 .id = -1, 38 .name = "max8925-tsc", 47 .name = "max8925-touch", 50 .id = -1, 56 .name = "max8925-power", 65 .name = "max8925-power", 68 .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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/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) 30 #include "da9121-regulator.h" 32 /* Chip data */ [all …]
|
| /kernel/linux/linux-5.10/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 …]
|