Searched refs:bclamp (Results 1 – 7 of 7) sorted by relevance
538 static int isif_validate_bclamp_params(struct vpfe_isif_black_clamp *bclamp) in isif_validate_bclamp_params() argument542 if (bclamp->dc_offset > DM365_ISIF_MAX_CLDC) { in isif_validate_bclamp_params()546 if (!bclamp->en) in isif_validate_bclamp_params()548 if (bclamp->horz.clamp_pix_limit > 1) { in isif_validate_bclamp_params()552 if (bclamp->horz.win_count_calc < 1 || in isif_validate_bclamp_params()553 bclamp->horz.win_count_calc > 32) { in isif_validate_bclamp_params()557 if (bclamp->horz.win_start_h_calc > DM365_ISIF_MAX_CLHSH) { in isif_validate_bclamp_params()562 if (bclamp->horz.win_start_v_calc > DM365_ISIF_MAX_CLHSV) { in isif_validate_bclamp_params()566 if (bclamp->vert.reset_clamp_val > DM365_ISIF_MAX_CLVRV) { in isif_validate_bclamp_params()570 if (bclamp->vert.ob_v_sz_calc > DM365_ISIF_MAX_HEIGHT_BLACK_REGION) { in isif_validate_bclamp_params()[all …]
529 struct vpfe_isif_black_clamp bclamp; member
451 static void ccdc_config_black_clamp(struct ccdc_black_clamp *bclamp) in ccdc_config_black_clamp() argument455 if (!bclamp->enable) { in ccdc_config_black_clamp()457 val = (bclamp->dc_sub) & CCDC_BLK_DC_SUB_MASK; in ccdc_config_black_clamp()468 val = ((bclamp->sgain & CCDC_BLK_SGAIN_MASK) | in ccdc_config_black_clamp()469 ((bclamp->start_pixel & CCDC_BLK_ST_PXL_MASK) << in ccdc_config_black_clamp()471 ((bclamp->sample_ln & CCDC_BLK_SAMPLE_LINE_MASK) << in ccdc_config_black_clamp()473 ((bclamp->sample_pixel & CCDC_BLK_SAMPLE_LN_MASK) << in ccdc_config_black_clamp()
417 static void ccdc_config_black_clamp(struct ccdc_black_clamp *bclamp) in ccdc_config_black_clamp() argument421 if (!bclamp->b_clamp_enable) { in ccdc_config_black_clamp()423 regw(bclamp->dc_sub & CCDC_BLK_DC_SUB_MASK, DCSUB); in ccdc_config_black_clamp()428 val = (bclamp->start_pixel & CCDC_BLK_ST_PXL_MASK) | in ccdc_config_black_clamp()429 ((bclamp->sample_pixel & CCDC_BLK_SAMPLE_LN_MASK) << in ccdc_config_black_clamp()434 val = (bclamp->sample_ln & CCDC_NUM_LINE_CALC_MASK) in ccdc_config_black_clamp()
62 .bclamp = {671 isif_config_bclamp(&module_params->bclamp); in isif_config_raw()
607 struct vpfe_ccdc_black_clamp *bclamp) in vpfe_ccdc_config_black_clamp() argument611 if (!bclamp->enable) { in vpfe_ccdc_config_black_clamp()613 val = (bclamp->dc_sub) & VPFE_BLK_DC_SUB_MASK; in vpfe_ccdc_config_black_clamp()622 val = ((bclamp->sgain & VPFE_BLK_SGAIN_MASK) | in vpfe_ccdc_config_black_clamp()623 ((bclamp->start_pixel & VPFE_BLK_ST_PXL_MASK) << in vpfe_ccdc_config_black_clamp()625 ((bclamp->sample_ln & VPFE_BLK_SAMPLE_LINE_MASK) << in vpfe_ccdc_config_black_clamp()627 ((bclamp->sample_pixel & VPFE_BLK_SAMPLE_LN_MASK) << in vpfe_ccdc_config_black_clamp()
686 if (copy_from_user(&ccdc->clamp, ccdc_struct->bclamp, in ccdc_config()