viadev             66 drivers/media/platform/via-camera.c 	struct viafb_dev *viadev;
viadev            316 drivers/media/platform/via-camera.c 	spin_lock(&cam->viadev->reg_lock);
viadev            323 drivers/media/platform/via-camera.c 	spin_unlock(&cam->viadev->reg_lock);
viadev            410 drivers/media/platform/via-camera.c 	int nbuf = cam->viadev->camera_fbmem_size/cam->sensor_format.sizeimage;
viadev            536 drivers/media/platform/via-camera.c 	spin_lock_irqsave(&cam->viadev->reg_lock, flags);
viadev            540 drivers/media/platform/via-camera.c 	spin_unlock_irqrestore(&cam->viadev->reg_lock, flags);
viadev            550 drivers/media/platform/via-camera.c 	spin_lock_irq(&cam->viadev->reg_lock);
viadev            555 drivers/media/platform/via-camera.c 	spin_unlock_irq(&cam->viadev->reg_lock);
viadev            561 drivers/media/platform/via-camera.c 	spin_lock_irq(&cam->viadev->reg_lock);
viadev            566 drivers/media/platform/via-camera.c 	spin_unlock_irq(&cam->viadev->reg_lock);
viadev           1138 drivers/media/platform/via-camera.c 	struct viafb_dev *viadev = pdev->dev.platform_data;
viadev           1162 drivers/media/platform/via-camera.c 	if (viadev->camera_fbmem_size < (VGA_HEIGHT*VGA_WIDTH*4)) {
viadev           1166 drivers/media/platform/via-camera.c 	if (viadev->engine_mmio == NULL) {
viadev           1182 drivers/media/platform/via-camera.c 	cam->viadev = viadev;
viadev           1187 drivers/media/platform/via-camera.c 	cam->mmio = viadev->engine_mmio;
viadev           1188 drivers/media/platform/via-camera.c 	cam->fbmem = viadev->fbmem;
viadev           1189 drivers/media/platform/via-camera.c 	cam->fb_offset = viadev->camera_fbmem_offset;
viadev           1207 drivers/media/platform/via-camera.c 	pdev->dev.dma_mask = &viadev->pdev->dma_mask;
viadev           1239 drivers/media/platform/via-camera.c 	ret = request_threaded_irq(viadev->pdev->irq, viacam_quick_irq,
viadev           1282 drivers/media/platform/via-camera.c 	free_irq(viadev->pdev->irq, cam);
viadev           1297 drivers/media/platform/via-camera.c 	struct viafb_dev *viadev = pdev->dev.platform_data;
viadev           1304 drivers/media/platform/via-camera.c 	free_irq(viadev->pdev->irq, cam);
viadev            125 sound/pci/via82xx.c #define VIADEV_REG(viadev, x) ((viadev)->port + VIA_REG_##x)
viadev            369 sound/pci/via82xx.c 	struct viadev devs[VIA_MAX_DEVS];
viadev            411 sound/pci/via82xx.c static int build_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
viadev            484 sound/pci/via82xx.c static int clean_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
viadev            595 sound/pci/via82xx.c static void snd_via82xx_channel_reset(struct via82xx *chip, struct viadev *viadev)
viadev            598 sound/pci/via82xx.c 	     VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            599 sound/pci/via82xx.c 	inb(VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            602 sound/pci/via82xx.c 	outb(0x00, VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            604 sound/pci/via82xx.c 	outb(0x03, VIADEV_REG(viadev, OFFSET_STATUS));
viadev            605 sound/pci/via82xx.c 	outb(0x00, VIADEV_REG(viadev, OFFSET_TYPE)); /* for via686 */
viadev            607 sound/pci/via82xx.c 	viadev->lastpos = 0;
viadev            608 sound/pci/via82xx.c 	viadev->hwptr_done = 0;
viadev            633 sound/pci/via82xx.c 		struct viadev *viadev = &chip->devs[i];
viadev            634 sound/pci/via82xx.c 		unsigned char c_status = inb(VIADEV_REG(viadev, OFFSET_STATUS));
viadev            637 sound/pci/via82xx.c 		if (viadev->substream && viadev->running) {
viadev            644 sound/pci/via82xx.c 				viadev->hwptr_done = 0;
viadev            646 sound/pci/via82xx.c 				viadev->hwptr_done += viadev->fragsize;
viadev            647 sound/pci/via82xx.c 			viadev->in_interrupt = c_status;
viadev            649 sound/pci/via82xx.c 			snd_pcm_period_elapsed(viadev->substream);
viadev            651 sound/pci/via82xx.c 			viadev->in_interrupt = 0;
viadev            653 sound/pci/via82xx.c 		outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */
viadev            674 sound/pci/via82xx.c 		struct viadev *viadev = &chip->devs[i];
viadev            678 sound/pci/via82xx.c 		shadow_status = (status >> viadev->shadow_shift) &
viadev            685 sound/pci/via82xx.c 		substream = viadev->substream;
viadev            686 sound/pci/via82xx.c 		if (substream && viadev->running) {
viadev            693 sound/pci/via82xx.c 				viadev->hwptr_done = 0;
viadev            695 sound/pci/via82xx.c 				viadev->hwptr_done += viadev->fragsize;
viadev            696 sound/pci/via82xx.c 			viadev->in_interrupt = c_status;
viadev            698 sound/pci/via82xx.c 				viadev->in_interrupt |= VIA_REG_STAT_ACTIVE;
viadev            704 sound/pci/via82xx.c 			viadev->in_interrupt = 0;
viadev            706 sound/pci/via82xx.c 		outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */
viadev            723 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            734 sound/pci/via82xx.c 		viadev->running = 1;
viadev            739 sound/pci/via82xx.c 		viadev->running = 0;
viadev            743 sound/pci/via82xx.c 		viadev->running = 0;
viadev            746 sound/pci/via82xx.c 		viadev->running = 1;
viadev            751 sound/pci/via82xx.c 	outb(val, VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            753 sound/pci/via82xx.c 		snd_via82xx_channel_reset(chip, viadev);
viadev            766 sound/pci/via82xx.c #define check_invalid_pos(viadev,pos) \
viadev            767 sound/pci/via82xx.c 	((pos) < viadev->lastpos && ((pos) >= viadev->bufsize2 ||\
viadev            768 sound/pci/via82xx.c 				     viadev->lastpos < viadev->bufsize2))
viadev            771 sound/pci/via82xx.c 					   struct viadev *viadev,
viadev            777 sound/pci/via82xx.c 	size = viadev->idx_table[idx].size;
viadev            778 sound/pci/via82xx.c 	base = viadev->idx_table[idx].offset;
viadev            780 sound/pci/via82xx.c 	if (res >= viadev->bufsize)
viadev            781 sound/pci/via82xx.c 		res -= viadev->bufsize;
viadev            788 sound/pci/via82xx.c 		res = viadev->lastpos;
viadev            795 sound/pci/via82xx.c 			int delta = res - viadev->lastpos;
viadev            797 sound/pci/via82xx.c 				delta += viadev->bufsize;
viadev            798 sound/pci/via82xx.c 			if ((unsigned int)delta > viadev->fragsize)
viadev            801 sound/pci/via82xx.c 		if (check_invalid_pos(viadev, res)) {
viadev            805 sound/pci/via82xx.c 				idx, viadev->tbl_entries,
viadev            806 sound/pci/via82xx.c 			       viadev->lastpos, viadev->bufsize2,
viadev            807 sound/pci/via82xx.c 			       viadev->idx_table[idx].offset,
viadev            808 sound/pci/via82xx.c 			       viadev->idx_table[idx].size, count);
viadev            812 sound/pci/via82xx.c 			if (check_invalid_pos(viadev, res)) {
viadev            815 sound/pci/via82xx.c 				res = viadev->lastpos;
viadev            828 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            831 sound/pci/via82xx.c 	if (snd_BUG_ON(!viadev->tbl_entries))
viadev            833 sound/pci/via82xx.c 	if (!(inb(VIADEV_REG(viadev, OFFSET_STATUS)) & VIA_REG_STAT_ACTIVE))
viadev            837 sound/pci/via82xx.c 	count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT)) & 0xffffff;
viadev            841 sound/pci/via82xx.c 	ptr = inl(VIADEV_REG(viadev, OFFSET_CURR_PTR));
viadev            842 sound/pci/via82xx.c 	if (ptr <= (unsigned int)viadev->table.addr)
viadev            845 sound/pci/via82xx.c 		idx = ((ptr - (unsigned int)viadev->table.addr) / 8 - 1) % viadev->tbl_entries;
viadev            846 sound/pci/via82xx.c 	res = calc_linear_pos(chip, viadev, idx, count);
viadev            847 sound/pci/via82xx.c 	viadev->lastpos = res; /* remember the last position */
viadev            859 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            863 sound/pci/via82xx.c 	if (snd_BUG_ON(!viadev->tbl_entries))
viadev            867 sound/pci/via82xx.c 	count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT));
viadev            868 sound/pci/via82xx.c 	status = viadev->in_interrupt;
viadev            870 sound/pci/via82xx.c 		status = inb(VIADEV_REG(viadev, OFFSET_STATUS));
viadev            883 sound/pci/via82xx.c 		if (idx >= viadev->tbl_entries) {
viadev            887 sound/pci/via82xx.c 			       viadev->tbl_entries);
viadev            889 sound/pci/via82xx.c 			res = viadev->lastpos;
viadev            892 sound/pci/via82xx.c 			res = calc_linear_pos(chip, viadev, idx, count);
viadev            895 sound/pci/via82xx.c 		res = viadev->hwptr_done;
viadev            896 sound/pci/via82xx.c 		if (!viadev->in_interrupt) {
viadev            901 sound/pci/via82xx.c 					res += viadev->fragsize;
viadev            906 sound/pci/via82xx.c 	viadev->lastpos = res;
viadev            921 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            927 sound/pci/via82xx.c 	err = build_via_table(viadev, substream, chip->pci,
viadev            943 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            945 sound/pci/via82xx.c 	clean_via_table(viadev, substream, chip->pci);
viadev            954 sound/pci/via82xx.c static void snd_via82xx_set_table_ptr(struct via82xx *chip, struct viadev *viadev)
viadev            957 sound/pci/via82xx.c 	outl((u32)viadev->table.addr, VIADEV_REG(viadev, OFFSET_TABLE_PTR));
viadev            965 sound/pci/via82xx.c static void via686_setup_format(struct via82xx *chip, struct viadev *viadev,
viadev            968 sound/pci/via82xx.c 	snd_via82xx_channel_reset(chip, viadev);
viadev            970 sound/pci/via82xx.c 	snd_via82xx_set_table_ptr(chip, viadev);
viadev            974 sound/pci/via82xx.c 	     ((viadev->reg_offset & 0x10) == 0 ? VIA_REG_TYPE_INT_LSAMPLE : 0) |
viadev            976 sound/pci/via82xx.c 	     VIA_REG_TYPE_INT_FLAG, VIADEV_REG(viadev, OFFSET_TYPE));
viadev            982 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            987 sound/pci/via82xx.c 	via686_setup_format(chip, viadev, runtime);
viadev            994 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            998 sound/pci/via82xx.c 	via686_setup_format(chip, viadev, runtime);
viadev           1028 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev           1039 sound/pci/via82xx.c 	if (chip->spdif_on && viadev->reg_offset == 0x30)
viadev           1048 sound/pci/via82xx.c 	snd_via82xx_channel_reset(chip, viadev);
viadev           1049 sound/pci/via82xx.c 	snd_via82xx_set_table_ptr(chip, viadev);
viadev           1050 sound/pci/via82xx.c 	outb(chip->playback_volume[viadev->reg_offset / 0x10][0],
viadev           1051 sound/pci/via82xx.c 	     VIADEV_REG(viadev, OFS_PLAYBACK_VOLUME_L));
viadev           1052 sound/pci/via82xx.c 	outb(chip->playback_volume[viadev->reg_offset / 0x10][1],
viadev           1053 sound/pci/via82xx.c 	     VIADEV_REG(viadev, OFS_PLAYBACK_VOLUME_R));
viadev           1058 sound/pci/via82xx.c 	     VIADEV_REG(viadev, OFFSET_STOP_IDX));
viadev           1070 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev           1081 sound/pci/via82xx.c 	snd_via82xx_channel_reset(chip, viadev);
viadev           1082 sound/pci/via82xx.c 	snd_via82xx_set_table_ptr(chip, viadev);
viadev           1087 sound/pci/via82xx.c 	outb(fmt, VIADEV_REG(viadev, OFS_MULTPLAY_FORMAT));
viadev           1107 sound/pci/via82xx.c 	outl(0xff000000 | slots, VIADEV_REG(viadev, OFFSET_STOP_IDX));
viadev           1119 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev           1125 sound/pci/via82xx.c 	snd_via82xx_channel_reset(chip, viadev);
viadev           1126 sound/pci/via82xx.c 	snd_via82xx_set_table_ptr(chip, viadev);
viadev           1127 sound/pci/via82xx.c 	outb(VIA_REG_CAPTURE_FIFO_ENABLE, VIADEV_REG(viadev, OFS_CAPTURE_FIFO));
viadev           1131 sound/pci/via82xx.c 	     VIADEV_REG(viadev, OFFSET_STOP_IDX));
viadev           1166 sound/pci/via82xx.c static int snd_via82xx_pcm_open(struct via82xx *chip, struct viadev *viadev,
viadev           1177 sound/pci/via82xx.c 	ratep = &chip->rates[viadev->direction];
viadev           1180 sound/pci/via82xx.c 	if (chip->spdif_on && viadev->reg_offset == 0x30) {
viadev           1184 sound/pci/via82xx.c 	} else if (chip->dxs_fixed && viadev->reg_offset < 0x40) {
viadev           1188 sound/pci/via82xx.c 	} else if (chip->dxs_src && viadev->reg_offset < 0x40) {
viadev           1196 sound/pci/via82xx.c 		int idx = viadev->direction ? AC97_RATES_ADC : AC97_RATES_FRONT_DAC;
viadev           1217 sound/pci/via82xx.c 	runtime->private_data = viadev;
viadev           1218 sound/pci/via82xx.c 	viadev->substream = substream;
viadev           1230 sound/pci/via82xx.c 	struct viadev *viadev = &chip->devs[chip->playback_devno + substream->number];
viadev           1233 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
viadev           1244 sound/pci/via82xx.c 	struct viadev *viadev;
viadev           1248 sound/pci/via82xx.c 	viadev = &chip->devs[chip->playback_devno + substream->number];
viadev           1249 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
viadev           1251 sound/pci/via82xx.c 	stream = viadev->reg_offset / 0x10;
viadev           1272 sound/pci/via82xx.c 	struct viadev *viadev = &chip->devs[chip->multi_devno];
viadev           1286 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
viadev           1302 sound/pci/via82xx.c 	struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
viadev           1304 sound/pci/via82xx.c 	return snd_via82xx_pcm_open(chip, viadev, substream);
viadev           1313 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev           1317 sound/pci/via82xx.c 	ratep = &chip->rates[viadev->direction];
viadev           1324 sound/pci/via82xx.c 		if (! viadev->direction) {
viadev           1335 sound/pci/via82xx.c 	viadev->substream = NULL;
viadev           1342 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
viadev           1345 sound/pci/via82xx.c 	stream = viadev->reg_offset / 0x10;
viadev             64 sound/pci/via82xx_modem.c #define VIADEV_REG(viadev, x) ((viadev)->port + VIA_REG_##x)
viadev            236 sound/pci/via82xx_modem.c 	struct viadev devs[VIA_MAX_MODEM_DEVS];
viadev            264 sound/pci/via82xx_modem.c static int build_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
viadev            338 sound/pci/via82xx_modem.c static int clean_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
viadev            451 sound/pci/via82xx_modem.c static void snd_via82xx_channel_reset(struct via82xx_modem *chip, struct viadev *viadev)
viadev            454 sound/pci/via82xx_modem.c 	     VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            455 sound/pci/via82xx_modem.c 	inb(VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            458 sound/pci/via82xx_modem.c 	outb(0x00, VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            460 sound/pci/via82xx_modem.c 	outb(0x03, VIADEV_REG(viadev, OFFSET_STATUS));
viadev            461 sound/pci/via82xx_modem.c 	outb(0x00, VIADEV_REG(viadev, OFFSET_TYPE)); /* for via686 */
viadev            463 sound/pci/via82xx_modem.c 	viadev->lastpos = 0;
viadev            486 sound/pci/via82xx_modem.c 		struct viadev *viadev = &chip->devs[i];
viadev            487 sound/pci/via82xx_modem.c 		unsigned char c_status = inb(VIADEV_REG(viadev, OFFSET_STATUS));
viadev            491 sound/pci/via82xx_modem.c 		if (viadev->substream && viadev->running) {
viadev            493 sound/pci/via82xx_modem.c 			snd_pcm_period_elapsed(viadev->substream);
viadev            496 sound/pci/via82xx_modem.c 		outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */
viadev            512 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            519 sound/pci/via82xx_modem.c 		viadev->running = 1;
viadev            523 sound/pci/via82xx_modem.c 		viadev->running = 0;
viadev            527 sound/pci/via82xx_modem.c 		viadev->running = 0;
viadev            530 sound/pci/via82xx_modem.c 		viadev->running = 1;
viadev            535 sound/pci/via82xx_modem.c 	outb(val, VIADEV_REG(viadev, OFFSET_CONTROL));
viadev            537 sound/pci/via82xx_modem.c 		snd_via82xx_channel_reset(chip, viadev);
viadev            549 sound/pci/via82xx_modem.c #define check_invalid_pos(viadev,pos) \
viadev            550 sound/pci/via82xx_modem.c 	((pos) < viadev->lastpos && ((pos) >= viadev->bufsize2 ||\
viadev            551 sound/pci/via82xx_modem.c 				     viadev->lastpos < viadev->bufsize2))
viadev            554 sound/pci/via82xx_modem.c 					   struct viadev *viadev,
viadev            560 sound/pci/via82xx_modem.c 	size = viadev->idx_table[idx].size;
viadev            561 sound/pci/via82xx_modem.c 	res = viadev->idx_table[idx].offset + size - count;
viadev            568 sound/pci/via82xx_modem.c 		res = viadev->lastpos;
viadev            569 sound/pci/via82xx_modem.c 	} else if (check_invalid_pos(viadev, res)) {
viadev            573 sound/pci/via82xx_modem.c 			idx, viadev->tbl_entries, viadev->lastpos,
viadev            574 sound/pci/via82xx_modem.c 		       viadev->bufsize2, viadev->idx_table[idx].offset,
viadev            575 sound/pci/via82xx_modem.c 		       viadev->idx_table[idx].size, count);
viadev            580 sound/pci/via82xx_modem.c 			res = viadev->lastpos;
viadev            584 sound/pci/via82xx_modem.c 				res = viadev->idx_table[idx].offset;
viadev            589 sound/pci/via82xx_modem.c 				res = viadev->idx_table[idx].offset + size;
viadev            590 sound/pci/via82xx_modem.c 			if (check_invalid_pos(viadev, res)) {
viadev            593 sound/pci/via82xx_modem.c 				res = viadev->lastpos;
viadev            597 sound/pci/via82xx_modem.c 	viadev->lastpos = res; /* remember the last position */
viadev            598 sound/pci/via82xx_modem.c 	if (res >= viadev->bufsize)
viadev            599 sound/pci/via82xx_modem.c 		res -= viadev->bufsize;
viadev            609 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            612 sound/pci/via82xx_modem.c 	if (snd_BUG_ON(!viadev->tbl_entries))
viadev            614 sound/pci/via82xx_modem.c 	if (!(inb(VIADEV_REG(viadev, OFFSET_STATUS)) & VIA_REG_STAT_ACTIVE))
viadev            618 sound/pci/via82xx_modem.c 	count = inl(VIADEV_REG(viadev, OFFSET_CURR_COUNT)) & 0xffffff;
viadev            622 sound/pci/via82xx_modem.c 	ptr = inl(VIADEV_REG(viadev, OFFSET_CURR_PTR));
viadev            623 sound/pci/via82xx_modem.c 	if (ptr <= (unsigned int)viadev->table.addr)
viadev            626 sound/pci/via82xx_modem.c 		idx = ((ptr - (unsigned int)viadev->table.addr) / 8 - 1) %
viadev            627 sound/pci/via82xx_modem.c 			viadev->tbl_entries;
viadev            628 sound/pci/via82xx_modem.c 	res = calc_linear_pos(chip, viadev, idx, count);
viadev            642 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            648 sound/pci/via82xx_modem.c 	err = build_via_table(viadev, substream, chip->pci,
viadev            667 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            669 sound/pci/via82xx_modem.c 	clean_via_table(viadev, substream, chip->pci);
viadev            678 sound/pci/via82xx_modem.c static void snd_via82xx_set_table_ptr(struct via82xx_modem *chip, struct viadev *viadev)
viadev            681 sound/pci/via82xx_modem.c 	outl((u32)viadev->table.addr, VIADEV_REG(viadev, OFFSET_TABLE_PTR));
viadev            692 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            694 sound/pci/via82xx_modem.c 	snd_via82xx_channel_reset(chip, viadev);
viadev            696 sound/pci/via82xx_modem.c 	snd_via82xx_set_table_ptr(chip, viadev);
viadev            698 sound/pci/via82xx_modem.c 	     VIADEV_REG(viadev, OFFSET_TYPE));
viadev            730 sound/pci/via82xx_modem.c static int snd_via82xx_modem_pcm_open(struct via82xx_modem *chip, struct viadev *viadev,
viadev            753 sound/pci/via82xx_modem.c 	runtime->private_data = viadev;
viadev            754 sound/pci/via82xx_modem.c 	viadev->substream = substream;
viadev            766 sound/pci/via82xx_modem.c 	struct viadev *viadev = &chip->devs[chip->playback_devno + substream->number];
viadev            768 sound/pci/via82xx_modem.c 	return snd_via82xx_modem_pcm_open(chip, viadev, substream);
viadev            777 sound/pci/via82xx_modem.c 	struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
viadev            779 sound/pci/via82xx_modem.c 	return snd_via82xx_modem_pcm_open(chip, viadev, substream);
viadev            787 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
viadev            789 sound/pci/via82xx_modem.c 	viadev->substream = NULL;