• Home
  • Raw
  • Download

Lines Matching refs:s_vbi

48 	struct ivtv_stream *s_vbi;  in ivtv_claim_stream()  local
88 s_vbi = &itv->streams[vbi_type]; in ivtv_claim_stream()
90 if (!test_and_set_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags)) { in ivtv_claim_stream()
96 set_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags); in ivtv_claim_stream()
106 struct ivtv_stream *s_vbi; in ivtv_release_stream() local
129 s_vbi = &itv->streams[IVTV_DEC_STREAM_TYPE_VBI]; in ivtv_release_stream()
131 s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_release_stream()
136 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { in ivtv_release_stream()
140 if (s_vbi->fh) { in ivtv_release_stream()
145 if (s_vbi->type == IVTV_DEC_STREAM_TYPE_VBI) in ivtv_release_stream()
147 clear_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags); in ivtv_release_stream()
148 ivtv_flush_queues(s_vbi); in ivtv_release_stream()
208 struct ivtv_stream *s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_get_buffer() local
225 if (test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && in ivtv_get_buffer()
226 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { in ivtv_get_buffer()
227 while ((buf = ivtv_dequeue(s_vbi, &s_vbi->q_full))) { in ivtv_get_buffer()
229 ivtv_process_vbi_data(itv, buf, s_vbi->dma_pts, s_vbi->type); in ivtv_get_buffer()
230 ivtv_enqueue(s_vbi, buf, &s_vbi->q_free); in ivtv_get_buffer()
431 struct ivtv_stream *s_vbi; in ivtv_start_capture() local
459 s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_start_capture()
461 test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && in ivtv_start_capture()
462 !test_and_set_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
466 if (ivtv_start_v4l2_encode_stream(s_vbi)) { in ivtv_start_capture()
470 clear_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags); in ivtv_start_capture()
496 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
497 ivtv_stop_v4l2_encode_stream(s_vbi, 0); in ivtv_start_capture()
498 clear_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags); in ivtv_start_capture()
819 struct ivtv_stream *s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_stop_capture() local
825 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags) && in ivtv_stop_capture()
826 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { in ivtv_stop_capture()
828 ivtv_stop_v4l2_encode_stream(s_vbi, 0); in ivtv_stop_capture()