Lines Matching refs:isi

136 static void isi_writel(struct atmel_isi *isi, u32 reg, u32 val)  in isi_writel()  argument
138 writel(val, isi->regs + reg); in isi_writel()
140 static u32 isi_readl(struct atmel_isi *isi, u32 reg) in isi_readl() argument
142 return readl(isi->regs + reg); in isi_readl()
145 static void configure_geometry(struct atmel_isi *isi) in configure_geometry() argument
148 u32 fourcc = isi->current_fmt->fourcc; in configure_geometry()
150 isi->enable_preview_path = fourcc == V4L2_PIX_FMT_RGB565 || in configure_geometry()
155 cfg2 = isi->current_fmt->swap; in configure_geometry()
157 isi_writel(isi, ISI_CTRL, ISI_CTRL_DIS); in configure_geometry()
159 cfg2 |= ((isi->fmt.fmt.pix.width - 1) << ISI_CFG2_IM_HSIZE_OFFSET) & in configure_geometry()
162 cfg2 |= ((isi->fmt.fmt.pix.height - 1) << ISI_CFG2_IM_VSIZE_OFFSET) in configure_geometry()
164 isi_writel(isi, ISI_CFG2, cfg2); in configure_geometry()
167 psize = ((isi->fmt.fmt.pix.width - 1) << ISI_PSIZE_PREV_HSIZE_OFFSET) & in configure_geometry()
169 psize |= ((isi->fmt.fmt.pix.height - 1) << ISI_PSIZE_PREV_VSIZE_OFFSET) & in configure_geometry()
171 isi_writel(isi, ISI_PSIZE, psize); in configure_geometry()
172 isi_writel(isi, ISI_PDECF, ISI_PDECF_NO_SAMPLING); in configure_geometry()
175 static irqreturn_t atmel_isi_handle_streaming(struct atmel_isi *isi) in atmel_isi_handle_streaming() argument
177 if (isi->active) { in atmel_isi_handle_streaming()
178 struct vb2_v4l2_buffer *vbuf = &isi->active->vb; in atmel_isi_handle_streaming()
179 struct frame_buffer *buf = isi->active; in atmel_isi_handle_streaming()
183 vbuf->sequence = isi->sequence++; in atmel_isi_handle_streaming()
188 if (list_empty(&isi->video_buffer_list)) { in atmel_isi_handle_streaming()
189 isi->active = NULL; in atmel_isi_handle_streaming()
192 isi->active = list_entry(isi->video_buffer_list.next, in atmel_isi_handle_streaming()
194 if (!isi->enable_preview_path) { in atmel_isi_handle_streaming()
195 isi_writel(isi, ISI_DMA_C_DSCR, in atmel_isi_handle_streaming()
196 (u32)isi->active->p_dma_desc->fbd_phys); in atmel_isi_handle_streaming()
197 isi_writel(isi, ISI_DMA_C_CTRL, in atmel_isi_handle_streaming()
199 isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH); in atmel_isi_handle_streaming()
201 isi_writel(isi, ISI_DMA_P_DSCR, in atmel_isi_handle_streaming()
202 (u32)isi->active->p_dma_desc->fbd_phys); in atmel_isi_handle_streaming()
203 isi_writel(isi, ISI_DMA_P_CTRL, in atmel_isi_handle_streaming()
205 isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_P_CH); in atmel_isi_handle_streaming()
214 struct atmel_isi *isi = dev_id; in isi_interrupt() local
218 spin_lock(&isi->irqlock); in isi_interrupt()
220 status = isi_readl(isi, ISI_STATUS); in isi_interrupt()
221 mask = isi_readl(isi, ISI_INTMASK); in isi_interrupt()
225 complete(&isi->complete); in isi_interrupt()
226 isi_writel(isi, ISI_INTDIS, ISI_CTRL_SRST); in isi_interrupt()
229 complete(&isi->complete); in isi_interrupt()
230 isi_writel(isi, ISI_INTDIS, ISI_CTRL_DIS); in isi_interrupt()
235 ret = atmel_isi_handle_streaming(isi); in isi_interrupt()
238 spin_unlock(&isi->irqlock); in isi_interrupt()
244 static int atmel_isi_wait_status(struct atmel_isi *isi, int wait_reset) in atmel_isi_wait_status() argument
251 init_completion(&isi->complete); in atmel_isi_wait_status()
254 isi_writel(isi, ISI_INTEN, ISI_CTRL_SRST); in atmel_isi_wait_status()
255 isi_writel(isi, ISI_CTRL, ISI_CTRL_SRST); in atmel_isi_wait_status()
257 isi_writel(isi, ISI_INTEN, ISI_CTRL_DIS); in atmel_isi_wait_status()
258 isi_writel(isi, ISI_CTRL, ISI_CTRL_DIS); in atmel_isi_wait_status()
261 timeout = wait_for_completion_timeout(&isi->complete, in atmel_isi_wait_status()
276 struct atmel_isi *isi = vb2_get_drv_priv(vq); in queue_setup() local
279 size = isi->fmt.fmt.pix.sizeimage; in queue_setup()
288 isi->active = NULL; in queue_setup()
290 dev_dbg(isi->dev, "%s, count=%d, size=%ld\n", __func__, in queue_setup()
311 struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() local
315 size = isi->fmt.fmt.pix.sizeimage; in buffer_prepare()
318 dev_err(isi->dev, "%s data will not fit into plane (%lu < %lu)\n", in buffer_prepare()
326 if (list_empty(&isi->dma_desc_head)) { in buffer_prepare()
327 dev_err(isi->dev, "Not enough dma descriptors.\n"); in buffer_prepare()
331 desc = list_entry(isi->dma_desc_head.next, in buffer_prepare()
351 struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue); in buffer_cleanup() local
356 list_add(&buf->p_dma_desc->list, &isi->dma_desc_head); in buffer_cleanup()
359 static void start_dma(struct atmel_isi *isi, struct frame_buffer *buffer) in start_dma() argument
363 cfg1 = isi_readl(isi, ISI_CFG1); in start_dma()
365 isi_writel(isi, ISI_INTEN, in start_dma()
369 if (!isi->enable_preview_path) { in start_dma()
370 if (isi_readl(isi, ISI_STATUS) & ISI_CTRL_CDC) { in start_dma()
371 dev_err(isi->dev, "Already in frame handling.\n"); in start_dma()
375 isi_writel(isi, ISI_DMA_C_DSCR, in start_dma()
377 isi_writel(isi, ISI_DMA_C_CTRL, in start_dma()
379 isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_C_CH); in start_dma()
381 isi_writel(isi, ISI_DMA_P_DSCR, in start_dma()
383 isi_writel(isi, ISI_DMA_P_CTRL, in start_dma()
385 isi_writel(isi, ISI_DMA_CHER, ISI_DMA_CHSR_P_CH); in start_dma()
390 cfg1 |= isi->pdata.frate | ISI_CFG1_DISCR; in start_dma()
395 if (!isi->enable_preview_path) in start_dma()
398 isi_writel(isi, ISI_CTRL, ctrl); in start_dma()
399 isi_writel(isi, ISI_CFG1, cfg1); in start_dma()
405 struct atmel_isi *isi = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue() local
409 spin_lock_irqsave(&isi->irqlock, flags); in buffer_queue()
410 list_add_tail(&buf->list, &isi->video_buffer_list); in buffer_queue()
412 if (!isi->active) { in buffer_queue()
413 isi->active = buf; in buffer_queue()
415 start_dma(isi, buf); in buffer_queue()
417 spin_unlock_irqrestore(&isi->irqlock, flags); in buffer_queue()
422 struct atmel_isi *isi = vb2_get_drv_priv(vq); in start_streaming() local
426 pm_runtime_get_sync(isi->dev); in start_streaming()
429 ret = v4l2_subdev_call(isi->entity.subdev, video, s_stream, 1); in start_streaming()
431 dev_err(isi->dev, "stream on failed in subdev\n"); in start_streaming()
436 ret = atmel_isi_wait_status(isi, WAIT_ISI_RESET); in start_streaming()
438 dev_err(isi->dev, "Reset ISI timed out\n"); in start_streaming()
442 isi_writel(isi, ISI_INTDIS, (u32)~0UL); in start_streaming()
444 isi->sequence = 0; in start_streaming()
445 configure_geometry(isi); in start_streaming()
447 spin_lock_irq(&isi->irqlock); in start_streaming()
449 isi_readl(isi, ISI_STATUS); in start_streaming()
451 start_dma(isi, isi->active); in start_streaming()
452 spin_unlock_irq(&isi->irqlock); in start_streaming()
457 v4l2_subdev_call(isi->entity.subdev, video, s_stream, 0); in start_streaming()
460 pm_runtime_put(isi->dev); in start_streaming()
462 spin_lock_irq(&isi->irqlock); in start_streaming()
463 isi->active = NULL; in start_streaming()
465 list_for_each_entry_safe(buf, node, &isi->video_buffer_list, list) { in start_streaming()
469 spin_unlock_irq(&isi->irqlock); in start_streaming()
477 struct atmel_isi *isi = vb2_get_drv_priv(vq); in stop_streaming() local
483 ret = v4l2_subdev_call(isi->entity.subdev, video, s_stream, 0); in stop_streaming()
485 dev_err(isi->dev, "stream off failed in subdev\n"); in stop_streaming()
487 spin_lock_irq(&isi->irqlock); in stop_streaming()
488 isi->active = NULL; in stop_streaming()
490 list_for_each_entry_safe(buf, node, &isi->video_buffer_list, list) { in stop_streaming()
494 spin_unlock_irq(&isi->irqlock); in stop_streaming()
496 if (!isi->enable_preview_path) { in stop_streaming()
499 while ((isi_readl(isi, ISI_STATUS) & ISI_CTRL_CDC) && in stop_streaming()
504 dev_err(isi->dev, in stop_streaming()
509 isi_writel(isi, ISI_INTDIS, in stop_streaming()
513 ret = atmel_isi_wait_status(isi, WAIT_ISI_DISABLE); in stop_streaming()
515 dev_err(isi->dev, "Disable ISI timed out\n"); in stop_streaming()
517 pm_runtime_put(isi->dev); in stop_streaming()
535 struct atmel_isi *isi = video_drvdata(file); in isi_g_fmt_vid_cap() local
537 *fmt = isi->fmt; in isi_g_fmt_vid_cap()
542 static const struct isi_format *find_format_by_fourcc(struct atmel_isi *isi, in find_format_by_fourcc() argument
545 unsigned int num_formats = isi->num_user_formats; in find_format_by_fourcc()
550 fmt = isi->user_formats[i]; in find_format_by_fourcc()
558 static void isi_try_fse(struct atmel_isi *isi, const struct isi_format *isi_fmt, in isi_try_fse() argument
567 ret = v4l2_subdev_call(isi->entity.subdev, pad, enum_frame_size, in isi_try_fse()
582 static int isi_try_fmt(struct atmel_isi *isi, struct v4l2_format *f, in isi_try_fmt() argument
593 isi_fmt = find_format_by_fourcc(isi, pixfmt->pixelformat); in isi_try_fmt()
595 isi_fmt = isi->user_formats[isi->num_user_formats - 1]; in isi_try_fmt()
605 isi_try_fse(isi, isi_fmt, &pad_cfg); in isi_try_fmt()
607 ret = v4l2_subdev_call(isi->entity.subdev, pad, set_fmt, in isi_try_fmt()
624 static int isi_set_fmt(struct atmel_isi *isi, struct v4l2_format *f) in isi_set_fmt() argument
632 ret = isi_try_fmt(isi, f, &current_fmt); in isi_set_fmt()
638 ret = v4l2_subdev_call(isi->entity.subdev, pad, in isi_set_fmt()
643 isi->fmt = *f; in isi_set_fmt()
644 isi->current_fmt = current_fmt; in isi_set_fmt()
652 struct atmel_isi *isi = video_drvdata(file); in isi_s_fmt_vid_cap() local
654 if (vb2_is_streaming(&isi->queue)) in isi_s_fmt_vid_cap()
657 return isi_set_fmt(isi, f); in isi_s_fmt_vid_cap()
663 struct atmel_isi *isi = video_drvdata(file); in isi_try_fmt_vid_cap() local
665 return isi_try_fmt(isi, f, NULL); in isi_try_fmt_vid_cap()
671 struct atmel_isi *isi = video_drvdata(file); in isi_enum_fmt_vid_cap() local
673 if (f->index >= isi->num_user_formats) in isi_enum_fmt_vid_cap()
676 f->pixelformat = isi->user_formats[f->index]->fourcc; in isi_enum_fmt_vid_cap()
715 struct atmel_isi *isi = video_drvdata(file); in isi_g_parm() local
717 return v4l2_g_parm_cap(video_devdata(file), isi->entity.subdev, a); in isi_g_parm()
722 struct atmel_isi *isi = video_drvdata(file); in isi_s_parm() local
724 return v4l2_s_parm_cap(video_devdata(file), isi->entity.subdev, a); in isi_s_parm()
730 struct atmel_isi *isi = video_drvdata(file); in isi_enum_framesizes() local
738 isi_fmt = find_format_by_fourcc(isi, fsize->pixel_format); in isi_enum_framesizes()
744 ret = v4l2_subdev_call(isi->entity.subdev, pad, enum_frame_size, in isi_enum_framesizes()
759 struct atmel_isi *isi = video_drvdata(file); in isi_enum_frameintervals() local
769 isi_fmt = find_format_by_fourcc(isi, fival->pixel_format); in isi_enum_frameintervals()
775 ret = v4l2_subdev_call(isi->entity.subdev, pad, in isi_enum_frameintervals()
786 static void isi_camera_set_bus_param(struct atmel_isi *isi) in isi_camera_set_bus_param() argument
791 if (isi->pdata.hsync_act_low) in isi_camera_set_bus_param()
793 if (isi->pdata.vsync_act_low) in isi_camera_set_bus_param()
795 if (isi->pdata.pclk_act_falling) in isi_camera_set_bus_param()
797 if (isi->pdata.has_emb_sync) in isi_camera_set_bus_param()
799 if (isi->pdata.full_mode) in isi_camera_set_bus_param()
805 pm_runtime_get_sync(isi->dev); in isi_camera_set_bus_param()
807 isi_writel(isi, ISI_CTRL, ISI_CTRL_DIS); in isi_camera_set_bus_param()
808 isi_writel(isi, ISI_CFG1, cfg1); in isi_camera_set_bus_param()
810 pm_runtime_put(isi->dev); in isi_camera_set_bus_param()
814 static int atmel_isi_parse_dt(struct atmel_isi *isi, in atmel_isi_parse_dt() argument
822 isi->pdata.full_mode = 1; in atmel_isi_parse_dt()
823 isi->pdata.frate = ISI_CFG1_FRATE_CAPTURE_ALL; in atmel_isi_parse_dt()
840 isi->pdata.data_width_flags = ISI_DATAWIDTH_8; in atmel_isi_parse_dt()
843 isi->pdata.data_width_flags = in atmel_isi_parse_dt()
853 isi->pdata.hsync_act_low = true; in atmel_isi_parse_dt()
855 isi->pdata.vsync_act_low = true; in atmel_isi_parse_dt()
857 isi->pdata.pclk_act_falling = true; in atmel_isi_parse_dt()
860 isi->pdata.has_emb_sync = true; in atmel_isi_parse_dt()
867 struct atmel_isi *isi = video_drvdata(file); in isi_open() local
868 struct v4l2_subdev *sd = isi->entity.subdev; in isi_open()
871 if (mutex_lock_interruptible(&isi->lock)) in isi_open()
885 ret = isi_set_fmt(isi, &isi->fmt); in isi_open()
892 mutex_unlock(&isi->lock); in isi_open()
898 struct atmel_isi *isi = video_drvdata(file); in isi_release() local
899 struct v4l2_subdev *sd = isi->entity.subdev; in isi_release()
903 mutex_lock(&isi->lock); in isi_release()
912 mutex_unlock(&isi->lock); in isi_release()
959 static int isi_set_default_fmt(struct atmel_isi *isi) in isi_set_default_fmt() argument
967 .pixelformat = isi->user_formats[0]->fourcc, in isi_set_default_fmt()
972 ret = isi_try_fmt(isi, &f, NULL); in isi_set_default_fmt()
975 isi->current_fmt = isi->user_formats[0]; in isi_set_default_fmt()
976 isi->fmt = f; in isi_set_default_fmt()
1034 static int isi_formats_init(struct atmel_isi *isi) in isi_formats_init() argument
1038 struct v4l2_subdev *subdev = isi->entity.subdev; in isi_formats_init()
1064 isi->num_user_formats = num_fmts; in isi_formats_init()
1065 isi->user_formats = devm_kcalloc(isi->dev, in isi_formats_init()
1068 if (!isi->user_formats) in isi_formats_init()
1071 memcpy(isi->user_formats, isi_fmts, in isi_formats_init()
1073 isi->current_fmt = isi->user_formats[0]; in isi_formats_init()
1080 struct atmel_isi *isi = notifier_to_isi(notifier); in isi_graph_notify_complete() local
1083 isi->vdev->ctrl_handler = isi->entity.subdev->ctrl_handler; in isi_graph_notify_complete()
1084 ret = isi_formats_init(isi); in isi_graph_notify_complete()
1086 dev_err(isi->dev, "No supported mediabus format found\n"); in isi_graph_notify_complete()
1089 isi_camera_set_bus_param(isi); in isi_graph_notify_complete()
1091 ret = isi_set_default_fmt(isi); in isi_graph_notify_complete()
1093 dev_err(isi->dev, "Could not set default format\n"); in isi_graph_notify_complete()
1097 ret = video_register_device(isi->vdev, VFL_TYPE_VIDEO, -1); in isi_graph_notify_complete()
1099 dev_err(isi->dev, "Failed to register video device\n"); in isi_graph_notify_complete()
1103 dev_dbg(isi->dev, "Device registered as %s\n", in isi_graph_notify_complete()
1104 video_device_node_name(isi->vdev)); in isi_graph_notify_complete()
1112 struct atmel_isi *isi = notifier_to_isi(notifier); in isi_graph_notify_unbind() local
1114 dev_dbg(isi->dev, "Removing %s\n", video_device_node_name(isi->vdev)); in isi_graph_notify_unbind()
1117 video_unregister_device(isi->vdev); in isi_graph_notify_unbind()
1124 struct atmel_isi *isi = notifier_to_isi(notifier); in isi_graph_notify_bound() local
1126 dev_dbg(isi->dev, "subdev %s bound\n", subdev->name); in isi_graph_notify_bound()
1128 isi->entity.subdev = subdev; in isi_graph_notify_bound()
1139 static int isi_graph_parse(struct atmel_isi *isi, struct device_node *node) in isi_graph_parse() argument
1154 isi->entity.node = remote; in isi_graph_parse()
1155 isi->entity.asd.match_type = V4L2_ASYNC_MATCH_FWNODE; in isi_graph_parse()
1156 isi->entity.asd.match.fwnode = of_fwnode_handle(remote); in isi_graph_parse()
1160 static int isi_graph_init(struct atmel_isi *isi) in isi_graph_init() argument
1165 ret = isi_graph_parse(isi, isi->dev->of_node); in isi_graph_init()
1167 dev_err(isi->dev, "Graph parsing failed\n"); in isi_graph_init()
1171 v4l2_async_notifier_init(&isi->notifier); in isi_graph_init()
1173 ret = v4l2_async_notifier_add_subdev(&isi->notifier, &isi->entity.asd); in isi_graph_init()
1175 of_node_put(isi->entity.node); in isi_graph_init()
1179 isi->notifier.ops = &isi_graph_notify_ops; in isi_graph_init()
1181 ret = v4l2_async_notifier_register(&isi->v4l2_dev, &isi->notifier); in isi_graph_init()
1183 dev_err(isi->dev, "Notifier registration failed\n"); in isi_graph_init()
1184 v4l2_async_notifier_cleanup(&isi->notifier); in isi_graph_init()
1195 struct atmel_isi *isi; in atmel_isi_probe() local
1200 isi = devm_kzalloc(&pdev->dev, sizeof(struct atmel_isi), GFP_KERNEL); in atmel_isi_probe()
1201 if (!isi) in atmel_isi_probe()
1204 isi->pclk = devm_clk_get(&pdev->dev, "isi_clk"); in atmel_isi_probe()
1205 if (IS_ERR(isi->pclk)) in atmel_isi_probe()
1206 return PTR_ERR(isi->pclk); in atmel_isi_probe()
1208 ret = atmel_isi_parse_dt(isi, pdev); in atmel_isi_probe()
1212 isi->active = NULL; in atmel_isi_probe()
1213 isi->dev = &pdev->dev; in atmel_isi_probe()
1214 mutex_init(&isi->lock); in atmel_isi_probe()
1215 spin_lock_init(&isi->irqlock); in atmel_isi_probe()
1216 INIT_LIST_HEAD(&isi->video_buffer_list); in atmel_isi_probe()
1217 INIT_LIST_HEAD(&isi->dma_desc_head); in atmel_isi_probe()
1219 q = &isi->queue; in atmel_isi_probe()
1222 ret = v4l2_device_register(&pdev->dev, &isi->v4l2_dev); in atmel_isi_probe()
1226 isi->vdev = video_device_alloc(); in atmel_isi_probe()
1227 if (!isi->vdev) { in atmel_isi_probe()
1233 isi->vdev->fops = &isi_fops; in atmel_isi_probe()
1234 isi->vdev->v4l2_dev = &isi->v4l2_dev; in atmel_isi_probe()
1235 isi->vdev->queue = &isi->queue; in atmel_isi_probe()
1236 strscpy(isi->vdev->name, KBUILD_MODNAME, sizeof(isi->vdev->name)); in atmel_isi_probe()
1237 isi->vdev->release = video_device_release; in atmel_isi_probe()
1238 isi->vdev->ioctl_ops = &isi_ioctl_ops; in atmel_isi_probe()
1239 isi->vdev->lock = &isi->lock; in atmel_isi_probe()
1240 isi->vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | in atmel_isi_probe()
1242 video_set_drvdata(isi->vdev, isi); in atmel_isi_probe()
1247 q->lock = &isi->lock; in atmel_isi_probe()
1248 q->drv_priv = isi; in atmel_isi_probe()
1261 isi->p_fb_descriptors = dma_alloc_coherent(&pdev->dev, in atmel_isi_probe()
1263 &isi->fb_descriptors_phys, in atmel_isi_probe()
1265 if (!isi->p_fb_descriptors) { in atmel_isi_probe()
1272 isi->dma_desc[i].p_fbd = isi->p_fb_descriptors + i; in atmel_isi_probe()
1273 isi->dma_desc[i].fbd_phys = isi->fb_descriptors_phys + in atmel_isi_probe()
1275 list_add(&isi->dma_desc[i].list, &isi->dma_desc_head); in atmel_isi_probe()
1279 isi->regs = devm_ioremap_resource(&pdev->dev, regs); in atmel_isi_probe()
1280 if (IS_ERR(isi->regs)) { in atmel_isi_probe()
1281 ret = PTR_ERR(isi->regs); in atmel_isi_probe()
1285 if (isi->pdata.data_width_flags & ISI_DATAWIDTH_8) in atmel_isi_probe()
1286 isi->width_flags = 1 << 7; in atmel_isi_probe()
1287 if (isi->pdata.data_width_flags & ISI_DATAWIDTH_10) in atmel_isi_probe()
1288 isi->width_flags |= 1 << 9; in atmel_isi_probe()
1296 ret = devm_request_irq(&pdev->dev, irq, isi_interrupt, 0, "isi", isi); in atmel_isi_probe()
1301 isi->irq = irq; in atmel_isi_probe()
1303 ret = isi_graph_init(isi); in atmel_isi_probe()
1309 platform_set_drvdata(pdev, isi); in atmel_isi_probe()
1316 isi->p_fb_descriptors, in atmel_isi_probe()
1317 isi->fb_descriptors_phys); in atmel_isi_probe()
1320 video_device_release(isi->vdev); in atmel_isi_probe()
1322 v4l2_device_unregister(&isi->v4l2_dev); in atmel_isi_probe()
1329 struct atmel_isi *isi = platform_get_drvdata(pdev); in atmel_isi_remove() local
1333 isi->p_fb_descriptors, in atmel_isi_remove()
1334 isi->fb_descriptors_phys); in atmel_isi_remove()
1336 v4l2_async_notifier_unregister(&isi->notifier); in atmel_isi_remove()
1337 v4l2_async_notifier_cleanup(&isi->notifier); in atmel_isi_remove()
1338 v4l2_device_unregister(&isi->v4l2_dev); in atmel_isi_remove()
1346 struct atmel_isi *isi = dev_get_drvdata(dev); in atmel_isi_runtime_suspend() local
1348 clk_disable_unprepare(isi->pclk); in atmel_isi_runtime_suspend()
1354 struct atmel_isi *isi = dev_get_drvdata(dev); in atmel_isi_runtime_resume() local
1356 return clk_prepare_enable(isi->pclk); in atmel_isi_runtime_resume()