• Home
  • Raw
  • Download

Lines Matching refs:fh

1226 	struct cx231xx_fh *fh = q->priv_data;  in bb_buf_setup()  local
1228 fh->dev->ts1.ts_packet_size = mpeglinesize; in bb_buf_setup()
1229 fh->dev->ts1.ts_packet_count = mpeglines; in bb_buf_setup()
1231 *size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; in bb_buf_setup()
1239 struct cx231xx_fh *fh = vq->priv_data; in free_buffer() local
1240 struct cx231xx *dev = fh->dev; in free_buffer()
1392 struct cx231xx_fh *fh = q->priv_data; in bb_buf_prepare() local
1395 struct cx231xx *dev = fh->dev; in bb_buf_prepare()
1397 int size = fh->dev->ts1.ts_packet_size * fh->dev->ts1.ts_packet_count; in bb_buf_prepare()
1401 buf->vb.width = fh->dev->ts1.ts_packet_size; in bb_buf_prepare()
1402 buf->vb.height = fh->dev->ts1.ts_packet_count; in bb_buf_prepare()
1454 struct cx231xx_fh *fh = q->priv_data; in bb_buf_queue() local
1458 struct cx231xx *dev = fh->dev; in bb_buf_queue()
1488 struct cx231xx_fh *fh = file->private_data; in vidioc_g_std() local
1489 struct cx231xx *dev = fh->dev; in vidioc_g_std()
1497 struct cx231xx_fh *fh = file->private_data; in vidioc_s_std() local
1498 struct cx231xx *dev = fh->dev; in vidioc_s_std()
1530 struct cx231xx_fh *fh = file->private_data; in vidioc_s_ctrl() local
1531 struct cx231xx *dev = fh->dev; in vidioc_s_ctrl()
1555 struct cx231xx_fh *fh = file->private_data; in vidioc_g_fmt_vid_cap() local
1556 struct cx231xx *dev = fh->dev; in vidioc_g_fmt_vid_cap()
1575 struct cx231xx_fh *fh = file->private_data; in vidioc_try_fmt_vid_cap() local
1576 struct cx231xx *dev = fh->dev; in vidioc_try_fmt_vid_cap()
1593 struct cx231xx_fh *fh = file->private_data; in vidioc_reqbufs() local
1595 return videobuf_reqbufs(&fh->vidq, p); in vidioc_reqbufs()
1601 struct cx231xx_fh *fh = file->private_data; in vidioc_querybuf() local
1603 return videobuf_querybuf(&fh->vidq, p); in vidioc_querybuf()
1609 struct cx231xx_fh *fh = file->private_data; in vidioc_qbuf() local
1611 return videobuf_qbuf(&fh->vidq, p); in vidioc_qbuf()
1616 struct cx231xx_fh *fh = priv; in vidioc_dqbuf() local
1618 return videobuf_dqbuf(&fh->vidq, b, file->f_flags & O_NONBLOCK); in vidioc_dqbuf()
1625 struct cx231xx_fh *fh = file->private_data; in vidioc_streamon() local
1626 struct cx231xx *dev = fh->dev; in vidioc_streamon()
1643 return videobuf_streamon(&fh->vidq); in vidioc_streamon()
1648 struct cx231xx_fh *fh = file->private_data; in vidioc_streamoff() local
1650 return videobuf_streamoff(&fh->vidq); in vidioc_streamoff()
1655 struct cx231xx_fh *fh = priv; in vidioc_log_status() local
1656 struct cx231xx *dev = fh->dev; in vidioc_log_status()
1666 struct cx231xx_fh *fh; in mpeg_open() local
1674 fh = kzalloc(sizeof(*fh), GFP_KERNEL); in mpeg_open()
1675 if (NULL == fh) { in mpeg_open()
1680 file->private_data = fh; in mpeg_open()
1681 v4l2_fh_init(&fh->fh, vdev); in mpeg_open()
1682 fh->dev = dev; in mpeg_open()
1685 videobuf_queue_vmalloc_init(&fh->vidq, &cx231xx_qops, in mpeg_open()
1688 sizeof(struct cx231xx_buffer), fh, &dev->lock); in mpeg_open()
1704 v4l2_fh_add(&fh->fh); in mpeg_open()
1712 struct cx231xx_fh *fh = file->private_data; in mpeg_release() local
1713 struct cx231xx *dev = fh->dev; in mpeg_release()
1728 cx231xx_api_cmd(fh->dev, CX2341X_ENC_STOP_CAPTURE, 3, 0, in mpeg_release()
1734 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in mpeg_release()
1744 if (fh->vidq.streaming) in mpeg_release()
1745 videobuf_streamoff(&fh->vidq); in mpeg_release()
1746 if (fh->vidq.reading) in mpeg_release()
1747 videobuf_read_stop(&fh->vidq); in mpeg_release()
1749 videobuf_mmap_free(&fh->vidq); in mpeg_release()
1750 v4l2_fh_del(&fh->fh); in mpeg_release()
1751 v4l2_fh_exit(&fh->fh); in mpeg_release()
1752 kfree(fh); in mpeg_release()
1760 struct cx231xx_fh *fh = file->private_data; in mpeg_read() local
1761 struct cx231xx *dev = fh->dev; in mpeg_read()
1765 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in mpeg_read()
1772 return videobuf_read_stream(&fh->vidq, data, count, ppos, 0, in mpeg_read()
1780 struct cx231xx_fh *fh = file->private_data; in mpeg_poll() local
1781 struct cx231xx *dev = fh->dev; in mpeg_poll()
1784 if (v4l2_event_pending(&fh->fh)) in mpeg_poll()
1787 poll_wait(file, &fh->fh.wait, wait); in mpeg_poll()
1793 res |= videobuf_poll_stream(file, &fh->vidq, wait); in mpeg_poll()
1800 struct cx231xx_fh *fh = file->private_data; in mpeg_mmap() local
1801 struct cx231xx *dev = fh->dev; in mpeg_mmap()
1805 return videobuf_mmap_mapper(&fh->vidq, vma); in mpeg_mmap()