Lines Matching refs:channels
230 if (dev->channels[fh->channel_id].resources & bit) {
237 dev->channels[fh->channel_id].resources |= bit;
250 return fh->dev->channels[fh->channel_id].resources & bit;
260 dev->channels[fh->channel_id].resources &= ~bits;
367 struct cx25821_dmaqueue *q = &dev->channels[channel->i].vidq;
393 struct sram_channel *channel = dev->channels[chan_num].sram_channels;
414 &dev->channels[channel->i].vidq, count);
424 &dev->channels[channel->i].vidq,
448 if (dev->channels[chan_num].video_dev) {
449 if (video_is_registered(dev->channels[chan_num].video_dev))
451 dev->channels[chan_num].video_dev);
454 dev->channels[chan_num].video_dev);
456 dev->channels[chan_num].video_dev = NULL;
459 &dev->channels[chan_num].vidq.stopper);
486 &dev->channels[i].vidq.stopper,
487 dev->channels[i].sram_channels->dma_ctl,
490 dev->channels[i].sram_channels = &cx25821_sram_channels[i];
491 dev->channels[i].video_dev = NULL;
492 dev->channels[i].resources = 0;
494 cx_write(dev->channels[i].sram_channels->int_stat,
497 INIT_LIST_HEAD(&dev->channels[i].vidq.active);
498 INIT_LIST_HEAD(&dev->channels[i].vidq.queued);
500 dev->channels[i].timeout_data.dev = dev;
501 dev->channels[i].timeout_data.channel =
503 dev->channels[i].vidq.timeout.function =
505 dev->channels[i].vidq.timeout.data =
506 (unsigned long)&dev->channels[i].timeout_data;
507 init_timer(&dev->channels[i].vidq.timeout);
510 dev->channels[i].video_dev = cx25821_vdev_init(dev,
513 err = video_register_device(dev->channels[i].video_dev,
606 if (dev->channels[channel_opened]
612 if (dev->channels[channel_opened]
619 if (dev->channels[channel_opened]
626 dev->channels[channel_opened].
730 struct cx25821_dmaqueue *q = &dev->channels[fh->channel_id].vidq;
748 dev->channels[fh->channel_id].
822 if (h->channels[i].video_dev &&
823 h->channels[i].video_dev->minor == minor) {
849 (dev->channels[ch_id].pixel_formats ==
853 v4l2_prio_open(&dev->channels[ch_id].prio, &fh->prio);
910 if (dev && dev->channels[fh->channel_id]
947 v4l2_prio_close(&dev->channels[fh->channel_id].prio, fh->prio);
1000 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1033 dev->channels[fh->channel_id].use_cif_resolution = 1;
1035 dev->channels[fh->channel_id].use_cif_resolution = 0;
1037 dev->channels[fh->channel_id].cif_width = fh->width;
1055 p->sequence = dev->channels[fh->channel_id].vidq.count;
1066 struct sram_channel *sram_ch = dev->channels[fh->channel_id]
1090 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1238 *p = v4l2_prio_max(&dev->channels[fh->channel_id].prio);
1248 return v4l2_prio_change(&dev->channels[fh->channel_id]
1262 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1333 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1370 /* When changing channels it is required to reset TVAUDIO */
1386 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1454 err = v4l2_prio_check(&dev->channels[fh->channel_id]
1563 ctl->value = dev->channels[fh->channel_id].ctl_bright;
1566 ctl->value = dev->channels[fh->channel_id].ctl_hue;
1569 ctl->value = dev->channels[fh->channel_id].ctl_contrast;
1572 ctl->value = dev->channels[fh->channel_id].ctl_saturation;
1606 dev->channels[chan_num].ctl_bright = ctl->value;
1610 dev->channels[chan_num].ctl_hue = ctl->value;
1614 dev->channels[chan_num].ctl_contrast = ctl->value;
1618 dev->channels[chan_num].ctl_saturation = ctl->value;
1664 err = v4l2_prio_check(&dev->channels[fh->channel_id].
1926 dev->channels[selected_channel].
1928 dev->channels[selected_channel].cif_width = width;
1931 dev->channels[i].use_cif_resolution =
1933 dev->channels[i].cif_width = width;