Lines Matching refs:s_flags

40 	if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) {  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()
99 test_bit(IVTV_F_S_INTERNAL_USE, &s->s_flags)) { in ivtv_release_stream()
103 if (!test_and_clear_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_release_stream()
125 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { in ivtv_release_stream()
136 clear_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags); in ivtv_release_stream()
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()
265 if (s->type != IVTV_DEC_STREAM_TYPE_VBI && !test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in ivtv_get_buffer()
386 clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_read()
387 clear_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_read()
445 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_start_capture()
451 …if (test_bit(IVTV_F_S_STREAMOFF, &s->s_flags) || test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)… in ivtv_start_capture()
452 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); 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()
468 clear_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags); in ivtv_start_capture()
469 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in ivtv_start_capture()
480 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_start_capture()
494 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { in ivtv_start_capture()
496 clear_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags); in ivtv_start_capture()
498 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in ivtv_start_capture()
557 test_bit(IVTV_F_S_DMA_PENDING, &s->s_flags)) in ivtv_schedule_dma()
593 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_write()
605 set_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_write()
613 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in ivtv_write()
614 clear_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_write()
697 if (test_bit(IVTV_F_S_NEEDS_DATA, &s->s_flags)) { in ivtv_write()
707 clear_bit(IVTV_F_S_NEEDS_DATA, &s->s_flags); in ivtv_write()
773 int eof = test_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_v4l2_enc_poll()
777 if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags) && in ivtv_v4l2_enc_poll()
818 if (test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in ivtv_stop_capture()
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()
832 test_bit(IVTV_F_S_INTERNAL_USE, &s->s_flags)) { in ivtv_stop_capture()
841 clear_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_stop_capture()
842 clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_stop_capture()
861 if (test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in ivtv_stop_decoding()
867 clear_bit(IVTV_F_S_APPL_IO, &s->s_flags); in ivtv_stop_decoding()
868 clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_stop_decoding()
930 if (itv->output_mode == OUT_NONE && !test_bit(IVTV_F_S_APPL_IO, &s_vout->s_flags)) { in ivtv_v4l2_close()
977 test_bit(IVTV_F_S_CLAIMED, &itv->streams[IVTV_DEC_STREAM_TYPE_YUV].s_flags))
981 test_bit(IVTV_F_S_CLAIMED, &itv->streams[IVTV_DEC_STREAM_TYPE_MPG].s_flags))