Lines Matching refs:s_vbi

37 	struct ivtv_stream *s_vbi;  in ivtv_claim_stream()  local
77 s_vbi = &itv->streams[vbi_type]; in ivtv_claim_stream()
79 if (!test_and_set_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags)) { in ivtv_claim_stream()
85 set_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags); in ivtv_claim_stream()
95 struct ivtv_stream *s_vbi; in ivtv_release_stream() local
118 s_vbi = &itv->streams[IVTV_DEC_STREAM_TYPE_VBI]; in ivtv_release_stream()
120 s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_release_stream()
125 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { in ivtv_release_stream()
129 if (s_vbi->fh) { in ivtv_release_stream()
134 if (s_vbi->type == IVTV_DEC_STREAM_TYPE_VBI) in ivtv_release_stream()
136 clear_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags); in ivtv_release_stream()
137 ivtv_flush_queues(s_vbi); in ivtv_release_stream()
213 struct ivtv_stream *s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_get_buffer() local
229 if (test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && in ivtv_get_buffer()
230 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { in ivtv_get_buffer()
231 while ((buf = ivtv_dequeue(s_vbi, &s_vbi->q_full))) { in ivtv_get_buffer()
233 ivtv_process_vbi_data(itv, buf, s_vbi->dma_pts, s_vbi->type); in ivtv_get_buffer()
234 ivtv_enqueue(s_vbi, buf, &s_vbi->q_free); in ivtv_get_buffer()
429 struct ivtv_stream *s_vbi; in ivtv_start_capture() local
457 s_vbi = &itv->streams[IVTV_ENC_STREAM_TYPE_VBI]; in ivtv_start_capture()
459 test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && in ivtv_start_capture()
460 !test_and_set_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
464 if (ivtv_start_v4l2_encode_stream(s_vbi)) { in ivtv_start_capture()
468 clear_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags); in ivtv_start_capture()
494 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
495 ivtv_stop_v4l2_encode_stream(s_vbi, 0); in ivtv_start_capture()
496 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()