Searched refs:ccdcparam (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/media/platform/davinci/
H A Ddm355_ccdc.c267 static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam) validate_ccdc_param() argument
269 if (ccdcparam->datasft < CCDC_DATA_NO_SHIFT || validate_ccdc_param()
270 ccdcparam->datasft > CCDC_DATA_SHIFT_6BIT) { validate_ccdc_param()
275 if (ccdcparam->mfilt1 < CCDC_NO_MEDIAN_FILTER1 || validate_ccdc_param()
276 ccdcparam->mfilt1 > CCDC_MEDIAN_FILTER1) { validate_ccdc_param()
281 if (ccdcparam->mfilt2 < CCDC_NO_MEDIAN_FILTER2 || validate_ccdc_param()
282 ccdcparam->mfilt2 > CCDC_MEDIAN_FILTER2) { validate_ccdc_param()
287 if ((ccdcparam->med_filt_thres < 0) || validate_ccdc_param()
288 (ccdcparam->med_filt_thres > CCDC_MED_FILT_THRESH)) { validate_ccdc_param()
294 if (ccdcparam->data_sz < CCDC_DATA_16BITS || validate_ccdc_param()
295 ccdcparam->data_sz > CCDC_DATA_8BITS) { validate_ccdc_param()
300 if (ccdcparam->alaw.enable) { validate_ccdc_param()
301 if (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_13_4 || validate_ccdc_param()
302 ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) { validate_ccdc_param()
308 if (ccdcparam->blk_clamp.b_clamp_enable) { validate_ccdc_param()
309 if (ccdcparam->blk_clamp.sample_pixel < CCDC_SAMPLE_1PIXELS || validate_ccdc_param()
310 ccdcparam->blk_clamp.sample_pixel > CCDC_SAMPLE_16PIXELS) { validate_ccdc_param()
315 if (ccdcparam->blk_clamp.sample_ln < CCDC_SAMPLE_1LINES || validate_ccdc_param()
316 ccdcparam->blk_clamp.sample_ln > CCDC_SAMPLE_16LINES) { validate_ccdc_param()
H A Ddm644x_ccdc.c223 static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam) validate_ccdc_param() argument
225 if (ccdcparam->alaw.enable) { validate_ccdc_param()
226 u8 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); validate_ccdc_param()
227 u8 max_data = ccdc_data_size_max_bit(ccdcparam->data_sz); validate_ccdc_param()
229 if ((ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) || validate_ccdc_param()
230 (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_15_6) || validate_ccdc_param()
/linux-4.4.14/drivers/media/platform/am437x/
H A Dam437x-vpfe.c407 struct vpfe_ccdc_config_params_raw *ccdcparam) vpfe_ccdc_validate_param()
412 if (!ccdcparam->alaw.enable) vpfe_ccdc_validate_param()
415 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); vpfe_ccdc_validate_param()
416 max_data = ccdc_data_size_max_bit(ccdcparam->data_sz); vpfe_ccdc_validate_param()
418 if (ccdcparam->alaw.gamma_wd > VPFE_CCDC_GAMMA_BITS_09_0 || vpfe_ccdc_validate_param()
419 ccdcparam->alaw.gamma_wd < VPFE_CCDC_GAMMA_BITS_15_6 || vpfe_ccdc_validate_param()
406 vpfe_ccdc_validate_param(struct vpfe_ccdc *ccdc, struct vpfe_ccdc_config_params_raw *ccdcparam) vpfe_ccdc_validate_param() argument

Completed in 361 milliseconds