Lines Matching refs:af
26 static void h3a_af_setup_regs(struct ispstat *af, void *priv) in h3a_af_setup_regs() argument
38 if (af->state == ISPSTAT_DISABLED) in h3a_af_setup_regs()
41 isp_reg_writel(af->isp, af->active_buf->dma_addr, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
44 if (!af->update) in h3a_af_setup_regs()
51 isp_reg_writel(af->isp, pax1, OMAP3_ISP_IOMEM_H3A, ISPH3A_AFPAX1); in h3a_af_setup_regs()
60 isp_reg_writel(af->isp, pax2, OMAP3_ISP_IOMEM_H3A, ISPH3A_AFPAX2); in h3a_af_setup_regs()
67 isp_reg_writel(af->isp, paxstart, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
71 isp_reg_writel(af->isp, conf->iir.h_start, in h3a_af_setup_regs()
82 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
91 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
96 isp_reg_writel(af->isp, conf->iir.coeff_set0[10], in h3a_af_setup_regs()
99 isp_reg_writel(af->isp, conf->iir.coeff_set1[10], in h3a_af_setup_regs()
119 isp_reg_clr_set(af->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR, in h3a_af_setup_regs()
122 af->update = 0; in h3a_af_setup_regs()
123 af->config_counter += af->inc_config; in h3a_af_setup_regs()
124 af->inc_config = 0; in h3a_af_setup_regs()
125 af->buf_size = conf->buf_size; in h3a_af_setup_regs()
128 static void h3a_af_enable(struct ispstat *af, int enable) in h3a_af_enable() argument
131 isp_reg_set(af->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR, in h3a_af_enable()
133 omap3isp_subclk_enable(af->isp, OMAP3_ISP_SUBCLK_AF); in h3a_af_enable()
135 isp_reg_clr(af->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR, in h3a_af_enable()
137 omap3isp_subclk_disable(af->isp, OMAP3_ISP_SUBCLK_AF); in h3a_af_enable()
141 static int h3a_af_busy(struct ispstat *af) in h3a_af_busy() argument
143 return isp_reg_readl(af->isp, OMAP3_ISP_IOMEM_H3A, ISPH3A_PCR) in h3a_af_busy()
153 static int h3a_af_validate_params(struct ispstat *af, void *new_conf) in h3a_af_validate_params() argument
227 static void h3a_af_set_params(struct ispstat *af, void *new_conf) in h3a_af_set_params() argument
230 struct omap3isp_h3a_af_config *cur_cfg = af->priv; in h3a_af_set_params()
291 if (update || !af->configured) { in h3a_af_set_params()
293 af->inc_config++; in h3a_af_set_params()
294 af->update = 1; in h3a_af_set_params()
352 struct ispstat *af = &isp->isp_af; in omap3isp_h3a_af_init() local
361 af->ops = &h3a_af_ops; in omap3isp_h3a_af_init()
362 af->priv = af_cfg; in omap3isp_h3a_af_init()
363 af->event_type = V4L2_EVENT_OMAP3ISP_AF; in omap3isp_h3a_af_init()
364 af->isp = isp; in omap3isp_h3a_af_init()
369 dev_err(af->isp->dev, in omap3isp_h3a_af_init()
381 if (h3a_af_validate_params(af, af_recover_cfg)) { in omap3isp_h3a_af_init()
382 dev_err(af->isp->dev, in omap3isp_h3a_af_init()
389 af->recover_priv = af_recover_cfg; in omap3isp_h3a_af_init()
391 ret = omap3isp_stat_init(af, "AF", &h3a_af_subdev_ops); in omap3isp_h3a_af_init()