Lines Matching defs:stream
122 static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream,
125 struct cx18 *cx = stream->cx;
154 struct cx18_stream *stream = dvb->stream;
160 ret = yuan_mpc718_mt352_reqfw(stream, &fw);
228 static int dvb_register(struct cx18_stream *stream);
237 struct cx18_stream *stream = (struct cx18_stream *) demux->priv;
242 if (!stream)
245 cx = stream->cx;
284 mutex_lock(&stream->dvb->feedlock);
285 if (stream->dvb->feeding++ == 0) {
288 set_bit(CX18_F_S_STREAMING, &stream->s_flags);
289 ret = cx18_start_v4l2_encode_stream(stream);
292 stream->dvb->feeding--;
293 if (stream->dvb->feeding == 0)
294 clear_bit(CX18_F_S_STREAMING, &stream->s_flags);
299 mutex_unlock(&stream->dvb->feedlock);
308 struct cx18_stream *stream = (struct cx18_stream *)demux->priv;
312 if (stream) {
313 cx = stream->cx;
317 mutex_lock(&stream->dvb->feedlock);
318 if (--stream->dvb->feeding == 0) {
321 ret = cx18_stop_v4l2_encode_stream(stream, 0);
325 mutex_unlock(&stream->dvb->feedlock);
331 int cx18_dvb_register(struct cx18_stream *stream)
333 struct cx18 *cx = stream->cx;
334 struct cx18_dvb *dvb = stream->dvb;
344 dvb->stream = stream;
356 dvbdemux->priv = (void *)stream;
391 ret = dvb_register(stream);
399 stream->dvb->dvb_adapter.num, stream->name,
400 stream->buffers, stream->buf_size/1024,
401 (stream->buf_size * 100 / 1024) % 100);
423 void cx18_dvb_unregister(struct cx18_stream *stream)
425 struct cx18 *cx = stream->cx;
426 struct cx18_dvb *dvb = stream->dvb;
454 static int dvb_register(struct cx18_stream *stream)
456 struct cx18_dvb *dvb = stream->dvb;
457 struct cx18 *cx = stream->cx;