Lines Matching refs:stream

134 static int yuan_mpc718_mt352_reqfw(struct cx18_stream *stream,
137 struct cx18 *cx = stream->cx;
168 struct cx18_stream *stream = dvb->stream;
174 ret = yuan_mpc718_mt352_reqfw(stream, &fw);
242 static int dvb_register(struct cx18_stream *stream);
251 struct cx18_stream *stream = (struct cx18_stream *) demux->priv;
256 if (!stream)
259 cx = stream->cx;
298 mutex_lock(&stream->dvb->feedlock);
299 if (stream->dvb->feeding++ == 0) {
302 set_bit(CX18_F_S_STREAMING, &stream->s_flags);
303 ret = cx18_start_v4l2_encode_stream(stream);
306 stream->dvb->feeding--;
307 if (stream->dvb->feeding == 0)
308 clear_bit(CX18_F_S_STREAMING, &stream->s_flags);
313 mutex_unlock(&stream->dvb->feedlock);
322 struct cx18_stream *stream = (struct cx18_stream *)demux->priv;
326 if (stream) {
327 cx = stream->cx;
331 mutex_lock(&stream->dvb->feedlock);
332 if (--stream->dvb->feeding == 0) {
335 ret = cx18_stop_v4l2_encode_stream(stream, 0);
339 mutex_unlock(&stream->dvb->feedlock);
345 int cx18_dvb_register(struct cx18_stream *stream)
347 struct cx18 *cx = stream->cx;
348 struct cx18_dvb *dvb = stream->dvb;
358 dvb->stream = stream;
370 dvbdemux->priv = (void *)stream;
405 ret = dvb_register(stream);
413 stream->dvb->dvb_adapter.num, stream->name,
414 stream->buffers, stream->buf_size/1024,
415 (stream->buf_size * 100 / 1024) % 100);
437 void cx18_dvb_unregister(struct cx18_stream *stream)
439 struct cx18 *cx = stream->cx;
440 struct cx18_dvb *dvb = stream->dvb;
468 static int dvb_register(struct cx18_stream *stream)
470 struct cx18_dvb *dvb = stream->dvb;
471 struct cx18 *cx = stream->cx;