Lines Matching refs:id

44 int cx18_claim_stream(struct cx18_open_id *id, int type)  in cx18_claim_stream()  argument
46 struct cx18 *cx = id->cx; in cx18_claim_stream()
59 if (s->id == id->open_id) { in cx18_claim_stream()
63 if (s->id == -1 && type == CX18_ENC_STREAM_TYPE_VBI) { in cx18_claim_stream()
67 s->id = id->open_id; in cx18_claim_stream()
75 s->id = id->open_id; in cx18_claim_stream()
109 s->id = -1; in cx18_release_stream()
149 if (s_assoc->id == -1) { in cx18_release_stream()
427 if (atomic_read(&cx->ana_capturing) == 0 && s->id == -1) { in cx18_read()
497 int cx18_start_capture(struct cx18_open_id *id) in cx18_start_capture() argument
499 struct cx18 *cx = id->cx; in cx18_start_capture()
500 struct cx18_stream *s = &cx->streams[id->type]; in cx18_start_capture()
510 if (cx18_claim_stream(id, s->type)) in cx18_start_capture()
589 struct cx18_open_id *id = file2id(filp); in cx18_v4l2_read() local
590 struct cx18 *cx = id->cx; in cx18_v4l2_read()
591 struct cx18_stream *s = &cx->streams[id->type]; in cx18_v4l2_read()
597 rc = cx18_start_capture(id); in cx18_v4l2_read()
603 (id->type == CX18_ENC_STREAM_TYPE_YUV)) { in cx18_v4l2_read()
614 struct cx18_open_id *id = file2id(filp); in cx18_v4l2_enc_poll() local
615 struct cx18 *cx = id->cx; in cx18_v4l2_enc_poll()
616 struct cx18_stream *s = &cx->streams[id->type]; in cx18_v4l2_enc_poll()
626 rc = cx18_start_capture(id); in cx18_v4l2_enc_poll()
637 (id->type == CX18_ENC_STREAM_TYPE_YUV)) { in cx18_v4l2_enc_poll()
640 if (v4l2_event_pending(&id->fh)) in cx18_v4l2_enc_poll()
649 if (v4l2_event_pending(&id->fh)) in cx18_v4l2_enc_poll()
663 struct cx18_open_id *id = file->private_data; in cx18_v4l2_mmap() local
664 struct cx18 *cx = id->cx; in cx18_v4l2_mmap()
665 struct cx18_stream *s = &cx->streams[id->type]; in cx18_v4l2_mmap()
669 (id->type == CX18_ENC_STREAM_TYPE_YUV)) { in cx18_v4l2_mmap()
676 rc = cx18_start_capture(id); in cx18_v4l2_mmap()
713 void cx18_stop_capture(struct cx18_open_id *id, int gop_end) in cx18_stop_capture() argument
715 struct cx18 *cx = id->cx; in cx18_stop_capture()
716 struct cx18_stream *s = &cx->streams[id->type]; in cx18_stop_capture()
727 if (id->type == CX18_ENC_STREAM_TYPE_MPG) { in cx18_stop_capture()
740 if (id->type == CX18_ENC_STREAM_TYPE_VBI && in cx18_stop_capture()
743 s->id = -1; in cx18_stop_capture()
757 struct cx18_open_id *id = fh2id(fh); in cx18_v4l2_close() local
758 struct cx18 *cx = id->cx; in cx18_v4l2_close()
759 struct cx18_stream *s = &cx->streams[id->type]; in cx18_v4l2_close()
765 if (id->type == CX18_ENC_STREAM_TYPE_RAD && in cx18_v4l2_close()
789 if (s->id == id->open_id) in cx18_v4l2_close()
790 cx18_stop_capture(id, 0); in cx18_v4l2_close()
791 kfree(id); in cx18_v4l2_close()