Lines Matching refs:vou_dev
93 static void sh_vou_reg_a_write(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_a_write() argument
96 __raw_writel(value, vou_dev->base + reg); in sh_vou_reg_a_write()
99 static void sh_vou_reg_ab_write(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_ab_write() argument
102 __raw_writel(value, vou_dev->base + reg); in sh_vou_reg_ab_write()
103 __raw_writel(value, vou_dev->base + reg + 0x1000); in sh_vou_reg_ab_write()
106 static void sh_vou_reg_m_write(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_m_write() argument
109 __raw_writel(value, vou_dev->base + reg + 0x2000); in sh_vou_reg_m_write()
112 static u32 sh_vou_reg_a_read(struct sh_vou_device *vou_dev, unsigned int reg) in sh_vou_reg_a_read() argument
114 return __raw_readl(vou_dev->base + reg); in sh_vou_reg_a_read()
117 static void sh_vou_reg_a_set(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_a_set() argument
120 u32 old = __raw_readl(vou_dev->base + reg); in sh_vou_reg_a_set()
123 __raw_writel(value, vou_dev->base + reg); in sh_vou_reg_a_set()
126 static void sh_vou_reg_b_set(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_b_set() argument
129 sh_vou_reg_a_set(vou_dev, reg + 0x1000, value, mask); in sh_vou_reg_b_set()
132 static void sh_vou_reg_ab_set(struct sh_vou_device *vou_dev, unsigned int reg, in sh_vou_reg_ab_set() argument
135 sh_vou_reg_a_set(vou_dev, reg, value, mask); in sh_vou_reg_ab_set()
136 sh_vou_reg_b_set(vou_dev, reg, value, mask); in sh_vou_reg_ab_set()
187 static void sh_vou_schedule_next(struct sh_vou_device *vou_dev, in sh_vou_schedule_next() argument
193 switch (vou_dev->pix.pixelformat) { in sh_vou_schedule_next()
196 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next()
202 sh_vou_reg_m_write(vou_dev, VOUAD1R, addr1); in sh_vou_schedule_next()
203 sh_vou_reg_m_write(vou_dev, VOUAD2R, addr2); in sh_vou_schedule_next()
206 static void sh_vou_stream_config(struct sh_vou_device *vou_dev) in sh_vou_stream_config() argument
215 switch (vou_dev->pix.pixelformat) { in sh_vou_stream_config()
232 sh_vou_reg_a_write(vou_dev, VOUSWR, dataswap); in sh_vou_stream_config()
233 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_config()
241 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_queue_setup() local
242 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_queue_setup()
243 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_queue_setup()
245 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_queue_setup()
256 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_prepare() local
257 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_buf_prepare()
258 unsigned bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare()
261 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_prepare()
265 dev_warn(vou_dev->v4l2_dev.dev, "buffer too small (%lu < %u)\n", in sh_vou_buf_prepare()
278 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_queue() local
282 spin_lock_irqsave(&vou_dev->lock, flags); in sh_vou_buf_queue()
283 list_add_tail(&shbuf->list, &vou_dev->buf_list); in sh_vou_buf_queue()
284 spin_unlock_irqrestore(&vou_dev->lock, flags); in sh_vou_buf_queue()
289 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_start_streaming() local
293 vou_dev->sequence = 0; in sh_vou_start_streaming()
294 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_start_streaming()
297 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_start_streaming()
302 vou_dev->active = NULL; in sh_vou_start_streaming()
306 buf = list_entry(vou_dev->buf_list.next, struct sh_vou_buffer, list); in sh_vou_start_streaming()
308 vou_dev->active = buf; in sh_vou_start_streaming()
311 sh_vou_reg_a_write(vou_dev, VOURPR, 1); in sh_vou_start_streaming()
312 dev_dbg(vou_dev->v4l2_dev.dev, "%s: first buffer status 0x%x\n", in sh_vou_start_streaming()
313 __func__, sh_vou_reg_a_read(vou_dev, VOUSTR)); in sh_vou_start_streaming()
314 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
319 sh_vou_reg_a_write(vou_dev, VOURPR, 0); in sh_vou_start_streaming()
320 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
323 sh_vou_reg_a_write(vou_dev, VOURCR, 5); in sh_vou_start_streaming()
325 sh_vou_stream_config(vou_dev); in sh_vou_start_streaming()
327 sh_vou_reg_a_write(vou_dev, VOUIR, 0x10004); in sh_vou_start_streaming()
330 vou_dev->status = SH_VOU_RUNNING; in sh_vou_start_streaming()
331 sh_vou_reg_a_write(vou_dev, VOUER, 0x107); in sh_vou_start_streaming()
337 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_stop_streaming() local
341 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_stop_streaming()
344 sh_vou_reg_a_set(vou_dev, VOUER, 0, 1); in sh_vou_stop_streaming()
346 sh_vou_reg_a_set(vou_dev, VOUIR, 0, 0x30000); in sh_vou_stop_streaming()
348 spin_lock_irqsave(&vou_dev->lock, flags); in sh_vou_stop_streaming()
349 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_stop_streaming()
353 vou_dev->active = NULL; in sh_vou_stop_streaming()
354 spin_unlock_irqrestore(&vou_dev->lock, flags); in sh_vou_stop_streaming()
371 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_querycap() local
373 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_querycap()
385 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_enum_fmt_vid_out() local
390 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_enum_fmt_vid_out()
400 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_fmt_vid_out() local
402 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_fmt_vid_out()
405 fmt->fmt.pix = vou_dev->pix; in sh_vou_g_fmt_vid_out()
417 static void sh_vou_configure_geometry(struct sh_vou_device *vou_dev, in sh_vou_configure_geometry() argument
423 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry()
424 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_configure_geometry()
427 if (vou_dev->std & V4L2_STD_525_60) { in sh_vou_configure_geometry()
464 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_configure_geometry()
470 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); in sh_vou_configure_geometry()
471 sh_vou_reg_ab_write(vou_dev, VOUVPR, (black_left << 16) | black_top); in sh_vou_configure_geometry()
472 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top); in sh_vou_configure_geometry()
473 sh_vou_reg_ab_write(vou_dev, VOUDSR, (dsr_h << 16) | dsr_v); in sh_vou_configure_geometry()
485 dev_dbg(vou_dev->v4l2_dev.dev, "0x%08x: scaling 0x%x\n", in sh_vou_configure_geometry()
489 sh_vou_reg_ab_write(vou_dev, VOUVCR, vouvcr); in sh_vou_configure_geometry()
490 sh_vou_reg_ab_write(vou_dev, VOUDFR, in sh_vou_configure_geometry()
654 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_try_fmt_vid_out() local
659 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_try_fmt_vid_out()
672 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_try_fmt_vid_out()
687 static int sh_vou_set_fmt_vid_out(struct sh_vou_device *vou_dev, in sh_vou_set_fmt_vid_out() argument
703 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_set_fmt_vid_out()
712 geo.output = vou_dev->rect; in sh_vou_set_fmt_vid_out()
714 vou_adjust_output(&geo, vou_dev->std); in sh_vou_set_fmt_vid_out()
718 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_set_fmt_vid_out()
724 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): %ux%u -> %ux%u\n", __func__, in sh_vou_set_fmt_vid_out()
727 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_set_fmt_vid_out()
743 vou_adjust_input(&geo, vou_dev->std); in sh_vou_set_fmt_vid_out()
747 vou_dev->rect = geo.output; in sh_vou_set_fmt_vid_out()
751 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): %ux%u\n", __func__, in sh_vou_set_fmt_vid_out()
754 vou_dev->pix_idx = pix_idx; in sh_vou_set_fmt_vid_out()
756 vou_dev->pix = *pix; in sh_vou_set_fmt_vid_out()
758 sh_vou_configure_geometry(vou_dev, pix_idx, in sh_vou_set_fmt_vid_out()
767 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_fmt_vid_out() local
772 return sh_vou_set_fmt_vid_out(vou_dev, &fmt->fmt.pix); in sh_vou_s_fmt_vid_out()
778 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_enum_output() local
784 a->std = vou_dev->vdev.tvnorms; in sh_vou_enum_output()
817 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_std() local
820 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): 0x%llx\n", __func__, std_id); in sh_vou_s_std()
822 if (std_id == vou_dev->std) in sh_vou_s_std()
825 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_s_std()
828 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, video, in sh_vou_s_std()
834 vou_dev->rect.top = vou_dev->rect.left = 0; in sh_vou_s_std()
835 vou_dev->rect.width = VOU_MAX_IMAGE_WIDTH; in sh_vou_s_std()
837 sh_vou_reg_ab_set(vou_dev, VOUCR, in sh_vou_s_std()
838 sh_vou_ntsc_mode(vou_dev->pdata->bus_fmt) << 29, 7 << 29); in sh_vou_s_std()
839 vou_dev->rect.height = 480; in sh_vou_s_std()
841 sh_vou_reg_ab_set(vou_dev, VOUCR, 5 << 29, 7 << 29); in sh_vou_s_std()
842 vou_dev->rect.height = 576; in sh_vou_s_std()
845 vou_dev->pix.width = vou_dev->rect.width; in sh_vou_s_std()
846 vou_dev->pix.height = vou_dev->rect.height; in sh_vou_s_std()
847 vou_dev->pix.bytesperline = in sh_vou_s_std()
848 vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpl; in sh_vou_s_std()
849 vou_dev->pix.sizeimage = vou_dev->pix.height * in sh_vou_s_std()
850 ((vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpp) >> 3); in sh_vou_s_std()
851 vou_dev->std = std_id; in sh_vou_s_std()
852 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_s_std()
859 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_std() local
861 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_std()
863 *std = vou_dev->std; in sh_vou_g_std()
870 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_log_status() local
872 pr_info("VOUER: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUER)); in sh_vou_log_status()
873 pr_info("VOUCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUCR)); in sh_vou_log_status()
874 pr_info("VOUSTR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSTR)); in sh_vou_log_status()
875 pr_info("VOUVCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUVCR)); in sh_vou_log_status()
876 pr_info("VOUISR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUISR)); in sh_vou_log_status()
877 pr_info("VOUBCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUBCR)); in sh_vou_log_status()
878 pr_info("VOUDPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDPR)); in sh_vou_log_status()
879 pr_info("VOUDSR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDSR)); in sh_vou_log_status()
880 pr_info("VOUVPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUVPR)); in sh_vou_log_status()
881 pr_info("VOUIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUIR)); in sh_vou_log_status()
882 pr_info("VOUSRR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSRR)); in sh_vou_log_status()
883 pr_info("VOUMSR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUMSR)); in sh_vou_log_status()
884 pr_info("VOUHIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUHIR)); in sh_vou_log_status()
885 pr_info("VOUDFR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDFR)); in sh_vou_log_status()
886 pr_info("VOUAD1R: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAD1R)); in sh_vou_log_status()
887 pr_info("VOUAD2R: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAD2R)); in sh_vou_log_status()
888 pr_info("VOUAIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAIR)); in sh_vou_log_status()
889 pr_info("VOUSWR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSWR)); in sh_vou_log_status()
890 pr_info("VOURCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOURCR)); in sh_vou_log_status()
891 pr_info("VOURPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOURPR)); in sh_vou_log_status()
898 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_selection() local
904 sel->r = vou_dev->rect; in sh_vou_g_selection()
911 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_g_selection()
927 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_selection() local
932 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_s_selection()
948 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_s_selection()
951 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_s_selection()
978 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_s_selection()
982 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_s_selection()
1001 vou_adjust_input(&geo, vou_dev->std); in sh_vou_s_selection()
1004 vou_dev->rect = geo.output; in sh_vou_s_selection()
1008 sh_vou_configure_geometry(vou_dev, vou_dev->pix_idx, in sh_vou_s_selection()
1016 struct sh_vou_device *vou_dev = dev_id; in sh_vou_isr() local
1020 u32 irq_status = sh_vou_reg_a_read(vou_dev, VOUIR), masked; in sh_vou_isr()
1021 u32 vou_status = sh_vou_reg_a_read(vou_dev, VOUSTR); in sh_vou_isr()
1025 dev_warn(vou_dev->v4l2_dev.dev, "IRQ status 0x%x!\n", in sh_vou_isr()
1030 spin_lock(&vou_dev->lock); in sh_vou_isr()
1031 if (!vou_dev->active || list_empty(&vou_dev->buf_list)) { in sh_vou_isr()
1033 dev_warn(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1036 sh_vou_reg_a_set(vou_dev, VOUIR, 0, 0x300); in sh_vou_isr()
1037 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1042 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1050 sh_vou_reg_a_write(vou_dev, VOUIR, masked); in sh_vou_isr()
1052 vb = vou_dev->active; in sh_vou_isr()
1055 sh_vou_schedule_next(vou_dev, &vb->vb); in sh_vou_isr()
1056 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1063 vb->vb.sequence = vou_dev->sequence++; in sh_vou_isr()
1067 vou_dev->active = list_entry(vou_dev->buf_list.next, in sh_vou_isr()
1070 if (list_is_singular(&vou_dev->buf_list)) { in sh_vou_isr()
1072 sh_vou_schedule_next(vou_dev, &vou_dev->active->vb); in sh_vou_isr()
1074 struct sh_vou_buffer *new = list_entry(vou_dev->active->list.next, in sh_vou_isr()
1076 sh_vou_schedule_next(vou_dev, &new->vb); in sh_vou_isr()
1079 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1084 static int sh_vou_hw_init(struct sh_vou_device *vou_dev) in sh_vou_hw_init() argument
1086 struct sh_vou_pdata *pdata = vou_dev->pdata; in sh_vou_hw_init()
1091 sh_vou_reg_a_write(vou_dev, VOUIR, 0); in sh_vou_hw_init()
1094 sh_vou_reg_a_write(vou_dev, VOUSRR, 0x101); in sh_vou_hw_init()
1095 while (--i && (sh_vou_reg_a_read(vou_dev, VOUSRR) & 0x101)) in sh_vou_hw_init()
1101 dev_dbg(vou_dev->v4l2_dev.dev, "Reset took %dus\n", 100 - i); in sh_vou_hw_init()
1109 sh_vou_reg_ab_set(vou_dev, VOUCR, voucr, 0xfc000000); in sh_vou_hw_init()
1112 sh_vou_reg_a_write(vou_dev, VOURCR, 4); in sh_vou_hw_init()
1114 sh_vou_reg_ab_write(vou_dev, VOUMSR, 0x800000); in sh_vou_hw_init()
1116 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_hw_init()
1124 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_open() local
1127 if (mutex_lock_interruptible(&vou_dev->fop_lock)) in sh_vou_open()
1134 vou_dev->status == SH_VOU_INITIALISING) { in sh_vou_open()
1136 err = pm_runtime_resume_and_get(vou_dev->v4l2_dev.dev); in sh_vou_open()
1141 err = sh_vou_hw_init(vou_dev); in sh_vou_open()
1143 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_open()
1146 vou_dev->status = SH_VOU_IDLE; in sh_vou_open()
1150 mutex_unlock(&vou_dev->fop_lock); in sh_vou_open()
1156 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_release() local
1159 mutex_lock(&vou_dev->fop_lock); in sh_vou_release()
1164 vou_dev->status = SH_VOU_INITIALISING; in sh_vou_release()
1165 sh_vou_reg_a_set(vou_dev, VOUER, 0, 0x101); in sh_vou_release()
1166 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_release()
1168 mutex_unlock(&vou_dev->fop_lock); in sh_vou_release()
1225 struct sh_vou_device *vou_dev; in sh_vou_probe() local
1239 vou_dev = devm_kzalloc(&pdev->dev, sizeof(*vou_dev), GFP_KERNEL); in sh_vou_probe()
1240 if (!vou_dev) in sh_vou_probe()
1243 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
1244 spin_lock_init(&vou_dev->lock); in sh_vou_probe()
1245 mutex_init(&vou_dev->fop_lock); in sh_vou_probe()
1246 vou_dev->pdata = vou_pdata; in sh_vou_probe()
1247 vou_dev->status = SH_VOU_INITIALISING; in sh_vou_probe()
1248 vou_dev->pix_idx = 1; in sh_vou_probe()
1250 rect = &vou_dev->rect; in sh_vou_probe()
1251 pix = &vou_dev->pix; in sh_vou_probe()
1254 vou_dev->std = V4L2_STD_NTSC_M; in sh_vou_probe()
1267 vou_dev->base = devm_platform_ioremap_resource(pdev, 0); in sh_vou_probe()
1268 if (IS_ERR(vou_dev->base)) in sh_vou_probe()
1269 return PTR_ERR(vou_dev->base); in sh_vou_probe()
1271 ret = devm_request_irq(&pdev->dev, irq, sh_vou_isr, 0, "vou", vou_dev); in sh_vou_probe()
1275 ret = v4l2_device_register(&pdev->dev, &vou_dev->v4l2_dev); in sh_vou_probe()
1281 vdev = &vou_dev->vdev; in sh_vou_probe()
1285 vdev->v4l2_dev = &vou_dev->v4l2_dev; in sh_vou_probe()
1287 vdev->lock = &vou_dev->fop_lock; in sh_vou_probe()
1289 video_set_drvdata(vdev, vou_dev); in sh_vou_probe()
1292 q = &vou_dev->queue; in sh_vou_probe()
1295 q->drv_priv = vou_dev; in sh_vou_probe()
1301 q->lock = &vou_dev->fop_lock; in sh_vou_probe()
1308 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
1319 ret = sh_vou_hw_init(vou_dev); in sh_vou_probe()
1323 subdev = v4l2_i2c_new_subdev_board(&vou_dev->v4l2_dev, i2c_adap, in sh_vou_probe()
1342 v4l2_device_unregister(&vou_dev->v4l2_dev); in sh_vou_probe()
1349 struct sh_vou_device *vou_dev = container_of(v4l2_dev, in sh_vou_remove() local
1356 video_unregister_device(&vou_dev->vdev); in sh_vou_remove()
1358 v4l2_device_unregister(&vou_dev->v4l2_dev); in sh_vou_remove()