Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 2705) sorted by relevance

12345678910>>...109

/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_chip.c23 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 …]
Drtsx_card.c23 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 …]
Dspi.c19 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 …]
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm-chip.c35 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()
59 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality()
61 chip->locality = -1; in tpm_relinquish_locality()
64 static int tpm_cmd_ready(struct tpm_chip *chip) in tpm_cmd_ready() argument
[all …]
/kernel/linux/linux-5.10/sound/isa/wss/
Dwss_lib.c151 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()
181 wss_outb(chip, CS4231P(REG), value); in snd_wss_dout()
[all …]
/kernel/linux/linux-5.10/sound/pci/oxygen/
Doxygen_lib.c29 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 …]
/kernel/linux/linux-5.10/sound/pci/lola/
Dlola.c74 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
81 chip->last_cmd_nid = nid; in corb_send_verb()
82 chip->last_verb = verb; in corb_send_verb()
83 chip->last_data = data; in corb_send_verb()
84 chip->last_extdata = extdata; in corb_send_verb()
87 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
88 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
89 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
91 chip->corb.wp = wp; in corb_send_verb()
92 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb()
[all …]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
Dechoaudio_dsp.c35 static int restore_dsp_rettings(struct echoaudio *chip);
42 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument
50 if (chip->comm_page->handshake) { in wait_handshake()
56 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake()
66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument
74 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector()
76 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector()
83 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector()
91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument
96 status = get_dsp_register(chip, CHI32_STATUS_REG); in write_dsp()
[all …]
Dmidi.c37 static int enable_midi_input(struct echoaudio *chip, char enable) in enable_midi_input() argument
39 dev_dbg(chip->card->dev, "enable_midi_input(%d)\n", enable); in enable_midi_input()
41 if (wait_handshake(chip)) in enable_midi_input()
45 chip->mtc_state = MIDI_IN_STATE_NORMAL; in enable_midi_input()
46 chip->comm_page->flags |= in enable_midi_input()
49 chip->comm_page->flags &= in enable_midi_input()
52 clear_handshake(chip); in enable_midi_input()
53 return send_vector(chip, DSP_VC_UPDATE_FLAGS); in enable_midi_input()
60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
65 if (wait_handshake(chip)) in write_midi()
[all …]
/kernel/linux/linux-5.10/sound/ppc/
Dpmac.c50 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 …]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dnand_legacy.c28 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()
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()
52 static void nand_select_chip(struct nand_chip *chip, int chipnr) in nand_select_chip() argument
56 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_select_chip()
74 static void nand_write_byte(struct nand_chip *chip, uint8_t byte) in nand_write_byte() argument
76 chip->legacy.write_buf(chip, &byte, 1); in nand_write_byte()
86 static void nand_write_byte16(struct nand_chip *chip, uint8_t byte) in nand_write_byte16() argument
106 chip->legacy.write_buf(chip, (uint8_t *)&word, 2); in nand_write_byte16()
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
Dfusb302.c127 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()
144 if (!chip->logbuffer[chip->logbuffer_head]) in _fusb302_log()
150 mutex_lock(&chip->logbuffer_lock); in _fusb302_log()
152 if (fusb302_log_full(chip)) { in _fusb302_log()
153 chip->logbuffer_head = max(chip->logbuffer_head - 1, 0); in _fusb302_log()
[all …]
/kernel/linux/linux-5.10/sound/isa/sb/
Dsb8_midi.c22 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 …]
Dsb16_main.c41 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()
92 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_prepare()
112 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare()
120 chip->open = SNDRV_SB_CSP_MODE_DSP_READ; in snd_sb16_csp_capture_prepare()
[all …]
/kernel/linux/linux-5.10/sound/sh/
Dsh_dac_audio.c54 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument
56 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
60 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument
62 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
65 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument
67 dac_audio_stop_timer(chip); in dac_audio_reset()
68 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset()
69 chip->processed = 0; in dac_audio_reset()
70 chip->empty = 1; in dac_audio_reset()
73 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate() argument
[all …]
/kernel/linux/linux-5.10/sound/drivers/vx/
Dvx_core.c39 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time) in snd_vx_check_reg_bit() argument
51 if ((snd_vx_inb(chip, reg) & mask) == bit) in snd_vx_check_reg_bit()
55 …eck_reg_bit: timeout, reg=%s, mask=0x%x, val=0x%x\n", reg_names[reg], mask, snd_vx_inb(chip, reg)); in snd_vx_check_reg_bit()
69 static int vx_send_irq_dsp(struct vx_core *chip, int num) in vx_send_irq_dsp() argument
74 if (snd_vx_check_reg_bit(chip, VX_CVR, CVR_HC, 0, 200) < 0) in vx_send_irq_dsp()
78 if (vx_has_new_dsp(chip)) in vx_send_irq_dsp()
80 vx_outb(chip, CVR, (nirq >> 1) | CVR_HC); in vx_send_irq_dsp()
90 static int vx_reset_chk(struct vx_core *chip) in vx_reset_chk() argument
93 if (vx_send_irq_dsp(chip, IRQ_RESET_CHK) < 0) in vx_reset_chk()
96 if (vx_check_isr(chip, ISR_CHK, 0, 200) < 0) in vx_reset_chk()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dmax8997_haptic.c56 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()
68 if (chip->level <= i * 100 / 64) { in max8997_haptic_set_duty_cycle()
73 switch (chip->internal_mode_pattern) { in max8997_haptic_set_duty_cycle()
75 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
79 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
83 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
87 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dapds990x.c186 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
226 struct i2c_client *client = chip->client; in apds990x_write_word()
236 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on() argument
242 if (chip->prox_en) in apds990x_mode_on()
[all …]
/kernel/linux/linux-5.10/sound/isa/es1688/
Des1688_lib.c24 static int snd_es1688_dsp_command(struct snd_es1688 *chip, unsigned char val) in snd_es1688_dsp_command() argument
29 if ((inb(ES1688P(chip, STATUS)) & 0x80) == 0) { in snd_es1688_dsp_command()
30 outb(val, ES1688P(chip, COMMAND)); in snd_es1688_dsp_command()
39 static int snd_es1688_dsp_get_byte(struct snd_es1688 *chip) in snd_es1688_dsp_get_byte() argument
44 if (inb(ES1688P(chip, DATA_AVAIL)) & 0x80) in snd_es1688_dsp_get_byte()
45 return inb(ES1688P(chip, READ)); in snd_es1688_dsp_get_byte()
46 …rintd("es1688 get byte failed: 0x%lx = 0x%x!!!\n", ES1688P(chip, DATA_AVAIL), inb(ES1688P(chip, DA… in snd_es1688_dsp_get_byte()
50 static int snd_es1688_write(struct snd_es1688 *chip, in snd_es1688_write() argument
53 if (!snd_es1688_dsp_command(chip, reg)) in snd_es1688_write()
55 return snd_es1688_dsp_command(chip, data); in snd_es1688_write()
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dphy.c16 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
48 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_write()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-xilinx.c51 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
69 if (xgpio_index(chip, gpio)) in xgpio_offset()
70 return gpio - chip->gpio_width[0]; in xgpio_offset()
88 struct xgpio_instance *chip = gpiochip_get_data(gc); in xgpio_get() local
91 val = xgpio_readreg(chip->regs + XGPIO_DATA_OFFSET + in xgpio_get()
92 xgpio_regoffset(chip, gpio)); in xgpio_get()
[all …]
Dgpio-ml-ioh.c95 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) & (1 << 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 …]
/kernel/linux/linux-5.10/sound/sparc/
Dcs4231.c129 #define CS4231U(chip, x) ((chip)->port + ((c_d_c_CS4231##x) << 2)) argument
278 static void snd_cs4231_ready(struct snd_cs4231 *chip) in snd_cs4231_ready() argument
283 int val = __cs4231_readb(chip, CS4231U(chip, REGSEL)); in snd_cs4231_ready()
290 static void snd_cs4231_dout(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_dout() argument
293 snd_cs4231_ready(chip); in snd_cs4231_dout()
295 if (__cs4231_readb(chip, CS4231U(chip, REGSEL)) & CS4231_INIT) in snd_cs4231_dout()
300 __cs4231_writeb(chip, chip->mce_bit | reg, CS4231U(chip, REGSEL)); in snd_cs4231_dout()
302 __cs4231_writeb(chip, value, CS4231U(chip, REG)); in snd_cs4231_dout()
306 static inline void snd_cs4231_outm(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_outm() argument
309 unsigned char tmp = (chip->image[reg] & mask) | value; in snd_cs4231_outm()
[all …]
/kernel/linux/linux-5.10/sound/pci/
Dad1889.c98 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw() argument
100 return readw(chip->iobase + reg); in ad1889_readw()
104 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew() argument
106 writew(val, chip->iobase + reg); in ad1889_writew()
110 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl() argument
112 return readl(chip->iobase + reg); in ad1889_readl()
116 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel() argument
118 writel(val, chip->iobase + reg); in ad1889_writel()
122 ad1889_unmute(struct snd_ad1889 *chip) in ad1889_unmute() argument
125 st = ad1889_readw(chip, AD_DS_WADA) & in ad1889_unmute()
[all …]
/kernel/linux/linux-5.10/sound/pci/cs46xx/
Dcs46xx_lib.c58 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 …]

12345678910>>...109