/linux-4.4.14/drivers/staging/media/omap4iss/ |
H A D | iss_video.c | 262 iss_video_check_format(struct iss_video *video, struct iss_video_fh *vfh) iss_video_check_format() argument 275 if (vfh->format.fmt.pix.pixelformat != pixfmt.pixelformat || iss_video_check_format() 276 vfh->format.fmt.pix.height != pixfmt.height || iss_video_check_format() 277 vfh->format.fmt.pix.width != pixfmt.width || iss_video_check_format() 278 vfh->format.fmt.pix.bytesperline != pixfmt.bytesperline || iss_video_check_format() 279 vfh->format.fmt.pix.sizeimage != pixfmt.sizeimage) iss_video_check_format() 294 struct iss_video_fh *vfh = vb2_get_drv_priv(vq); iss_video_queue_setup() local 295 struct iss_video *video = vfh->video; iss_video_queue_setup() 300 sizes[0] = vfh->format.fmt.pix.sizeimage; iss_video_queue_setup() 323 struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue); iss_video_buf_prepare() local 325 struct iss_video *video = vfh->video; iss_video_buf_prepare() 326 unsigned long size = vfh->format.fmt.pix.sizeimage; iss_video_buf_prepare() 347 struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue); iss_video_buf_queue() local 348 struct iss_video *video = vfh->video; iss_video_buf_queue() 576 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_get_format() local 583 *format = vfh->format; iss_video_get_format() 592 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_set_format() local 607 vfh->format = *format; iss_video_set_format() 644 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_get_param() local 654 a->parm.output.timeperframe = vfh->timeperframe; iss_video_get_param() 662 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_set_param() local 672 vfh->timeperframe = a->parm.output.timeperframe; iss_video_set_param() 680 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_reqbufs() local 682 return vb2_reqbufs(&vfh->queue, rb); iss_video_reqbufs() 688 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_querybuf() local 690 return vb2_querybuf(&vfh->queue, b); iss_video_querybuf() 696 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_qbuf() local 698 return vb2_qbuf(&vfh->queue, b); iss_video_qbuf() 704 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_expbuf() local 706 return vb2_expbuf(&vfh->queue, e); iss_video_expbuf() 712 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_dqbuf() local 714 return vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK); iss_video_dqbuf() 751 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_streamon() local 791 ret = iss_video_check_format(video, vfh); iss_video_streamon() 796 video->bpl_value = vfh->format.fmt.pix.bytesperline; iss_video_streamon() 828 pipe->max_timeperframe = vfh->timeperframe; iss_video_streamon() 830 video->queue = &vfh->queue; iss_video_streamon() 835 ret = vb2_streamon(&vfh->queue, type); iss_video_streamon() 860 vb2_streamoff(&vfh->queue, type); iss_video_streamon() 875 struct iss_video_fh *vfh = to_iss_video_fh(fh); iss_video_streamoff() local 886 if (!vb2_is_streaming(&vfh->queue)) iss_video_streamoff() 903 vb2_streamoff(&vfh->queue, type); iss_video_streamoff() 979 v4l2_fh_init(&handle->vfh, &video->video); iss_video_open() 980 v4l2_fh_add(&handle->vfh); iss_video_open() 1022 file->private_data = &handle->vfh; iss_video_open() 1026 v4l2_fh_del(&handle->vfh); iss_video_open() 1036 struct v4l2_fh *vfh = file->private_data; iss_video_release() local 1037 struct iss_video_fh *handle = to_iss_video_fh(vfh); iss_video_release() 1040 iss_video_streamoff(file, vfh, video->type); iss_video_release() 1048 v4l2_fh_del(vfh); iss_video_release() 1059 struct iss_video_fh *vfh = to_iss_video_fh(file->private_data); iss_video_poll() local 1061 return vb2_poll(&vfh->queue, file, wait); iss_video_poll() 1066 struct iss_video_fh *vfh = to_iss_video_fh(file->private_data); iss_video_mmap() local 1068 return vb2_mmap(&vfh->queue, vma); iss_video_mmap()
|
H A D | iss_video.h | 181 struct v4l2_fh vfh; member in struct:iss_video_fh 188 #define to_iss_video_fh(fh) container_of(fh, struct iss_video_fh, vfh)
|
/linux-4.4.14/drivers/media/v4l2-core/ |
H A D | v4l2-subdev.c | 73 v4l2_fh_init(&subdev_fh->vfh, vdev); subdev_open() 74 v4l2_fh_add(&subdev_fh->vfh); subdev_open() 75 file->private_data = &subdev_fh->vfh; subdev_open() 98 v4l2_fh_del(&subdev_fh->vfh); subdev_open() 99 v4l2_fh_exit(&subdev_fh->vfh); subdev_open() 110 struct v4l2_fh *vfh = file->private_data; subdev_close() local 111 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); subdev_close() 119 v4l2_fh_del(vfh); subdev_close() 120 v4l2_fh_exit(vfh); subdev_close() 183 struct v4l2_fh *vfh = file->private_data; subdev_do_ioctl() local 185 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); subdev_do_ioctl() 191 return v4l2_queryctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 194 return v4l2_query_ext_ctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 197 return v4l2_querymenu(vfh->ctrl_handler, arg); subdev_do_ioctl() 200 return v4l2_g_ctrl(vfh->ctrl_handler, arg); subdev_do_ioctl() 203 return v4l2_s_ctrl(vfh, vfh->ctrl_handler, arg); subdev_do_ioctl() 206 return v4l2_g_ext_ctrls(vfh->ctrl_handler, arg); subdev_do_ioctl() 209 return v4l2_s_ext_ctrls(vfh, vfh->ctrl_handler, arg); subdev_do_ioctl() 212 return v4l2_try_ext_ctrls(vfh->ctrl_handler, arg); subdev_do_ioctl() 218 return v4l2_event_dequeue(vfh, arg, file->f_flags & O_NONBLOCK); subdev_do_ioctl() 221 return v4l2_subdev_call(sd, core, subscribe_event, vfh, arg); subdev_do_ioctl() 224 return v4l2_subdev_call(sd, core, unsubscribe_event, vfh, arg); subdev_do_ioctl()
|
H A D | v4l2-ioctl.c | 1068 struct v4l2_fh *vfh; v4l_s_priority() local 1074 vfh = file->private_data; v4l_s_priority() 1075 return v4l2_prio_change(vfd->prio, &vfh->prio, *p); v4l_s_priority() 1907 struct v4l2_fh *vfh = v4l_queryctrl() local 1910 if (vfh && vfh->ctrl_handler) v4l_queryctrl() 1911 return v4l2_queryctrl(vfh->ctrl_handler, p); v4l_queryctrl() 1924 struct v4l2_fh *vfh = v4l_query_ext_ctrl() local 1927 if (vfh && vfh->ctrl_handler) v4l_query_ext_ctrl() 1928 return v4l2_query_ext_ctrl(vfh->ctrl_handler, p); v4l_query_ext_ctrl() 1941 struct v4l2_fh *vfh = v4l_querymenu() local 1944 if (vfh && vfh->ctrl_handler) v4l_querymenu() 1945 return v4l2_querymenu(vfh->ctrl_handler, p); v4l_querymenu() 1958 struct v4l2_fh *vfh = v4l_g_ctrl() local 1963 if (vfh && vfh->ctrl_handler) v4l_g_ctrl() 1964 return v4l2_g_ctrl(vfh->ctrl_handler, p); v4l_g_ctrl() 1992 struct v4l2_fh *vfh = v4l_s_ctrl() local 1997 if (vfh && vfh->ctrl_handler) v4l_s_ctrl() 1998 return v4l2_s_ctrl(vfh, vfh->ctrl_handler, p); v4l_s_ctrl() 2021 struct v4l2_fh *vfh = v4l_g_ext_ctrls() local 2025 if (vfh && vfh->ctrl_handler) v4l_g_ext_ctrls() 2026 return v4l2_g_ext_ctrls(vfh->ctrl_handler, p); v4l_g_ext_ctrls() 2040 struct v4l2_fh *vfh = v4l_s_ext_ctrls() local 2044 if (vfh && vfh->ctrl_handler) v4l_s_ext_ctrls() 2045 return v4l2_s_ext_ctrls(vfh, vfh->ctrl_handler, p); v4l_s_ext_ctrls() 2059 struct v4l2_fh *vfh = v4l_try_ext_ctrls() local 2063 if (vfh && vfh->ctrl_handler) v4l_try_ext_ctrls() 2064 return v4l2_try_ext_ctrls(vfh->ctrl_handler, p); v4l_try_ext_ctrls() 2572 struct v4l2_fh *vfh = NULL; __video_do_ioctl() local 2583 vfh = file->private_data; __video_do_ioctl() 2589 !((info->flags & INFO_FL_CTRL) && vfh && vfh->ctrl_handler)) __video_do_ioctl() 2592 if (vfh && (info->flags & INFO_FL_PRIO)) { __video_do_ioctl() 2593 ret = v4l2_prio_check(vfd->prio, vfh->prio); __video_do_ioctl() 2617 vfh ? v4l2_prio_check(vfd->prio, vfh->prio) >= 0 : 0, __video_do_ioctl()
|
H A D | v4l2-flash-led-class.c | 536 if (!v4l2_fh_is_singular(&fh->vfh)) v4l2_flash_open() 584 if (!v4l2_fh_is_singular(&fh->vfh)) v4l2_flash_close()
|
H A D | v4l2-ctrls.c | 3412 struct v4l2_fh *vfh = file->private_data; v4l2_ctrl_log_status() local 3415 v4l2_ctrl_handler_log_status(vfh->ctrl_handler, v4l2_ctrl_log_status()
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
H A D | ispvideo.c | 297 isp_video_check_format(struct isp_video *video, struct isp_video_fh *vfh) isp_video_check_format() argument 302 memcpy(&format, &vfh->format, sizeof(format)); isp_video_check_format() 307 if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat || isp_video_check_format() 308 vfh->format.fmt.pix.height != format.fmt.pix.height || isp_video_check_format() 309 vfh->format.fmt.pix.width != format.fmt.pix.width || isp_video_check_format() 310 vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || isp_video_check_format() 311 vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || isp_video_check_format() 312 vfh->format.fmt.pix.field != format.fmt.pix.field) isp_video_check_format() 327 struct isp_video_fh *vfh = vb2_get_drv_priv(queue); isp_video_queue_setup() local 328 struct isp_video *video = vfh->video; isp_video_queue_setup() 332 sizes[0] = vfh->format.fmt.pix.sizeimage; isp_video_queue_setup() 346 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); isp_video_buffer_prepare() local 348 struct isp_video *video = vfh->video; isp_video_buffer_prepare() 368 vfh->format.fmt.pix.sizeimage); isp_video_buffer_prepare() 386 struct isp_video_fh *vfh = vb2_get_drv_priv(buf->vb2_queue); isp_video_buffer_queue() local 388 struct isp_video *video = vfh->video; isp_video_buffer_queue() 618 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_get_format() local 625 *format = vfh->format; isp_video_get_format() 634 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_set_format() local 683 vfh->format = *format; isp_video_set_format() 790 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_get_param() local 800 a->parm.output.timeperframe = vfh->timeperframe; isp_video_get_param() 808 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_set_param() local 818 vfh->timeperframe = a->parm.output.timeperframe; isp_video_set_param() 826 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_reqbufs() local 831 ret = vb2_reqbufs(&vfh->queue, rb); isp_video_reqbufs() 840 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_querybuf() local 845 ret = vb2_querybuf(&vfh->queue, b); isp_video_querybuf() 854 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_qbuf() local 859 ret = vb2_qbuf(&vfh->queue, b); isp_video_qbuf() 868 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_dqbuf() local 873 ret = vb2_dqbuf(&vfh->queue, b, file->f_flags & O_NONBLOCK); isp_video_dqbuf() 1004 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_streamon() local 1035 ret = isp_video_check_format(video, vfh); isp_video_streamon() 1040 video->bpl_value = vfh->format.fmt.pix.bytesperline; isp_video_streamon() 1067 pipe->max_timeperframe = vfh->timeperframe; isp_video_streamon() 1069 video->queue = &vfh->queue; isp_video_streamon() 1072 pipe->field = vfh->format.fmt.pix.field; isp_video_streamon() 1075 ret = vb2_streamon(&vfh->queue, type); isp_video_streamon() 1100 vb2_streamoff(&vfh->queue, type); isp_video_streamon() 1123 struct isp_video_fh *vfh = to_isp_video_fh(fh); isp_video_streamoff() local 1137 streaming = vb2_is_streaming(&vfh->queue); isp_video_streamoff() 1160 vb2_streamoff(&vfh->queue, type); isp_video_streamoff() 1238 v4l2_fh_init(&handle->vfh, &video->video); isp_video_open() 1239 v4l2_fh_add(&handle->vfh); isp_video_open() 1273 file->private_data = &handle->vfh; isp_video_open() 1277 v4l2_fh_del(&handle->vfh); isp_video_open() 1287 struct v4l2_fh *vfh = file->private_data; isp_video_release() local 1288 struct isp_video_fh *handle = to_isp_video_fh(vfh); isp_video_release() 1291 isp_video_streamoff(file, vfh, video->type); isp_video_release() 1300 v4l2_fh_del(vfh); isp_video_release() 1311 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data); isp_video_poll() local 1316 ret = vb2_poll(&vfh->queue, file, wait); isp_video_poll() 1324 struct isp_video_fh *vfh = to_isp_video_fh(file->private_data); isp_video_mmap() local 1326 return vb2_mmap(&vfh->queue, vma); isp_video_mmap()
|
H A D | ispvideo.h | 187 struct v4l2_fh vfh; member in struct:isp_video_fh 194 #define to_isp_video_fh(fh) container_of(fh, struct isp_video_fh, vfh)
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
H A D | vsp1_video.c | 982 struct v4l2_fh *vfh = file->private_data; vsp1_video_querycap() local 983 struct vsp1_video *video = to_vsp1_video(vfh->vdev); vsp1_video_querycap() 1007 struct v4l2_fh *vfh = file->private_data; vsp1_video_get_format() local 1008 struct vsp1_video *video = to_vsp1_video(vfh->vdev); vsp1_video_get_format() 1023 struct v4l2_fh *vfh = file->private_data; vsp1_video_try_format() local 1024 struct vsp1_video *video = to_vsp1_video(vfh->vdev); vsp1_video_try_format() 1035 struct v4l2_fh *vfh = file->private_data; vsp1_video_set_format() local 1036 struct vsp1_video *video = to_vsp1_video(vfh->vdev); vsp1_video_set_format() 1065 struct v4l2_fh *vfh = file->private_data; vsp1_video_streamon() local 1066 struct vsp1_video *video = to_vsp1_video(vfh->vdev); vsp1_video_streamon() 1138 struct v4l2_fh *vfh; vsp1_video_open() local 1141 vfh = kzalloc(sizeof(*vfh), GFP_KERNEL); vsp1_video_open() 1142 if (vfh == NULL) vsp1_video_open() 1145 v4l2_fh_init(vfh, &video->video); vsp1_video_open() 1146 v4l2_fh_add(vfh); vsp1_video_open() 1148 file->private_data = vfh; vsp1_video_open() 1152 v4l2_fh_del(vfh); vsp1_video_open() 1153 kfree(vfh); vsp1_video_open() 1162 struct v4l2_fh *vfh = file->private_data; vsp1_video_release() local 1165 if (video->queue.owner == vfh) { vsp1_video_release()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | uvc_v4l2.c | 295 v4l2_fh_init(&handle->vfh, vdev); uvc_v4l2_open() 296 v4l2_fh_add(&handle->vfh); uvc_v4l2_open() 299 file->private_data = &handle->vfh; uvc_v4l2_open() 321 v4l2_fh_del(&handle->vfh); uvc_v4l2_release() 322 v4l2_fh_exit(&handle->vfh); uvc_v4l2_release()
|
H A D | uvc.h | 180 struct v4l2_fh vfh; member in struct:uvc_file_handle 185 container_of(handle, struct uvc_file_handle, vfh)
|
/linux-4.4.14/drivers/media/platform/xilinx/ |
H A D | xilinx-dma.c | 490 struct v4l2_fh *vfh = file->private_data; xvip_dma_querycap() local 491 struct xvip_dma *dma = to_xvip_dma(vfh->vdev); xvip_dma_querycap() 517 struct v4l2_fh *vfh = file->private_data; xvip_dma_enum_format() local 518 struct xvip_dma *dma = to_xvip_dma(vfh->vdev); xvip_dma_enum_format() 533 struct v4l2_fh *vfh = file->private_data; xvip_dma_get_format() local 534 struct xvip_dma *dma = to_xvip_dma(vfh->vdev); xvip_dma_get_format() 595 struct v4l2_fh *vfh = file->private_data; xvip_dma_try_format() local 596 struct xvip_dma *dma = to_xvip_dma(vfh->vdev); xvip_dma_try_format() 605 struct v4l2_fh *vfh = file->private_data; xvip_dma_set_format() local 606 struct xvip_dma *dma = to_xvip_dma(vfh->vdev); xvip_dma_set_format()
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
H A D | vpfe_mc_capture.h | 84 struct v4l2_fh vfh; member in struct:vpfe_fh
|
H A D | vpfe_video.c | 402 v4l2_fh_init(&handle->vfh, &video->video_dev); vpfe_open() 403 v4l2_fh_add(&handle->vfh); vpfe_open() 416 file->private_data = &handle->vfh; vpfe_open() 504 struct v4l2_fh *vfh = file->private_data; vpfe_release() local 506 struct vpfe_fh *fh = container_of(vfh, struct vpfe_fh, vfh); vpfe_release() 531 v4l2_fh_del(&fh->vfh); vpfe_release() 532 v4l2_fh_exit(&fh->vfh); vpfe_release() 539 v4l2_fh_del(vfh); vpfe_release()
|
/linux-4.4.14/drivers/media/usb/uvc/ |
H A D | uvc_v4l2.c | 511 v4l2_fh_init(&handle->vfh, &stream->vdev); uvc_v4l2_open() 512 v4l2_fh_add(&handle->vfh); uvc_v4l2_open() 534 v4l2_fh_del(&handle->vfh); uvc_v4l2_release() 535 v4l2_fh_exit(&handle->vfh); uvc_v4l2_release()
|
H A D | uvc_ctrl.c | 1231 if (sev->fh && (sev->fh != &handle->vfh || uvc_ctrl_send_event() 1307 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); uvc_ctrl_add_event() 1346 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); uvc_ctrl_del_event()
|
H A D | uvcvideo.h | 561 struct v4l2_fh vfh; member in struct:uvc_fh
|
/linux-4.4.14/include/media/ |
H A D | v4l2-subdev.h | 748 struct v4l2_fh vfh; member in struct:v4l2_subdev_fh 755 container_of(fh, struct v4l2_subdev_fh, vfh)
|
/linux-4.4.14/mm/ |
H A D | shmem.c | 2680 static int shmem_match(struct inode *ino, void *vfh) shmem_match() argument 2682 __u32 *fh = vfh; shmem_match()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4.h | 1296 u32 *vfl, u32 *vfh);
|
H A D | t4_hw.c | 4717 * @vfh: where to store the returned VFH 4723 u32 *vfl, u32 *vfh) t4_read_rss_vf_config() 4746 t4_fw_tp_pio_rw(adapter, vfh, 1, TP_RSS_VFH_CONFIG_A, 1); t4_read_rss_vf_config() 4751 vfh, 1, TP_RSS_VFH_CONFIG_A); t4_read_rss_vf_config() 4722 t4_read_rss_vf_config(struct adapter *adapter, unsigned int index, u32 *vfl, u32 *vfh) t4_read_rss_vf_config() argument
|