• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/media/video/

Lines Matching defs:fh

356 	struct omap24xxcam_fh *fh =
365 dev_dbg(fh->cam->dev, "sglen is %d for buffer %d\n",
392 struct omap24xxcam_fh *fh = cam->streaming->private_data;
405 vb->field_count = atomic_add_return(2, &fh->field_count);
408 if (!atomic_read(&fh->cam->in_reset)) {
444 struct omap24xxcam_fh *fh = vbq->priv_data;
452 *size = fh->pix.sizeimage;
454 /* accessing fh->cam->capture_mem is ok, it's constant */
455 if (*size * *cnt > fh->cam->capture_mem)
456 *cnt = fh->cam->capture_mem / *size;
481 struct omap24xxcam_fh *fh = vbq->priv_data;
490 if (fh->pix.sizeimage > vb->bsize) {
494 vb->size = fh->pix.sizeimage;
501 if (fh->pix.sizeimage > vb->size) {
509 vb->size = fh->pix.sizeimage;
513 vb->size = fh->pix.sizeimage;
520 vb->width = fh->pix.width;
521 vb->height = fh->pix.height;
546 struct omap24xxcam_fh *fh = vbq->priv_data;
547 struct omap24xxcam_device *cam = fh->cam;
554 err = omap24xxcam_sgdma_queue(&fh->cam->sgdma,
981 static int vidioc_querycap(struct file *file, void *fh,
984 struct omap24xxcam_fh *ofh = fh;
995 static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh,
998 struct omap24xxcam_fh *ofh = fh;
1007 static int vidioc_g_fmt_vid_cap(struct file *file, void *fh,
1010 struct omap24xxcam_fh *ofh = fh;
1021 static int vidioc_s_fmt_vid_cap(struct file *file, void *fh,
1024 struct omap24xxcam_fh *ofh = fh;
1046 vidioc_g_fmt_vid_cap(file, fh, f);
1051 static int vidioc_try_fmt_vid_cap(struct file *file, void *fh,
1054 struct omap24xxcam_fh *ofh = fh;
1065 static int vidioc_reqbufs(struct file *file, void *fh,
1068 struct omap24xxcam_fh *ofh = fh;
1098 static int vidioc_querybuf(struct file *file, void *fh,
1101 struct omap24xxcam_fh *ofh = fh;
1106 static int vidioc_qbuf(struct file *file, void *fh, struct v4l2_buffer *b)
1108 struct omap24xxcam_fh *ofh = fh;
1113 static int vidioc_dqbuf(struct file *file, void *fh, struct v4l2_buffer *b)
1115 struct omap24xxcam_fh *ofh = fh;
1156 static int vidioc_streamon(struct file *file, void *fh, enum v4l2_buf_type i)
1158 struct omap24xxcam_fh *ofh = fh;
1186 static int vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type i)
1188 struct omap24xxcam_fh *ofh = fh;
1210 static int vidioc_enum_input(struct file *file, void *fh,
1222 static int vidioc_g_input(struct file *file, void *fh, unsigned int *i)
1229 static int vidioc_s_input(struct file *file, void *fh, unsigned int i)
1237 static int vidioc_queryctrl(struct file *file, void *fh,
1240 struct omap24xxcam_fh *ofh = fh;
1249 static int vidioc_g_ctrl(struct file *file, void *fh,
1252 struct omap24xxcam_fh *ofh = fh;
1263 static int vidioc_s_ctrl(struct file *file, void *fh,
1266 struct omap24xxcam_fh *ofh = fh;
1277 static int vidioc_g_parm(struct file *file, void *fh,
1279 struct omap24xxcam_fh *ofh = fh;
1290 static int vidioc_s_parm(struct file *file, void *fh,
1293 struct omap24xxcam_fh *ofh = fh;
1336 struct omap24xxcam_fh *fh = file->private_data;
1337 struct omap24xxcam_device *cam = fh->cam;
1347 mutex_lock(&fh->vbq.vb_lock);
1348 if (list_empty(&fh->vbq.stream)) {
1349 mutex_unlock(&fh->vbq.vb_lock);
1352 vb = list_entry(fh->vbq.stream.next, struct videobuf_buffer, stream);
1353 mutex_unlock(&fh->vbq.vb_lock);
1366 struct omap24xxcam_fh *fh = file->private_data;
1367 struct omap24xxcam_device *cam = fh->cam;
1368 struct videobuf_queue *vbq = &fh->vbq;
1424 struct omap24xxcam_fh *fh = file->private_data;
1428 rval = videobuf_mmap_mapper(&fh->vbq, vma);
1449 struct omap24xxcam_fh *fh;
1455 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
1456 if (fh == NULL)
1474 fh->cam = cam;
1478 fh->pix = format.fmt.pix;
1480 file->private_data = fh;
1482 spin_lock_init(&fh->vbq_lock);
1484 videobuf_queue_sg_init(&fh->vbq, &omap24xxcam_vbq_ops, NULL,
1485 &fh->vbq_lock, V4L2_BUF_TYPE_VIDEO_CAPTURE,
1487 sizeof(struct videobuf_buffer), fh);
1496 kfree(fh);
1503 struct omap24xxcam_fh *fh = file->private_data;
1504 struct omap24xxcam_device *cam = fh->cam;
1511 videobuf_streamoff(&fh->vbq);
1524 omap24xxcam_vbq_free_mmap_buffers(&fh->vbq);
1544 kfree(fh);