Lines Matching defs:viadev
139 #define VIADEV_REG(viadev, x) ((viadev)->port + VIA_REG_##x) argument
324 struct viadev { struct
325 unsigned int reg_offset;
326 unsigned long port;
327 int direction; /* playback = 0, capture = 1 */
328 struct snd_pcm_substream *substream;
329 int running;
330 unsigned int tbl_entries; /* # descriptors */
331 struct snd_dma_buffer table;
332 struct snd_via_sg_table *idx_table;
334 unsigned int lastpos;
335 unsigned int fragsize;
336 unsigned int bufsize;
337 unsigned int bufsize2;
338 int hwptr_done; /* processed frame position in the buffer */
339 int in_interrupt;
340 int shadow_shift;
607 static void snd_via82xx_channel_reset(struct via82xx *chip, struct viadev *viadev) in snd_via82xx_channel_reset()
645 struct viadev *viadev = &chip->devs[i]; in snd_via686_interrupt() local
686 struct viadev *viadev = &chip->devs[i]; in snd_via8233_interrupt() local
735 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_pcm_trigger() local
778 #define check_invalid_pos(viadev,pos) \ argument
783 struct viadev *viadev, in calc_linear_pos()
840 struct viadev *viadev = substream->runtime->private_data; in snd_via686_pcm_pointer() local
871 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_pcm_pointer() local
933 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_params() local
955 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_hw_free() local
966 static void snd_via82xx_set_table_ptr(struct via82xx *chip, struct viadev *viadev) in snd_via82xx_set_table_ptr()
977 static void via686_setup_format(struct via82xx *chip, struct viadev *viadev, in via686_setup_format()
994 struct viadev *viadev = substream->runtime->private_data; in snd_via686_playback_prepare() local
1006 struct viadev *viadev = substream->runtime->private_data; in snd_via686_capture_prepare() local
1040 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_playback_prepare() local
1082 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_multi_prepare() local
1131 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_capture_prepare() local
1178 static int snd_via82xx_pcm_open(struct via82xx *chip, struct viadev *viadev, in snd_via82xx_pcm_open()
1242 struct viadev *viadev = &chip->devs[chip->playback_devno + substream->number]; in snd_via686_playback_open() local
1256 struct viadev *viadev; in snd_via8233_playback_open() local
1284 struct viadev *viadev = &chip->devs[chip->multi_devno]; in snd_via8233_multi_open() local
1314 struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device]; in snd_via82xx_capture_open() local
1325 struct viadev *viadev = substream->runtime->private_data; in snd_via82xx_pcm_close() local
1354 struct viadev *viadev = substream->runtime->private_data; in snd_via8233_playback_close() local