• 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/

Lines Matching refs:fh

408 	struct viu_fh *fh = vq->priv_data;
410 *size = fh->width * fh->height * fh->fmt->depth >> 3;
492 struct viu_fh *fh = vq->priv_data;
496 BUG_ON(fh->fmt == NULL);
498 if (fh->width < 48 || fh->width > norm_maxw() ||
499 fh->height < 32 || fh->height > norm_maxh())
501 buf->vb.size = (fh->width * fh->height * fh->fmt->depth) >> 3;
505 if (buf->fmt != fh->fmt ||
506 buf->vb.width != fh->width ||
507 buf->vb.height != fh->height ||
509 buf->fmt = fh->fmt;
510 buf->vb.width = fh->width;
511 buf->vb.height = fh->height;
520 buf->vb.width = fh->width;
521 buf->vb.height = fh->height;
523 buf->fmt = fh->fmt;
537 struct viu_fh *fh = vq->priv_data;
538 struct viu_dev *dev = fh->dev;
588 struct viu_fh *fh = vq->priv_data;
589 struct viu_dev *dev = (struct viu_dev *)fh->dev;
634 struct viu_fh *fh = priv;
636 f->fmt.pix.width = fh->width;
637 f->fmt.pix.height = fh->height;
638 f->fmt.pix.field = fh->vb_vidq.field;
639 f->fmt.pix.pixelformat = fh->fmt->pixelformat;
641 (f->fmt.pix.width * fh->fmt->depth) >> 3;
642 f->fmt.pix.sizeimage = fh->sizeimage;
691 struct viu_fh *fh = priv;
694 ret = vidioc_try_fmt_cap(file, fh, f);
698 fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat);
699 fh->width = f->fmt.pix.width;
700 fh->height = f->fmt.pix.height;
701 fh->sizeimage = f->fmt.pix.sizeimage;
702 fh->vb_vidq.field = f->fmt.pix.field;
703 fh->type = f->type;
704 dprintk(1, "set to pixelformat '%4.6s'\n", (char *)&fh->fmt->name);
711 struct viu_fh *fh = priv;
713 f->fmt.win = fh->win;
766 static int viu_start_preview(struct viu_dev *dev, struct viu_fh *fh)
771 fh->win.w.width, fh->win.w.height, dev->ovfmt->name);
776 reg_val.picture_count = (fh->win.w.height / 2) << 16 |
777 fh->win.w.width;
784 reg_val.dma_inc = fh->win.w.width * 2;
788 reg_val.dma_inc = fh->win.w.width * 4;
796 dev->ovfield = fh->win.field;
816 struct viu_fh *fh = priv;
817 struct viu_dev *dev = (struct viu_dev *)fh->dev;
826 fh->win = f->fmt.win;
829 viu_start_preview(dev, fh);
843 struct viu_fh *fh = priv;
844 struct viu_dev *dev = fh->dev;
854 struct viu_fh *fh = priv;
855 struct viu_dev *dev = fh->dev;
880 struct viu_fh *fh = priv;
882 return videobuf_reqbufs(&fh->vb_vidq, p);
888 struct viu_fh *fh = priv;
890 return videobuf_querybuf(&fh->vb_vidq, p);
895 struct viu_fh *fh = priv;
897 return videobuf_qbuf(&fh->vb_vidq, p);
902 struct viu_fh *fh = priv;
904 return videobuf_dqbuf(&fh->vb_vidq, p,
910 struct viu_fh *fh = priv;
912 if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
914 if (fh->type != i)
917 return videobuf_streamon(&fh->vb_vidq);
922 struct viu_fh *fh = priv;
924 if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
926 if (fh->type != i)
929 return videobuf_streamoff(&fh->vb_vidq);
937 struct viu_fh *fh = priv;
939 decoder_call(fh->dev, core, s_std, *id);
947 struct viu_fh *fh = priv;
953 inp->std = fh->dev->vdev->tvnorms;
966 struct viu_fh *fh = priv;
971 decoder_call(fh->dev, video, s_routing, i, 0, 0);
1227 struct viu_fh *fh;
1247 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
1248 if (!fh) {
1253 file->private_data = fh;
1254 fh->dev = dev;
1256 fh->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
1257 fh->fmt = format_by_fourcc(V4L2_PIX_FMT_RGB32);
1258 fh->width = norm_maxw();
1259 fh->height = norm_maxh();
1260 dev->crop_current.width = fh->width;
1261 dev->crop_current.height = fh->height;
1267 dprintk(1, "Open: fh=0x%08lx, dev=0x%08lx, dev->vidq=0x%08lx\n",
1268 (unsigned long)fh, (unsigned long)dev,
1286 spin_lock_init(&fh->vbq_lock);
1287 videobuf_queue_dma_contig_init(&fh->vb_vidq, &viu_video_qops,
1288 dev->dev, &fh->vbq_lock,
1289 fh->type, V4L2_FIELD_INTERLACED,
1290 sizeof(struct viu_buf), fh);
1297 struct viu_fh *fh = file->private_data;
1298 struct viu_dev *dev = fh->dev;
1305 if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
1307 ret = videobuf_read_stream(&fh->vb_vidq, data, count,
1316 struct viu_fh *fh = file->private_data;
1317 struct videobuf_queue *q = &fh->vb_vidq;
1319 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type)
1327 struct viu_fh *fh = file->private_data;
1328 struct viu_dev *dev = fh->dev;
1332 videobuf_stop(&fh->vb_vidq);
1334 kfree(fh);
1358 struct viu_fh *fh = file->private_data;
1363 ret = videobuf_mmap_mapper(&fh->vb_vidq, vma);