Lines Matching refs:user_cfg
272 struct omap3isp_hist_config *user_cfg = hist->priv; in hist_buf_process() local
288 hist->wait_acc_frames = user_cfg->num_acc_frames; in hist_buf_process()
306 struct omap3isp_hist_config *user_cfg = new_conf; in hist_validate_params() local
310 if (user_cfg->cfa > OMAP3ISP_HIST_CFA_FOVEONX3) in hist_validate_params()
315 if ((user_cfg->num_regions < OMAP3ISP_HIST_MIN_REGIONS) || in hist_validate_params()
316 (user_cfg->num_regions > OMAP3ISP_HIST_MAX_REGIONS)) in hist_validate_params()
320 for (c = 0; c < user_cfg->num_regions; c++) { in hist_validate_params()
321 if (user_cfg->region[c].h_start & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
323 if (user_cfg->region[c].h_end & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
325 if (user_cfg->region[c].v_start & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
327 if (user_cfg->region[c].v_end & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
329 if (user_cfg->region[c].h_start > user_cfg->region[c].h_end) in hist_validate_params()
331 if (user_cfg->region[c].v_start > user_cfg->region[c].v_end) in hist_validate_params()
335 switch (user_cfg->num_regions) { in hist_validate_params()
337 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_256) in hist_validate_params()
341 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_128) in hist_validate_params()
345 if (user_cfg->hist_bins > OMAP3ISP_HIST_BINS_64) in hist_validate_params()
350 buf_size = hist_get_buf_size(user_cfg); in hist_validate_params()
351 if (buf_size > user_cfg->buf_size) in hist_validate_params()
353 user_cfg->buf_size = buf_size; in hist_validate_params()
354 else if (user_cfg->buf_size > OMAP3ISP_HIST_MAX_BUF_SIZE) in hist_validate_params()
355 user_cfg->buf_size = OMAP3ISP_HIST_MAX_BUF_SIZE; in hist_validate_params()
361 struct omap3isp_hist_config *user_cfg) in hist_comp_params() argument
366 if (cur_cfg->cfa != user_cfg->cfa) in hist_comp_params()
369 if (cur_cfg->num_acc_frames != user_cfg->num_acc_frames) in hist_comp_params()
372 if (cur_cfg->hist_bins != user_cfg->hist_bins) in hist_comp_params()
376 if (c == 3 && user_cfg->cfa == OMAP3ISP_HIST_CFA_FOVEONX3) in hist_comp_params()
378 else if (cur_cfg->wg[c] != user_cfg->wg[c]) in hist_comp_params()
382 if (cur_cfg->num_regions != user_cfg->num_regions) in hist_comp_params()
386 for (c = 0; c < user_cfg->num_regions; c++) { in hist_comp_params()
387 if (cur_cfg->region[c].h_start != user_cfg->region[c].h_start) in hist_comp_params()
389 if (cur_cfg->region[c].h_end != user_cfg->region[c].h_end) in hist_comp_params()
391 if (cur_cfg->region[c].v_start != user_cfg->region[c].v_start) in hist_comp_params()
393 if (cur_cfg->region[c].v_end != user_cfg->region[c].v_end) in hist_comp_params()
406 struct omap3isp_hist_config *user_cfg = new_conf; in hist_set_params() local
409 if (!hist->configured || hist_comp_params(hist, user_cfg)) { in hist_set_params()
410 memcpy(cur_cfg, user_cfg, sizeof(*user_cfg)); in hist_set_params()
411 if (user_cfg->num_acc_frames == 0) in hist_set_params()
412 user_cfg->num_acc_frames = 1; in hist_set_params()