/linux/drivers/staging/rts5208/ |
H A D | rtsx_card.c | 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() 33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() 41 if (chip->card_ready & XD_CARD) { in do_remaining_work() 43 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() 51 if (chip->card_ready & MS_CARD) { in do_remaining_work() 54 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work() [all …]
|
H A D | rtsx_chip.c | 23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument 25 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration() 27 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration() 28 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration() 29 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration() 30 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration() 31 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration() 32 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration() 35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument 37 u32 reg = rtsx_readl(chip, RTSX_BIER); in rtsx_enable_card_int() [all …]
|
H A D | spi.c | 19 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() argument 21 struct spi_info *spi = &chip->spi; in spi_set_err_code() 26 static int spi_init(struct rtsx_chip *chip) in spi_init() argument 30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init() 35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init() 43 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() argument 45 struct spi_info *spi = &chip->spi; in spi_set_init_para() 48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para() 52 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para() 57 retval = switch_clock(chip, spi->spi_clock); in spi_set_init_para() [all …]
|
H A D | xd.c | 23 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no); 24 static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff, 27 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) in xd_set_err_code() argument 29 struct xd_info *xd_card = &chip->xd_card; in xd_set_err_code() 34 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para() argument 36 struct xd_info *xd_card = &chip->xd_card; in xd_set_init_para() 39 if (chip->asic_code) in xd_set_init_para() 44 retval = switch_clock(chip, xd_card->xd_clock); in xd_set_init_para() 51 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock() argument 53 struct xd_info *xd_card = &chip->xd_card; in xd_switch_clock() [all …]
|
/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 for CHIP in `ls $CONFIGFS_DIR/`; do 51 remove_chip $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/sound/pci/oxygen/ |
H A D | oxygen_lib.c | 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() 46 chip->uart_input_count = 0; in oxygen_read_uart() 47 chip->uart_input[chip->uart_input_count++] = data; in oxygen_read_uart() 48 } while (oxygen_uart_input_ready(chip)); in oxygen_read_uart() [all …]
|
/linux/sound/isa/wss/ |
H A D | wss_lib.c | 8 * Yamaha OPL3-SA3 chip 151 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument 153 outb(val, chip->port + offset); in wss_outb() 156 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument 158 return inb(chip->port + offset); in wss_inb() 161 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument 166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait() 171 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument 177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout() 180 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout() [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/sound/pci/lola/ |
H A D | lola.c | 73 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument 80 chip->last_cmd_nid = nid; in corb_send_verb() 81 chip->last_verb = verb; in corb_send_verb() 82 chip->last_data = data; in corb_send_verb() 83 chip->last_extdata = extdata; in corb_send_verb() 86 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb() 87 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb() 88 unsigned int wp = chip->corb.wp + 1; in corb_send_verb() 90 chip->corb.wp = wp; in corb_send_verb() 91 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb() [all …]
|
/linux/sound/isa/sb/ |
H A D | sb16_main.c | 14 * Note: Some chip revisions have hardware bug. Changing capture 16 * 16bit DMA transfers from DSP chip (capture) until 8bit transfer 17 * to DSP chip (playback) starts. This bug can be avoided with 41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument 43 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare() 44 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare() 74 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare() 82 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare() 89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument 91 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_capture_prepare() [all …]
|
H A D | sb8_midi.c | 22 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt() argument 28 if (!chip) in snd_sb8dsp_midi_interrupt() 31 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt() 33 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt() 37 spin_lock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt() 39 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt() 40 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt() 41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt() 42 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); in snd_sb8dsp_midi_interrupt() 46 spin_unlock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt() [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/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 …]
|
/linux/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 5 * Fairchild FUSB302 Type-C Chip Driver 38 * for the current capability offered by the SRC. As FUSB302 chip fires 92 /* lock for sharing chip states */ 95 /* chip status */ 127 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument 129 return chip->logbuffer_tail == in fusb302_log_full() 130 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full() 134 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument 141 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log() 142 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log() [all …]
|
/linux/drivers/input/misc/ |
H A D | max8997_haptic.c | 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() 74 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle() 78 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle() 82 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle() [all …]
|
/linux/drivers/misc/ |
H A D | apds990x.c | 4 * Chip is combined proximity and ambient light sensor. 103 /* Reverse chip factors for threshold calculation */ 123 /* Chip parameters */ 186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte() argument 188 struct i2c_client *client = chip->client; in apds990x_read_byte() 199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word() argument 201 struct i2c_client *client = chip->client; in apds990x_read_word() 212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte() argument 214 struct i2c_client *client = chip->client; in apds990x_write_byte() 224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word() argument [all …]
|
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 …]
|
H A D | pch_phub.c | 138 * @chip: Pointer to the PHUB register structure 143 static void pch_phub_read_modify_write_reg(struct pch_phub_reg *chip, in pch_phub_read_modify_write_reg() argument 147 void __iomem *reg_addr = chip->pch_phub_base_address + reg_addr_offset; in pch_phub_read_modify_write_reg() 155 struct pch_phub_reg *chip = pci_get_drvdata(pdev); in pch_phub_save_reg_conf() local 157 void __iomem *p = chip->pch_phub_base_address; in pch_phub_save_reg_conf() 159 chip->phub_id_reg = ioread32(p + PCH_PHUB_ID_REG); in pch_phub_save_reg_conf() 160 chip->q_pri_val_reg = ioread32(p + PCH_PHUB_QUEUE_PRI_VAL_REG); in pch_phub_save_reg_conf() 161 chip->rc_q_maxsize_reg = ioread32(p + PCH_PHUB_RC_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf() 162 chip->bri_q_maxsize_reg = ioread32(p + PCH_PHUB_BRI_QUEUE_MAXSIZE_REG); in pch_phub_save_reg_conf() 163 chip->comp_resp_timeout_reg = in pch_phub_save_reg_conf() [all …]
|
/linux/sound/sparc/ |
H A D | cs4231.c | 128 #define CS4231U(chip, x) ((chip)->port + ((c_d_c_CS4231##x) << 2)) argument 174 #define APC_CHIP_RESET 0x01 /* Reset the chip */ 277 static void snd_cs4231_ready(struct snd_cs4231 *chip) in snd_cs4231_ready() argument 282 int val = __cs4231_readb(chip, CS4231U(chip, REGSEL)); in snd_cs4231_ready() 289 static void snd_cs4231_dout(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_dout() argument 292 snd_cs4231_ready(chip); in snd_cs4231_dout() 294 if (__cs4231_readb(chip, CS4231U(chip, REGSEL)) & CS4231_INIT) in snd_cs4231_dout() 295 dev_dbg(chip->card->dev, in snd_cs4231_dout() 299 __cs4231_writeb(chip, chip->mce_bit | reg, CS4231U(chip, REGSEL)); in snd_cs4231_dout() 301 __cs4231_writeb(chip, value, CS4231U(chip, REG)); in snd_cs4231_dout() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-ml-ioh.c | 95 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_set() local 98 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_set() 99 reg_val = ioread32(&chip->reg->regs[chip->ch].po); in ioh_gpio_set() 105 iowrite32(reg_val, &chip->reg->regs[chip->ch].po); in ioh_gpio_set() 106 spin_unlock_irqrestore(&chip->spinlock, flags); in ioh_gpio_set() 111 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_get() local 113 return !!(ioread32(&chip->reg->regs[chip->ch].pi) & BIT(nr)); in ioh_gpio_get() 119 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_direction_output() local 124 spin_lock_irqsave(&chip->spinlock, flags); in ioh_gpio_direction_output() 125 pm = ioread32(&chip->reg->regs[chip->ch].pm); in ioh_gpio_direction_output() [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/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, u32 offset, u32 val) in snd_ymfpci_writel() argument [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 …]
|