Lines Matching refs:file

921 static int check_fmt(struct file *file, enum v4l2_buf_type type)
930 struct video_device *vfd = video_devdata(file);
1091 struct file *file, void *fh, void *arg)
1094 struct video_device *vfd = video_devdata(file);
1104 ret = ops->vidioc_querycap(file, fh, cap);
1125 struct file *file, void *fh, void *arg)
1127 struct video_device *vfd = video_devdata(file);
1134 return ops->vidioc_g_input(file, fh, arg);
1138 struct file *file, void *fh, void *arg)
1140 struct video_device *vfd = video_devdata(file);
1147 return ops->vidioc_g_output(file, fh, arg);
1151 struct file *file, void *fh, void *arg)
1153 struct video_device *vfd = video_devdata(file);
1163 return ops->vidioc_s_input(file, fh, *(unsigned int *)arg);
1167 struct file *file, void *fh, void *arg)
1169 struct video_device *vfd = video_devdata(file);
1174 return ops->vidioc_s_output(file, fh, *(unsigned int *)arg);
1178 struct file *file, void *fh, void *arg)
1183 vfd = video_devdata(file);
1189 struct file *file, void *fh, void *arg)
1195 vfd = video_devdata(file);
1198 vfh = file->private_data;
1203 struct file *file, void *fh, void *arg)
1205 struct video_device *vfd = video_devdata(file);
1225 return ops->vidioc_enum_input(file, fh, p);
1229 struct file *file, void *fh, void *arg)
1231 struct video_device *vfd = video_devdata(file);
1251 return ops->vidioc_enum_output(file, fh, p);
1565 struct file *file, void *fh, void *arg)
1567 struct video_device *vdev = video_devdata(file);
1569 int ret = check_fmt(file, p->type);
1595 ret = ops->vidioc_enum_fmt_vid_cap(file, fh, arg);
1600 ret = ops->vidioc_enum_fmt_vid_overlay(file, fh, arg);
1612 ret = ops->vidioc_enum_fmt_vid_out(file, fh, arg);
1617 ret = ops->vidioc_enum_fmt_sdr_cap(file, fh, arg);
1622 ret = ops->vidioc_enum_fmt_sdr_out(file, fh, arg);
1627 ret = ops->vidioc_enum_fmt_meta_cap(file, fh, arg);
1632 ret = ops->vidioc_enum_fmt_meta_out(file, fh, arg);
1656 struct file *file, void *fh, void *arg)
1659 struct video_device *vfd = video_devdata(file);
1660 int ret = check_fmt(file, p->type);
1672 ret = ops->vidioc_g_fmt_vid_cap(file, fh, arg);
1679 return ops->vidioc_g_fmt_vid_cap_mplane(file, fh, arg);
1681 return ops->vidioc_g_fmt_vid_overlay(file, fh, arg);
1683 return ops->vidioc_g_fmt_vbi_cap(file, fh, arg);
1685 return ops->vidioc_g_fmt_sliced_vbi_cap(file, fh, arg);
1690 ret = ops->vidioc_g_fmt_vid_out(file, fh, arg);
1695 return ops->vidioc_g_fmt_vid_out_mplane(file, fh, arg);
1697 return ops->vidioc_g_fmt_vid_out_overlay(file, fh, arg);
1699 return ops->vidioc_g_fmt_vbi_out(file, fh, arg);
1701 return ops->vidioc_g_fmt_sliced_vbi_out(file, fh, arg);
1703 return ops->vidioc_g_fmt_sdr_cap(file, fh, arg);
1705 return ops->vidioc_g_fmt_sdr_out(file, fh, arg);
1707 return ops->vidioc_g_fmt_meta_cap(file, fh, arg);
1709 return ops->vidioc_g_fmt_meta_out(file, fh, arg);
1715 struct file *file, void *fh, void *arg)
1718 struct video_device *vfd = video_devdata(file);
1719 int ret = check_fmt(file, p->type);
1735 ret = ops->vidioc_s_fmt_vid_cap(file, fh, arg);
1748 return ops->vidioc_s_fmt_vid_cap_mplane(file, fh, arg);
1756 return ops->vidioc_s_fmt_vid_overlay(file, fh, arg);
1761 return ops->vidioc_s_fmt_vbi_cap(file, fh, arg);
1766 return ops->vidioc_s_fmt_sliced_vbi_cap(file, fh, arg);
1771 ret = ops->vidioc_s_fmt_vid_out(file, fh, arg);
1782 return ops->vidioc_s_fmt_vid_out_mplane(file, fh, arg);
1790 return ops->vidioc_s_fmt_vid_out_overlay(file, fh, arg);
1795 return ops->vidioc_s_fmt_vbi_out(file, fh, arg);
1800 return ops->vidioc_s_fmt_sliced_vbi_out(file, fh, arg);
1805 return ops->vidioc_s_fmt_sdr_cap(file, fh, arg);
1810 return ops->vidioc_s_fmt_sdr_out(file, fh, arg);
1815 return ops->vidioc_s_fmt_meta_cap(file, fh, arg);
1820 return ops->vidioc_s_fmt_meta_out(file, fh, arg);
1826 struct file *file, void *fh, void *arg)
1829 struct video_device *vfd = video_devdata(file);
1830 int ret = check_fmt(file, p->type);
1843 ret = ops->vidioc_try_fmt_vid_cap(file, fh, arg);
1856 return ops->vidioc_try_fmt_vid_cap_mplane(file, fh, arg);
1864 return ops->vidioc_try_fmt_vid_overlay(file, fh, arg);
1869 return ops->vidioc_try_fmt_vbi_cap(file, fh, arg);
1874 return ops->vidioc_try_fmt_sliced_vbi_cap(file, fh, arg);
1879 ret = ops->vidioc_try_fmt_vid_out(file, fh, arg);
1890 return ops->vidioc_try_fmt_vid_out_mplane(file, fh, arg);
1898 return ops->vidioc_try_fmt_vid_out_overlay(file, fh, arg);
1903 return ops->vidioc_try_fmt_vbi_out(file, fh, arg);
1908 return ops->vidioc_try_fmt_sliced_vbi_out(file, fh, arg);
1913 return ops->vidioc_try_fmt_sdr_cap(file, fh, arg);
1918 return ops->vidioc_try_fmt_sdr_out(file, fh, arg);
1923 return ops->vidioc_try_fmt_meta_cap(file, fh, arg);
1928 return ops->vidioc_try_fmt_meta_out(file, fh, arg);
1934 struct file *file, void *fh, void *arg)
1936 return ops->vidioc_streamon(file, fh, *(unsigned int *)arg);
1940 struct file *file, void *fh, void *arg)
1942 return ops->vidioc_streamoff(file, fh, *(unsigned int *)arg);
1946 struct file *file, void *fh, void *arg)
1948 struct video_device *vfd = video_devdata(file);
1954 err = ops->vidioc_g_tuner(file, fh, p);
1961 struct file *file, void *fh, void *arg)
1963 struct video_device *vfd = video_devdata(file);
1972 return ops->vidioc_s_tuner(file, fh, p);
1976 struct file *file, void *fh, void *arg)
1978 struct video_device *vfd = video_devdata(file);
1985 err = ops->vidioc_g_modulator(file, fh, p);
1992 struct file *file, void *fh, void *arg)
1994 struct video_device *vfd = video_devdata(file);
2000 return ops->vidioc_s_modulator(file, fh, p);
2004 struct file *file, void *fh, void *arg)
2006 struct video_device *vfd = video_devdata(file);
2014 return ops->vidioc_g_frequency(file, fh, p);
2018 struct file *file, void *fh, void *arg)
2020 struct video_device *vfd = video_devdata(file);
2037 return ops->vidioc_s_frequency(file, fh, p);
2041 struct file *file, void *fh, void *arg)
2043 struct video_device *vfd = video_devdata(file);
2050 struct file *file, void *fh, void *arg)
2052 struct video_device *vfd = video_devdata(file);
2064 return ops->vidioc_s_std(file, fh, norm);
2068 struct file *file, void *fh, void *arg)
2070 struct video_device *vfd = video_devdata(file);
2086 return ops->vidioc_querystd(file, fh, arg);
2090 struct file *file, void *fh, void *arg)
2092 struct video_device *vfd = video_devdata(file);
2108 return ops->vidioc_s_hw_freq_seek(file, fh, p);
2112 struct file *file, void *fh, void *arg)
2117 return ops->vidioc_s_fbuf(file, fh, p);
2121 struct file *file, void *fh, void *arg)
2123 return ops->vidioc_overlay(file, fh, *(unsigned int *)arg);
2127 struct file *file, void *fh, void *arg)
2129 struct video_device *vfd = video_devdata(file);
2131 int ret = check_fmt(file, p->type);
2142 return ops->vidioc_reqbufs(file, fh, p);
2146 struct file *file, void *fh, void *arg)
2149 int ret = check_fmt(file, p->type);
2151 return ret ? ret : ops->vidioc_querybuf(file, fh, p);
2155 struct file *file, void *fh, void *arg)
2158 int ret = check_fmt(file, p->type);
2160 return ret ? ret : ops->vidioc_qbuf(file, fh, p);
2164 struct file *file, void *fh, void *arg)
2167 int ret = check_fmt(file, p->type);
2169 return ret ? ret : ops->vidioc_dqbuf(file, fh, p);
2173 struct file *file, void *fh, void *arg)
2175 struct video_device *vfd = video_devdata(file);
2177 int ret = check_fmt(file, create->format.type);
2190 ret = ops->vidioc_create_bufs(file, fh, create);
2200 struct file *file, void *fh, void *arg)
2203 int ret = check_fmt(file, b->type);
2205 return ret ? ret : ops->vidioc_prepare_buf(file, fh, b);
2209 struct file *file, void *fh, void *arg)
2214 return ops->vidioc_remove_bufs(file, fh, remove);
2220 struct file *file, void *fh, void *arg)
2222 struct video_device *vfd = video_devdata(file);
2225 int ret = check_fmt(file, p->type);
2230 return ops->vidioc_g_parm(file, fh, p);
2236 ret = ops->vidioc_g_std(file, fh, &std);
2243 struct file *file, void *fh, void *arg)
2246 int ret = check_fmt(file, p->type);
2263 return ops->vidioc_s_parm(file, fh, p);
2267 struct file *file, void *fh, void *arg)
2269 struct video_device *vfd = video_devdata(file);
2279 return ops->vidioc_queryctrl(file, fh, p);
2284 struct file *file, void *fh, void *arg)
2286 struct video_device *vfd = video_devdata(file);
2296 return ops->vidioc_query_ext_ctrl(file, fh, p);
2301 struct file *file, void *fh, void *arg)
2303 struct video_device *vfd = video_devdata(file);
2313 return ops->vidioc_querymenu(file, fh, p);
2318 struct file *file, void *fh, void *arg)
2320 struct video_device *vfd = video_devdata(file);
2332 return ops->vidioc_g_ctrl(file, fh, p);
2342 int ret = ops->vidioc_g_ext_ctrls(file, fh, &ctrls);
2352 struct file *file, void *fh, void *arg)
2354 struct video_device *vfd = video_devdata(file);
2367 return ops->vidioc_s_ctrl(file, fh, p);
2378 ret = ops->vidioc_s_ext_ctrls(file, fh, &ctrls);
2384 struct file *file, void *fh, void *arg)
2386 struct video_device *vfd = video_devdata(file);
2401 ops->vidioc_g_ext_ctrls(file, fh, p) : -EINVAL;
2405 struct file *file, void *fh, void *arg)
2407 struct video_device *vfd = video_devdata(file);
2422 ops->vidioc_s_ext_ctrls(file, fh, p) : -EINVAL;
2426 struct file *file, void *fh, void *arg)
2428 struct video_device *vfd = video_devdata(file);
2443 ops->vidioc_try_ext_ctrls(file, fh, p) : -EINVAL;
2456 struct file *file, void *fh, void *arg)
2466 ret = ops->vidioc_g_selection(file, fh, p);
2472 struct file *file, void *fh, void *arg)
2482 ret = ops->vidioc_s_selection(file, fh, p);
2488 struct file *file, void *fh, void *arg)
2490 struct video_device *vfd = video_devdata(file);
2509 ret = v4l_g_selection(ops, file, fh, &s);
2518 struct file *file, void *fh, void *arg)
2520 struct video_device *vfd = video_devdata(file);
2539 return v4l_s_selection(ops, file, fh, &s);
2543 struct file *file, void *fh, void *arg)
2545 struct video_device *vfd = video_devdata(file);
2567 ret = ops->vidioc_g_pixelaspect(file, fh, s.type,
2589 ret = v4l_g_selection(ops, file, fh, &s);
2600 ret = v4l_g_selection(ops, file, fh, &s);
2609 struct file *file, void *fh, void *arg)
2611 struct video_device *vfd = video_devdata(file);
2617 ret = ops->vidioc_log_status(file, fh);
2625 struct file *file, void *fh, void *arg)
2629 struct video_device *vfd = video_devdata(file);
2645 return ops->vidioc_g_register(file, fh, p);
2653 struct file *file, void *fh, void *arg)
2657 struct video_device *vfd = video_devdata(file);
2673 return ops->vidioc_s_register(file, fh, p);
2681 struct file *file, void *fh, void *arg)
2684 struct video_device *vfd = video_devdata(file);
2697 return ops->vidioc_g_chip_info(file, fh, arg);
2724 struct file *file, void *fh, void *arg)
2726 return v4l2_event_dequeue(fh, arg, file->f_flags & O_NONBLOCK);
2730 struct file *file, void *fh, void *arg)
2736 struct file *file, void *fh, void *arg)
2742 struct file *file, void *fh, void *arg)
2745 int ret = check_fmt(file, p->type);
2753 return ops->vidioc_g_sliced_vbi_cap(file, fh, p);
2757 struct file *file, void *fh, void *arg)
2759 struct video_device *vfd = video_devdata(file);
2775 err = ops->vidioc_enum_freq_bands(file, fh, p);
2787 err = ops->vidioc_g_tuner(file, fh, &t);
2806 err = ops->vidioc_g_modulator(file, fh, &m);
2823 int (*func)(const struct v4l2_ioctl_ops *ops, struct file *file,
2845 struct file *file, void *fh, void *p) \
2847 return ops->vidioc_ ## _vidioc(file, fh, p); \
3033 static long __video_do_ioctl(struct file *file,
3036 struct video_device *vfd = video_devdata(file);
3043 void *fh = file->private_data;
3055 vfh = file->private_data;
3105 ret = info->func(ops, file, fh, arg);
3109 ret = ops->vidioc_default(file, fh,
3390 video_usercopy(struct file *file, unsigned int orig_cmd, unsigned long arg,
3434 err = v4l2_compat_get_array_args(file, array_buf,
3446 err = func(file, cmd, parg);
3454 trace_v4l2_dqbuf(video_devdata(file)->minor, parg);
3456 trace_v4l2_qbuf(video_devdata(file)->minor, parg);
3481 put_err = v4l2_compat_put_array_args(file, user_ptr,
3500 long video_ioctl2(struct file *file,
3503 return video_usercopy(file, cmd, arg, __video_do_ioctl);