Searched refs:VIADEV_REG (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/sound/pci/
H A Dvia82xx_modem.c78 #define VIADEV_REG(viadev, x) ((viadev)->port + VIA_REG_##x) macro
466 VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
467 inb(VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
470 outb(0x00, VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
472 outb(0x03, VIADEV_REG(viadev, OFFSET_STATUS)); snd_via82xx_channel_reset()
473 outb(0x00, VIADEV_REG(viadev, OFFSET_TYPE)); /* for via686 */ snd_via82xx_channel_reset()
474 // outl(0, VIADEV_REG(viadev, OFFSET_CURR_PTR)); snd_via82xx_channel_reset()
499 unsigned char c_status = inb(VIADEV_REG(viadev, OFFSET_STATUS)); snd_via82xx_interrupt()
508 outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */ snd_via82xx_interrupt()
547 outb(val, VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_pcm_trigger()
626 if (!(inb(VIADEV_REG(viadev, OFFSET_STATUS)) & VIA_REG_STAT_ACTIVE)) snd_via686_pcm_pointer()
630 count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT)) & 0xffffff; snd_via686_pcm_pointer()
634 ptr = inl(VIADEV_REG(viadev, OFFSET_CURR_PTR)); snd_via686_pcm_pointer()
693 outl((u32)viadev->table.addr, VIADEV_REG(viadev, OFFSET_TABLE_PTR)); snd_via82xx_set_table_ptr()
710 VIADEV_REG(viadev, OFFSET_TYPE)); snd_via82xx_pcm_prepare()
H A Dvia82xx.c139 #define VIADEV_REG(viadev, x) ((viadev)->port + VIA_REG_##x) macro
610 VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
611 inb(VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
614 outb(0x00, VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_channel_reset()
616 outb(0x03, VIADEV_REG(viadev, OFFSET_STATUS)); snd_via82xx_channel_reset()
617 outb(0x00, VIADEV_REG(viadev, OFFSET_TYPE)); /* for via686 */ snd_via82xx_channel_reset()
618 // outl(0, VIADEV_REG(viadev, OFFSET_CURR_PTR)); snd_via82xx_channel_reset()
646 unsigned char c_status = inb(VIADEV_REG(viadev, OFFSET_STATUS)); snd_via686_interrupt()
665 outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */ snd_via686_interrupt()
718 outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */ snd_via8233_interrupt()
763 outb(val, VIADEV_REG(viadev, OFFSET_CONTROL)); snd_via82xx_pcm_trigger()
845 if (!(inb(VIADEV_REG(viadev, OFFSET_STATUS)) & VIA_REG_STAT_ACTIVE)) snd_via686_pcm_pointer()
849 count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT)) & 0xffffff; snd_via686_pcm_pointer()
853 ptr = inl(VIADEV_REG(viadev, OFFSET_CURR_PTR)); snd_via686_pcm_pointer()
879 count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT)); snd_via8233_pcm_pointer()
882 status = inb(VIADEV_REG(viadev, OFFSET_STATUS)); snd_via8233_pcm_pointer()
969 outl((u32)viadev->table.addr, VIADEV_REG(viadev, OFFSET_TABLE_PTR)); snd_via82xx_set_table_ptr()
988 VIA_REG_TYPE_INT_FLAG, VIADEV_REG(viadev, OFFSET_TYPE)); via686_setup_format()
1063 VIADEV_REG(viadev, OFS_PLAYBACK_VOLUME_L)); snd_via8233_playback_prepare()
1065 VIADEV_REG(viadev, OFS_PLAYBACK_VOLUME_R)); snd_via8233_playback_prepare()
1070 VIADEV_REG(viadev, OFFSET_STOP_IDX)); snd_via8233_playback_prepare()
1099 outb(fmt, VIADEV_REG(viadev, OFS_MULTPLAY_FORMAT)); snd_via8233_multi_prepare()
1119 outl(0xff000000 | slots, VIADEV_REG(viadev, OFFSET_STOP_IDX)); snd_via8233_multi_prepare()
1139 outb(VIA_REG_CAPTURE_FIFO_ENABLE, VIADEV_REG(viadev, OFS_CAPTURE_FIFO)); snd_via8233_capture_prepare()
1143 VIADEV_REG(viadev, OFFSET_STOP_IDX)); snd_via8233_capture_prepare()

Completed in 79 milliseconds