Lines Matching refs:fh
309 static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
311 struct ivtv *itv = fh2id(fh)->itv;
331 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
333 struct ivtv_open_id *id = fh2id(fh);
354 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
356 struct ivtv *itv = fh2id(fh)->itv;
372 static int ivtv_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
375 struct ivtv_open_id *id = fh2id(fh);
395 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
397 struct ivtv_open_id *id = fh2id(fh);
435 static int ivtv_g_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
437 struct ivtv *itv = fh2id(fh)->itv;
438 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
457 static int ivtv_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
459 return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt);
462 static int ivtv_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
464 struct ivtv_open_id *id = fh2id(fh);
479 ivtv_g_fmt_vid_cap(file, fh, fmt);
485 static int ivtv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
487 return ivtv_g_fmt_vbi_cap(file, fh, fmt);
490 static int ivtv_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
493 struct ivtv_open_id *id = fh2id(fh);
497 return ivtv_g_fmt_sliced_vbi_cap(file, fh, fmt);
511 static int ivtv_try_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
513 struct ivtv_open_id *id = fh2id(fh);
517 int ret = ivtv_g_fmt_vid_out(file, fh, fmt);
545 static int ivtv_try_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
547 struct ivtv *itv = fh2id(fh)->itv;
548 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
556 ivtv_g_fmt_vid_out_overlay(file, fh, fmt);
562 static int ivtv_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt)
564 return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt);
567 static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt)
569 struct ivtv_open_id *id = fh2id(fh);
574 int ret = ivtv_try_fmt_vid_cap(file, fh, fmt);
595 return ivtv_g_fmt_vid_cap(file, fh, fmt);
598 static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
600 struct ivtv *itv = fh2id(fh)->itv;
607 return ivtv_g_fmt_vbi_cap(file, fh, fmt);
610 static int ivtv_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt)
613 struct ivtv_open_id *id = fh2id(fh);
615 int ret = ivtv_try_fmt_sliced_vbi_cap(file, fh, fmt);
629 static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt)
631 struct ivtv_open_id *id = fh2id(fh);
634 int ret = ivtv_try_fmt_vid_out(file, fh, fmt);
674 static int ivtv_s_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt)
676 struct ivtv *itv = fh2id(fh)->itv;
677 int ret = ivtv_try_fmt_vid_out_overlay(file, fh, fmt);
711 static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg)
713 struct ivtv *itv = fh2id(fh)->itv;
719 static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg)
721 struct ivtv *itv = fh2id(fh)->itv;
728 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap)
739 static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin)
741 struct ivtv *itv = fh2id(fh)->itv;
746 static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin)
748 struct ivtv *itv = fh2id(fh)->itv;
754 static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout)
756 struct ivtv *itv = fh2id(fh)->itv;
767 static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin)
769 struct ivtv *itv = fh2id(fh)->itv;
775 static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin)
777 struct ivtv *itv = fh2id(fh)->itv;
783 static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout)
785 struct ivtv *itv = fh2id(fh)->itv;
792 static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin)
794 struct ivtv *itv = fh2id(fh)->itv;
800 static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout)
802 struct ivtv *itv = fh2id(fh)->itv;
807 static int ivtv_g_pixelaspect(struct file *file, void *fh,
810 struct ivtv_open_id *id = fh2id(fh);
825 static int ivtv_s_selection(struct file *file, void *fh,
828 struct ivtv_open_id *id = fh2id(fh);
868 static int ivtv_g_selection(struct file *file, void *fh,
871 struct ivtv_open_id *id = fh2id(fh);
914 static int ivtv_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt)
927 struct ivtv *itv = fh2id(fh)->itv;
928 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
941 static int ivtv_enum_fmt_vid_out(struct file *file, void *fh, struct v4l2_fmtdesc *fmt)
954 struct ivtv *itv = fh2id(fh)->itv;
955 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
968 static int ivtv_g_input(struct file *file, void *fh, unsigned int *i)
970 struct ivtv *itv = fh2id(fh)->itv;
977 int ivtv_s_input(struct file *file, void *fh, unsigned int inp)
979 struct ivtv *itv = fh2id(fh)->itv;
1020 static int ivtv_g_output(struct file *file, void *fh, unsigned int *i)
1022 struct ivtv *itv = fh2id(fh)->itv;
1032 static int ivtv_s_output(struct file *file, void *fh, unsigned int outp)
1034 struct ivtv *itv = fh2id(fh)->itv;
1054 static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf)
1056 struct ivtv *itv = fh2id(fh)->itv;
1057 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
1068 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf)
1070 struct ivtv *itv = fh2id(fh)->itv;
1071 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
1085 static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std)
1087 struct ivtv *itv = fh2id(fh)->itv;
1158 static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std)
1160 struct ivtv *itv = fh2id(fh)->itv;
1186 static int ivtv_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt)
1188 struct ivtv_open_id *id = fh2id(fh);
1199 static int ivtv_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt)
1201 struct ivtv *itv = fh2id(fh)->itv;
1215 static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap)
1217 struct ivtv *itv = fh2id(fh)->itv;
1250 static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx)
1252 struct ivtv *itv = fh2id(fh)->itv;
1276 static int ivtv_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc)
1278 struct ivtv_open_id *id = fh2id(fh);
1328 static int ivtv_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc)
1330 struct ivtv *itv = fh2id(fh)->itv;
1358 static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
1360 struct ivtv *itv = fh2id(fh)->itv;
1361 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
1445 static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb)
1447 struct ivtv_open_id *id = fh2id(fh);
1449 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
1466 static int ivtv_overlay(struct file *file, void *fh, unsigned int on)
1468 struct ivtv_open_id *id = fh2id(fh);
1470 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];
1482 static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub)
1487 return v4l2_event_subscribe(fh, sub, 0, NULL);
1489 return v4l2_ctrl_subscribe_event(fh, sub);
1493 static int ivtv_log_status(struct file *file, void *fh)
1495 struct ivtv *itv = fh2id(fh)->itv;
1585 static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
1594 static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec)
1645 static long ivtv_default(struct file *file, void *fh, bool valid_prio,
1648 struct ivtv *itv = fh2id(fh)->itv;