• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/video/ivtv/

Lines Matching refs:id

43 int ivtv_claim_stream(struct ivtv_open_id *id, int type)
45 struct ivtv *itv = id->itv;
52 if (s->id == id->open_id) {
56 if (s->id == -1 && (type == IVTV_DEC_STREAM_TYPE_VBI ||
61 s->id = id->open_id;
69 s->id = id->open_id;
106 s->id = -1;
138 if (s_vbi->id != -1) {
362 if (atomic_read(&itv->capturing) == 0 && s->id == -1) {
415 int ivtv_start_capture(struct ivtv_open_id *id)
417 struct ivtv *itv = id->itv;
418 struct ivtv_stream *s = &itv->streams[id->type];
430 if (ivtv_claim_stream(id, s->type))
495 struct ivtv_open_id *id = filp->private_data;
496 struct ivtv *itv = id->itv;
497 struct ivtv_stream *s = &itv->streams[id->type];
502 rc = ivtv_start_capture(id);
508 int ivtv_start_decoding(struct ivtv_open_id *id, int speed)
510 struct ivtv *itv = id->itv;
511 struct ivtv_stream *s = &itv->streams[id->type];
514 if (ivtv_claim_stream(id, s->type)) {
528 struct ivtv_open_id *id = filp->private_data;
529 struct ivtv *itv = id->itv;
530 struct ivtv_stream *s = &itv->streams[id->type];
547 if (ivtv_claim_stream(id, s->type))
613 rc = ivtv_start_decoding(id, itv->speed);
652 struct ivtv_open_id *id = filp->private_data;
653 struct ivtv *itv = id->itv;
654 struct ivtv_stream *s = &itv->streams[id->type];
673 struct ivtv_open_id *id = filp->private_data;
674 struct ivtv *itv = id->itv;
675 struct ivtv_stream *s = &itv->streams[id->type];
680 int rc = ivtv_start_capture(id);
697 void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end)
699 struct ivtv *itv = id->itv;
700 struct ivtv_stream *s = &itv->streams[id->type];
713 if (id->type == IVTV_ENC_STREAM_TYPE_MPG &&
719 if ((id->type == IVTV_DEC_STREAM_TYPE_VBI ||
720 id->type == IVTV_ENC_STREAM_TYPE_VBI) &&
723 s->id = -1;
735 static void ivtv_stop_decoding(struct ivtv_open_id *id, int flags, u64 pts)
737 struct ivtv *itv = id->itv;
738 struct ivtv_stream *s = &itv->streams[id->type];
750 if (id->type == IVTV_DEC_STREAM_TYPE_YUV && test_bit(IVTV_F_I_DECODING_YUV, &itv->i_flags)) {
765 struct ivtv_open_id *id = filp->private_data;
766 struct ivtv *itv = id->itv;
767 struct ivtv_stream *s = &itv->streams[id->type];
771 v4l2_prio_close(&itv->prio, &id->prio);
774 if (s->id != id->open_id) {
775 kfree(id);
782 if (id->type == IVTV_ENC_STREAM_TYPE_RAD) {
802 ivtv_stop_decoding(id, VIDEO_CMD_STOP_TO_BLACK | VIDEO_CMD_STOP_IMMEDIATELY, 0);
804 ivtv_stop_capture(id, 0);
806 kfree(id);