/linux-6.12.1/drivers/staging/media/sunxi/sun6i-isp/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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);
|
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);
|
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);
|
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);
|
/linux-6.12.1/drivers/staging/media/starfive/camss/ |
D | stf-isp.c | 48 struct stf_isp_dev *isp_dev = &stfcamss->isp_dev; in stf_isp_init() local 50 isp_dev->stfcamss = stfcamss; in stf_isp_init() 51 isp_dev->formats = isp_formats_st7110; in stf_isp_init() 52 isp_dev->nformats = ARRAY_SIZE(isp_formats_st7110); in stf_isp_init() 53 isp_dev->current_fmt = &isp_formats_source[0]; in stf_isp_init() 60 struct stf_isp_dev *isp_dev = v4l2_get_subdevdata(sd); in isp_set_stream() local 70 stf_isp_reset(isp_dev); in isp_set_stream() 71 stf_isp_init_cfg(isp_dev); in isp_set_stream() 72 stf_isp_settings(isp_dev, crop, fmt->code); in isp_set_stream() 73 stf_isp_stream_set(isp_dev); in isp_set_stream() [all …]
|
D | stf-isp-hw-ops.c | 303 int stf_isp_reset(struct stf_isp_dev *isp_dev) in stf_isp_reset() argument 305 stf_isp_reg_set_bit(isp_dev->stfcamss, ISP_REG_ISP_CTRL_0, in stf_isp_reset() 307 stf_isp_reg_set_bit(isp_dev->stfcamss, ISP_REG_ISP_CTRL_0, in stf_isp_reset() 313 void stf_isp_init_cfg(struct stf_isp_dev *isp_dev) in stf_isp_init_cfg() argument 315 stf_isp_reg_write(isp_dev->stfcamss, ISP_REG_DC_CFG_1, DC_AXI_ID(0x0)); in stf_isp_init_cfg() 316 stf_isp_reg_write(isp_dev->stfcamss, ISP_REG_DEC_CFG, in stf_isp_init_cfg() 322 stf_isp_config_obc(isp_dev->stfcamss); in stf_isp_init_cfg() 323 stf_isp_config_oecf(isp_dev->stfcamss); in stf_isp_init_cfg() 324 stf_isp_config_lccf(isp_dev->stfcamss); in stf_isp_init_cfg() 325 stf_isp_config_awb(isp_dev->stfcamss); in stf_isp_init_cfg() [all …]
|
D | stf-camss.c | 129 struct stf_isp_dev *isp_dev = &stfcamss->isp_dev; in stfcamss_register_devs() local 132 ret = stf_isp_register(isp_dev, &stfcamss->v4l2_dev); in stfcamss_register_devs() 146 ret = media_create_pad_link(&isp_dev->subdev.entity, STF_ISP_PAD_SRC, in stfcamss_register_devs() 151 cap_yuv->video.source_subdev = &isp_dev->subdev; in stfcamss_register_devs() 158 stf_isp_unregister(&stfcamss->isp_dev); in stfcamss_register_devs() 166 struct stf_isp_dev *isp_dev = &stfcamss->isp_dev; in stfcamss_unregister_devs() local 168 media_entity_remove_links(&isp_dev->subdev.entity); in stfcamss_unregister_devs() 171 stf_isp_unregister(&stfcamss->isp_dev); in stfcamss_unregister_devs() 184 struct stf_isp_dev *isp_dev = &stfcamss->isp_dev; in stfcamss_subdev_notifier_bound() local 190 pad = &isp_dev->pads[STF_ISP_PAD_SINK]; in stfcamss_subdev_notifier_bound() [all …]
|
D | stf-isp.h | 419 int stf_isp_reset(struct stf_isp_dev *isp_dev); 420 void stf_isp_init_cfg(struct stf_isp_dev *isp_dev); 421 void stf_isp_settings(struct stf_isp_dev *isp_dev, 423 void stf_isp_stream_set(struct stf_isp_dev *isp_dev); 425 int stf_isp_register(struct stf_isp_dev *isp_dev, struct v4l2_device *v4l2_dev); 426 int stf_isp_unregister(struct stf_isp_dev *isp_dev);
|
D | stf-camss.h | 55 struct stf_isp_dev isp_dev; member
|