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()
193 static void sh_vou_schedule_next(struct sh_vou_device *vou_dev, in sh_vou_schedule_next() argument
199 switch (vou_dev->pix.pixelformat) { in sh_vou_schedule_next()
202 addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; in sh_vou_schedule_next()
208 sh_vou_reg_m_write(vou_dev, VOUAD1R, addr1); in sh_vou_schedule_next()
209 sh_vou_reg_m_write(vou_dev, VOUAD2R, addr2); in sh_vou_schedule_next()
212 static void sh_vou_stream_config(struct sh_vou_device *vou_dev) in sh_vou_stream_config() argument
221 switch (vou_dev->pix.pixelformat) { in sh_vou_stream_config()
238 sh_vou_reg_a_write(vou_dev, VOUSWR, dataswap); in sh_vou_stream_config()
239 sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); in sh_vou_stream_config()
247 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_queue_setup() local
248 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_queue_setup()
249 int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_queue_setup()
251 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_queue_setup()
262 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_prepare() local
263 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_buf_prepare()
264 unsigned bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; in sh_vou_buf_prepare()
267 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_prepare()
271 dev_warn(vou_dev->v4l2_dev.dev, "buffer too small (%lu < %u)\n", in sh_vou_buf_prepare()
284 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_queue() local
288 spin_lock_irqsave(&vou_dev->lock, flags); in sh_vou_buf_queue()
289 list_add_tail(&shbuf->list, &vou_dev->buf_list); in sh_vou_buf_queue()
290 spin_unlock_irqrestore(&vou_dev->lock, flags); in sh_vou_buf_queue()
295 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_start_streaming() local
299 vou_dev->sequence = 0; in sh_vou_start_streaming()
300 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_start_streaming()
303 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_start_streaming()
308 vou_dev->active = NULL; in sh_vou_start_streaming()
312 buf = list_entry(vou_dev->buf_list.next, struct sh_vou_buffer, list); in sh_vou_start_streaming()
314 vou_dev->active = buf; in sh_vou_start_streaming()
317 sh_vou_reg_a_write(vou_dev, VOURPR, 1); in sh_vou_start_streaming()
318 dev_dbg(vou_dev->v4l2_dev.dev, "%s: first buffer status 0x%x\n", in sh_vou_start_streaming()
319 __func__, sh_vou_reg_a_read(vou_dev, VOUSTR)); in sh_vou_start_streaming()
320 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
325 sh_vou_reg_a_write(vou_dev, VOURPR, 0); in sh_vou_start_streaming()
326 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
329 sh_vou_reg_a_write(vou_dev, VOURCR, 5); in sh_vou_start_streaming()
331 sh_vou_stream_config(vou_dev); in sh_vou_start_streaming()
333 sh_vou_reg_a_write(vou_dev, VOUIR, 0x10004); in sh_vou_start_streaming()
336 vou_dev->status = SH_VOU_RUNNING; in sh_vou_start_streaming()
337 sh_vou_reg_a_write(vou_dev, VOUER, 0x107); in sh_vou_start_streaming()
343 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vq); in sh_vou_stop_streaming() local
347 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_stop_streaming()
350 sh_vou_reg_a_set(vou_dev, VOUER, 0, 1); in sh_vou_stop_streaming()
352 sh_vou_reg_a_set(vou_dev, VOUIR, 0, 0x30000); in sh_vou_stop_streaming()
354 spin_lock_irqsave(&vou_dev->lock, flags); in sh_vou_stop_streaming()
355 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_stop_streaming()
359 vou_dev->active = NULL; in sh_vou_stop_streaming()
360 spin_unlock_irqrestore(&vou_dev->lock, flags); in sh_vou_stop_streaming()
377 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_querycap() local
379 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_querycap()
394 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_enum_fmt_vid_out() local
399 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_enum_fmt_vid_out()
412 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_fmt_vid_out() local
414 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_fmt_vid_out()
417 fmt->fmt.pix = vou_dev->pix; in sh_vou_g_fmt_vid_out()
429 static void sh_vou_configure_geometry(struct sh_vou_device *vou_dev, in sh_vou_configure_geometry() argument
435 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry()
436 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_configure_geometry()
439 if (vou_dev->std & V4L2_STD_525_60) { in sh_vou_configure_geometry()
476 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_configure_geometry()
482 sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); in sh_vou_configure_geometry()
483 sh_vou_reg_ab_write(vou_dev, VOUVPR, (black_left << 16) | black_top); in sh_vou_configure_geometry()
484 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top); in sh_vou_configure_geometry()
485 sh_vou_reg_ab_write(vou_dev, VOUDSR, (dsr_h << 16) | dsr_v); in sh_vou_configure_geometry()
497 dev_dbg(vou_dev->v4l2_dev.dev, "%s: scaling 0x%x\n", fmt->desc, vouvcr); in sh_vou_configure_geometry()
500 sh_vou_reg_ab_write(vou_dev, VOUVCR, vouvcr); in sh_vou_configure_geometry()
501 sh_vou_reg_ab_write(vou_dev, VOUDFR, in sh_vou_configure_geometry()
665 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_try_fmt_vid_out() local
670 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_try_fmt_vid_out()
683 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_try_fmt_vid_out()
698 static int sh_vou_set_fmt_vid_out(struct sh_vou_device *vou_dev, in sh_vou_set_fmt_vid_out() argument
714 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_set_fmt_vid_out()
723 geo.output = vou_dev->rect; in sh_vou_set_fmt_vid_out()
725 vou_adjust_output(&geo, vou_dev->std); in sh_vou_set_fmt_vid_out()
729 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_set_fmt_vid_out()
735 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): %ux%u -> %ux%u\n", __func__, in sh_vou_set_fmt_vid_out()
738 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_set_fmt_vid_out()
754 vou_adjust_input(&geo, vou_dev->std); in sh_vou_set_fmt_vid_out()
758 vou_dev->rect = geo.output; in sh_vou_set_fmt_vid_out()
762 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): %ux%u\n", __func__, in sh_vou_set_fmt_vid_out()
765 vou_dev->pix_idx = pix_idx; in sh_vou_set_fmt_vid_out()
767 vou_dev->pix = *pix; in sh_vou_set_fmt_vid_out()
769 sh_vou_configure_geometry(vou_dev, pix_idx, in sh_vou_set_fmt_vid_out()
778 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_fmt_vid_out() local
783 return sh_vou_set_fmt_vid_out(vou_dev, &fmt->fmt.pix); in sh_vou_s_fmt_vid_out()
789 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_enum_output() local
795 a->std = vou_dev->vdev.tvnorms; in sh_vou_enum_output()
828 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_std() local
831 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): 0x%llx\n", __func__, std_id); in sh_vou_s_std()
833 if (std_id == vou_dev->std) in sh_vou_s_std()
836 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_s_std()
839 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, video, in sh_vou_s_std()
845 vou_dev->rect.top = vou_dev->rect.left = 0; in sh_vou_s_std()
846 vou_dev->rect.width = VOU_MAX_IMAGE_WIDTH; in sh_vou_s_std()
848 sh_vou_reg_ab_set(vou_dev, VOUCR, in sh_vou_s_std()
849 sh_vou_ntsc_mode(vou_dev->pdata->bus_fmt) << 29, 7 << 29); in sh_vou_s_std()
850 vou_dev->rect.height = 480; in sh_vou_s_std()
852 sh_vou_reg_ab_set(vou_dev, VOUCR, 5 << 29, 7 << 29); in sh_vou_s_std()
853 vou_dev->rect.height = 576; in sh_vou_s_std()
856 vou_dev->pix.width = vou_dev->rect.width; in sh_vou_s_std()
857 vou_dev->pix.height = vou_dev->rect.height; in sh_vou_s_std()
858 vou_dev->pix.bytesperline = in sh_vou_s_std()
859 vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpl; in sh_vou_s_std()
860 vou_dev->pix.sizeimage = vou_dev->pix.height * in sh_vou_s_std()
861 ((vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpp) >> 3); in sh_vou_s_std()
862 vou_dev->std = std_id; in sh_vou_s_std()
863 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_s_std()
870 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_std() local
872 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_std()
874 *std = vou_dev->std; in sh_vou_g_std()
881 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_log_status() local
883 pr_info("VOUER: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUER)); in sh_vou_log_status()
884 pr_info("VOUCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUCR)); in sh_vou_log_status()
885 pr_info("VOUSTR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSTR)); in sh_vou_log_status()
886 pr_info("VOUVCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUVCR)); in sh_vou_log_status()
887 pr_info("VOUISR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUISR)); in sh_vou_log_status()
888 pr_info("VOUBCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUBCR)); in sh_vou_log_status()
889 pr_info("VOUDPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDPR)); in sh_vou_log_status()
890 pr_info("VOUDSR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDSR)); in sh_vou_log_status()
891 pr_info("VOUVPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUVPR)); in sh_vou_log_status()
892 pr_info("VOUIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUIR)); in sh_vou_log_status()
893 pr_info("VOUSRR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSRR)); in sh_vou_log_status()
894 pr_info("VOUMSR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUMSR)); in sh_vou_log_status()
895 pr_info("VOUHIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUHIR)); in sh_vou_log_status()
896 pr_info("VOUDFR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUDFR)); in sh_vou_log_status()
897 pr_info("VOUAD1R: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAD1R)); in sh_vou_log_status()
898 pr_info("VOUAD2R: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAD2R)); in sh_vou_log_status()
899 pr_info("VOUAIR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUAIR)); in sh_vou_log_status()
900 pr_info("VOUSWR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOUSWR)); in sh_vou_log_status()
901 pr_info("VOURCR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOURCR)); in sh_vou_log_status()
902 pr_info("VOURPR: 0x%08x\n", sh_vou_reg_a_read(vou_dev, VOURPR)); in sh_vou_log_status()
909 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_g_selection() local
915 sel->r = vou_dev->rect; in sh_vou_g_selection()
922 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_g_selection()
938 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_s_selection() local
943 struct v4l2_pix_format *pix = &vou_dev->pix; in sh_vou_s_selection()
959 if (vb2_is_busy(&vou_dev->queue)) in sh_vou_s_selection()
962 if (vou_dev->std & V4L2_STD_525_60) in sh_vou_s_selection()
989 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_s_selection()
993 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, pad, in sh_vou_s_selection()
1012 vou_adjust_input(&geo, vou_dev->std); in sh_vou_s_selection()
1015 vou_dev->rect = geo.output; in sh_vou_s_selection()
1019 sh_vou_configure_geometry(vou_dev, vou_dev->pix_idx, in sh_vou_s_selection()
1027 struct sh_vou_device *vou_dev = dev_id; in sh_vou_isr() local
1031 u32 irq_status = sh_vou_reg_a_read(vou_dev, VOUIR), masked; in sh_vou_isr()
1032 u32 vou_status = sh_vou_reg_a_read(vou_dev, VOUSTR); in sh_vou_isr()
1036 dev_warn(vou_dev->v4l2_dev.dev, "IRQ status 0x%x!\n", in sh_vou_isr()
1041 spin_lock(&vou_dev->lock); in sh_vou_isr()
1042 if (!vou_dev->active || list_empty(&vou_dev->buf_list)) { in sh_vou_isr()
1044 dev_warn(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1047 sh_vou_reg_a_set(vou_dev, VOUIR, 0, 0x300); in sh_vou_isr()
1048 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1053 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1061 sh_vou_reg_a_write(vou_dev, VOUIR, masked); in sh_vou_isr()
1063 vb = vou_dev->active; in sh_vou_isr()
1066 sh_vou_schedule_next(vou_dev, &vb->vb); in sh_vou_isr()
1067 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1074 vb->vb.sequence = vou_dev->sequence++; in sh_vou_isr()
1078 vou_dev->active = list_entry(vou_dev->buf_list.next, in sh_vou_isr()
1081 if (list_is_singular(&vou_dev->buf_list)) { in sh_vou_isr()
1083 sh_vou_schedule_next(vou_dev, &vou_dev->active->vb); in sh_vou_isr()
1085 struct sh_vou_buffer *new = list_entry(vou_dev->active->list.next, in sh_vou_isr()
1087 sh_vou_schedule_next(vou_dev, &new->vb); in sh_vou_isr()
1090 spin_unlock(&vou_dev->lock); in sh_vou_isr()
1095 static int sh_vou_hw_init(struct sh_vou_device *vou_dev) in sh_vou_hw_init() argument
1097 struct sh_vou_pdata *pdata = vou_dev->pdata; in sh_vou_hw_init()
1102 sh_vou_reg_a_write(vou_dev, VOUIR, 0); in sh_vou_hw_init()
1105 sh_vou_reg_a_write(vou_dev, VOUSRR, 0x101); in sh_vou_hw_init()
1106 while (--i && (sh_vou_reg_a_read(vou_dev, VOUSRR) & 0x101)) in sh_vou_hw_init()
1112 dev_dbg(vou_dev->v4l2_dev.dev, "Reset took %dus\n", 100 - i); in sh_vou_hw_init()
1120 sh_vou_reg_ab_set(vou_dev, VOUCR, voucr, 0xfc000000); in sh_vou_hw_init()
1123 sh_vou_reg_a_write(vou_dev, VOURCR, 4); in sh_vou_hw_init()
1125 sh_vou_reg_ab_write(vou_dev, VOUMSR, 0x800000); in sh_vou_hw_init()
1127 sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); in sh_vou_hw_init()
1135 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_open() local
1138 if (mutex_lock_interruptible(&vou_dev->fop_lock)) in sh_vou_open()
1145 vou_dev->status == SH_VOU_INITIALISING) { in sh_vou_open()
1147 pm_runtime_get_sync(vou_dev->v4l2_dev.dev); in sh_vou_open()
1148 err = sh_vou_hw_init(vou_dev); in sh_vou_open()
1150 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_open()
1153 vou_dev->status = SH_VOU_IDLE; in sh_vou_open()
1157 mutex_unlock(&vou_dev->fop_lock); in sh_vou_open()
1163 struct sh_vou_device *vou_dev = video_drvdata(file); in sh_vou_release() local
1166 mutex_lock(&vou_dev->fop_lock); in sh_vou_release()
1171 vou_dev->status = SH_VOU_INITIALISING; in sh_vou_release()
1172 sh_vou_reg_a_set(vou_dev, VOUER, 0, 0x101); in sh_vou_release()
1173 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_release()
1175 mutex_unlock(&vou_dev->fop_lock); in sh_vou_release()
1230 struct sh_vou_device *vou_dev; in sh_vou_probe() local
1244 vou_dev = devm_kzalloc(&pdev->dev, sizeof(*vou_dev), GFP_KERNEL); in sh_vou_probe()
1245 if (!vou_dev) in sh_vou_probe()
1248 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
1249 spin_lock_init(&vou_dev->lock); in sh_vou_probe()
1250 mutex_init(&vou_dev->fop_lock); in sh_vou_probe()
1251 vou_dev->pdata = vou_pdata; in sh_vou_probe()
1252 vou_dev->status = SH_VOU_INITIALISING; in sh_vou_probe()
1253 vou_dev->pix_idx = 1; in sh_vou_probe()
1255 rect = &vou_dev->rect; in sh_vou_probe()
1256 pix = &vou_dev->pix; in sh_vou_probe()
1259 vou_dev->std = V4L2_STD_NTSC_M; in sh_vou_probe()
1272 vou_dev->base = devm_ioremap_resource(&pdev->dev, reg_res); in sh_vou_probe()
1273 if (IS_ERR(vou_dev->base)) in sh_vou_probe()
1274 return PTR_ERR(vou_dev->base); in sh_vou_probe()
1276 ret = devm_request_irq(&pdev->dev, irq, sh_vou_isr, 0, "vou", vou_dev); in sh_vou_probe()
1280 ret = v4l2_device_register(&pdev->dev, &vou_dev->v4l2_dev); in sh_vou_probe()
1286 vdev = &vou_dev->vdev; in sh_vou_probe()
1290 vdev->v4l2_dev = &vou_dev->v4l2_dev; in sh_vou_probe()
1292 vdev->lock = &vou_dev->fop_lock; in sh_vou_probe()
1294 video_set_drvdata(vdev, vou_dev); in sh_vou_probe()
1297 q = &vou_dev->queue; in sh_vou_probe()
1300 q->drv_priv = vou_dev; in sh_vou_probe()
1306 q->lock = &vou_dev->fop_lock; in sh_vou_probe()
1313 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
1324 ret = sh_vou_hw_init(vou_dev); in sh_vou_probe()
1328 subdev = v4l2_i2c_new_subdev_board(&vou_dev->v4l2_dev, i2c_adap, in sh_vou_probe()
1347 v4l2_device_unregister(&vou_dev->v4l2_dev); in sh_vou_probe()
1354 struct sh_vou_device *vou_dev = container_of(v4l2_dev, in sh_vou_remove() local
1361 video_unregister_device(&vou_dev->vdev); in sh_vou_remove()
1363 v4l2_device_unregister(&vou_dev->v4l2_dev); in sh_vou_remove()