• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/cx231xx/

Lines Matching refs:fh

689 	struct cx231xx_fh *fh = vq->priv_data;
690 struct cx231xx *dev = fh->dev;
693 *size = (fh->dev->width * fh->dev->height * dev->format->depth + 7)>>3;
703 f.type = fh->radio ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
713 struct cx231xx_fh *fh = vq->priv_data;
714 struct cx231xx *dev = fh->dev;
742 struct cx231xx_fh *fh = vq->priv_data;
745 struct cx231xx *dev = fh->dev;
749 buf->vb.size = (fh->dev->width * fh->dev->height * dev->format->depth
788 struct cx231xx_fh *fh = vq->priv_data;
789 struct cx231xx *dev = fh->dev;
802 struct cx231xx_fh *fh = vq->priv_data;
803 struct cx231xx *dev = (struct cx231xx *)fh->dev;
837 static int res_get(struct cx231xx_fh *fh)
839 struct cx231xx *dev = fh->dev;
843 if (fh->stream_on)
846 if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
850 } else if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
857 fh->stream_on = 1;
862 static int res_check(struct cx231xx_fh *fh)
864 return fh->stream_on;
867 static void res_free(struct cx231xx_fh *fh)
869 struct cx231xx *dev = fh->dev;
871 fh->stream_on = 0;
873 if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
875 if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE)
917 struct cx231xx_fh *fh = priv;
918 struct cx231xx *dev = fh->dev;
950 struct cx231xx_fh *fh = priv;
951 struct cx231xx *dev = fh->dev;
989 struct cx231xx_fh *fh = priv;
990 struct cx231xx *dev = fh->dev;
1009 if (videobuf_queue_is_busy(&fh->vb_vidq)) {
1015 if (dev->stream_on && !fh->stream_on) {
1016 cx231xx_errdev("%s device in use by another fh\n", __func__);
1041 struct cx231xx_fh *fh = priv;
1042 struct cx231xx *dev = fh->dev;
1050 struct cx231xx_fh *fh = priv;
1051 struct cx231xx *dev = fh->dev;
1098 struct cx231xx_fh *fh = priv;
1099 struct cx231xx *dev = fh->dev;
1124 struct cx231xx_fh *fh = priv;
1125 struct cx231xx *dev = fh->dev;
1134 struct cx231xx_fh *fh = priv;
1135 struct cx231xx *dev = fh->dev;
1157 struct cx231xx_fh *fh = priv;
1158 struct cx231xx *dev = fh->dev;
1179 struct cx231xx_fh *fh = priv;
1180 struct cx231xx *dev = fh->dev;
1196 struct cx231xx_fh *fh = priv;
1197 struct cx231xx *dev = fh->dev;
1240 struct cx231xx_fh *fh = priv;
1241 struct cx231xx *dev = fh->dev;
1257 struct cx231xx_fh *fh = priv;
1258 struct cx231xx *dev = fh->dev;
1273 struct cx231xx_fh *fh = priv;
1274 struct cx231xx *dev = fh->dev;
1296 struct cx231xx_fh *fh = priv;
1297 struct cx231xx *dev = fh->dev;
1312 struct cx231xx_fh *fh = priv;
1313 struct cx231xx *dev = fh->dev;
1316 f->type = fh->radio ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
1329 struct cx231xx_fh *fh = priv;
1330 struct cx231xx *dev = fh->dev;
1340 if (unlikely(0 == fh->radio && f->type != V4L2_TUNER_ANALOG_TV))
1342 if (unlikely(1 == fh->radio && f->type != V4L2_TUNER_RADIO))
1386 struct cx231xx_fh *fh = priv;
1387 struct cx231xx *dev = fh->dev;
1458 struct cx231xx_fh *fh = priv;
1459 struct cx231xx *dev = fh->dev;
1542 struct cx231xx_fh *fh = priv;
1543 struct cx231xx *dev = fh->dev;
1562 struct cx231xx_fh *fh = priv;
1563 struct cx231xx *dev = fh->dev;
1571 rc = res_get(fh);
1574 rc = videobuf_streamon(&fh->vb_vidq);
1586 struct cx231xx_fh *fh = priv;
1587 struct cx231xx *dev = fh->dev;
1594 if ((fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) &&
1595 (fh->type != V4L2_BUF_TYPE_VBI_CAPTURE))
1597 if (type != fh->type)
1604 videobuf_streamoff(&fh->vb_vidq);
1605 res_free(fh);
1615 struct cx231xx_fh *fh = priv;
1616 struct cx231xx *dev = fh->dev;
1652 struct cx231xx_fh *fh = priv;
1653 struct cx231xx *dev = fh->dev;
1676 struct cx231xx_fh *fh = priv;
1677 struct cx231xx *dev = fh->dev;
1699 struct cx231xx_fh *fh = priv;
1700 struct cx231xx *dev = fh->dev;
1722 struct cx231xx_fh *fh = priv;
1723 struct cx231xx *dev = fh->dev;
1725 if (dev->vbi_stream_on && !fh->stream_on) {
1726 cx231xx_errdev("%s device in use by another fh\n", __func__);
1752 struct cx231xx_fh *fh = priv;
1753 struct cx231xx *dev = fh->dev;
1760 return videobuf_reqbufs(&fh->vb_vidq, rb);
1765 struct cx231xx_fh *fh = priv;
1766 struct cx231xx *dev = fh->dev;
1773 return videobuf_querybuf(&fh->vb_vidq, b);
1778 struct cx231xx_fh *fh = priv;
1779 struct cx231xx *dev = fh->dev;
1786 return videobuf_qbuf(&fh->vb_vidq, b);
1791 struct cx231xx_fh *fh = priv;
1792 struct cx231xx *dev = fh->dev;
1799 return videobuf_dqbuf(&fh->vb_vidq, b, file->f_flags & O_NONBLOCK);
1805 struct cx231xx_fh *fh = priv;
1807 return videobuf_cgmbuf(&fh->vb_vidq, mbuf, 8);
1879 static int radio_s_audio(struct file *file, void *fh, struct v4l2_audio *a)
1884 static int radio_s_input(struct file *file, void *fh, unsigned int i)
1918 struct cx231xx_fh *fh;
1940 fh = kzalloc(sizeof(struct cx231xx_fh), GFP_KERNEL);
1941 if (!fh) {
1946 fh->dev = dev;
1947 fh->radio = radio;
1948 fh->type = fh_type;
1949 filp->private_data = fh;
1951 if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) {
1974 if (fh->radio) {
1984 if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
1985 videobuf_queue_vmalloc_init(&fh->vb_vidq, &cx231xx_video_qops,
1987 fh->type, V4L2_FIELD_INTERLACED,
1988 sizeof(struct cx231xx_buffer), fh);
1989 if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
1994 videobuf_queue_vmalloc_init(&fh->vb_vidq, &cx231xx_vbi_qops,
1996 fh->type, V4L2_FIELD_SEQ_TB,
1997 sizeof(struct cx231xx_buffer), fh);
2048 struct cx231xx_fh *fh = filp->private_data;
2049 struct cx231xx *dev = fh->dev;
2055 if (res_check(fh))
2056 res_free(fh);
2058 if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
2059 videobuf_stop(&fh->vb_vidq);
2060 videobuf_mmap_free(&fh->vb_vidq);
2080 kfree(fh);
2088 videobuf_stop(&fh->vb_vidq);
2089 videobuf_mmap_free(&fh->vb_vidq);
2110 kfree(fh);
2125 struct cx231xx_fh *fh = filp->private_data;
2126 struct cx231xx *dev = fh->dev;
2133 if ((fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ||
2134 (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE)) {
2136 rc = res_get(fh);
2142 return videobuf_read_stream(&fh->vb_vidq, buf, count, pos, 0,
2154 struct cx231xx_fh *fh = filp->private_data;
2155 struct cx231xx *dev = fh->dev;
2163 rc = res_get(fh);
2169 if ((V4L2_BUF_TYPE_VIDEO_CAPTURE == fh->type) ||
2170 (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type))
2171 return videobuf_poll_stream(filp, &fh->vb_vidq, wait);
2181 struct cx231xx_fh *fh = filp->private_data;
2182 struct cx231xx *dev = fh->dev;
2190 rc = res_get(fh);
2196 rc = videobuf_mmap_mapper(&fh->vb_vidq, vma);