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()
585 int ret = ivtv_try_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
606 return ivtv_g_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
609 static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vbi_cap() argument
611 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vbi_cap()
618 return ivtv_g_fmt_vbi_cap(file, fh, fmt); in ivtv_s_fmt_vbi_cap()
621 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
624 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_sliced_vbi_cap()
626 int ret = ivtv_try_fmt_sliced_vbi_cap(file, fh, fmt); in ivtv_s_fmt_sliced_vbi_cap()
640 static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_out() argument
642 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_vid_out()
645 int ret = ivtv_try_fmt_vid_out(file, fh, fmt); in ivtv_s_fmt_vid_out()
685 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
687 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vid_out_overlay()
688 int ret = ivtv_try_fmt_vid_out_overlay(file, fh, fmt); in ivtv_s_fmt_vid_out_overlay()
722 static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) in ivtv_g_register() argument
724 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_register()
730 static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg) in ivtv_s_register() argument
732 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_register()
739 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument
758 static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_enumaudio() argument
760 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudio()
765 static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_g_audio() argument
767 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audio()
773 static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) in ivtv_s_audio() argument
775 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audio()
786 static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_enumaudout() argument
788 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudout()
794 static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_g_audout() argument
796 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audout()
802 static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) in ivtv_s_audout() argument
804 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audout()
811 static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in ivtv_enum_input() argument
813 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_input()
819 static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout) in ivtv_enum_output() argument
821 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_output()
826 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
828 struct ivtv_open_id *id = fh2id(fh); in ivtv_cropcap()
843 static int ivtv_s_selection(struct file *file, void *fh, in ivtv_s_selection() argument
846 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_selection()
886 static int ivtv_g_selection(struct file *file, void *fh, in ivtv_g_selection() argument
889 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_selection()
932 static int ivtv_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) in ivtv_enum_fmt_vid_cap() argument
944 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_fmt_vid_cap()
945 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_enum_fmt_vid_cap()
958 static int ivtv_enum_fmt_vid_out(struct file *file, void *fh, struct v4l2_fmtdesc *fmt) in ivtv_enum_fmt_vid_out() argument
970 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_fmt_vid_out()
971 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_enum_fmt_vid_out()
984 static int ivtv_g_input(struct file *file, void *fh, unsigned int *i) in ivtv_g_input() argument
986 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_input()
993 int ivtv_s_input(struct file *file, void *fh, unsigned int inp) in ivtv_s_input() argument
995 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_input()
1036 static int ivtv_g_output(struct file *file, void *fh, unsigned int *i) in ivtv_g_output() argument
1038 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_output()
1048 static int ivtv_s_output(struct file *file, void *fh, unsigned int outp) in ivtv_s_output() argument
1050 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_output()
1070 static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) in ivtv_g_frequency() argument
1072 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_frequency()
1073 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_g_frequency()
1084 int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) in ivtv_s_frequency() argument
1086 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_frequency()
1087 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_s_frequency()
1101 static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std) in ivtv_g_std() argument
1103 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_std()
1174 static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std) in ivtv_s_std() argument
1176 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_std()
1202 static int ivtv_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt) in ivtv_s_tuner() argument
1204 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_tuner()
1215 static int ivtv_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) in ivtv_g_tuner() argument
1217 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_tuner()
1231 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
1233 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_sliced_vbi_cap()
1266 static int ivtv_g_enc_index(struct file *file, void *fh, struct v4l2_enc_idx *idx) in ivtv_g_enc_index() argument
1268 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_enc_index()
1292 static int ivtv_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) in ivtv_encoder_cmd() argument
1294 struct ivtv_open_id *id = fh2id(fh); in ivtv_encoder_cmd()
1344 static int ivtv_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *enc) in ivtv_try_encoder_cmd() argument
1346 struct ivtv *itv = fh2id(fh)->itv; in ivtv_try_encoder_cmd()
1374 static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) in ivtv_g_fbuf() argument
1376 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fbuf()
1377 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_g_fbuf()
1461 static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) in ivtv_s_fbuf() argument
1463 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fbuf()
1465 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_s_fbuf()
1482 static int ivtv_overlay(struct file *file, void *fh, unsigned int on) in ivtv_overlay() argument
1484 struct ivtv_open_id *id = fh2id(fh); in ivtv_overlay()
1486 struct ivtv_stream *s = &itv->streams[fh2id(fh)->type]; in ivtv_overlay()
1498 static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) in ivtv_subscribe_event() argument
1503 return v4l2_event_subscribe(fh, sub, 0, NULL); in ivtv_subscribe_event()
1505 return v4l2_event_subscribe(fh, sub, 0, &v4l2_ctrl_sub_ev_ops); in ivtv_subscribe_event()
1511 static int ivtv_log_status(struct file *file, void *fh) in ivtv_log_status() argument
1513 struct ivtv *itv = fh2id(fh)->itv; in ivtv_log_status()
1602 static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_decoder_cmd() argument
1611 static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_try_decoder_cmd() argument
1813 static long ivtv_default(struct file *file, void *fh, bool valid_prio, in ivtv_default() argument
1816 struct ivtv *itv = fh2id(fh)->itv; in ivtv_default()