Lines Matching refs:s_flags
42 if (test_and_set_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_claim_stream()
79 set_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_claim_stream()
82 set_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags); in cx18_claim_stream()
104 test_bit(CX18_F_S_INTERNAL_USE, &s->s_flags)) { in cx18_release_stream()
108 if (!test_and_clear_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_release_stream()
126 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
127 clear_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_release_stream()
133 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
139 clear_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_release_stream()
185 if (test_bit(CX18_F_S_INTERNAL_USE, &s_vbi->s_flags) && in cx18_get_mdl()
186 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { in cx18_get_mdl()
217 if (!test_bit(CX18_F_S_STREAMING, &s->s_flags)) { in cx18_get_mdl()
437 clear_bit(CX18_F_S_STREAMOFF, &s->s_flags); in cx18_read()
438 clear_bit(CX18_F_S_APPL_IO, &s->s_flags); in cx18_read()
500 if (test_bit(CX18_F_S_STREAMOFF, &s->s_flags) || in cx18_start_capture()
501 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { in cx18_start_capture()
502 set_bit(CX18_F_S_APPL_IO, &s->s_flags); in cx18_start_capture()
515 if (test_bit(CX18_F_S_INTERNAL_USE, &s_idx->s_flags) && in cx18_start_capture()
516 !test_and_set_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { in cx18_start_capture()
519 clear_bit(CX18_F_S_STREAMING, &s_idx->s_flags); in cx18_start_capture()
524 if (test_bit(CX18_F_S_INTERNAL_USE, &s_vbi->s_flags) && in cx18_start_capture()
525 !test_and_set_bit(CX18_F_S_STREAMING, &s_vbi->s_flags)) { in cx18_start_capture()
528 clear_bit(CX18_F_S_STREAMING, &s_vbi->s_flags); in cx18_start_capture()
538 set_bit(CX18_F_S_APPL_IO, &s->s_flags); in cx18_start_capture()
555 if (test_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { in cx18_start_capture()
557 clear_bit(CX18_F_S_STREAMING, &s_idx->s_flags); in cx18_start_capture()
560 if (test_bit(CX18_F_S_STREAMING, &s_vbi->s_flags) && in cx18_start_capture()
561 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { in cx18_start_capture()
563 clear_bit(CX18_F_S_STREAMING, &s_vbi->s_flags); in cx18_start_capture()
566 clear_bit(CX18_F_S_STREAMING, &s->s_flags); in cx18_start_capture()
596 int eof = test_bit(CX18_F_S_STREAMOFF, &s->s_flags); in cx18_v4l2_enc_poll()
600 if (!eof && !test_bit(CX18_F_S_STREAMING, &s->s_flags) && in cx18_v4l2_enc_poll()
651 if (test_bit(CX18_F_S_STREAMING, &s->s_flags)) { in cx18_stop_capture()
655 if (test_bit(CX18_F_S_STREAMING, &s_vbi->s_flags) && in cx18_stop_capture()
656 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { in cx18_stop_capture()
660 if (test_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { in cx18_stop_capture()
666 test_bit(CX18_F_S_INTERNAL_USE, &s->s_flags)) in cx18_stop_capture()
673 clear_bit(CX18_F_S_APPL_IO, &s->s_flags); in cx18_stop_capture()
674 clear_bit(CX18_F_S_STREAMOFF, &s->s_flags); in cx18_stop_capture()