Lines Matching refs:arg
112 const struct rkisp1_cif_isp_dpcc_config *arg) in rkisp1_dpcc_config() argument
125 mode |= arg->mode & RKISP1_CIF_ISP_DPCC_MODE_STAGE1_ENABLE; in rkisp1_dpcc_config()
129 arg->output_mode & RKISP1_CIF_ISP_DPCC_OUTPUT_MODE_MASK); in rkisp1_dpcc_config()
131 arg->set_use & RKISP1_CIF_ISP_DPCC_SET_USE_MASK); in rkisp1_dpcc_config()
135 arg->methods[i].method & in rkisp1_dpcc_config()
138 arg->methods[i].line_thresh & in rkisp1_dpcc_config()
141 arg->methods[i].line_mad_fac & in rkisp1_dpcc_config()
144 arg->methods[i].pg_fac & in rkisp1_dpcc_config()
147 arg->methods[i].rnd_thresh & in rkisp1_dpcc_config()
150 arg->methods[i].rg_fac & in rkisp1_dpcc_config()
155 arg->rnd_offs & RKISP1_CIF_ISP_DPCC_RND_OFFS_MASK); in rkisp1_dpcc_config()
157 arg->ro_limits & RKISP1_CIF_ISP_DPCC_RO_LIMIT_MASK); in rkisp1_dpcc_config()
162 const struct rkisp1_cif_isp_bls_config *arg) in rkisp1_bls_config() argument
170 if (!arg->enable_auto) { in rkisp1_bls_config()
181 rkisp1_write(params->rkisp1, swapped[0], arg->fixed_val.r); in rkisp1_bls_config()
182 rkisp1_write(params->rkisp1, swapped[1], arg->fixed_val.gr); in rkisp1_bls_config()
183 rkisp1_write(params->rkisp1, swapped[2], arg->fixed_val.gb); in rkisp1_bls_config()
184 rkisp1_write(params->rkisp1, swapped[3], arg->fixed_val.b); in rkisp1_bls_config()
186 if (arg->en_windows & BIT(1)) { in rkisp1_bls_config()
188 arg->bls_window2.h_offs); in rkisp1_bls_config()
190 arg->bls_window2.h_size); in rkisp1_bls_config()
192 arg->bls_window2.v_offs); in rkisp1_bls_config()
194 arg->bls_window2.v_size); in rkisp1_bls_config()
198 if (arg->en_windows & BIT(0)) { in rkisp1_bls_config()
200 arg->bls_window1.h_offs); in rkisp1_bls_config()
202 arg->bls_window1.h_size); in rkisp1_bls_config()
204 arg->bls_window1.v_offs); in rkisp1_bls_config()
206 arg->bls_window1.v_size); in rkisp1_bls_config()
211 arg->bls_samples); in rkisp1_bls_config()
340 const struct rkisp1_cif_isp_lsc_config *arg) in rkisp1_lsc_config() argument
350 params->ops->lsc_matrix_config(params, arg); in rkisp1_lsc_config()
354 data = RKISP1_CIF_ISP_LSC_SECT_SIZE(arg->x_size_tbl[i * 2], in rkisp1_lsc_config()
355 arg->x_size_tbl[i * 2 + 1]); in rkisp1_lsc_config()
359 data = RKISP1_CIF_ISP_LSC_SECT_GRAD(arg->x_grad_tbl[i * 2], in rkisp1_lsc_config()
360 arg->x_grad_tbl[i * 2 + 1]); in rkisp1_lsc_config()
364 data = RKISP1_CIF_ISP_LSC_SECT_SIZE(arg->y_size_tbl[i * 2], in rkisp1_lsc_config()
365 arg->y_size_tbl[i * 2 + 1]); in rkisp1_lsc_config()
369 data = RKISP1_CIF_ISP_LSC_SECT_GRAD(arg->y_grad_tbl[i * 2], in rkisp1_lsc_config()
370 arg->y_grad_tbl[i * 2 + 1]); in rkisp1_lsc_config()
385 const struct rkisp1_cif_isp_flt_config *arg) in rkisp1_flt_config() argument
390 arg->thresh_bl0); in rkisp1_flt_config()
392 arg->thresh_bl1); in rkisp1_flt_config()
394 arg->thresh_sh0); in rkisp1_flt_config()
396 arg->thresh_sh1); in rkisp1_flt_config()
398 arg->fac_bl0); in rkisp1_flt_config()
400 arg->fac_bl1); in rkisp1_flt_config()
402 arg->fac_mid); in rkisp1_flt_config()
404 arg->fac_sh0); in rkisp1_flt_config()
406 arg->fac_sh1); in rkisp1_flt_config()
408 arg->lum_weight); in rkisp1_flt_config()
411 (arg->mode ? RKISP1_CIF_ISP_FLT_MODE_DNR : 0) | in rkisp1_flt_config()
412 RKISP1_CIF_ISP_FLT_CHROMA_V_MODE(arg->chr_v_mode) | in rkisp1_flt_config()
413 RKISP1_CIF_ISP_FLT_CHROMA_H_MODE(arg->chr_h_mode) | in rkisp1_flt_config()
414 RKISP1_CIF_ISP_FLT_GREEN_STAGE1(arg->grn_stage1)); in rkisp1_flt_config()
419 if (arg->mode) in rkisp1_flt_config()
421 filt_mode |= RKISP1_CIF_ISP_FLT_CHROMA_V_MODE(arg->chr_v_mode) | in rkisp1_flt_config()
422 RKISP1_CIF_ISP_FLT_CHROMA_H_MODE(arg->chr_h_mode) | in rkisp1_flt_config()
423 RKISP1_CIF_ISP_FLT_GREEN_STAGE1(arg->grn_stage1); in rkisp1_flt_config()
429 const struct rkisp1_cif_isp_bdm_config *arg) in rkisp1_bdm_config() argument
436 bdm_th |= arg->demosaic_th & ~RKISP1_CIF_ISP_DEMOSAIC_BYPASS; in rkisp1_bdm_config()
444 const struct rkisp1_cif_isp_sdg_config *arg) in rkisp1_sdg_config() argument
449 arg->xa_pnts.gamma_dx0); in rkisp1_sdg_config()
451 arg->xa_pnts.gamma_dx1); in rkisp1_sdg_config()
456 arg->curve_r.gamma_y[i]); in rkisp1_sdg_config()
459 arg->curve_g.gamma_y[i]); in rkisp1_sdg_config()
462 arg->curve_b.gamma_y[i]); in rkisp1_sdg_config()
468 const struct rkisp1_cif_isp_goc_config *arg) in rkisp1_goc_config_v10() argument
475 arg->mode); in rkisp1_goc_config_v10()
480 arg->gamma_y[i]); in rkisp1_goc_config_v10()
484 const struct rkisp1_cif_isp_goc_config *arg) in rkisp1_goc_config_v12() argument
492 arg->mode); in rkisp1_goc_config_v12()
496 arg->gamma_y[2 * i + 1], in rkisp1_goc_config_v12()
497 arg->gamma_y[2 * i]); in rkisp1_goc_config_v12()
505 const struct rkisp1_cif_isp_ctk_config *arg) in rkisp1_ctk_config() argument
513 arg->coeff[i][j]); in rkisp1_ctk_config()
517 arg->ct_offset[i]); in rkisp1_ctk_config()
543 const struct rkisp1_cif_isp_awb_meas_config *arg) in rkisp1_awb_meas_config_v10() argument
547 if (arg->awb_mode == RKISP1_CIF_ISP_AWB_MODE_YCBCR) { in rkisp1_awb_meas_config_v10()
550 RKISP1_CIF_ISP_AWB_REF_CR_SET(arg->awb_ref_cr) | in rkisp1_awb_meas_config_v10()
551 arg->awb_ref_cb); in rkisp1_awb_meas_config_v10()
554 RKISP1_CIF_ISP_AWB_MAX_Y_SET(arg->max_y) | in rkisp1_awb_meas_config_v10()
555 RKISP1_CIF_ISP_AWB_MIN_Y_SET(arg->min_y) | in rkisp1_awb_meas_config_v10()
556 RKISP1_CIF_ISP_AWB_MAX_CS_SET(arg->max_csum) | in rkisp1_awb_meas_config_v10()
557 arg->min_c); in rkisp1_awb_meas_config_v10()
561 if (arg->enable_ymax_cmp) in rkisp1_awb_meas_config_v10()
569 arg->awb_wnd.v_offs); in rkisp1_awb_meas_config_v10()
571 arg->awb_wnd.h_offs); in rkisp1_awb_meas_config_v10()
574 arg->awb_wnd.v_size); in rkisp1_awb_meas_config_v10()
576 arg->awb_wnd.h_size); in rkisp1_awb_meas_config_v10()
579 arg->frames); in rkisp1_awb_meas_config_v10()
583 const struct rkisp1_cif_isp_awb_meas_config *arg) in rkisp1_awb_meas_config_v12() argument
587 if (arg->awb_mode == RKISP1_CIF_ISP_AWB_MODE_YCBCR) { in rkisp1_awb_meas_config_v12()
590 RKISP1_CIF_ISP_AWB_REF_CR_SET(arg->awb_ref_cr) | in rkisp1_awb_meas_config_v12()
591 arg->awb_ref_cb); in rkisp1_awb_meas_config_v12()
594 RKISP1_CIF_ISP_AWB_MAX_Y_SET(arg->max_y) | in rkisp1_awb_meas_config_v12()
595 RKISP1_CIF_ISP_AWB_MIN_Y_SET(arg->min_y) | in rkisp1_awb_meas_config_v12()
596 RKISP1_CIF_ISP_AWB_MAX_CS_SET(arg->max_csum) | in rkisp1_awb_meas_config_v12()
597 arg->min_c); in rkisp1_awb_meas_config_v12()
601 if (arg->enable_ymax_cmp) in rkisp1_awb_meas_config_v12()
606 reg_val |= RKISP1_CIF_ISP_AWB_SET_FRAMES_V12(arg->frames); in rkisp1_awb_meas_config_v12()
611 arg->awb_wnd.v_offs << 16 | arg->awb_wnd.h_offs); in rkisp1_awb_meas_config_v12()
614 arg->awb_wnd.v_size << 16 | arg->awb_wnd.h_size); in rkisp1_awb_meas_config_v12()
619 const struct rkisp1_cif_isp_awb_meas_config *arg, in rkisp1_awb_meas_enable_v10() argument
628 if (arg->awb_mode == RKISP1_CIF_ISP_AWB_MODE_RGB) in rkisp1_awb_meas_enable_v10()
649 const struct rkisp1_cif_isp_awb_meas_config *arg, in rkisp1_awb_meas_enable_v12() argument
658 if (arg->awb_mode == RKISP1_CIF_ISP_AWB_MODE_RGB) in rkisp1_awb_meas_enable_v12()
679 const struct rkisp1_cif_isp_awb_gain_config *arg) in rkisp1_awb_gain_config_v10() argument
682 RKISP1_CIF_ISP_AWB_GAIN_R_SET(arg->gain_green_r) | in rkisp1_awb_gain_config_v10()
683 arg->gain_green_b); in rkisp1_awb_gain_config_v10()
686 RKISP1_CIF_ISP_AWB_GAIN_R_SET(arg->gain_red) | in rkisp1_awb_gain_config_v10()
687 arg->gain_blue); in rkisp1_awb_gain_config_v10()
692 const struct rkisp1_cif_isp_awb_gain_config *arg) in rkisp1_awb_gain_config_v12() argument
695 RKISP1_CIF_ISP_AWB_GAIN_R_SET(arg->gain_green_r) | in rkisp1_awb_gain_config_v12()
696 arg->gain_green_b); in rkisp1_awb_gain_config_v12()
699 RKISP1_CIF_ISP_AWB_GAIN_R_SET(arg->gain_red) | in rkisp1_awb_gain_config_v12()
700 arg->gain_blue); in rkisp1_awb_gain_config_v12()
704 const struct rkisp1_cif_isp_aec_config *arg) in rkisp1_aec_config_v10() argument
712 if (arg->autostop) in rkisp1_aec_config_v10()
714 if (arg->mode == RKISP1_CIF_ISP_EXP_MEASURING_MODE_1) in rkisp1_aec_config_v10()
719 arg->meas_window.h_offs); in rkisp1_aec_config_v10()
721 arg->meas_window.v_offs); in rkisp1_aec_config_v10()
723 block_hsize = arg->meas_window.h_size / in rkisp1_aec_config_v10()
725 block_vsize = arg->meas_window.v_size / in rkisp1_aec_config_v10()
735 const struct rkisp1_cif_isp_aec_config *arg) in rkisp1_aec_config_v12() argument
745 if (arg->autostop) in rkisp1_aec_config_v12()
747 if (arg->mode == RKISP1_CIF_ISP_EXP_MEASURING_MODE_1) in rkisp1_aec_config_v12()
753 RKISP1_CIF_ISP_EXP_V_OFFSET_SET_V12(arg->meas_window.v_offs) | in rkisp1_aec_config_v12()
754 RKISP1_CIF_ISP_EXP_H_OFFSET_SET_V12(arg->meas_window.h_offs)); in rkisp1_aec_config_v12()
756 block_hsize = arg->meas_window.h_size / ae_wnd_num[wnd_num_idx] - 1; in rkisp1_aec_config_v12()
757 block_vsize = arg->meas_window.v_size / ae_wnd_num[wnd_num_idx] - 1; in rkisp1_aec_config_v12()
765 const struct rkisp1_cif_isp_cproc_config *arg) in rkisp1_cproc_config() argument
768 container_of(arg, struct rkisp1_cif_isp_isp_other_cfg, cproc_config); in rkisp1_cproc_config()
775 arg->contrast); in rkisp1_cproc_config()
776 rkisp1_write(params->rkisp1, RKISP1_CIF_C_PROC_HUE, arg->hue); in rkisp1_cproc_config()
777 rkisp1_write(params->rkisp1, RKISP1_CIF_C_PROC_SATURATION, arg->sat); in rkisp1_cproc_config()
779 arg->brightness); in rkisp1_cproc_config()
796 const struct rkisp1_cif_isp_hst_config *arg) in rkisp1_hst_config_v10() argument
814 hist_prop |= RKISP1_CIF_ISP_HIST_PREDIV_SET_V10(arg->histogram_predivider); in rkisp1_hst_config_v10()
817 arg->meas_window.h_offs); in rkisp1_hst_config_v10()
819 arg->meas_window.v_offs); in rkisp1_hst_config_v10()
821 block_hsize = arg->meas_window.h_size / in rkisp1_hst_config_v10()
823 block_vsize = arg->meas_window.v_size / RKISP1_CIF_ISP_HIST_ROW_NUM_V10 - 1; in rkisp1_hst_config_v10()
830 weight = arg->hist_weight; in rkisp1_hst_config_v10()
841 const struct rkisp1_cif_isp_hst_config *arg) in rkisp1_hst_config_v12() argument
862 RKISP1_CIF_ISP_HIST_CTRL_STEPSIZE_SET_V12(arg->histogram_predivider); in rkisp1_hst_config_v12()
866 RKISP1_CIF_ISP_HIST_OFFS_SET_V12(arg->meas_window.h_offs, in rkisp1_hst_config_v12()
867 arg->meas_window.v_offs)); in rkisp1_hst_config_v12()
869 block_hsize = arg->meas_window.h_size / hist_wnd_num[wnd_num_idx] - 1; in rkisp1_hst_config_v12()
870 block_vsize = arg->meas_window.v_size / hist_wnd_num[wnd_num_idx] - 1; in rkisp1_hst_config_v12()
877 arg->hist_weight[i * hist_wnd_num[wnd_num_idx] + j]; in rkisp1_hst_config_v12()
898 const struct rkisp1_cif_isp_hst_config *arg, bool en) in rkisp1_hst_enable_v10() argument
905 hist_prop |= arg->mode; in rkisp1_hst_enable_v10()
916 const struct rkisp1_cif_isp_hst_config *arg, bool en) in rkisp1_hst_enable_v12() argument
923 hist_ctrl |= RKISP1_CIF_ISP_HIST_CTRL_MODE_SET_V12(arg->mode); in rkisp1_hst_enable_v12()
935 const struct rkisp1_cif_isp_afc_config *arg) in rkisp1_afm_config_v10() argument
937 size_t num_of_win = min_t(size_t, ARRAY_SIZE(arg->afm_win), in rkisp1_afm_config_v10()
938 arg->num_afm_win); in rkisp1_afm_config_v10()
948 RKISP1_CIF_ISP_AFM_WINDOW_X(arg->afm_win[i].h_offs) | in rkisp1_afm_config_v10()
949 RKISP1_CIF_ISP_AFM_WINDOW_Y(arg->afm_win[i].v_offs)); in rkisp1_afm_config_v10()
951 RKISP1_CIF_ISP_AFM_WINDOW_X(arg->afm_win[i].h_size + in rkisp1_afm_config_v10()
952 arg->afm_win[i].h_offs) | in rkisp1_afm_config_v10()
953 RKISP1_CIF_ISP_AFM_WINDOW_Y(arg->afm_win[i].v_size + in rkisp1_afm_config_v10()
954 arg->afm_win[i].v_offs)); in rkisp1_afm_config_v10()
956 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_AFM_THRES, arg->thres); in rkisp1_afm_config_v10()
958 arg->var_shift); in rkisp1_afm_config_v10()
964 const struct rkisp1_cif_isp_afc_config *arg) in rkisp1_afm_config_v12() argument
966 size_t num_of_win = min_t(size_t, ARRAY_SIZE(arg->afm_win), in rkisp1_afm_config_v12()
967 arg->num_afm_win); in rkisp1_afm_config_v12()
978 RKISP1_CIF_ISP_AFM_WINDOW_X(arg->afm_win[i].h_offs) | in rkisp1_afm_config_v12()
979 RKISP1_CIF_ISP_AFM_WINDOW_Y(arg->afm_win[i].v_offs)); in rkisp1_afm_config_v12()
981 RKISP1_CIF_ISP_AFM_WINDOW_X(arg->afm_win[i].h_size + in rkisp1_afm_config_v12()
982 arg->afm_win[i].h_offs) | in rkisp1_afm_config_v12()
983 RKISP1_CIF_ISP_AFM_WINDOW_Y(arg->afm_win[i].v_size + in rkisp1_afm_config_v12()
984 arg->afm_win[i].v_offs)); in rkisp1_afm_config_v12()
986 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_AFM_THRES, arg->thres); in rkisp1_afm_config_v12()
988 lum_var_shift = RKISP1_CIF_ISP_AFM_GET_LUM_SHIFT_a_V12(arg->var_shift); in rkisp1_afm_config_v12()
989 afm_var_shift = RKISP1_CIF_ISP_AFM_GET_AFM_SHIFT_a_V12(arg->var_shift); in rkisp1_afm_config_v12()
1000 const struct rkisp1_cif_isp_ie_config *arg) in rkisp1_ie_config() argument
1010 switch (arg->effect) { in rkisp1_ie_config()
1016 arg->eff_tint); in rkisp1_ie_config()
1026 arg->color_sel); in rkisp1_ie_config()
1031 arg->eff_mat_1); in rkisp1_ie_config()
1033 arg->eff_mat_2); in rkisp1_ie_config()
1035 arg->eff_mat_3); in rkisp1_ie_config()
1040 arg->eff_mat_3); in rkisp1_ie_config()
1042 arg->eff_mat_4); in rkisp1_ie_config()
1044 arg->eff_mat_5); in rkisp1_ie_config()
1170 const struct rkisp1_cif_isp_dpf_config *arg) in rkisp1_dpf_config() argument
1174 switch (arg->gain.mode) { in rkisp1_dpf_config()
1200 if (arg->nll.scale_mode == RKISP1_CIF_ISP_NLL_SCALE_LOGARITHMIC) in rkisp1_dpf_config()
1202 if (arg->rb_flt.fltsize == RKISP1_CIF_ISP_DPF_RB_FILTERSIZE_9x9) in rkisp1_dpf_config()
1204 if (!arg->rb_flt.r_enable) in rkisp1_dpf_config()
1206 if (!arg->rb_flt.b_enable) in rkisp1_dpf_config()
1208 if (!arg->g_flt.gb_enable) in rkisp1_dpf_config()
1210 if (!arg->g_flt.gr_enable) in rkisp1_dpf_config()
1216 arg->gain.nf_b_gain); in rkisp1_dpf_config()
1218 arg->gain.nf_r_gain); in rkisp1_dpf_config()
1220 arg->gain.nf_gb_gain); in rkisp1_dpf_config()
1222 arg->gain.nf_gr_gain); in rkisp1_dpf_config()
1227 arg->nll.coeff[i]); in rkisp1_dpf_config()
1230 spatial_coeff = arg->g_flt.spatial_coeff[0] | in rkisp1_dpf_config()
1231 (arg->g_flt.spatial_coeff[1] << 8) | in rkisp1_dpf_config()
1232 (arg->g_flt.spatial_coeff[2] << 16) | in rkisp1_dpf_config()
1233 (arg->g_flt.spatial_coeff[3] << 24); in rkisp1_dpf_config()
1237 spatial_coeff = arg->g_flt.spatial_coeff[4] | in rkisp1_dpf_config()
1238 (arg->g_flt.spatial_coeff[5] << 8); in rkisp1_dpf_config()
1242 spatial_coeff = arg->rb_flt.spatial_coeff[0] | in rkisp1_dpf_config()
1243 (arg->rb_flt.spatial_coeff[1] << 8) | in rkisp1_dpf_config()
1244 (arg->rb_flt.spatial_coeff[2] << 16) | in rkisp1_dpf_config()
1245 (arg->rb_flt.spatial_coeff[3] << 24); in rkisp1_dpf_config()
1249 spatial_coeff = arg->rb_flt.spatial_coeff[4] | in rkisp1_dpf_config()
1250 (arg->rb_flt.spatial_coeff[5] << 8); in rkisp1_dpf_config()
1257 const struct rkisp1_cif_isp_dpf_strength_config *arg) in rkisp1_dpf_strength_config() argument
1259 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPF_STRENGTH_B, arg->b); in rkisp1_dpf_strength_config()
1260 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPF_STRENGTH_G, arg->g); in rkisp1_dpf_strength_config()
1261 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPF_STRENGTH_R, arg->r); in rkisp1_dpf_strength_config()
1305 const struct rkisp1_cif_isp_compand_bls_config *arg) in rkisp1_compand_bls_config() argument
1317 rkisp1_write(params->rkisp1, swapped[0], arg->r); in rkisp1_compand_bls_config()
1318 rkisp1_write(params->rkisp1, swapped[1], arg->gr); in rkisp1_compand_bls_config()
1319 rkisp1_write(params->rkisp1, swapped[2], arg->gb); in rkisp1_compand_bls_config()
1320 rkisp1_write(params->rkisp1, swapped[3], arg->b); in rkisp1_compand_bls_config()
1325 const struct rkisp1_cif_isp_compand_curve_config *arg) in rkisp1_compand_expand_config() argument
1328 arg->px); in rkisp1_compand_expand_config()
1331 arg->y); in rkisp1_compand_expand_config()
1334 arg->x); in rkisp1_compand_expand_config()
1339 const struct rkisp1_cif_isp_compand_curve_config *arg) in rkisp1_compand_compress_config() argument
1342 arg->px); in rkisp1_compand_compress_config()
1345 arg->y); in rkisp1_compand_compress_config()
1348 arg->x); in rkisp1_compand_compress_config()