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

Lines Matching refs:type

99 static void cx18_stream_init(struct cx18 *cx, int type)
101 struct cx18_stream *s = &cx->streams[type];
110 s->type = type;
111 s->name = cx18_stream_info[type].name;
114 s->dma = cx18_stream_info[type].dma;
115 s->buffers = cx->stream_buffers[type];
116 s->buf_size = cx->stream_buf_size[type];
135 static int cx18_prep_dev(struct cx18 *cx, int type)
137 struct cx18_stream *s = &cx->streams[type];
139 int num_offset = cx18_stream_info[type].num_offset;
147 s->type = type;
148 s->name = cx18_stream_info[type].name;
151 if (type == CX18_ENC_STREAM_TYPE_RAD && !(cap & V4L2_CAP_RADIO))
155 if (type == CX18_ENC_STREAM_TYPE_VBI &&
161 if (cx18_stream_info[type].dma != PCI_DMA_NONE &&
162 cx->stream_buffers[type] == 0) {
163 CX18_INFO("Disabled %s device\n", cx18_stream_info[type].name);
167 cx18_stream_init(cx, type);
195 int type, ret;
198 for (type = 0; type < CX18_MAX_STREAMS; type++) {
200 ret = cx18_prep_dev(cx, type);
205 ret = cx18_stream_alloc(&cx->streams[type]);
209 if (type == CX18_MAX_STREAMS)
217 static int cx18_reg_dev(struct cx18 *cx, int type)
219 struct cx18_stream *s = &cx->streams[type];
220 int vfl_type = cx18_stream_info[type].vfl_type;
243 if (type != CX18_ENC_STREAM_TYPE_MPG) {
248 + cx18_stream_info[type].num_offset;
267 name, s->name, cx->stream_buffers[type],
268 cx->stream_buf_size[type] / 1024,
269 (cx->stream_buf_size[type] * 100 / 1024) % 100);
277 if (cx->stream_buffers[type])
280 name, s->name, cx->stream_buffers[type],
281 cx->stream_buf_size[type]);
294 int type;
299 for (type = 0; type < CX18_MAX_STREAMS; type++) {
300 err = cx18_reg_dev(cx, type);
317 int type;
320 for (type = 0; type < CX18_MAX_STREAMS; type++) {
323 if (type == CX18_ENC_STREAM_TYPE_TS) {
324 if (cx->streams[type].dvb.enabled) {
325 cx18_dvb_unregister(&cx->streams[type]);
326 cx->streams[type].dvb.enabled = false;
327 cx18_stream_free(&cx->streams[type]);
333 if (type == CX18_ENC_STREAM_TYPE_IDX) {
334 if (cx->stream_buffers[type] != 0) {
335 cx->stream_buffers[type] = 0;
336 cx18_stream_free(&cx->streams[type]);
342 vdev = cx->streams[type].video_dev;
344 cx->streams[type].video_dev = NULL;
348 cx18_stream_free(&cx->streams[type]);
550 switch (s->type) {
600 switch (s->type) {
715 (void __iomem *)&cx->scb->cpu_mdl_ack[s->type][0] - cx->enc_mem,
716 (void __iomem *)&cx->scb->cpu_mdl_ack[s->type][1] - cx->enc_mem);
727 if (s->type == CX18_ENC_STREAM_TYPE_MPG)
782 if (s->type == CX18_ENC_STREAM_TYPE_MPG)
789 if (s->type == CX18_ENC_STREAM_TYPE_MPG && gop_end) {
793 if (s->type != CX18_ENC_STREAM_TYPE_TS)