/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-lite.c | 133 static int fimc_lite_hw_init(struct fimc_lite *fimc, bool isp_output) in fimc_lite_hw_init() argument 138 if (fimc->sensor == NULL) in fimc_lite_hw_init() 141 if (fimc->inp_frame.fmt == NULL || fimc->out_frame.fmt == NULL) in fimc_lite_hw_init() 145 si = v4l2_get_subdev_hostdata(fimc->sensor); in fimc_lite_hw_init() 149 spin_lock_irqsave(&fimc->slock, flags); in fimc_lite_hw_init() 151 flite_hw_set_camera_bus(fimc, si); in fimc_lite_hw_init() 152 flite_hw_set_source_format(fimc, &fimc->inp_frame); in fimc_lite_hw_init() 153 flite_hw_set_window_offset(fimc, &fimc->inp_frame); in fimc_lite_hw_init() 154 flite_hw_set_dma_buf_mask(fimc, 0); in fimc_lite_hw_init() 155 flite_hw_set_output_dma(fimc, &fimc->out_frame, !isp_output); in fimc_lite_hw_init() [all …]
|
D | fimc-core.c | 294 struct fimc_dev *fimc = priv; in fimc_irq_handler() local 297 fimc_hw_clear_irq(fimc); in fimc_irq_handler() 299 spin_lock(&fimc->slock); in fimc_irq_handler() 301 if (test_and_clear_bit(ST_M2M_PEND, &fimc->state)) { in fimc_irq_handler() 302 if (test_and_clear_bit(ST_M2M_SUSPENDING, &fimc->state)) { in fimc_irq_handler() 303 set_bit(ST_M2M_SUSPENDED, &fimc->state); in fimc_irq_handler() 304 wake_up(&fimc->irq_queue); in fimc_irq_handler() 307 ctx = v4l2_m2m_get_curr_priv(fimc->m2m.m2m_dev); in fimc_irq_handler() 309 spin_unlock(&fimc->slock); in fimc_irq_handler() 314 wake_up(&fimc->irq_queue); in fimc_irq_handler() [all …]
|
D | fimc-capture.c | 33 static int fimc_capture_hw_init(struct fimc_dev *fimc) in fimc_capture_hw_init() argument 35 struct fimc_source_info *si = &fimc->vid_cap.source_config; in fimc_capture_hw_init() 36 struct fimc_ctx *ctx = fimc->vid_cap.ctx; in fimc_capture_hw_init() 44 ret = fimc_hw_camblk_cfg_writeback(fimc); in fimc_capture_hw_init() 49 spin_lock_irqsave(&fimc->slock, flags); in fimc_capture_hw_init() 53 fimc_hw_set_camera_polarity(fimc, si); in fimc_capture_hw_init() 54 fimc_hw_set_camera_type(fimc, si); in fimc_capture_hw_init() 55 fimc_hw_set_camera_source(fimc, si); in fimc_capture_hw_init() 56 fimc_hw_set_camera_offset(fimc, &ctx->s_frame); in fimc_capture_hw_init() 68 if (fimc->drv_data->alpha_color) in fimc_capture_hw_init() [all …]
|
D | Makefile | 2 s5p-fimc-objs := fimc-core.o fimc-reg.o fimc-m2m.o fimc-capture.o media-dev.o 3 exynos-fimc-lite-objs += fimc-lite-reg.o fimc-lite.o 7 exynos-fimc-is-objs := fimc-is.o fimc-isp.o fimc-is-sensor.o fimc-is-regs.o 8 exynos-fimc-is-objs += fimc-is-param.o fimc-is-errno.o fimc-is-i2c.o 11 exynos-fimc-is-objs += fimc-isp-video.o 15 obj-$(CONFIG_VIDEO_EXYNOS_FIMC_LITE) += exynos-fimc-lite.o 16 obj-$(CONFIG_VIDEO_EXYNOS4_FIMC_IS) += exynos-fimc-is.o 17 obj-$(CONFIG_VIDEO_S5P_FIMC) += s5p-fimc.o
|
D | fimc-m2m.c | 61 struct fimc_dev *fimc = ctx->fimc_dev; in fimc_m2m_shutdown() local 63 if (!fimc_m2m_pending(fimc)) in fimc_m2m_shutdown() 68 wait_event_timeout(fimc->irq_queue, in fimc_m2m_shutdown() 94 struct fimc_dev *fimc; in fimc_device_run() local 101 fimc = ctx->fimc_dev; in fimc_device_run() 102 spin_lock_irqsave(&fimc->slock, flags); in fimc_device_run() 104 set_bit(ST_M2M_PEND, &fimc->state); in fimc_device_run() 130 if (fimc->m2m.ctx != ctx) { in fimc_device_run() 132 fimc->m2m.ctx = ctx; in fimc_device_run() 148 if (fimc->drv_data->alpha_color) in fimc_device_run() [all …]
|
D | fimc-reg.h | 291 void fimc_hw_reset(struct fimc_dev *fimc); 295 void fimc_hw_en_lastirq(struct fimc_dev *fimc, int enable); 296 void fimc_hw_en_irq(struct fimc_dev *fimc, int enable); 305 void fimc_hw_set_input_addr(struct fimc_dev *fimc, struct fimc_addr *addr); 306 void fimc_hw_set_output_addr(struct fimc_dev *fimc, struct fimc_addr *addr, 308 int fimc_hw_set_camera_source(struct fimc_dev *fimc, 310 void fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f); 311 int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, 313 int fimc_hw_set_camera_type(struct fimc_dev *fimc, 321 int fimc_hw_camblk_cfg_writeback(struct fimc_dev *fimc); [all …]
|
D | fimc-reg.c | 556 int fimc_hw_set_camera_polarity(struct fimc_dev *fimc, in fimc_hw_set_camera_polarity() argument 559 u32 cfg = readl(fimc->regs + FIMC_REG_CIGCTRL); in fimc_hw_set_camera_polarity() 580 writel(cfg, fimc->regs + FIMC_REG_CIGCTRL); in fimc_hw_set_camera_polarity() 598 int fimc_hw_set_camera_source(struct fimc_dev *fimc, in fimc_hw_set_camera_source() argument 601 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_hw_set_camera_source() 647 writel(cfg, fimc->regs + FIMC_REG_CISRCFMT); in fimc_hw_set_camera_source() 651 void fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f) in fimc_hw_set_camera_offset() argument 655 u32 cfg = readl(fimc->regs + FIMC_REG_CIWDOFST); in fimc_hw_set_camera_offset() 661 writel(cfg, fimc->regs + FIMC_REG_CIWDOFST); in fimc_hw_set_camera_offset() 667 writel(cfg, fimc->regs + FIMC_REG_CIWDOFST2); in fimc_hw_set_camera_offset() [all …]
|
D | fimc-core.h | 528 static inline bool fimc_capture_active(struct fimc_dev *fimc) in fimc_capture_active() argument 533 spin_lock_irqsave(&fimc->slock, flags); in fimc_capture_active() 534 ret = !!(fimc->state & (1 << ST_CAPT_RUN) || in fimc_capture_active() 535 fimc->state & (1 << ST_CAPT_PEND)); in fimc_capture_active() 536 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_capture_active() 634 void fimc_capture_irq_handler(struct fimc_dev *fimc, int deq_buf); 636 int fimc_register_m2m_device(struct fimc_dev *fimc, 638 void fimc_unregister_m2m_device(struct fimc_dev *fimc); 657 int fimc_initialize_capture_subdev(struct fimc_dev *fimc); 658 void fimc_unregister_capture_subdev(struct fimc_dev *fimc); [all …]
|
D | media-dev.c | 609 static int register_fimc_entity(struct fimc_md *fmd, struct fimc_dev *fimc) in register_fimc_entity() argument 615 if (WARN_ON(fimc->id >= FIMC_MAX_DEVS || fmd->fimc[fimc->id])) in register_fimc_entity() 618 sd = &fimc->vid_cap.subdev; in register_fimc_entity() 629 if (!fmd->pmf && fimc->pdev) in register_fimc_entity() 630 fmd->pmf = &fimc->pdev->dev; in register_fimc_entity() 631 fmd->fimc[fimc->id] = fimc; in register_fimc_entity() 632 fimc->vid_cap.user_subdev_api = fmd->user_subdev_api; in register_fimc_entity() 635 fimc->id, ret); in register_fimc_entity() 780 struct fimc_dev *dev = fmd->fimc[i]; in fimc_md_unregister_entities() 785 fmd->fimc[i] = NULL; in fimc_md_unregister_entities() [all …]
|
D | fimc-lite.h | 182 static inline bool fimc_lite_active(struct fimc_lite *fimc) in fimc_lite_active() argument 187 spin_lock_irqsave(&fimc->slock, flags); in fimc_lite_active() 188 ret = fimc->state & (1 << ST_FLITE_RUN) || in fimc_lite_active() 189 fimc->state & (1 << ST_FLITE_PENDING); in fimc_lite_active() 190 spin_unlock_irqrestore(&fimc->slock, flags); in fimc_lite_active()
|
D | Kconfig | 33 module will be called s5p-fimc. 59 module will be called exynos-fimc-lite. 73 module will be called exynos4-fimc-is.
|
D | media-dev.h | 126 struct fimc_dev *fimc[FIMC_MAX_DEVS]; member
|
/drivers/devfreq/event/ |
D | exynos-ppmu.c | 83 PPMU_EVENT(fimc),
|