• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/common/

Lines Matching defs:fh

211 	struct saa7146_fh *fh = file->private_data;
212 struct saa7146_dev *dev = fh->dev;
278 struct saa7146_fh *fh = file->private_data;
279 struct saa7146_dev *dev = fh->dev;
290 struct saa7146_fh *fh = file->private_data;
291 struct saa7146_dev *dev = fh->dev;
307 static void vbi_stop(struct saa7146_fh *fh, struct file *file)
309 struct saa7146_dev *dev = fh->dev;
312 DEB_VBI(("dev:%p, fh:%p\n",dev, fh));
329 videobuf_queue_cancel(&fh->vbi_q);
334 del_timer(&fh->vbi_read_timeout);
342 struct saa7146_fh *fh = file->private_data;
343 struct saa7146_dev *dev = fh->dev;
345 DEB_VBI(("dev:%p, fh:%p\n",dev, fh));
347 vbi_stop(fh, file);
366 struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data;
371 DEB_VBI(("dev:%p, fh:%p\n",dev,fh));
373 ret = saa7146_res_get(fh, RESOURCE_DMA3_BRS);
385 memset(&fh->vbi_fmt,0,sizeof(fh->vbi_fmt));
387 fh->vbi_fmt.sampling_rate = 27000000;
388 fh->vbi_fmt.offset = 248; /* todo */
389 fh->vbi_fmt.samples_per_line = vbi_pixel_to_capture;
390 fh->vbi_fmt.sample_format = V4L2_PIX_FMT_GREY;
392 fh->vbi_fmt.start[0] = 5;
393 fh->vbi_fmt.count[0] = 16;
394 fh->vbi_fmt.start[1] = 312;
395 fh->vbi_fmt.count[1] = 16;
397 videobuf_queue_init(&fh->vbi_q, &vbi_qops,
403 mutex_init(&fh->vbi_q.lock);
405 init_timer(&fh->vbi_read_timeout);
406 fh->vbi_read_timeout.function = vbi_read_timeout;
407 fh->vbi_read_timeout.data = (unsigned long)file;
428 struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data;
430 DEB_VBI(("dev:%p, fh:%p\n",dev,fh));
432 if( fh == vv->vbi_streaming ) {
433 vbi_stop(fh, file);
435 saa7146_res_free(fh, RESOURCE_DMA3_BRS);
459 struct saa7146_fh *fh = file->private_data;
460 struct saa7146_dev *dev = fh->dev;
464 DEB_VBI(("dev:%p, fh:%p\n",dev,fh));
467 vv->vbi_streaming = fh;
470 if( fh != vv->vbi_streaming ) {
475 mod_timer(&fh->vbi_read_timeout, jiffies+BUFFER_TIMEOUT);
476 ret = videobuf_read_stream(&fh->vbi_q, data, count, ppos, 1,