Lines Matching defs:params
66 void dwb3_config_fc(struct dwbc *dwbc, struct dc_dwb_params *params)
71 REG_UPDATE_2(FC_SOURCE_SIZE, FC_SOURCE_WIDTH, params->cnv_params.src_width,
72 FC_SOURCE_HEIGHT, params->cnv_params.src_height);
75 if (params->cnv_params.crop_en) {
77 REG_UPDATE(FC_WINDOW_START, FC_WINDOW_START_X, params->cnv_params.crop_x);
78 REG_UPDATE(FC_WINDOW_START, FC_WINDOW_START_Y, params->cnv_params.crop_y);
79 REG_UPDATE(FC_WINDOW_SIZE, FC_WINDOW_WIDTH, params->cnv_params.crop_width);
80 REG_UPDATE(FC_WINDOW_SIZE, FC_WINDOW_HEIGHT, params->cnv_params.crop_height);
86 REG_UPDATE(FC_MODE_CTRL, FC_FRAME_CAPTURE_RATE, params->capture_rate);
88 dwb3_set_stereo(dwbc, ¶ms->stereo_params);
91 bool dwb3_enable(struct dwbc *dwbc, struct dc_dwb_params *params)
100 dwb3_config_fc(dwbc, params);
103 dwb3_program_hdr_mult(dwbc, params);
104 dwb3_set_gamut_remap(dwbc, params);
105 dwb3_ogam_set_input_transfer_func(dwbc, params->out_transfer_func);
108 dwb3_set_denorm(dwbc, params);
133 bool dwb3_update(struct dwbc *dwbc, struct dc_dwb_params *params)
153 dwb3_config_fc(dwbc, params);
156 dwb3_program_hdr_mult(dwbc, params);
157 dwb3_set_gamut_remap(dwbc, params);
158 dwb3_ogam_set_input_transfer_func(dwbc, params->out_transfer_func);
161 dwb3_set_denorm(dwbc, params);
206 void dwb3_set_denorm(struct dwbc *dwbc, struct dc_dwb_params *params)
211 REG_UPDATE(DWB_OUT_CTRL, OUT_FORMAT, params->cnv_params.fc_out_format);
214 if (params->cnv_params.fc_out_format == DWB_OUT_FORMAT_32BPP_ARGB ||
215 params->cnv_params.fc_out_format == DWB_OUT_FORMAT_32BPP_RGBA) {
216 REG_UPDATE(DWB_OUT_CTRL, OUT_DENORM, params->cnv_params.out_denorm_mode);
217 REG_UPDATE(DWB_OUT_CTRL, OUT_MAX, params->cnv_params.out_max_pix_val);
218 REG_UPDATE(DWB_OUT_CTRL, OUT_MIN, params->cnv_params.out_min_pix_val);