| /linux/tools/testing/selftests/gpio/ |
| H A D | gpio-sim.sh | 22 local CHIP=$1 24 for FILE in $CONFIGFS_DIR/$CHIP/*; do 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 || \ 38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \ 43 rmdir $CONFIGFS_DIR/$CHIP/$BANK 46 rmdir $CONFIGFS_DIR/$CHIP || fail "Unable to remove the chip" 50 local CHIP=$1 52 mkdir $CONFIGFS_DIR/$CHIP [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | tpm-chip.c | 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() 64 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality() 66 chip->locality = -1; in tpm_relinquish_locality() [all …]
|
| /linux/tools/perf/pmu-events/arch/powerpc/power10/ |
| H A D | nest_metrics.json | 4 …"MetricExpr": "(hv_24x7@PM_PB_RTY_VG_PUMP01\\,chip\\=?@ / (1 + hv_24x7@PM_PB_VG_PUMP01\\,chip\\=?@… 10 …"MetricExpr": "(hv_24x7@PM_PB_RTY_VG_PUMP23\\,chip\\=?@ / (1 + hv_24x7@PM_PB_VG_PUMP23\\,chip\\=?@… 16 …"MetricExpr": "(hv_24x7@PM_PB_RTY_LNS_PUMP01\\,chip\\=?@ / hv_24x7@PM_PB_LNS_PUMP01\\,chip\\=?@) *… 22 …"MetricExpr": "(hv_24x7@PM_PB_RTY_LNS_PUMP23\\,chip\\=?@ / hv_24x7@PM_PB_LNS_PUMP23\\,chip\\=?@) *… 28 …"MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PB_GROUP_PUMP01\\,chip\\=?… 34 …"MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PB_GROUP_PUMP23\\,chip\\=?… 40 "MetricExpr": "(hv_24x7@PM_PB_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 46 "MetricExpr": "(hv_24x7@PM_PB_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 52 "MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP01\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", 58 "MetricExpr": "(hv_24x7@PM_PB_RTY_GROUP_PUMP23\\,chip\\=?@ / hv_24x7@PM_PAU_CYC\\,chip\\=?@)", [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global2.c | 15 #include "chip.h" 19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument 21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read() 24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument 26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write() 29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument 32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit() 38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument 41 return mv88e6xxx_g2_read(chip, MV88E6XXX_G2_INT_SRC, src); in mv88e6xxx_g2_int_source() 46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask() argument [all …]
|
| H A D | phy.c | 13 #include "chip.h" 16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument 19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read() 22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument 25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write() 28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument 33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read() 37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read() 40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read() 43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write() argument [all …]
|
| H A D | global1_atu.c | 13 #include "chip.h" 20 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write() argument 22 return mv88e6xxx_g1_write(chip, MV88E6352_G1_ATU_FID, fid & 0xfff); in mv88e6xxx_g1_atu_fid_write() 27 int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) in mv88e6xxx_g1_atu_set_learn2all() argument 32 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_learn2all() 41 return mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_learn2all() 44 int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_set_age_time() argument 47 const unsigned int coeff = chip->info->age_time_coeff; in mv88e6xxx_g1_atu_set_age_time() 60 err = mv88e6xxx_g1_read(chip, MV88E6XXX_G1_ATU_CTL, &val); in mv88e6xxx_g1_atu_set_age_time() 68 err = mv88e6xxx_g1_write(chip, MV88E6XXX_G1_ATU_CTL, val); in mv88e6xxx_g1_atu_set_age_time() [all …]
|
| H A D | global1.c | 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 33 return mv88e6xxx_wait_bit(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_bit() 37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask() argument [all …]
|
| /linux/sound/ppc/ |
| H A D | pmac.c | 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() 66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument 71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free() 84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument 89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index() 92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index() 95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index() 113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument 117 return &chip->playback; in snd_pmac_get_stream() [all …]
|
| /linux/drivers/input/misc/ |
| H A D | max8997_haptic.c | 56 static void max8997_haptic_set_internal_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_internal_duty_cycle() argument 58 u8 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_internal_duty_cycle() 60 switch (chip->internal_mode_pattern) { in max8997_haptic_set_internal_duty_cycle() 62 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 66 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 70 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 74 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle() 82 static void max8997_haptic_configure(struct max8997_haptic *chip) in max8997_haptic_configure() argument 86 value = chip->type << MAX8997_MOTOR_TYPE_SHIFT | in max8997_haptic_configure() 87 chip->enabled << MAX8997_ENABLE_SHIFT | in max8997_haptic_configure() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_legacy.c | 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() 47 * @chip: NAND chip object 50 * Default select function for 1 chip devices. [all …]
|
| /linux/sound/sh/ |
| H A D | sh_dac_audio.c | 53 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument 55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer() 59 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument 61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer() 64 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument 66 dac_audio_stop_timer(chip); in dac_audio_reset() 67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset() 68 chip->processed = 0; in dac_audio_reset() 69 chip->empty = 1; in dac_audio_reset() 72 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate() argument [all …]
|
| /linux/drivers/misc/ |
| H A D | bh1770glc.c | 4 * Chip is combined proximity and ambient light sensor. 132 u32 lux_cf; /* Chip specific factor */ 163 * Supported stand alone rates in ms from chip data sheet 170 * Supported stand alone rates in ms from chip data sheet 176 * interrupt control functions are called while keeping chip->mutex 179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument 182 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control() 184 return i2c_smbus_write_byte_data(chip->client, in bh1770_lux_interrupt_control() 186 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control() 189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control() argument [all …]
|
| /linux/sound/pcmcia/pdaudiocf/ |
| H A D | pdaudiocf_core.c | 20 struct snd_pdacf *chip = private_data; in pdacf_ak4117_read() local 25 spin_lock_irqsave(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 27 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read() 30 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 31 dev_err(chip->card->dev, "AK4117 ready timeout (read)\n"); in pdacf_ak4117_read() 35 pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8); in pdacf_ak4117_read() 37 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read() 40 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read() 41 dev_err(chip->card->dev, "AK4117 read timeout (read2)\n"); in pdacf_ak4117_read() 45 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_read() [all …]
|
| /linux/sound/pci/ymfpci/ |
| H A D | ymfpci_main.c | 32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip); 34 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument 36 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb() 39 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument 41 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw() 44 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument 46 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew() 49 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument 51 return readl(chip->reg_area_virt + offset); in snd_ymfpci_readl() 54 static inline void snd_ymfpci_writel(struct snd_ymfpci *chip, u3 argument 59 snd_ymfpci_codec_ready(struct snd_ymfpci * chip,int secondary) snd_ymfpci_codec_ready() argument 78 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_write() local 88 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_read() local 160 snd_ymfpci_hw_start(struct snd_ymfpci * chip) snd_ymfpci_hw_start() argument 170 snd_ymfpci_hw_stop(struct snd_ymfpci * chip) snd_ymfpci_hw_stop() argument 193 voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) voice_alloc() argument 231 snd_ymfpci_voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) snd_ymfpci_voice_alloc() argument 253 snd_ymfpci_voice_free(struct snd_ymfpci * chip,struct snd_ymfpci_voice * pvoice) snd_ymfpci_voice_free() argument 273 snd_ymfpci_pcm_interrupt(struct snd_ymfpci * chip,struct snd_ymfpci_voice * voice) snd_ymfpci_pcm_interrupt() argument 331 struct snd_ymfpci *chip = ypcm->chip; snd_ymfpci_pcm_capture_interrupt() local 361 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_trigger() local 401 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_trigger() local 563 snd_ymfpci_ac3_init(struct snd_ymfpci * chip) snd_ymfpci_ac3_init() argument 584 snd_ymfpci_ac3_done(struct snd_ymfpci * chip) snd_ymfpci_ac3_done() argument 613 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_hw_free() local 636 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_prepare() local 660 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_hw_free() local 669 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_prepare() local 713 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_pointer() local 725 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_pointer() local 734 snd_ymfpci_irq_wait(struct snd_ymfpci * chip) snd_ymfpci_irq_wait() argument 752 struct snd_ymfpci *chip = dev_id; snd_ymfpci_interrupt() local 851 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open_1() local 879 ymfpci_open_extension(struct snd_ymfpci * chip) ymfpci_open_extension() argument 892 ymfpci_close_extension(struct snd_ymfpci * chip) ymfpci_close_extension() argument 905 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open() local 927 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_open() local 956 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_open() local 977 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_open() local 1024 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_close() local 1038 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_close() local 1055 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_close() local 1068 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_close() local 1098 snd_ymfpci_pcm(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm() argument 1132 snd_ymfpci_pcm2(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm2() argument 1166 snd_ymfpci_pcm_spdif(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_spdif() argument 1207 snd_ymfpci_pcm_4ch(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_4ch() argument 1241 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_get() local 1253 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_put() local 1286 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_mask_get() local 1313 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_get() local 1325 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_put() local 1358 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_get() local 1372 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_put() local 1409 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_single() local 1427 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_single() local 1474 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_double() local 1490 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_double() local 1513 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_nativedacvol() local 1536 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_dup4ch() local 1543 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_dup4ch() local 1594 snd_ymfpci_get_gpio_out(struct snd_ymfpci * chip,int pin) snd_ymfpci_get_gpio_out() argument 1612 snd_ymfpci_set_gpio_out(struct snd_ymfpci * chip,int pin,int enable) snd_ymfpci_set_gpio_out() argument 1631 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_get() local 1639 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_put() local 1676 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_get() local 1687 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_put() local 1729 struct snd_ymfpci *chip = bus->private_data; snd_ymfpci_mixer_free_ac97_bus() local 1735 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_mixer_free_ac97() local 1739 snd_ymfpci_mixer(struct snd_ymfpci * chip,int rear_switch) snd_ymfpci_mixer() argument 1845 struct snd_ymfpci *chip; snd_ymfpci_timer_start() local 1868 struct snd_ymfpci *chip; snd_ymfpci_timer_stop() local 1893 snd_ymfpci_timer(struct snd_ymfpci * chip,int device) snd_ymfpci_timer() argument 1922 struct snd_ymfpci *chip = entry->private_data; snd_ymfpci_proc_read() local 1930 snd_ymfpci_proc_init(struct snd_card * card,struct snd_ymfpci * chip) snd_ymfpci_proc_init() argument 1957 snd_ymfpci_enable_dsp(struct snd_ymfpci * chip) snd_ymfpci_enable_dsp() argument 1962 snd_ymfpci_disable_dsp(struct snd_ymfpci * chip) snd_ymfpci_disable_dsp() argument 1977 snd_ymfpci_request_firmware(struct snd_ymfpci * chip) snd_ymfpci_request_firmware() argument 2016 snd_ymfpci_download_image(struct snd_ymfpci * chip) snd_ymfpci_download_image() argument 2049 snd_ymfpci_memalloc(struct snd_ymfpci * chip) snd_ymfpci_memalloc() argument 2152 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_free() local 2181 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_suspend() local 2209 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_resume() local 2245 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_create() local [all...] |
| /linux/sound/soc/amd/acp/ |
| H A D | acp-pci.c | 31 struct acp_chip_info *chip = data; in irq_handler() local 33 if (chip && chip->acp_hw_ops && chip->acp_hw_ops->irq) in irq_handler() 34 return chip->acp_hw_ops->irq(irq, chip); in irq_handler() 57 static int create_acp_platform_devs(struct pci_dev *pci, struct acp_chip_info *chip, u32 addr) in create_acp_platform_devs() argument 65 if (chip->is_i2s_config || chip->is_pdm_dev) { in create_acp_platform_devs() 66 chip->res = devm_kzalloc(&pci->dev, sizeof(struct resource), GFP_KERNEL); in create_acp_platform_devs() 67 if (!chip->res) { in create_acp_platform_devs() 71 chip->res->flags = IORESOURCE_MEM; in create_acp_platform_devs() 72 chip->res->start = addr; in create_acp_platform_devs() 73 chip->res->end = addr + (ACP3x_REG_END - ACP3x_REG_START); in create_acp_platform_devs() [all …]
|
| H A D | acp-legacy-common.c | 83 struct acp_chip_info *chip = data; in acp_irq_handler() local 84 struct acp_resource *rsrc = chip->rsrc; in acp_irq_handler() 90 ext_intr_stat1 = readl(ACP_EXTERNAL_INTR_STAT(chip, (rsrc->irqp_used - 1))); in acp_irq_handler() 92 ext_intr_stat = readl(ACP_EXTERNAL_INTR_STAT(chip, rsrc->irqp_used)); in acp_irq_handler() 94 spin_lock(&chip->acp_lock); in acp_irq_handler() 95 list_for_each_entry(stream, &chip->stream_list, list) { in acp_irq_handler() 98 ACP_EXTERNAL_INTR_STAT(chip, rsrc->irqp_used)); in acp_irq_handler() 102 if (chip->rsrc->no_of_ctrls == 2) { in acp_irq_handler() 104 writel(stream->irq_bit, ACP_EXTERNAL_INTR_STAT(chip, in acp_irq_handler() 111 spin_unlock(&chip->acp_lock); in acp_irq_handler() [all …]
|
| /linux/drivers/thermal/qcom/ |
| H A D | qcom-spmi-temp-alarm.c | 128 int (*sync_thresholds)(struct qpnp_tm_chip *chip); 129 int (*get_temp_stage)(struct qpnp_tm_chip *chip); 130 int (*configure_trip_temps)(struct qpnp_tm_chip *chip); 143 /* protects .thresh, .stage and chip registers */ 155 static int qpnp_tm_read(struct qpnp_tm_chip *chip, u16 addr, u8 *data) in qpnp_tm_read() argument 160 ret = regmap_read(chip->map, chip->base + addr, &val); in qpnp_tm_read() 168 static int qpnp_tm_write(struct qpnp_tm_chip *chip, u16 addr, u8 data) in qpnp_tm_write() argument 170 return regmap_write(chip->map, chip->base + addr, data); in qpnp_tm_write() 176 * @chip: Pointer to the qpnp_tm chip 181 static long qpnp_tm_decode_temp(struct qpnp_tm_chip *chip, unsigned int stage) in qpnp_tm_decode_temp() argument [all …]
|
| /linux/sound/drivers/pcsp/ |
| H A D | pcsp_lib.c | 45 static u64 pcsp_timer_update(struct snd_pcsp *chip) in pcsp_timer_update() argument 53 if (chip->thalf) { in pcsp_timer_update() 54 outb(chip->val61, 0x61); in pcsp_timer_update() 55 chip->thalf = 0; in pcsp_timer_update() 56 return chip->ns_rem; in pcsp_timer_update() 59 substream = chip->playback_substream; in pcsp_timer_update() 65 val = runtime->dma_area[chip->playback_ptr + chip->fmt_size - 1]; in pcsp_timer_update() 66 if (chip->is_signed) in pcsp_timer_update() 70 if (timer_cnt && chip->enable) { in pcsp_timer_update() 73 outb_p(chip->val61, 0x61); in pcsp_timer_update() [all …]
|
| /linux/sound/pci/cs46xx/ |
| H A D | cs46xx_lib.c | 58 static void amp_voyetra(struct snd_cs46xx *chip, int change); 74 static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, in snd_cs46xx_codec_read() argument 86 chip->active_ctrl(chip, 1); in snd_cs46xx_codec_read() 100 snd_cs46xx_peekBA0(chip, BA0_ACSDA + offset); in snd_cs46xx_codec_read() 102 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL); in snd_cs46xx_codec_read() 104 dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); in snd_cs46xx_codec_read() 105 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, (tmp & (~ACCTL_ESYN)) | ACCTL_VFRM ); in snd_cs46xx_codec_read() 107 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL + offset); in snd_cs46xx_codec_read() 108 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, tmp | ACCTL_ESYN | ACCTL_VFRM ); in snd_cs46xx_codec_read() 125 snd_cs46xx_pokeBA0(chip, BA0_ACCAD, reg); in snd_cs46xx_codec_read() [all …]
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_chip.c | 22 void zd_chip_init(struct zd_chip *chip, in zd_chip_init() argument 26 memset(chip, 0, sizeof(*chip)); in zd_chip_init() 27 mutex_init(&chip->mutex); in zd_chip_init() 28 zd_usb_init(&chip->usb, hw, intf); in zd_chip_init() 29 zd_rf_init(&chip->rf); in zd_chip_init() 32 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear() argument 34 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); in zd_chip_clear() 35 zd_usb_clear(&chip->usb); in zd_chip_clear() 36 zd_rf_clear(&chip->rf); in zd_chip_clear() 37 mutex_destroy(&chip->mutex); in zd_chip_clear() [all …]
|
| /linux/sound/pci/echoaudio/ |
| H A D | echo3g_dsp.c | 16 static int load_asic(struct echoaudio *chip); 17 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode); 18 static int set_digital_mode(struct echoaudio *chip, u8 mode); 19 static int check_asic_status(struct echoaudio *chip); 20 static int set_sample_rate(struct echoaudio *chip, u32 rate); 21 static int set_input_clock(struct echoaudio *chip, u16 clock); 22 static int set_professional_spdif(struct echoaudio *chip, char prof); 23 static int set_phantom_power(struct echoaudio *chip, char on); 24 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq, 29 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument [all …]
|
| H A D | gina20_dsp.c | 17 static int set_professional_spdif(struct echoaudio *chip, char prof); 18 static int update_flags(struct echoaudio *chip); 21 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument 28 err = init_dsp_comm_page(chip); in init_hw() 30 dev_err(chip->card->dev, in init_hw() 35 chip->device_id = device_id; in init_hw() 36 chip->subdevice_id = subdevice_id; in init_hw() 37 chip->bad_board = true; in init_hw() 38 chip->dsp_code_to_load = FW_GINA20_DSP; in init_hw() 39 chip->spdif_status = GD_SPDIF_STATUS_UNDEF; in init_hw() [all …]
|
| H A D | echoaudio_3g.c | 21 static int check_asic_status(struct echoaudio *chip) in check_asic_status() argument 25 if (wait_handshake(chip)) in check_asic_status() 28 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status() 29 chip->asic_loaded = false; in check_asic_status() 30 clear_handshake(chip); in check_asic_status() 31 send_vector(chip, DSP_VC_TEST_ASIC); in check_asic_status() 33 if (wait_handshake(chip)) { in check_asic_status() 34 chip->dsp_code = NULL; in check_asic_status() 38 box_status = le32_to_cpu(chip->comm_page->ext_box_status); in check_asic_status() 39 dev_dbg(chip->card->dev, "box_status=%x\n", box_status); in check_asic_status() [all …]
|
| H A D | mona_dsp.c | 17 static int write_control_reg(struct echoaudio *chip, u32 value, char force); 18 static int set_input_clock(struct echoaudio *chip, u16 clock); 19 static int set_professional_spdif(struct echoaudio *chip, char prof); 20 static int set_digital_mode(struct echoaudio *chip, u8 mode); 21 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic); 22 static int check_asic_status(struct echoaudio *chip); 25 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument 32 err = init_dsp_comm_page(chip); in init_hw() 34 dev_err(chip->card->dev, in init_hw() 39 chip->device_id = device_id; in init_hw() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-ds2404.c | 36 static int ds2404_gpio_map(struct ds2404 *chip, struct platform_device *pdev) in ds2404_gpio_map() argument 41 chip->rst_gpiod = devm_gpiod_get(dev, "rst", GPIOD_OUT_LOW); in ds2404_gpio_map() 42 if (IS_ERR(chip->rst_gpiod)) in ds2404_gpio_map() 43 return PTR_ERR(chip->rst_gpiod); in ds2404_gpio_map() 45 chip->clk_gpiod = devm_gpiod_get(dev, "clk", GPIOD_OUT_HIGH); in ds2404_gpio_map() 46 if (IS_ERR(chip->clk_gpiod)) in ds2404_gpio_map() 47 return PTR_ERR(chip->clk_gpiod); in ds2404_gpio_map() 49 chip->dq_gpiod = devm_gpiod_get(dev, "dq", GPIOD_ASIS); in ds2404_gpio_map() 50 if (IS_ERR(chip->dq_gpiod)) in ds2404_gpio_map() 51 return PTR_ERR(chip->dq_gpiod); in ds2404_gpio_map() [all …]
|