Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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 …]
Dxonar_pcm179x.c232 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi() argument
239 oxygen_write_spi(chip, OXYGEN_SPI_TRIGGER | in pcm1796_write_spi()
247 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c() argument
250 oxygen_write_i2c(chip, I2C_DEVICE_PCM1796(codec), reg, value); in pcm1796_write_i2c()
253 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write() argument
256 struct xonar_pcm179x *data = chip->model_data; in pcm1796_write()
258 if ((chip->model.function_flags & OXYGEN_FUNCTION_2WIRE_SPI_MASK) == in pcm1796_write()
260 pcm1796_write_spi(chip, codec, reg, value); in pcm1796_write()
262 pcm1796_write_i2c(chip, codec, reg, value); in pcm1796_write()
268 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached() argument
[all …]
/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 …]
/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 …]
Dechoaudio.c32 struct echoaudio *chip, const short fw_index) in get_firmware() argument
38 if (chip->fw_cache[fw_index]) { in get_firmware()
39 dev_dbg(chip->card->dev, in get_firmware()
42 *fw_entry = chip->fw_cache[fw_index]; in get_firmware()
47 dev_dbg(chip->card->dev, in get_firmware()
50 err = request_firmware(fw_entry, name, &chip->pci->dev); in get_firmware()
52 dev_err(chip->card->dev, in get_firmware()
56 chip->fw_cache[fw_index] = *fw_entry; in get_firmware()
64 struct echoaudio *chip) in free_firmware() argument
67 dev_dbg(chip->card->dev, "firmware not released (kept in cache)\n"); in free_firmware()
[all …]
Dechoaudio_3g.c36 static int check_asic_status(struct echoaudio *chip) in check_asic_status() argument
40 if (wait_handshake(chip)) in check_asic_status()
43 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status()
44 chip->asic_loaded = false; in check_asic_status()
45 clear_handshake(chip); in check_asic_status()
46 send_vector(chip, DSP_VC_TEST_ASIC); in check_asic_status()
48 if (wait_handshake(chip)) { in check_asic_status()
49 chip->dsp_code = NULL; in check_asic_status()
53 box_status = le32_to_cpu(chip->comm_page->ext_box_status); in check_asic_status()
54 dev_dbg(chip->card->dev, "box_status=%x\n", box_status); in check_asic_status()
[all …]
/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()
131 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
135 return &chip->playback; in snd_pmac_get_stream()
[all …]
/sound/isa/sb/
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 …]
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 …]
/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 …]
Dvx_uer.c20 static int vx_modify_board_clock(struct vx_core *chip, int sync) in vx_modify_board_clock() argument
28 return vx_send_msg(chip, &rmh); in vx_modify_board_clock()
34 static int vx_modify_board_inputs(struct vx_core *chip) in vx_modify_board_inputs() argument
40 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs()
48 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit() argument
52 mutex_lock(&chip->lock); in vx_read_one_cbit()
53 if (chip->type >= VX_TYPE_VXPOCKET) { in vx_read_one_cbit()
54 vx_outb(chip, CSUER, 1); /* read */ in vx_read_one_cbit()
55 vx_outb(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit()
56 val = (vx_inb(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit()
[all …]
/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 …]
/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 …]
/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 …]
/sound/pci/lx6464es/
Dlx_core.c55 static void __iomem *lx_dsp_register(struct lx6464es *chip, int port) in lx_dsp_register() argument
57 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register()
61 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port) in lx_dsp_reg_read() argument
63 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_read()
67 static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data, in lx_dsp_reg_readbuf() argument
70 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_readbuf()
79 void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data) in lx_dsp_reg_write() argument
81 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_write()
85 static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port, in lx_dsp_reg_writebuf() argument
88 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_writebuf()
[all …]
/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 …]
Dfm801.c66 #define fm801_writew(chip,reg,value) outw((value), chip->port + FM801_##reg) argument
67 #define fm801_readw(chip,reg) inw(chip->port + FM801_##reg) argument
69 #define fm801_writel(chip,reg,value) outl((value), chip->port + FM801_##reg) argument
209 static inline void fm801_iowrite16(struct fm801 *chip, unsigned short offset, u16 value) in fm801_iowrite16() argument
211 outw(value, chip->port + offset); in fm801_iowrite16()
214 static inline u16 fm801_ioread16(struct fm801 *chip, unsigned short offset) in fm801_ioread16() argument
216 return inw(chip->port + offset); in fm801_ioread16()
231 static bool fm801_ac97_is_ready(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_ready() argument
236 if (!(fm801_readw(chip, AC97_CMD) & FM801_AC97_BUSY)) in fm801_ac97_is_ready()
243 static bool fm801_ac97_is_valid(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_valid() argument
[all …]
Des1968.c576 static void __maestro_write(struct es1968 *chip, u16 reg, u16 data) in __maestro_write() argument
578 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write()
579 outw(data, chip->io_port + ESM_DATA); in __maestro_write()
580 chip->maestro_map[reg] = data; in __maestro_write()
583 static inline void maestro_write(struct es1968 *chip, u16 reg, u16 data) in maestro_write() argument
586 spin_lock_irqsave(&chip->reg_lock, flags); in maestro_write()
587 __maestro_write(chip, reg, data); in maestro_write()
588 spin_unlock_irqrestore(&chip->reg_lock, flags); in maestro_write()
592 static u16 __maestro_read(struct es1968 *chip, u16 reg) in __maestro_read() argument
595 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read()
[all …]
/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 …]
/sound/pci/nm256/
Dnm256.c106 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument
123 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument
175 struct nm256 *chip; member
266 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb() argument
268 return readb(chip->cport + offset); in snd_nm256_readb()
272 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw() argument
274 return readw(chip->cport + offset); in snd_nm256_readw()
278 snd_nm256_readl(struct nm256 *chip, int offset) in snd_nm256_readl() argument
280 return readl(chip->cport + offset); in snd_nm256_readl()
284 snd_nm256_writeb(struct nm256 *chip, int offset, u8 val) in snd_nm256_writeb() argument
[all …]
/sound/pcmcia/vx/
Dvxp_ops.c40 struct snd_vxpocket *chip = to_vxpocket(_chip); in vxp_reg_addr() local
41 return chip->port + vxp_reg_offset[reg]; in vxp_reg_addr()
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()
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()
67 #define vx_inb(chip,reg) vxp_inb((struct vx_core *)(chip), VX_##reg) argument
69 #define vx_outb(chip,reg,val) vxp_outb((struct vx_core *)(chip), VX_##reg,val) argument
77 static int vx_check_magic(struct vx_core *chip) in vx_check_magic() argument
82 c = vx_inb(chip, CDSP); in vx_check_magic()
[all …]
/sound/pci/ymfpci/
Dymfpci_main.c32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
34 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb() argument
36 return readb(chip->reg_area_virt + offset); in snd_ymfpci_readb()
39 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
41 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
44 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
46 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
49 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
51 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
54 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
[all …]
/sound/pcmcia/pdaudiocf/
Dpdaudiocf_core.c20 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()
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()
45 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_read()
46 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
52 struct snd_pdacf *chip = private_data; in pdacf_ak4117_write() local
[all …]

12345678910>>...12