Lines Matching refs:fh
322 static int ivtv_g_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_sliced_vbi_out() argument
324 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out()
344 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument
346 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap()
367 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument
369 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap()
385 static int ivtv_g_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_sliced_vbi_cap() argument
388 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap()
408 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument
410 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out()
448 static int ivtv_g_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out_overlay() argument
450 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vid_out_overlay()
451 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_g_fmt_vid_out_overlay()
470 static int ivtv_try_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_sliced_vbi_out() argument
472 return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt); in ivtv_try_fmt_sliced_vbi_out()
475 static int ivtv_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_vid_cap() argument
477 struct ivtv_open_id *id = fh2id(fh); in ivtv_try_fmt_vid_cap()
492 ivtv_g_fmt_vid_cap(file, fh, fmt); in ivtv_try_fmt_vid_cap()
498 static int ivtv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_vbi_cap() argument
500 return ivtv_g_fmt_vbi_cap(file, fh, fmt); in ivtv_try_fmt_vbi_cap()
503 static int ivtv_try_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_sliced_vbi_cap() argument
506 struct ivtv_open_id *id = fh2id(fh); in ivtv_try_fmt_sliced_vbi_cap()
510 return ivtv_g_fmt_sliced_vbi_cap(file, fh, fmt); in ivtv_try_fmt_sliced_vbi_cap()
524 static int ivtv_try_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_vid_out() argument
526 struct ivtv_open_id *id = fh2id(fh); in ivtv_try_fmt_vid_out()
530 int ret = ivtv_g_fmt_vid_out(file, fh, fmt); in ivtv_try_fmt_vid_out()
558 static int ivtv_try_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_try_fmt_vid_out_overlay() argument
560 struct ivtv *itv = fh2id(fh)->itv; in ivtv_try_fmt_vid_out_overlay()
561 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_try_fmt_vid_out_overlay()
569 ivtv_g_fmt_vid_out_overlay(file, fh, fmt); in ivtv_try_fmt_vid_out_overlay()
575 static int ivtv_s_fmt_sliced_vbi_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_sliced_vbi_out() argument
577 return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt); in ivtv_s_fmt_sliced_vbi_out()
580 static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_cap() argument
582 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_vid_cap()
587 int ret = ivtv_try_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
608 return ivtv_g_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
611 static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vbi_cap() argument
613 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vbi_cap()
620 return ivtv_g_fmt_vbi_cap(file, fh, fmt); in ivtv_s_fmt_vbi_cap()
623 static int ivtv_s_fmt_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_sliced_vbi_cap() argument
626 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_sliced_vbi_cap()
628 int ret = ivtv_try_fmt_sliced_vbi_cap(file, fh, fmt); in ivtv_s_fmt_sliced_vbi_cap()
642 static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_out() argument
644 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_vid_out()
647 int ret = ivtv_try_fmt_vid_out(file, fh, fmt); in ivtv_s_fmt_vid_out()
687 static int ivtv_s_fmt_vid_out_overlay(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_out_overlay() argument
689 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vid_out_overlay()
690 int ret = ivtv_try_fmt_vid_out_overlay(file, fh, fmt); in ivtv_s_fmt_vid_out_overlay()
724 static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) in ivtv_g_register() argument
726 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_register()
732 static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg) in ivtv_s_register() argument
734 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_register()
741 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument
760 static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_enumaudio() argument
762 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudio()
767 static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_g_audio() argument
769 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audio()
775 static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) in ivtv_s_audio() argument
777 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audio()
788 static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_enumaudout() argument
790 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudout()
796 static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_g_audout() argument
798 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audout()
804 static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) in ivtv_s_audout() argument
806 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audout()
813 static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in ivtv_enum_input() argument
815 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_input()
821 static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout) in ivtv_enum_output() argument
823 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_output()
828 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
830 struct ivtv_open_id *id = fh2id(fh); in ivtv_cropcap()
845 static int ivtv_s_selection(struct file *file, void *fh, in ivtv_s_selection() argument
848 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_selection()
888 static int ivtv_g_selection(struct file *file, void *fh, in ivtv_g_selection() argument
891 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_selection()
934 static int ivtv_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) in ivtv_enum_fmt_vid_cap() argument
946 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_fmt_vid_cap()
947 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_enum_fmt_vid_cap()
960 static int ivtv_enum_fmt_vid_out(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) in ivtv_enum_fmt_vid_out() argument
972 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_fmt_vid_out()
973 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_enum_fmt_vid_out()
986 static int ivtv_g_input(struct file *file, void *fh, unsigned int *i) in ivtv_g_input() argument
988 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_input()
995 int ivtv_s_input(struct file *file, void *fh, unsigned int inp) in ivtv_s_input() argument
997 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_input()
1038 static int ivtv_g_output(struct file *file, void *fh, unsigned int *i) in ivtv_g_output() argument
1040 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_output()
1050 static int ivtv_s_output(struct file *file, void *fh, unsigned int outp) in ivtv_s_output() argument
1052 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_output()
1072 static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in ivtv_g_frequency() argument
1074 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_frequency()
1075 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_g_frequency()
1086 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in ivtv_s_frequency() argument
1088 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_frequency()
1089 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_s_frequency()
1103 static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std) in ivtv_g_std() argument
1105 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_std()
1176 static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std) in ivtv_s_std() argument
1178 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_std()
1204 static int ivtv_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in ivtv_s_tuner() argument
1206 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_tuner()
1217 static int ivtv_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in ivtv_g_tuner() argument
1219 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_tuner()
1233 static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) in ivtv_g_sliced_vbi_cap() argument
1235 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_sliced_vbi_cap()
1268 static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx) in ivtv_g_enc_index() argument
1270 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_enc_index()
1294 static int ivtv_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) in ivtv_encoder_cmd() argument
1296 struct ivtv_open_id *id = fh2id(fh); in ivtv_encoder_cmd()
1346 static int ivtv_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) in ivtv_try_encoder_cmd() argument
1348 struct ivtv *itv = fh2id(fh)->itv; in ivtv_try_encoder_cmd()
1376 static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) in ivtv_g_fbuf() argument
1378 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fbuf()
1379 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_g_fbuf()
1463 static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) in ivtv_s_fbuf() argument
1465 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fbuf()
1467 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_s_fbuf()
1484 static int ivtv_overlay(struct file *file, void *fh, unsigned int on) in ivtv_overlay() argument
1486 struct ivtv_open_id *id = fh2id(fh); in ivtv_overlay()
1488 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_overlay()
1500 static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) in ivtv_subscribe_event() argument
1505 return v4l2_event_subscribe(fh, sub, 0, NULL); in ivtv_subscribe_event()
1507 return v4l2_event_subscribe(fh, sub, 0, &v4l2_ctrl_sub_ev_ops); in ivtv_subscribe_event()
1513 static int ivtv_log_status(struct file *file, void *fh) in ivtv_log_status() argument
1515 struct ivtv *itv = fh2id(fh)->itv; in ivtv_log_status()
1605 static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_decoder_cmd() argument
1614 static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_try_decoder_cmd() argument
1816 static long ivtv_default(struct file *file, void *fh, bool valid_prio, in ivtv_default() argument
1819 struct ivtv *itv = fh2id(fh)->itv; in ivtv_default()