Lines Matching refs:fh
323 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
325 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_sliced_vbi_out()
345 static int ivtv_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_cap() argument
347 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_cap()
369 static int ivtv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vbi_cap() argument
371 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_fmt_vbi_cap()
387 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
390 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_sliced_vbi_cap()
410 static int ivtv_g_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_g_fmt_vid_out() argument
412 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_fmt_vid_out()
451 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
453 struct ivtv *itv = fh2id(fh)->itv; 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()
566 ivtv_g_fmt_vid_out_overlay(file, fh, fmt); in ivtv_try_fmt_vid_out_overlay()
572 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
574 return ivtv_g_fmt_sliced_vbi_out(file, fh, fmt); in ivtv_s_fmt_sliced_vbi_out()
577 static int ivtv_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_cap() argument
579 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_vid_cap()
582 int ret = ivtv_try_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
603 return ivtv_g_fmt_vid_cap(file, fh, fmt); in ivtv_s_fmt_vid_cap()
606 static int ivtv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vbi_cap() argument
608 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vbi_cap()
615 return ivtv_g_fmt_vbi_cap(file, fh, fmt); in ivtv_s_fmt_vbi_cap()
618 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
621 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_sliced_vbi_cap()
623 int ret = ivtv_try_fmt_sliced_vbi_cap(file, fh, fmt); in ivtv_s_fmt_sliced_vbi_cap()
637 static int ivtv_s_fmt_vid_out(struct file *file, void *fh, struct v4l2_format *fmt) in ivtv_s_fmt_vid_out() argument
639 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_fmt_vid_out()
642 int ret = ivtv_try_fmt_vid_out(file, fh, fmt); in ivtv_s_fmt_vid_out()
682 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
684 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_fmt_vid_out_overlay()
685 int ret = ivtv_try_fmt_vid_out_overlay(file, fh, fmt); in ivtv_s_fmt_vid_out_overlay()
695 static int ivtv_g_chip_ident(struct file *file, void *fh, struct v4l2_dbg_chip_ident *chip) in ivtv_g_chip_ident() argument
697 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_chip_ident()
737 static int ivtv_g_register(struct file *file, void *fh, struct v4l2_dbg_register *reg) in ivtv_g_register() argument
739 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_register()
751 static int ivtv_s_register(struct file *file, void *fh, const struct v4l2_dbg_register *reg) in ivtv_s_register() argument
753 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_register()
767 static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vcap) in ivtv_querycap() argument
781 static int ivtv_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_enumaudio() argument
783 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudio()
788 static int ivtv_g_audio(struct file *file, void *fh, struct v4l2_audio *vin) in ivtv_g_audio() argument
790 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audio()
796 static int ivtv_s_audio(struct file *file, void *fh, const struct v4l2_audio *vout) in ivtv_s_audio() argument
798 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audio()
809 static int ivtv_enumaudout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_enumaudout() argument
811 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enumaudout()
817 static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin) in ivtv_g_audout() argument
819 struct ivtv *itv = fh2id(fh)->itv; in ivtv_g_audout()
825 static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout) in ivtv_s_audout() argument
827 struct ivtv *itv = fh2id(fh)->itv; in ivtv_s_audout()
834 static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin) in ivtv_enum_input() argument
836 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_input()
842 static int ivtv_enum_output(struct file *file, void *fh, struct v4l2_output *vout) in ivtv_enum_output() argument
844 struct ivtv *itv = fh2id(fh)->itv; in ivtv_enum_output()
849 static int ivtv_cropcap(struct file *file, void *fh, struct v4l2_cropcap *cropcap) in ivtv_cropcap() argument
851 struct ivtv_open_id *id = fh2id(fh); in ivtv_cropcap()
886 static int ivtv_s_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in ivtv_s_crop() argument
888 struct ivtv_open_id *id = fh2id(fh); in ivtv_s_crop()
912 static int ivtv_g_crop(struct file *file, void *fh, struct v4l2_crop *crop) in ivtv_g_crop() argument
914 struct ivtv_open_id *id = fh2id(fh); in ivtv_g_crop()
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()
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()
1481 static int ivtv_overlay(struct file *file, void *fh, unsigned int on) in ivtv_overlay() argument
1483 struct ivtv_open_id *id = fh2id(fh); in ivtv_overlay()
1494 static int ivtv_subscribe_event(struct v4l2_fh *fh, const struct v4l2_event_subscription *sub) in ivtv_subscribe_event() argument
1499 return v4l2_event_subscribe(fh, sub, 0, NULL); in ivtv_subscribe_event()
1501 return v4l2_event_subscribe(fh, sub, 0, &v4l2_ctrl_sub_ev_ops); in ivtv_subscribe_event()
1507 static int ivtv_log_status(struct file *file, void *fh) in ivtv_log_status() argument
1509 struct ivtv *itv = fh2id(fh)->itv; in ivtv_log_status()
1598 static int ivtv_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_decoder_cmd() argument
1607 static int ivtv_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dec) in ivtv_try_decoder_cmd() argument
1809 static long ivtv_default(struct file *file, void *fh, bool valid_prio, in ivtv_default() argument
1812 struct ivtv *itv = fh2id(fh)->itv; in ivtv_default()