Searched refs:user_cfg (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/media/platform/omap3isp/
H A Disph3a_aewb.c117 struct omap3isp_h3a_aewb_config *user_cfg = new_conf; h3a_aewb_validate_params() local
120 if (unlikely(user_cfg->saturation_limit > h3a_aewb_validate_params()
124 if (unlikely(user_cfg->win_height < OMAP3ISP_AEWB_MIN_WIN_H || h3a_aewb_validate_params()
125 user_cfg->win_height > OMAP3ISP_AEWB_MAX_WIN_H || h3a_aewb_validate_params()
126 user_cfg->win_height & 0x01)) h3a_aewb_validate_params()
129 if (unlikely(user_cfg->win_width < OMAP3ISP_AEWB_MIN_WIN_W || h3a_aewb_validate_params()
130 user_cfg->win_width > OMAP3ISP_AEWB_MAX_WIN_W || h3a_aewb_validate_params()
131 user_cfg->win_width & 0x01)) h3a_aewb_validate_params()
134 if (unlikely(user_cfg->ver_win_count < OMAP3ISP_AEWB_MIN_WINVC || h3a_aewb_validate_params()
135 user_cfg->ver_win_count > OMAP3ISP_AEWB_MAX_WINVC)) h3a_aewb_validate_params()
138 if (unlikely(user_cfg->hor_win_count < OMAP3ISP_AEWB_MIN_WINHC || h3a_aewb_validate_params()
139 user_cfg->hor_win_count > OMAP3ISP_AEWB_MAX_WINHC)) h3a_aewb_validate_params()
142 if (unlikely(user_cfg->ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) h3a_aewb_validate_params()
145 if (unlikely(user_cfg->hor_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) h3a_aewb_validate_params()
148 if (unlikely(user_cfg->blk_ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) h3a_aewb_validate_params()
151 if (unlikely(user_cfg->blk_win_height < OMAP3ISP_AEWB_MIN_WIN_H || h3a_aewb_validate_params()
152 user_cfg->blk_win_height > OMAP3ISP_AEWB_MAX_WIN_H || h3a_aewb_validate_params()
153 user_cfg->blk_win_height & 0x01)) h3a_aewb_validate_params()
156 if (unlikely(user_cfg->subsample_ver_inc < OMAP3ISP_AEWB_MIN_SUB_INC || h3a_aewb_validate_params()
157 user_cfg->subsample_ver_inc > OMAP3ISP_AEWB_MAX_SUB_INC || h3a_aewb_validate_params()
158 user_cfg->subsample_ver_inc & 0x01)) h3a_aewb_validate_params()
161 if (unlikely(user_cfg->subsample_hor_inc < OMAP3ISP_AEWB_MIN_SUB_INC || h3a_aewb_validate_params()
162 user_cfg->subsample_hor_inc > OMAP3ISP_AEWB_MAX_SUB_INC || h3a_aewb_validate_params()
163 user_cfg->subsample_hor_inc & 0x01)) h3a_aewb_validate_params()
166 buf_size = h3a_aewb_get_buf_size(user_cfg); h3a_aewb_validate_params()
167 if (buf_size > user_cfg->buf_size) h3a_aewb_validate_params()
168 user_cfg->buf_size = buf_size; h3a_aewb_validate_params()
169 else if (user_cfg->buf_size > OMAP3ISP_AEWB_MAX_BUF_SIZE) h3a_aewb_validate_params()
170 user_cfg->buf_size = OMAP3ISP_AEWB_MAX_BUF_SIZE; h3a_aewb_validate_params()
184 struct omap3isp_h3a_aewb_config *user_cfg = new_conf; h3a_aewb_set_params() local
188 if (cur_cfg->saturation_limit != user_cfg->saturation_limit) { h3a_aewb_set_params()
189 cur_cfg->saturation_limit = user_cfg->saturation_limit; h3a_aewb_set_params()
192 if (cur_cfg->alaw_enable != user_cfg->alaw_enable) { h3a_aewb_set_params()
193 cur_cfg->alaw_enable = user_cfg->alaw_enable; h3a_aewb_set_params()
196 if (cur_cfg->win_height != user_cfg->win_height) { h3a_aewb_set_params()
197 cur_cfg->win_height = user_cfg->win_height; h3a_aewb_set_params()
200 if (cur_cfg->win_width != user_cfg->win_width) { h3a_aewb_set_params()
201 cur_cfg->win_width = user_cfg->win_width; h3a_aewb_set_params()
204 if (cur_cfg->ver_win_count != user_cfg->ver_win_count) { h3a_aewb_set_params()
205 cur_cfg->ver_win_count = user_cfg->ver_win_count; h3a_aewb_set_params()
208 if (cur_cfg->hor_win_count != user_cfg->hor_win_count) { h3a_aewb_set_params()
209 cur_cfg->hor_win_count = user_cfg->hor_win_count; h3a_aewb_set_params()
212 if (cur_cfg->ver_win_start != user_cfg->ver_win_start) { h3a_aewb_set_params()
213 cur_cfg->ver_win_start = user_cfg->ver_win_start; h3a_aewb_set_params()
216 if (cur_cfg->hor_win_start != user_cfg->hor_win_start) { h3a_aewb_set_params()
217 cur_cfg->hor_win_start = user_cfg->hor_win_start; h3a_aewb_set_params()
220 if (cur_cfg->blk_ver_win_start != user_cfg->blk_ver_win_start) { h3a_aewb_set_params()
221 cur_cfg->blk_ver_win_start = user_cfg->blk_ver_win_start; h3a_aewb_set_params()
224 if (cur_cfg->blk_win_height != user_cfg->blk_win_height) { h3a_aewb_set_params()
225 cur_cfg->blk_win_height = user_cfg->blk_win_height; h3a_aewb_set_params()
228 if (cur_cfg->subsample_ver_inc != user_cfg->subsample_ver_inc) { h3a_aewb_set_params()
229 cur_cfg->subsample_ver_inc = user_cfg->subsample_ver_inc; h3a_aewb_set_params()
232 if (cur_cfg->subsample_hor_inc != user_cfg->subsample_hor_inc) { h3a_aewb_set_params()
233 cur_cfg->subsample_hor_inc = user_cfg->subsample_hor_inc; h3a_aewb_set_params()
H A Disphist.c276 struct omap3isp_hist_config *user_cfg = hist->priv; hist_buf_process() local
292 hist->wait_acc_frames = user_cfg->num_acc_frames; hist_buf_process()
310 struct omap3isp_hist_config *user_cfg = new_conf; hist_validate_params() local
314 if (user_cfg->cfa > OMAP3ISP_HIST_CFA_FOVEONX3) hist_validate_params()
319 if ((user_cfg->num_regions < OMAP3ISP_HIST_MIN_REGIONS) || hist_validate_params()
320 (user_cfg->num_regions > OMAP3ISP_HIST_MAX_REGIONS)) hist_validate_params()
324 for (c = 0; c < user_cfg->num_regions; c++) { hist_validate_params()
325 if (user_cfg->region[c].h_start & ~ISPHIST_REG_START_END_MASK) hist_validate_params()
327 if (user_cfg->region[c].h_end & ~ISPHIST_REG_START_END_MASK) hist_validate_params()
329 if (user_cfg->region[c].v_start & ~ISPHIST_REG_START_END_MASK) hist_validate_params()
331 if (user_cfg->region[c].v_end & ~ISPHIST_REG_START_END_MASK) hist_validate_params()
333 if (user_cfg->region[c].h_start > user_cfg->region[c].h_end) hist_validate_params()
335 if (user_cfg->region[c].v_start > user_cfg->region[c].v_end) hist_validate_params()
339 switch (user_cfg->num_regions) { hist_validate_params()
341 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_256) hist_validate_params()
345 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_128) hist_validate_params()
349 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_64) hist_validate_params()
354 buf_size = hist_get_buf_size(user_cfg); hist_validate_params()
355 if (buf_size > user_cfg->buf_size) hist_validate_params()
357 user_cfg->buf_size = buf_size; hist_validate_params()
358 else if (user_cfg->buf_size > OMAP3ISP_HIST_MAX_BUF_SIZE) hist_validate_params()
359 user_cfg->buf_size = OMAP3ISP_HIST_MAX_BUF_SIZE; hist_validate_params()
365 struct omap3isp_hist_config *user_cfg) hist_comp_params()
370 if (cur_cfg->cfa != user_cfg->cfa) hist_comp_params()
373 if (cur_cfg->num_acc_frames != user_cfg->num_acc_frames) hist_comp_params()
376 if (cur_cfg->hist_bins != user_cfg->hist_bins) hist_comp_params()
380 if (c == 3 && user_cfg->cfa == OMAP3ISP_HIST_CFA_FOVEONX3) hist_comp_params()
382 else if (cur_cfg->wg[c] != user_cfg->wg[c]) hist_comp_params()
386 if (cur_cfg->num_regions != user_cfg->num_regions) hist_comp_params()
390 for (c = 0; c < user_cfg->num_regions; c++) { hist_comp_params()
391 if (cur_cfg->region[c].h_start != user_cfg->region[c].h_start) hist_comp_params()
393 if (cur_cfg->region[c].h_end != user_cfg->region[c].h_end) hist_comp_params()
395 if (cur_cfg->region[c].v_start != user_cfg->region[c].v_start) hist_comp_params()
397 if (cur_cfg->region[c].v_end != user_cfg->region[c].v_end) hist_comp_params()
410 struct omap3isp_hist_config *user_cfg = new_conf; hist_set_params() local
413 if (!hist->configured || hist_comp_params(hist, user_cfg)) { hist_set_params()
414 memcpy(cur_cfg, user_cfg, sizeof(*user_cfg)); hist_set_params()
415 if (user_cfg->num_acc_frames == 0) hist_set_params()
416 user_cfg->num_acc_frames = 1; hist_set_params()
423 * instead of stick with user_cfg->buf_size. hist_set_params()
364 hist_comp_params(struct ispstat *hist, struct omap3isp_hist_config *user_cfg) hist_comp_params() argument
H A Disph3a_af.c158 struct omap3isp_h3a_af_config *user_cfg = new_conf; h3a_af_validate_params() local
159 struct omap3isp_h3a_af_paxel *paxel_cfg = &user_cfg->paxel; h3a_af_validate_params()
160 struct omap3isp_h3a_af_iir *iir_cfg = &user_cfg->iir; h3a_af_validate_params()
219 buf_size = h3a_af_get_buf_size(user_cfg); h3a_af_validate_params()
220 if (buf_size > user_cfg->buf_size) h3a_af_validate_params()
222 user_cfg->buf_size = buf_size; h3a_af_validate_params()
223 else if (user_cfg->buf_size > OMAP3ISP_AF_MAX_BUF_SIZE) h3a_af_validate_params()
224 user_cfg->buf_size = OMAP3ISP_AF_MAX_BUF_SIZE; h3a_af_validate_params()
232 struct omap3isp_h3a_af_config *user_cfg = new_conf; h3a_af_set_params() local
238 if (cur_cfg->alaw_enable != user_cfg->alaw_enable) { h3a_af_set_params()
244 if (cur_cfg->hmf.enable != user_cfg->hmf.enable) { h3a_af_set_params()
248 if (cur_cfg->hmf.threshold != user_cfg->hmf.threshold) { h3a_af_set_params()
254 if (cur_cfg->rgb_pos != user_cfg->rgb_pos) { h3a_af_set_params()
260 if (cur_cfg->iir.h_start != user_cfg->iir.h_start) { h3a_af_set_params()
266 user_cfg->iir.coeff_set0[index]) { h3a_af_set_params()
271 user_cfg->iir.coeff_set1[index]) { h3a_af_set_params()
278 if ((cur_cfg->paxel.width != user_cfg->paxel.width) || h3a_af_set_params()
279 (cur_cfg->paxel.height != user_cfg->paxel.height) || h3a_af_set_params()
280 (cur_cfg->paxel.h_start != user_cfg->paxel.h_start) || h3a_af_set_params()
281 (cur_cfg->paxel.v_start != user_cfg->paxel.v_start) || h3a_af_set_params()
282 (cur_cfg->paxel.h_cnt != user_cfg->paxel.h_cnt) || h3a_af_set_params()
283 (cur_cfg->paxel.v_cnt != user_cfg->paxel.v_cnt) || h3a_af_set_params()
284 (cur_cfg->paxel.line_inc != user_cfg->paxel.line_inc)) { h3a_af_set_params()
290 if (cur_cfg->fvmode != user_cfg->fvmode) h3a_af_set_params()
295 memcpy(cur_cfg, user_cfg, sizeof(*cur_cfg)); h3a_af_set_params()
302 * instead of stick with user_cfg->buf_size. h3a_af_set_params()
H A Dispstat.c524 struct ispstat_generic_config *user_cfg = new_conf; omap3isp_stat_config() local
525 u32 buf_size = user_cfg->buf_size; omap3isp_stat_config()
546 if (buf_size != user_cfg->buf_size) omap3isp_stat_config()
549 (unsigned long)user_cfg->buf_size); omap3isp_stat_config()
563 buf_size = user_cfg->buf_size * 2 + MAGIC_SIZE; omap3isp_stat_config()
578 buf_size = PAGE_ALIGN(user_cfg->buf_size + MAGIC_SIZE); omap3isp_stat_config()
595 user_cfg->config_counter = stat->config_counter + stat->inc_config; omap3isp_stat_config()

Completed in 80 milliseconds