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

Lines Matching refs:fh

653 	struct tm6000_fh *fh = vq->priv_data;
655 *size = fh->fmt->depth * fh->width * fh->height >> 3;
671 struct tm6000_fh *fh = vq->priv_data;
672 struct tm6000_core *dev = fh->dev;
700 struct tm6000_fh *fh = vq->priv_data;
702 struct tm6000_core *dev = fh->dev;
705 BUG_ON(NULL == fh->fmt);
709 buf->vb.size = fh->fmt->depth*fh->width*fh->height >> 3;
713 if (buf->fmt != fh->fmt ||
714 buf->vb.width != fh->width ||
715 buf->vb.height != fh->height ||
717 buf->fmt = fh->fmt;
718 buf->vb.width = fh->width;
719 buf->vb.height = fh->height;
756 struct tm6000_fh *fh = vq->priv_data;
757 struct tm6000_core *dev = fh->dev;
782 static int res_get(struct tm6000_core *dev, struct tm6000_fh *fh)
803 static void res_free(struct tm6000_core *dev, struct tm6000_fh *fh)
844 struct tm6000_fh *fh=priv;
846 f->fmt.pix.width = fh->width;
847 f->fmt.pix.height = fh->height;
848 f->fmt.pix.field = fh->vb_vidq.field;
849 f->fmt.pix.pixelformat = fh->fmt->fourcc;
851 (f->fmt.pix.width * fh->fmt->depth) >> 3;
912 struct tm6000_fh *fh=priv;
913 struct tm6000_core *dev = fh->dev;
914 int ret = vidioc_try_fmt_vid_cap(file,fh,f);
918 fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat);
919 fh->width = f->fmt.pix.width;
920 fh->height = f->fmt.pix.height;
921 fh->vb_vidq.field = f->fmt.pix.field;
922 fh->type = f->type;
934 struct tm6000_fh *fh=priv;
936 return (videobuf_reqbufs(&fh->vb_vidq, p));
942 struct tm6000_fh *fh=priv;
944 return (videobuf_querybuf(&fh->vb_vidq, p));
949 struct tm6000_fh *fh=priv;
951 return (videobuf_qbuf(&fh->vb_vidq, p));
956 struct tm6000_fh *fh=priv;
958 return (videobuf_dqbuf(&fh->vb_vidq, p,
965 struct tm6000_fh *fh=priv;
967 return videobuf_cgmbuf (&fh->vb_vidq, mbuf, 8);
973 struct tm6000_fh *fh=priv;
974 struct tm6000_core *dev = fh->dev;
976 if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
978 if (i != fh->type)
981 if (!res_get(dev,fh))
983 return (videobuf_streamon(&fh->vb_vidq));
988 struct tm6000_fh *fh=priv;
989 struct tm6000_core *dev = fh->dev;
991 if (fh->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
993 if (i != fh->type)
996 videobuf_streamoff(&fh->vb_vidq);
997 res_free(dev,fh);
1005 struct tm6000_fh *fh=priv;
1006 struct tm6000_core *dev = fh->dev;
1010 fh->width = dev->width;
1011 fh->height = dev->height;
1047 struct tm6000_fh *fh=priv;
1048 struct tm6000_core *dev = fh->dev;
1056 struct tm6000_fh *fh=priv;
1057 struct tm6000_core *dev = fh->dev;
1104 struct tm6000_fh *fh=priv;
1105 struct tm6000_core *dev = fh->dev;
1135 struct tm6000_fh *fh =priv;
1136 struct tm6000_core *dev = fh->dev;
1159 struct tm6000_fh *fh =priv;
1160 struct tm6000_core *dev = fh->dev;
1179 struct tm6000_fh *fh =priv;
1180 struct tm6000_core *dev = fh->dev;
1193 struct tm6000_fh *fh =priv;
1194 struct tm6000_core *dev = fh->dev;
1210 struct tm6000_fh *fh =priv;
1211 struct tm6000_core *dev = fh->dev;
1237 struct tm6000_fh *fh;
1256 fh = kzalloc(sizeof(*fh),GFP_KERNEL);
1257 if (NULL == fh) {
1262 file->private_data = fh;
1263 fh->dev = dev;
1265 fh->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
1268 fh->fmt = format_by_fourcc(dev->fourcc);
1272 fh->width = dev->width;
1273 fh->height = dev->height;
1275 dprintk(dev, V4L2_DEBUG_OPEN, "Open: fh=0x%08lx, dev=0x%08lx, "
1277 (unsigned long)fh,(unsigned long)dev,(unsigned long)&dev->vidq);
1296 videobuf_queue_vmalloc_init(&fh->vb_vidq, &tm6000_video_qops,
1298 fh->type,
1300 sizeof(struct tm6000_buffer),fh);
1308 struct tm6000_fh *fh = file->private_data;
1310 if (fh->type==V4L2_BUF_TYPE_VIDEO_CAPTURE) {
1311 if (res_locked(fh->dev))
1314 return videobuf_read_stream(&fh->vb_vidq, data, count, pos, 0,
1323 struct tm6000_fh *fh = file->private_data;
1326 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type)
1329 if (res_get(fh->dev,fh)) {
1331 if (list_empty(&fh->vb_vidq.stream))
1333 buf = list_entry(fh->vb_vidq.stream.next,struct tm6000_buffer,vb.stream);
1336 return videobuf_poll_stream(file, &fh->vb_vidq,
1348 struct tm6000_fh *fh = file->private_data;
1349 struct tm6000_core *dev = fh->dev;
1359 videobuf_mmap_free(&fh->vb_vidq);
1362 kfree (fh);
1369 struct tm6000_fh *fh = file->private_data;
1372 ret=videobuf_mmap_mapper(&fh->vb_vidq, vma);