Lines Matching defs:ivtv_stream
328 struct ivtv_stream { struct
331 struct video_device vdev; /* vdev.v4l2_dev is NULL if there is no device */
332 struct ivtv *itv; /* for ease of use */
333 const char *name; /* name of the stream */
334 int type; /* stream type */
335 u32 caps; /* V4L2 capabilities */
337 struct v4l2_fh *fh; /* pointer to the streaming filehandle */
338 spinlock_t qlock; /* locks access to the queues */
339 unsigned long s_flags; /* status flags, see above */
340 int dma; /* can be PCI_DMA_TODEVICE, PCI_DMA_FROMDEVICE or PCI_DMA_NONE */
341 u32 pending_offset;
342 u32 pending_backup;
343 u64 pending_pts;
345 u32 dma_offset;
346 u32 dma_backup;
347 u64 dma_pts;
349 int subtype;
350 wait_queue_head_t waitq;
351 u32 dma_last_offset;
354 u32 buffers;
355 u32 buf_size;
356 u32 buffers_stolen;
359 struct ivtv_queue q_free; /* free buffers */
360 struct ivtv_queue q_full; /* full buffers */
361 struct ivtv_queue q_io; /* waiting for I/O */
362 struct ivtv_queue q_dma; /* waiting for DMA */
363 struct ivtv_queue q_predma; /* waiting for DMA */
367 u16 dma_xfer_cnt;
370 struct ivtv_sg_host_element *sg_pending;
371 struct ivtv_sg_host_element *sg_processing;
372 struct ivtv_sg_element *sg_dma;
373 dma_addr_t sg_handle;
374 int sg_pending_size;
375 int sg_processing_size;
376 int sg_processed;
379 struct scatterlist *SGlist;