Home
last modified time | relevance | path

Searched refs:inb (Results 1 – 25 of 80) sorted by relevance

1234

/sound/oss/
Dsb_common.c103 if ((inb(DSP_STATUS) & 0x80) == 0) in sb_dsp_command()
119 if (inb(DSP_DATA_AVAIL) & 0x80) in sb_dsp_get_byte()
120 return inb(DSP_READ); in sb_dsp_get_byte()
190 status = inb(DSP_DATA_AVAIL); in sb_intr()
193 status = inb(DSP_DATA_AVL16); in sb_intr()
198 int src = inb(devc->pcibase+0x1A); in pci_intr()
239 for (loopc = 0; loopc < 1000 && !(inb(DSP_DATA_AVAIL) & 0x80); loopc++); in sb_dsp_reset()
241 if (inb(DSP_READ) != 0xAA) in sb_dsp_reset()
263 if (inb(DSP_DATA_AVAIL) & 0x80) in dsp_get_vers()
266 devc->major = inb(DSP_READ); in dsp_get_vers()
[all …]
Dad1848.c209 while (timeout > 0 && inb(devc->base) == 0x80) /*Are we initializing */ in ad_read()
215 x = inb(io_Indexed_Data(devc)); in ad_read()
225 x = inb(io_Indexed_Data(devc)); in ad_read()
235 while (timeout > 0 && inb(devc->base) == 0x80) /* Are we initializing */ in ad_write()
267 while (timeout > 0 && inb(devc->base) == 0x80) in wait_for_calibration()
269 if (inb(devc->base) & 0x80) in wait_for_calibration()
311 while (timeout > 0 && inb(devc->base) == 0x80) /*Are we initializing */ in ad_enter_MCE()
315 prev = inb(io_Index_Addr(devc)); in ad_enter_MCE()
328 while (timeout > 0 && inb(devc->base) == 0x80) /*Are we initializing */ in ad_leave_MCE()
334 prev = inb(io_Index_Addr(devc)); in ad_leave_MCE()
[all …]
Dwaveartist.c165 clear = ~clear & inb(ctlr_port); in waveartist_set_ctlr()
178 old_ctlr = inb(ctlr_port) & ~IRQ_ACK; in waveartist_iack()
205 if (inb(hw->io_base + STATR) & CMD_RF) { in waveartist_reset()
244 if (inb(io_base + STATR) & CMD_RF) { in waveartist_cmd()
262 if (inb(io_base + STATR) & CMD_WE) in waveartist_cmd()
275 if (inb(io_base + STATR) & CMD_RF) in waveartist_cmd()
613 inb(devc->hw.io_base + CTLR)); in waveartist_prepare_for_input()
615 inb(devc->hw.io_base + STATR)); in waveartist_prepare_for_input()
617 inb(devc->hw.io_base + IRQSTAT)); in waveartist_prepare_for_input()
663 printk("WA CTLR reg: 0x%02X.\n",inb(devc->hw.io_base + CTLR)); in waveartist_prepare_for_output()
[all …]
Dsb_ess.c823 status = inb(DSP_DATA_AVAIL); in ess_intr()
874 for (loopc = 0; loopc < 1000 && !(inb(DSP_DATA_AVAIL) & 0x80); loopc++); in ess_dsp_reset()
876 if (inb(DSP_READ) != 0xAA) { in ess_dsp_reset()
983 val = inb(MIXER_DATA) << 8; in ess_identify()
985 val |= inb(MIXER_DATA); in ess_identify()
1027 if (inb(DSP_DATA_AVAIL) & 0x80) {
1029 ess_major = inb(DSP_READ);
1031 ess_minor = inb(DSP_READ);
1600 val = inb(MIXER_DATA);
Duart6850.c44 return inb(STATPORT); in uart6850_status()
57 return inb(DATAPORT); in uart6850_read()
/sound/isa/es1688/
Des1688_lib.c44 if ((inb(ES1688P(chip, STATUS)) & 0x80) == 0) { in snd_es1688_dsp_command()
59 if (inb(ES1688P(chip, DATA_AVAIL)) & 0x80) in snd_es1688_dsp_get_byte()
60 return inb(ES1688P(chip, READ)); in snd_es1688_dsp_get_byte()
61 …snd_printd("es1688 get byte failed: 0x%lx = 0x%x!!!\n", ES1688P(chip, DATA_AVAIL), inb(ES1688P(chi… in snd_es1688_dsp_get_byte()
98 result = inb(ES1688P(chip, MIXER_DATA)); in snd_es1688_mixer_read()
111 for (i = 0; i < 1000 && !(inb(ES1688P(chip, DATA_AVAIL)) & 0x80); i++); in snd_es1688_reset()
112 if (inb(ES1688P(chip, READ)) != 0xaa) { in snd_es1688_reset()
132 inb(ES1688P(chip, ENABLE1)); /* ENABLE1 */ in snd_es1688_probe()
133 inb(ES1688P(chip, ENABLE1)); /* ENABLE1 */ in snd_es1688_probe()
134 inb(ES1688P(chip, ENABLE1)); /* ENABLE1 */ in snd_es1688_probe()
[all …]
/sound/drivers/
Dserial-u16550.c218 while ((status = inb(uart->base + UART_LSR)) & UART_LSR_DR) { in snd_uart16550_io_loop()
220 c = inb(uart->base + UART_RX); in snd_uart16550_io_loop()
260 status = inb(uart->base + UART_MSR); in snd_uart16550_io_loop()
264 status = inb(uart->base + UART_MSR); in snd_uart16550_io_loop()
307 inb(uart->base + UART_IIR); in snd_uart16550_interrupt()
352 c = inb(io_base + UART_IER); in snd_uart16550_detect()
359 c = inb(io_base + UART_SCR); in snd_uart16550_detect()
366 c = inb(io_base + UART_SCR); in snd_uart16550_detect()
395 if ((inb(uart->base + UART_IIR) & 0xf0) == 0xc0) in snd_uart16550_do_open()
398 uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); in snd_uart16550_do_open()
[all …]
/sound/isa/gus/
Dgus_io.c33 inb(GUSP(gus, DRAM)); in snd_gf1_delay()
52 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
75 return inb(gus->gf1.reg_data8); in __snd_gf1_look8()
99 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
100 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
102 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
103 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
332 res = inb(gus->gf1.reg_dram); in snd_gf1_peek()
508 printk(KERN_INFO " -S- mix control = 0x%x\n", inb(GUSP(gus, MIXCNTRLREG)));
509 printk(KERN_INFO " -S- IRQ status = 0x%x\n", inb(GUSP(gus, IRQSTAT)));
[all …]
Dgus_uart.c138 gus->gf1.port + 0x100, inb(gus->gf1.port + 0x100), in snd_gf1_uart_input_open()
139 inb(gus->gf1.port + 0x101), inb(gus->gf1.port + 0x102)); in snd_gf1_uart_input_open()
Dgus_irq.c40 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
70 voice, voice_status, inb(GUSP(gus, GF1PAGE))); in snd_gus_interrupt()
/sound/drivers/opl4/
Dopl4_lib.c35 while ((inb(opl4->fm_port) & OPL4_STATUS_BUSY) && --timeout > 0) in snd_opl4_wait()
56 return inb(opl4->pcm_port + 1); in snd_opl4_read()
116 inb(opl4->fm_port); in snd_opl4_enable_opl4()
117 inb(opl4->fm_port); in snd_opl4_enable_opl4()
119 inb(opl4->fm_port); in snd_opl4_enable_opl4()
120 inb(opl4->fm_port); in snd_opl4_enable_opl4()
/sound/pci/ice1712/
Dice1724.c122 return (inb(ICEMT1724(ice, RATE)) & VT1724_SPDIF_MASTER) ? 1 : 0; in stdclock_is_spdif_master()
142 old_cmd = inb(ICEMT1724(ice, AC97_CMD)); in snd_vt1724_ac97_ready()
157 if ((inb(ICEMT1724(ice, AC97_CMD)) & bit) == 0) in snd_vt1724_ac97_wait_bit()
225 mask = (unsigned int)inb(ICEREG1724(ice, GPIO_WRITE_MASK_22)); in snd_vt1724_get_gpio_mask()
244 data = (unsigned int)inb(ICEREG1724(ice, GPIO_DATA_22)); in snd_vt1724_get_gpio_data()
259 for (count = inb(ICEREG1724(ice, MPU_RXFIFO)); count > 0; --count) in vt1724_midi_clear_rx()
260 inb(ICEREG1724(ice, MPU_DATA)); in vt1724_midi_clear_rx()
279 count = 31 - inb(ICEREG1724(ice, MPU_TXFIFO)); in vt1724_midi_write()
299 count = inb(ICEREG1724(ice, MPU_RXFIFO)); in vt1724_midi_read()
303 buffer[i] = inb(ICEREG1724(ice, MPU_DATA)); in vt1724_midi_read()
[all …]
Dice1712.c129 return (inb(ICEMT(ice, RATE)) & ICE1712_SPDIF_MASTER) ? 1 : 0; in is_spdif_master()
158 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write()
170 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_ac97_write()
182 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read()
192 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_ac97_read()
212 old_cmd = inb(ICEMT(ice, AC97_CMD)); in snd_ice1712_pro_ac97_write()
224 if ((inb(ICEMT(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_pro_ac97_write()
237 old_cmd = inb(ICEMT(ice, AC97_CMD)); in snd_ice1712_pro_ac97_read()
247 if ((inb(ICEMT(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_pro_ac97_read()
263 ucontrol->value.integer.value[0] = inb(ICEMT(ice, MONITOR_ROUTECTRL)) & ICE1712_ROUTE_AC97 ? 1 : 0; in snd_ice1712_digmix_route_ac97_get()
[all …]
/sound/isa/
Dsscape.c229 return inb(ODIE_DATA_IO(io_base)); in sscape_read_unsafe()
255 if ((inb(HOST_CTRL_IO(io_base)) & RX_READY) != 0) in host_read_unsafe()
256 data = inb(HOST_DATA_IO(io_base)); in host_read_unsafe()
284 if ((inb(HOST_CTRL_IO(io_base)) & TX_READY) != 0) { in host_write_unsafe()
319 return ((inb(MPU401C(mpu)) & 0xc0) == 0x80); in verify_mpu401()
722 if ((inb(HOST_CTRL_IO(s->io_base)) & 0x78) != 0) in detect_sscape()
725 d = inb(ODIE_ADDR_IO(s->io_base)) & 0xf0; in detect_sscape()
737 if ((inb(ODIE_ADDR_IO(s->io_base)) & 0x9f) != 0x0a) in detect_sscape()
741 if ((inb(ODIE_ADDR_IO(s->io_base)) & 0x9f) != 0x0e) in detect_sscape()
745 d = inb(ODIE_DATA_IO(s->io_base)); in detect_sscape()
[all …]
Des18xx.c181 if ((inb(chip->port + 0x0C) & 0x80) == 0) { in snd_es18xx_dsp_command()
194 if (inb(chip->port + 0x0C) & 0x40) in snd_es18xx_dsp_get_byte()
195 return inb(chip->port + 0x0A); in snd_es18xx_dsp_get_byte()
197 chip->port + 0x0A, inb(chip->port + 0x0A)); in snd_es18xx_dsp_get_byte()
301 data = inb(chip->port + 0x05); in snd_es18xx_mixer_read()
317 old = inb(chip->port + 0x05); in snd_es18xx_mixer_bits()
338 old = inb(chip->port + 0x05); in snd_es18xx_mixer_writable()
341 new = inb(chip->port + 0x05); in snd_es18xx_mixer_writable()
355 inb(chip->port + 0x06); in snd_es18xx_reset()
357 for(i = 0; i < MILLISECOND && !(inb(chip->port + 0x0E) & 0x80); i++); in snd_es18xx_reset()
[all …]
/sound/isa/sb/
Dsb_common.c51 if ((inb(SBP(chip, STATUS)) & 0x80) == 0) { in snd_sbdsp_command()
64 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sbdsp_get_byte()
65 val = inb(SBP(chip, READ)); in snd_sbdsp_get_byte()
85 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sbdsp_reset()
86 if (inb(SBP(chip, READ)) == 0xaa) in snd_sbdsp_reset()
Dsb8_midi.c46 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt()
52 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt()
53 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt()
195 while ((inb(SBP(chip, STATUS)) & 0x80) != 0 && --timeout > 0) in snd_sb8dsp_midi_output_write()
/sound/drivers/opl3/
Dopl3_lib.c79 inb(opl3->l_port); in snd_opl3_command()
80 inb(opl3->l_port); in snd_opl3_command()
83 inb(opl3->l_port); in snd_opl3_command()
84 inb(opl3->l_port); in snd_opl3_command()
108 signature = stat1 = inb(opl3->l_port); /* Status register */ in snd_opl3_detect()
120 stat2 = inb(opl3->l_port); in snd_opl3_detect()
304 status = inb(opl3->l_port); in snd_opl3_interrupt()
/sound/isa/msnd/
Dmsnd.c71 if (inb(io + HP_ISR) & HPISR_TXDE) in snd_msnd_wait_TXDE()
83 if (!(inb(io + HP_CVR) & HPCVR_HC)) in snd_msnd_wait_HC0()
139 inb(dev->io + HP_RXL); in snd_msnd_upload_host()
140 inb(dev->io + HP_CVR); in snd_msnd_upload_host()
157 outb(inb(dev->io + HP_ICR) | HPICR_TREQ, dev->io + HP_ICR); in snd_msnd_enable_irq()
161 outb(inb(dev->io + HP_ICR) & ~HPICR_TREQ, dev->io + HP_ICR); in snd_msnd_enable_irq()
162 outb(inb(dev->io + HP_ICR) | HPICR_RREQ, dev->io + HP_ICR); in snd_msnd_enable_irq()
192 outb(inb(dev->io + HP_ICR) & ~HPICR_RREQ, dev->io + HP_ICR); in snd_msnd_disable_irq()
Dmsnd.h195 # undef inb
197 # define inb inb_p macro
/sound/pci/
Dals300.c204 status = inb(chip->port+ALS300_IRQ_STATUS); in snd_als300_interrupt()
235 general = inb(chip->port+ALS300P_IRQ_STATUS); in snd_als300plus_interrupt()
236 mpu = inb(chip->port+MPU_IRQ_STATUS); in snd_als300plus_interrupt()
237 dram = inb(chip->port+ALS300P_DRAM_IRQ_STATUS); in snd_als300plus_interrupt()
278 if ((inb(chip->port+AC97_STATUS) & (AC97_BUSY)) == 0) in snd_als300_ac97_read()
285 if ((inb(chip->port+AC97_STATUS) & (AC97_DATA_AVAIL)) != 0) in snd_als300_ac97_read()
299 if ((inb(chip->port+AC97_STATUS) & (AC97_BUSY)) == 0) in snd_als300_ac97_write()
Dazt3328.c339 u8 prev = inb(reg), new; in snd_azf3328_io_reg_setb()
363 return inb(codec->io_base + reg); in snd_azf3328_codec_inb()
420 return inb(chip->ctrl_io + reg); in snd_azf3328_ctrl_inb()
456 return inb(chip->game_io + reg); in snd_azf3328_game_inb()
823 curr_vol_left = inb(portbase + 1); in snd_azf3328_mixer_write_volume_gradually()
835 curr_vol_right = inb(portbase + 0); in snd_azf3328_mixer_write_volume_gradually()
2327 val = inb(reg);
2330 valoff = inb(reg);
2333 valon = inb(reg);
2365 "mpu_io 0x%04x\n", inb(chip->mpu_io + tmp)); in snd_azf3328_debug_show_ports()
[all …]
Des1938.c279 data = inb(SLSB_REG(chip, MIXERDATA)); in snd_es1938_mixer_read()
295 old = inb(SLSB_REG(chip, MIXERDATA)); in snd_es1938_mixer_bits()
316 if (!(v = inb(SLSB_REG(chip, READSTATUS)) & 0x80)) { in snd_es1938_write_cmd()
333 if ((v = inb(SLSB_REG(chip, STATUS))) & 0x80) in snd_es1938_get_byte()
334 return inb(SLSB_REG(chip, READDATA)); in snd_es1938_get_byte()
400 inb(SLSB_REG(chip, RESET)); in snd_es1938_reset()
403 if (inb(SLSB_REG(chip, STATUS)) & 0x80) { in snd_es1938_reset()
404 if (inb(SLSB_REG(chip, READDATA)) == 0xaa) in snd_es1938_reset()
1663 status = inb(SLIO_REG(chip, IRQCONTROL)); in snd_es1938_interrupt()
1686 audiostatus = inb(SLSB_REG(chip, STATUS)); in snd_es1938_interrupt()
/sound/isa/wavefront/
Dwavefront_fx.c47 x = inb (dev->fx_status); in wavefront_fx_idle()
138 if (inb (dev->fx_status) & 0x80) { in snd_wavefront_fx_detect()
/sound/pci/ali5451/
Dali5451.c650 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
657 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
668 bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
687 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)) & 0xf0; in snd_ali_detect_spdif_rate()
695 bval = inb(ALI_REG(codec,ALI_SPDIF_CS + 3)) & 0xf0; in snd_ali_detect_spdif_rate()
705 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); in snd_ali_get_spdif_in_rate()
712 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)); in snd_ali_get_spdif_in_rate()
733 dwVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); in snd_ali_enable_spdif_in()
763 bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); in snd_ali_set_spdif_out_rate()
796 bVal = inb(ALI_REG(codec, ALI_SCTRL)); in snd_ali_enable_spdif_out()
[all …]

1234