Lines Matching refs:s_assoc
34 struct cx18_stream *s_assoc; in cx18_claim_stream() local
73 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; in cx18_claim_stream()
75 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_claim_stream()
76 else if (!cx18_stream_enabled(s_assoc)) 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()
92 struct cx18_stream *s_assoc; in cx18_release_stream() local
125 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_IDX]; 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()
128 cx18_flush_queues(s_assoc); in cx18_release_stream()
132 s_assoc = &cx->streams[CX18_ENC_STREAM_TYPE_VBI]; in cx18_release_stream()
133 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
134 if (s_assoc->id == -1) { in cx18_release_stream()
139 clear_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_release_stream()
140 cx18_flush_queues(s_assoc); in cx18_release_stream()