Searched refs:bclamp (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/drivers/staging/media/davinci_vpfe/
H A Ddm365_isif.c538 static int isif_validate_bclamp_params(struct vpfe_isif_black_clamp *bclamp) isif_validate_bclamp_params() argument
542 if (bclamp->dc_offset > DM365_ISIF_MAX_CLDC) { isif_validate_bclamp_params()
543 pr_err("Invalid bclamp dc_offset value\n"); isif_validate_bclamp_params()
546 if (!bclamp->en) isif_validate_bclamp_params()
548 if (bclamp->horz.clamp_pix_limit > 1) { isif_validate_bclamp_params()
549 pr_err("Invalid bclamp horz clamp_pix_limit value\n"); isif_validate_bclamp_params()
552 if (bclamp->horz.win_count_calc < 1 || isif_validate_bclamp_params()
553 bclamp->horz.win_count_calc > 32) { isif_validate_bclamp_params()
554 pr_err("Invalid bclamp horz win_count_calc value\n"); isif_validate_bclamp_params()
557 if (bclamp->horz.win_start_h_calc > DM365_ISIF_MAX_CLHSH) { isif_validate_bclamp_params()
558 pr_err("Invalid bclamp win_start_v_calc value\n"); isif_validate_bclamp_params()
562 if (bclamp->horz.win_start_v_calc > DM365_ISIF_MAX_CLHSV) { isif_validate_bclamp_params()
563 pr_err("Invalid bclamp win_start_v_calc value\n"); isif_validate_bclamp_params()
566 if (bclamp->vert.reset_clamp_val > DM365_ISIF_MAX_CLVRV) { isif_validate_bclamp_params()
567 pr_err("Invalid bclamp reset_clamp_val value\n"); isif_validate_bclamp_params()
570 if (bclamp->vert.ob_v_sz_calc > DM365_ISIF_MAX_HEIGHT_BLACK_REGION) { isif_validate_bclamp_params()
571 pr_err("Invalid bclamp ob_v_sz_calc value\n"); isif_validate_bclamp_params()
574 if (bclamp->vert.ob_start_h > DM365_ISIF_MAX_CLVSH) { isif_validate_bclamp_params()
575 pr_err("Invalid bclamp ob_start_h value\n"); isif_validate_bclamp_params()
578 if (bclamp->vert.ob_start_v > DM365_ISIF_MAX_CLVSV) { isif_validate_bclamp_params()
579 pr_err("Invalid bclamp ob_start_h value\n"); isif_validate_bclamp_params()
596 ret = isif_validate_bclamp_params(&params->bclamp); isif_validate_raw_params()
1201 isif_config_bclamp(isif, &module_params->bclamp); isif_config_raw()
H A Ddavinci_vpfe_user.h529 struct vpfe_isif_black_clamp bclamp; member in struct:vpfe_isif_raw_config
/linux-4.4.14/drivers/media/platform/davinci/
H A Ddm644x_ccdc.c451 static void ccdc_config_black_clamp(struct ccdc_black_clamp *bclamp) ccdc_config_black_clamp() argument
455 if (!bclamp->enable) { ccdc_config_black_clamp()
457 val = (bclamp->dc_sub) & CCDC_BLK_DC_SUB_MASK; ccdc_config_black_clamp()
468 val = ((bclamp->sgain & CCDC_BLK_SGAIN_MASK) | ccdc_config_black_clamp()
469 ((bclamp->start_pixel & CCDC_BLK_ST_PXL_MASK) << ccdc_config_black_clamp()
471 ((bclamp->sample_ln & CCDC_BLK_SAMPLE_LINE_MASK) << ccdc_config_black_clamp()
473 ((bclamp->sample_pixel & CCDC_BLK_SAMPLE_LN_MASK) << ccdc_config_black_clamp()
H A Ddm355_ccdc.c417 static void ccdc_config_black_clamp(struct ccdc_black_clamp *bclamp) ccdc_config_black_clamp() argument
421 if (!bclamp->b_clamp_enable) { ccdc_config_black_clamp()
423 regw(bclamp->dc_sub & CCDC_BLK_DC_SUB_MASK, DCSUB); ccdc_config_black_clamp()
428 val = (bclamp->start_pixel & CCDC_BLK_ST_PXL_MASK) | ccdc_config_black_clamp()
429 ((bclamp->sample_pixel & CCDC_BLK_SAMPLE_LN_MASK) << ccdc_config_black_clamp()
434 val = (bclamp->sample_ln & CCDC_NUM_LINE_CALC_MASK) ccdc_config_black_clamp()
H A Disif.c62 .bclamp = {
671 isif_config_bclamp(&module_params->bclamp); isif_config_raw()
/linux-4.4.14/include/uapi/linux/
H A Domap3isp.h401 * @bclamp: Black clamp control register.
411 struct omap3isp_ccdc_bclamp __user *bclamp; member in struct:omap3isp_ccdc_update_config
/linux-4.4.14/drivers/media/platform/am437x/
H A Dam437x-vpfe.c607 struct vpfe_ccdc_black_clamp *bclamp) vpfe_ccdc_config_black_clamp()
611 if (!bclamp->enable) { vpfe_ccdc_config_black_clamp()
613 val = (bclamp->dc_sub) & VPFE_BLK_DC_SUB_MASK; vpfe_ccdc_config_black_clamp()
622 val = ((bclamp->sgain & VPFE_BLK_SGAIN_MASK) | vpfe_ccdc_config_black_clamp()
623 ((bclamp->start_pixel & VPFE_BLK_ST_PXL_MASK) << vpfe_ccdc_config_black_clamp()
625 ((bclamp->sample_ln & VPFE_BLK_SAMPLE_LINE_MASK) << vpfe_ccdc_config_black_clamp()
627 ((bclamp->sample_pixel & VPFE_BLK_SAMPLE_LN_MASK) << vpfe_ccdc_config_black_clamp()
606 vpfe_ccdc_config_black_clamp(struct vpfe_ccdc *ccdc, struct vpfe_ccdc_black_clamp *bclamp) vpfe_ccdc_config_black_clamp() argument
/linux-4.4.14/include/media/davinci/
H A Disif.h425 struct isif_black_clamp bclamp; member in struct:isif_config_params_raw
/linux-4.4.14/drivers/media/platform/omap3isp/
H A Dispccdc.c686 if (copy_from_user(&ccdc->clamp, ccdc_struct->bclamp, ccdc_config()

Completed in 467 milliseconds