/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp.c | 28 u32 sun6i_isp_load_read(struct sun6i_isp_device *isp_dev, u32 offset) in sun6i_isp_load_read() argument 30 u32 *data = (u32 *)(isp_dev->tables.load.data + offset); in sun6i_isp_load_read() 35 void sun6i_isp_load_write(struct sun6i_isp_device *isp_dev, u32 offset, in sun6i_isp_load_write() argument 38 u32 *data = (u32 *)(isp_dev->tables.load.data + offset); in sun6i_isp_load_write() 54 static void sun6i_isp_state_ready(struct sun6i_isp_device *isp_dev) in sun6i_isp_state_ready() argument 56 struct regmap *regmap = isp_dev->regmap; in sun6i_isp_state_ready() 64 static void sun6i_isp_state_complete(struct sun6i_isp_device *isp_dev) in sun6i_isp_state_complete() argument 68 spin_lock_irqsave(&isp_dev->state_lock, flags); in sun6i_isp_state_complete() 70 sun6i_isp_capture_state_complete(isp_dev); in sun6i_isp_state_complete() 71 sun6i_isp_params_state_complete(isp_dev); in sun6i_isp_state_complete() [all …]
|
H A D | sun6i_isp_params.c | 46 static void sun6i_isp_params_configure_ob(struct sun6i_isp_device *isp_dev) in sun6i_isp_params_configure_ob() argument 50 sun6i_isp_proc_dimensions(isp_dev, &width, &height); in sun6i_isp_params_configure_ob() 52 sun6i_isp_load_write(isp_dev, SUN6I_ISP_OB_SIZE_REG, in sun6i_isp_params_configure_ob() 56 sun6i_isp_load_write(isp_dev, SUN6I_ISP_OB_VALID_REG, in sun6i_isp_params_configure_ob() 60 sun6i_isp_load_write(isp_dev, SUN6I_ISP_OB_SRC0_VALID_START_REG, in sun6i_isp_params_configure_ob() 65 static void sun6i_isp_params_configure_ae(struct sun6i_isp_device *isp_dev) in sun6i_isp_params_configure_ae() argument 69 sun6i_isp_load_write(isp_dev, SUN6I_ISP_AE_CFG_REG, in sun6i_isp_params_configure_ae() 77 sun6i_isp_params_configure_bayer(struct sun6i_isp_device *isp_dev, in sun6i_isp_params_configure_bayer() argument 82 sun6i_isp_load_write(isp_dev, SUN6I_ISP_BAYER_OFFSET0_REG, in sun6i_isp_params_configure_bayer() 86 sun6i_isp_load_write(isp_dev, SUN6I_ISP_BAYER_OFFSET1_REG, in sun6i_isp_params_configure_bayer() [all …]
|
H A D | sun6i_isp_proc.c | 20 void sun6i_isp_proc_dimensions(struct sun6i_isp_device *isp_dev, in sun6i_isp_proc_dimensions() argument 24 *width = isp_dev->proc.mbus_format.width; in sun6i_isp_proc_dimensions() 26 *height = isp_dev->proc.mbus_format.height; in sun6i_isp_proc_dimensions() 80 static void sun6i_isp_proc_irq_enable(struct sun6i_isp_device *isp_dev) in sun6i_isp_proc_irq_enable() argument 82 struct regmap *regmap = isp_dev->regmap; in sun6i_isp_proc_irq_enable() 93 static void sun6i_isp_proc_irq_disable(struct sun6i_isp_device *isp_dev) in sun6i_isp_proc_irq_disable() argument 95 struct regmap *regmap = isp_dev->regmap; in sun6i_isp_proc_irq_disable() 100 static void sun6i_isp_proc_irq_clear(struct sun6i_isp_device *isp_dev) in sun6i_isp_proc_irq_clear() argument 102 struct regmap *regmap = isp_dev->regmap; in sun6i_isp_proc_irq_clear() 109 static void sun6i_isp_proc_enable(struct sun6i_isp_device *isp_dev, in sun6i_isp_proc_enable() argument [all …]
|
H A D | sun6i_isp_capture.c | 21 void sun6i_isp_capture_dimensions(struct sun6i_isp_device *isp_dev, in sun6i_isp_capture_dimensions() argument 25 *width = isp_dev->capture.format.fmt.pix.width; in sun6i_isp_capture_dimensions() 27 *height = isp_dev->capture.format.fmt.pix.height; in sun6i_isp_capture_dimensions() 30 void sun6i_isp_capture_format(struct sun6i_isp_device *isp_dev, in sun6i_isp_capture_format() argument 34 *pixelformat = isp_dev->capture.format.fmt.pix.pixelformat; in sun6i_isp_capture_format() 65 sun6i_isp_capture_buffer_configure(struct sun6i_isp_device *isp_dev, in sun6i_isp_capture_buffer_configure() argument 78 sun6i_isp_load_write(isp_dev, SUN6I_ISP_MCH_Y_ADDR0_REG, in sun6i_isp_capture_buffer_configure() 81 sun6i_isp_capture_dimensions(isp_dev, &width, &height); in sun6i_isp_capture_buffer_configure() 82 sun6i_isp_capture_format(isp_dev, &pixelformat); in sun6i_isp_capture_buffer_configure() 94 sun6i_isp_load_write(isp_dev, SUN6I_ISP_MCH_U_ADDR0_REG, in sun6i_isp_capture_buffer_configure() [all …]
|
H A D | sun6i_isp_capture.h | 52 void sun6i_isp_capture_dimensions(struct sun6i_isp_device *isp_dev, 54 void sun6i_isp_capture_format(struct sun6i_isp_device *isp_dev, 64 void sun6i_isp_capture_configure(struct sun6i_isp_device *isp_dev); 68 void sun6i_isp_capture_state_update(struct sun6i_isp_device *isp_dev, 70 void sun6i_isp_capture_state_complete(struct sun6i_isp_device *isp_dev); 71 void sun6i_isp_capture_finish(struct sun6i_isp_device *isp_dev); 75 int sun6i_isp_capture_setup(struct sun6i_isp_device *isp_dev); 76 void sun6i_isp_capture_cleanup(struct sun6i_isp_device *isp_dev);
|
H A D | sun6i_isp_params.h | 39 void sun6i_isp_params_configure(struct sun6i_isp_device *isp_dev); 43 void sun6i_isp_params_state_update(struct sun6i_isp_device *isp_dev, 45 void sun6i_isp_params_state_complete(struct sun6i_isp_device *isp_dev); 49 int sun6i_isp_params_setup(struct sun6i_isp_device *isp_dev); 50 void sun6i_isp_params_cleanup(struct sun6i_isp_device *isp_dev);
|
H A D | sun6i_isp.h | 77 u32 sun6i_isp_load_read(struct sun6i_isp_device *isp_dev, u32 offset); 78 void sun6i_isp_load_write(struct sun6i_isp_device *isp_dev, u32 offset, 84 void sun6i_isp_state_update(struct sun6i_isp_device *isp_dev, bool ready_hold); 88 void sun6i_isp_tables_configure(struct sun6i_isp_device *isp_dev);
|
H A D | sun6i_isp_proc.h | 54 void sun6i_isp_proc_dimensions(struct sun6i_isp_device *isp_dev, 63 int sun6i_isp_proc_setup(struct sun6i_isp_device *isp_dev); 64 void sun6i_isp_proc_cleanup(struct sun6i_isp_device *isp_dev);
|