| /kernel/linux/linux-6.6/tools/testing/selftests/gpio/ |
| D | gpio-sim.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 CONFIGFS_DIR="/sys/kernel/config/gpio-sim" 7 MODULE="gpio-sim" 22 local CHIP=$1 24 for FILE in $CONFIGFS_DIR/$CHIP/*; do 26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \ 35 fail "Unable to remove the hog" [all …]
|
| /kernel/linux/linux-6.6/drivers/char/tpm/ |
| D | tpm-chip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 15 * TPM chip management routines. 40 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument 44 if (!chip->ops->request_locality) in tpm_request_locality() 47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality() 51 chip->locality = rc; in tpm_request_locality() 55 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument 59 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality() 62 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality() [all …]
|
| D | tpm-interface.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 17 * Note, the TPM chip is not interrupt driven (only polling) 19 * calls to msleep. 33 * Bug workaround - some TPM's don't flush the most 35 * with an extend to the selected _unused_ non-volatile pcr. 40 "PCR to use for dummy writes to facilitate flush on suspend."); 43 * tpm_calc_ordinal_duration() - calculate the maximum command duration 44 * @chip: TPM chip to use. 47 * The function returns the maximum amount of time the chip could take [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
| D | nand_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 23 * nand_read_byte - [DEFAULT] read one byte from the chip 24 * @chip: NAND chip object 28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument 30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte() 34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip 35 * @chip: NAND chip object 40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument 42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16() [all …]
|
| D | nand_base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * http://www.linux-mtd.infradead.org/doc/nand.html 11 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 21 * Check, if mtd->ecctype should be set to MTD_ECC_HW 23 * BBT table is not serialized, has to be fixed 38 #include <linux/mtd/nand-ecc-sw-hamming.h> 39 #include <linux/mtd/nand-ecc-sw-bch.h> 53 int lastpage = (mtd->erasesize / mtd->writesize) - 1; in nand_pairing_dist3_get_info() 60 info->group = 0; in nand_pairing_dist3_get_info() 61 info->pair = (page + 1) / 2; in nand_pairing_dist3_get_info() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
| D | nand_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 23 * nand_read_byte - [DEFAULT] read one byte from the chip 24 * @chip: NAND chip object 28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument 30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte() 34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip 35 * @chip: NAND chip object 40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument 42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16() [all …]
|
| D | nand_base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * http://www.linux-mtd.infradead.org/doc/nand.html 11 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 21 * Check, if mtd->ecctype should be set to MTD_ECC_HW 23 * BBT table is not serialized, has to be fixed 52 int lastpage = (mtd->erasesize / mtd->writesize) - 1; in nand_pairing_dist3_get_info() 59 info->group = 0; in nand_pairing_dist3_get_info() 60 info->pair = (page + 1) / 2; in nand_pairing_dist3_get_info() 62 info->group = 1; in nand_pairing_dist3_get_info() 63 info->pair = (page + 1 - dist) / 2; in nand_pairing_dist3_get_info() [all …]
|
| /kernel/linux/linux-5.10/drivers/char/tpm/ |
| D | tpm-chip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 15 * TPM chip management routines. 35 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument 39 if (!chip->ops->request_locality) in tpm_request_locality() 42 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality() 46 chip->locality = rc; in tpm_request_locality() 50 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument 54 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality() 57 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality() [all …]
|
| D | tpm-interface.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Maintained by: <tpmdd-devel@lists.sourceforge.net> 17 * Note, the TPM chip is not interrupt driven (only polling) 19 * calls to msleep. 33 * Bug workaround - some TPM's don't flush the most 35 * with an extend to the selected _unused_ non-volatile pcr. 40 "PCR to use for dummy writes to facilitate flush on suspend."); 43 * tpm_calc_ordinal_duration() - calculate the maximum command duration 44 * @chip: TPM chip to use. 47 * The function returns the maximum amount of time the chip could take [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2008 - 2013 Xilinx, Inc. 24 /* Read/Write access to the GPIO registers */ 34 * struct xgpio_instance - Stores information about GPIO device 35 * @gc: GPIO chip 51 static inline int xgpio_index(struct xgpio_instance *chip, int gpio) in xgpio_index() argument 53 if (gpio >= chip->gpio_width[0]) in xgpio_index() 59 static inline int xgpio_regoffset(struct xgpio_instance *chip, int gpio) in xgpio_regoffset() argument 61 if (xgpio_index(chip, gpio)) in xgpio_regoffset() 67 static inline int xgpio_offset(struct xgpio_instance *chip, int gpio) in xgpio_offset() argument [all …]
|
| /kernel/linux/linux-5.10/sound/pci/echoaudio/ |
| D | echoaudio_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 35 static int restore_dsp_rettings(struct echoaudio *chip); 38 /* Some vector commands involve the DSP reading or writing data to and from the 39 comm page; if you send one of these commands to the DSP, it will complete the 40 command and then write a non-zero value to the Handshake field in the 41 comm page. This function waits for the handshake to show up. */ [all …]
|
| /kernel/linux/linux-6.6/sound/pci/echoaudio/ |
| D | echoaudio_dsp.c | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 35 static int restore_dsp_rettings(struct echoaudio *chip); 38 /* Some vector commands involve the DSP reading or writing data to and from the 39 comm page; if you send one of these commands to the DSP, it will complete the 40 command and then write a non-zero value to the Handshake field in the 41 comm page. This function waits for the handshake to show up. */ [all …]
|
| /kernel/linux/linux-5.10/sound/pci/cs46xx/ |
| D | cs46xx_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Abramo Bagnara <abramo@alsa-project.org> 9 * - Sometimes the SPDIF input DSP tasks get's unsynchronized 11 * are swapped. To get around this problem when it happens, mute and unmute 13 * - On the Hercules Game Theater XP the amplifier are sometimes turned 17 * - Secondary CODEC on some soundcards 18 * - SPDIF input support for other sample rates then 48khz 19 * - Posibility to mix the SPDIF output with analog sources. 20 * - PCM channels for Center and LFE on secondary codec 24 * multi channel PCM. But known to work. [all …]
|
| /kernel/linux/linux-6.6/drivers/gpio/ |
| D | gpio-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2008 - 2013 Xilinx, Inc. 35 /* Read/Write access to the GPIO registers */ 45 * struct xgpio_instance - Stores information about GPIO device 46 * @gc: GPIO chip 55 * @irqchip: IRQ chip 77 static inline int xgpio_from_bit(struct xgpio_instance *chip, int bit) in xgpio_from_bit() argument 79 return bitmap_bitremap(bit, chip->hw_map, chip->sw_map, 64); in xgpio_from_bit() 82 static inline int xgpio_to_bit(struct xgpio_instance *chip, int gpio) in xgpio_to_bit() argument 84 return bitmap_bitremap(gpio, chip->sw_map, chip->hw_map, 64); in xgpio_to_bit() [all …]
|
| D | gpio-pch.c | 1 // SPDX-License-Identifier: GPL-2.0 47 OKISEMI_ML7223m_IOH, /* LAPIS Semiconductor ML7223 IOH PCIe Bus-m */ 48 OKISEMI_ML7223n_IOH /* LAPIS Semiconductor ML7223 IOH PCIe Bus-n */ 59 * struct pch_gpio_reg_data - The register store data. 60 * @ien_reg: To store contents of IEN register. 61 * @imask_reg: To store contents of IMASK register. 62 * @po_reg: To store contents of PO register. 63 * @pm_reg: To store contents of PM register. 64 * @im0_reg: To store contents of IM0 register. 65 * @im1_reg: To store contents of IM1 register. [all …]
|
| /kernel/linux/linux-6.6/sound/pci/cs46xx/ |
| D | cs46xx_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Abramo Bagnara <abramo@alsa-project.org> 9 * - Sometimes the SPDIF input DSP tasks get's unsynchronized 11 * are swapped. To get around this problem when it happens, mute and unmute 13 * - On the Hercules Game Theater XP the amplifier are sometimes turned 17 * - Secondary CODEC on some soundcards 18 * - SPDIF input support for other sample rates then 48khz 19 * - Posibility to mix the SPDIF output with analog sources. 20 * - PCM channels for Center and LFE on secondary codec 24 * multi channel PCM. But known to work. [all …]
|
| /kernel/linux/linux-6.6/sound/ppc/ |
| D | pmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/dma-mapping.h> 37 * we will allocate a single 'emergency' dbdma cmd block to use if the 39 * clones, either owing to a bug in dbdma or some interaction between 50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 55 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 56 if (rec->space == NULL) in snd_pmac_dbdma_alloc() 57 return -ENOMEM; in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() [all …]
|
| /kernel/linux/linux-5.10/sound/ppc/ |
| D | pmac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/dma-mapping.h> 37 * we will allocate a single 'emergency' dbdma cmd block to use if the 39 * clones, either owing to a bug in dbdma or some interaction between 50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument 54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc() 55 &rec->dma_base, GFP_KERNEL); in snd_pmac_dbdma_alloc() 56 if (rec->space == NULL) in snd_pmac_dbdma_alloc() 57 return -ENOMEM; in snd_pmac_dbdma_alloc() 58 rec->size = size; in snd_pmac_dbdma_alloc() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/ |
| D | global1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2016-2017 Savoir-faire Linux Inc. 13 #include "chip.h" 16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read() argument 18 int addr = chip->info->global1_addr; in mv88e6xxx_g1_read() 20 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6xxx_g1_read() 23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write() argument 25 int addr = chip->info->global1_addr; in mv88e6xxx_g1_write() 27 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6xxx_g1_write() 30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/input/misc/ |
| D | max8997_haptic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * MAX8997-haptic controller driver 17 #include <linux/mfd/max8997-private.h> 56 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_duty_cycle() argument 60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle() 61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle() 62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle() 66 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_duty_cycle() 68 switch (chip->internal_mode_pattern) { in max8997_haptic_set_duty_cycle() 70 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle() [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/rts5208/ |
| D | rtsx_card.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument 25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work() 27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work() 29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work() 31 if (chip->card_ready & SD_CARD) { in do_remaining_work() 32 if (sd_card->seq_mode) { in do_remaining_work() 33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/rts5208/ |
| D | rtsx_card.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument 25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work() 27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work() 29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work() 31 if (chip->card_ready & SD_CARD) { in do_remaining_work() 32 if (sd_card->seq_mode) { in do_remaining_work() 33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() [all …]
|
| D | rtsx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Realtek PCI-Express card reader 5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved. 22 MODULE_DESCRIPTION("Realtek PCI-Express card reader rts5208/rts5288 driver"); 27 MODULE_PARM_DESC(delay_use, "seconds to delay before using a new device"); 35 MODULE_PARM_DESC(ss_interval, "Interval to enter ss state in seconds"); 57 return "SCSI emulation for PCI-Express Mass Storage devices"; in host_info() 63 * Set the INQUIRY transfer length to 36. We don't use any of in slave_alloc() 67 sdev->inquiry_len = 36; in slave_alloc() 74 * Scatter-gather buffers (all but the last) must have a length in slave_configure() [all …]
|
| /kernel/linux/linux-5.10/sound/pcmcia/vx/ |
| D | vxp_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 struct snd_vxpocket *chip = to_vxpocket(_chip); in vxp_reg_addr() local 41 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr() 45 * snd_vx_inb - read a byte from the register 48 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument 50 return inb(vxp_reg_addr(chip, offset)); in vxp_inb() 54 * snd_vx_outb - write a byte on the register 56 * @val: the value to write 58 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument 60 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb() [all …]
|
| /kernel/linux/linux-6.6/sound/pcmcia/vx/ |
| D | vxp_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 struct snd_vxpocket *chip = to_vxpocket(_chip); in vxp_reg_addr() local 41 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr() 45 * snd_vx_inb - read a byte from the register 48 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument 50 return inb(vxp_reg_addr(chip, offset)); in vxp_inb() 54 * snd_vx_outb - write a byte on the register 56 * @val: the value to write 58 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument 60 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb() [all …]
|