Lines Matching refs:io
1947 int io = chip->iobase; in snd_m3_remote_codec_config() local
1952 tmp = inw(io + RING_BUS_CTRL_B) & ~SECOND_CODEC_ID_MASK; in snd_m3_remote_codec_config()
1957 outw(tmp | isremote, io + RING_BUS_CTRL_B); in snd_m3_remote_codec_config()
1958 outw((inw(io + SDO_OUT_DEST_CTRL) & ~COMMAND_ADDR_OUT) | isremote, in snd_m3_remote_codec_config()
1959 io + SDO_OUT_DEST_CTRL); in snd_m3_remote_codec_config()
1960 outw((inw(io + SDO_IN_DEST_CTRL) & ~STATUS_ADDR_IN) | isremote, in snd_m3_remote_codec_config()
1961 io + SDO_IN_DEST_CTRL); in snd_m3_remote_codec_config()
1988 int io = chip->iobase; in snd_m3_ac97_reset() local
2005 dir = inw(io + GPIO_DIRECTION); in snd_m3_ac97_reset()
2011 outw(IO_SRAM_ENABLE, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
2014 outw(dir & ~GPO_PRIMARY_AC97 , io + GPIO_DIRECTION); in snd_m3_ac97_reset()
2015 outw(~GPO_PRIMARY_AC97 , io + GPIO_MASK); in snd_m3_ac97_reset()
2016 outw(0, io + GPIO_DATA); in snd_m3_ac97_reset()
2017 outw(dir | GPO_PRIMARY_AC97, io + GPIO_DIRECTION); in snd_m3_ac97_reset()
2021 outw(GPO_PRIMARY_AC97, io + GPIO_DATA); in snd_m3_ac97_reset()
2024 outw(IO_SRAM_ENABLE | SERIAL_AC_LINK_ENABLE, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
2025 outw(~0, io + GPIO_MASK); in snd_m3_ac97_reset()
2044 tmp = inw(io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
2045 outw(RAC_SDFS_ENABLE|LAC_SDFS_ENABLE, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
2047 outw(tmp, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
2243 int io = chip->iobase; in snd_m3_amp_enable() local
2253 outw(~gpo, io + GPIO_MASK); in snd_m3_amp_enable()
2255 outw(inw(io + GPIO_DIRECTION) | gpo, in snd_m3_amp_enable()
2256 io + GPIO_DIRECTION); in snd_m3_amp_enable()
2259 io + GPIO_DATA); in snd_m3_amp_enable()
2261 outw(0xffff, io + GPIO_MASK); in snd_m3_amp_enable()
2267 unsigned long io = chip->iobase; in snd_m3_hv_init() local
2277 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
2278 outw(0x0000, io + GPIO_DATA); in snd_m3_hv_init()
2280 outw(~val, io + GPIO_MASK); in snd_m3_hv_init()
2281 outw(inw(io + GPIO_DIRECTION) & ~val, io + GPIO_DIRECTION); in snd_m3_hv_init()
2282 outw(val, io + GPIO_MASK); in snd_m3_hv_init()
2284 outw(0xffff, io + GPIO_MASK); in snd_m3_hv_init()
2291 unsigned long io = chip->iobase; in snd_m3_chip_init() local
2335 outb(0x00, io + HARDWARE_VOL_CTRL); in snd_m3_chip_init()
2336 outb(0x88, io + SHADOW_MIX_REG_VOICE); in snd_m3_chip_init()
2337 outb(0x88, io + HW_VOL_COUNTER_VOICE); in snd_m3_chip_init()
2338 outb(0x88, io + SHADOW_MIX_REG_MASTER); in snd_m3_chip_init()
2339 outb(0x88, io + HW_VOL_COUNTER_MASTER); in snd_m3_chip_init()
2347 unsigned long io = chip->iobase; in snd_m3_enable_ints() local
2355 outw(val, io + HOST_INT_CTRL); in snd_m3_enable_ints()
2356 outb(inb(io + ASSP_CONTROL_C) | ASSP_HOST_INT_ENABLE, in snd_m3_enable_ints()
2357 io + ASSP_CONTROL_C); in snd_m3_enable_ints()