Home
last modified time | relevance | path

Searched refs:rgb (Results 1 - 25 of 130) sorted by relevance

123456

/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/
H A Drgb.c94 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
96 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
97 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
103 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
106 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
109 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
112 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
115 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
120 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
122 tegra_dc_commit(rgb in tegra_rgb_encoder_enable()
125 tegra_rgb_pll_rate_change_allowed(struct tegra_rgb *rgb) tegra_rgb_pll_rate_change_allowed() argument
145 struct tegra_rgb *rgb = to_rgb(output); tegra_rgb_encoder_atomic_check() local
196 struct tegra_rgb *rgb; tegra_dc_rgb_probe() local
264 struct tegra_rgb *rgb; tegra_dc_rgb_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
H A Dsun4i_rgb.c48 struct sun4i_rgb *rgb = in sun4i_rgb_get_modes() local
51 return drm_panel_get_modes(rgb->panel, connector); in sun4i_rgb_get_modes()
65 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local
66 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid()
109 if (rgb->panel) { in sun4i_rgb_mode_valid()
118 if (!rgb->bridge) in sun4i_rgb_mode_valid()
161 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local
165 if (rgb->panel) { in sun4i_rgb_encoder_enable()
166 drm_panel_prepare(rgb->panel); in sun4i_rgb_encoder_enable()
167 drm_panel_enable(rgb in sun4i_rgb_encoder_enable()
173 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); sun4i_rgb_encoder_disable() local
192 struct sun4i_rgb *rgb; sun4i_rgb_init() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/
H A Dsun4i_rgb.c48 struct sun4i_rgb *rgb = in sun4i_rgb_get_modes() local
51 return drm_panel_get_modes(rgb->panel, connector); in sun4i_rgb_get_modes()
65 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local
66 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid()
109 if (rgb->panel) { in sun4i_rgb_mode_valid()
118 if (!rgb->bridge) in sun4i_rgb_mode_valid()
161 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local
165 if (rgb->panel) { in sun4i_rgb_encoder_enable()
166 drm_panel_prepare(rgb->panel); in sun4i_rgb_encoder_enable()
167 drm_panel_enable(rgb in sun4i_rgb_encoder_enable()
173 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); sun4i_rgb_encoder_disable() local
192 struct sun4i_rgb *rgb; sun4i_rgb_init() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
H A Drgb.c91 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
93 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
94 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
100 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
103 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
106 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
109 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
112 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
117 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
121 tegra_dc_writel(rgb in tegra_rgb_encoder_enable()
134 struct tegra_rgb *rgb = to_rgb(output); tegra_rgb_encoder_atomic_check() local
176 struct tegra_rgb *rgb; tegra_dc_rgb_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-led.c84 struct hidled_rgb *rgb; member
99 struct hidled_rgb *rgb; member
175 static u8 riso_kagaku_index(struct hidled_rgb *rgb) in riso_kagaku_index() argument
179 r = rgb->red.cdev.brightness; in riso_kagaku_index()
180 g = rgb->green.cdev.brightness; in riso_kagaku_index()
181 b = rgb->blue.cdev.brightness; in riso_kagaku_index()
192 struct hidled_rgb *rgb = led->rgb; in riso_kagaku_write() local
195 buf[1] = riso_kagaku_index(rgb); in riso_kagaku_write()
197 return hidled_send(rgb in riso_kagaku_write()
203 struct hidled_rgb *rgb = led->rgb; dream_cheeky_write() local
410 hidled_init_led(struct hidled_led *led, const char *color_name, struct hidled_rgb *rgb, unsigned int minor) hidled_init_led() argument
430 hidled_init_rgb(struct hidled_rgb *rgb, unsigned int minor) hidled_init_rgb() argument
[all...]
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-led.c84 struct hidled_rgb *rgb; member
99 struct hidled_rgb *rgb; member
175 static u8 riso_kagaku_index(struct hidled_rgb *rgb) in riso_kagaku_index() argument
179 r = rgb->red.cdev.brightness; in riso_kagaku_index()
180 g = rgb->green.cdev.brightness; in riso_kagaku_index()
181 b = rgb->blue.cdev.brightness; in riso_kagaku_index()
192 struct hidled_rgb *rgb = led->rgb; in riso_kagaku_write() local
195 buf[1] = riso_kagaku_index(rgb); in riso_kagaku_write()
197 return hidled_send(rgb in riso_kagaku_write()
203 struct hidled_rgb *rgb = led->rgb; dream_cheeky_write() local
410 hidled_init_led(struct hidled_led *led, const char *color_name, struct hidled_rgb *rgb, unsigned int minor) hidled_init_led() argument
430 hidled_init_rgb(struct hidled_rgb *rgb, unsigned int minor) hidled_init_rgb() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_cm_common.c136 struct pwl_result_data *rgb = rgb_resulted; in cm_helper_convert_to_custom_float() local
262 if (!convert_to_custom_float_format(rgb->red, &fmt, in cm_helper_convert_to_custom_float()
263 &rgb->red_reg)) { in cm_helper_convert_to_custom_float()
268 if (!convert_to_custom_float_format(rgb->green, &fmt, in cm_helper_convert_to_custom_float()
269 &rgb->green_reg)) { in cm_helper_convert_to_custom_float()
274 if (!convert_to_custom_float_format(rgb->blue, &fmt, in cm_helper_convert_to_custom_float()
275 &rgb->blue_reg)) { in cm_helper_convert_to_custom_float()
280 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in cm_helper_convert_to_custom_float()
281 &rgb->delta_red_reg)) { in cm_helper_convert_to_custom_float()
286 if (!convert_to_custom_float_format(rgb in cm_helper_convert_to_custom_float()
317 struct pwl_result_data *rgb; cm_helper_translate_curve_to_hw_format() local
515 struct pwl_result_data *rgb; cm_helper_translate_curve_to_degamma_hw_format() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_cm_common.c114 struct pwl_result_data *rgb; in cm3_helper_translate_curve_to_hw_format() local
266 rgb = rgb_resulted; in cm3_helper_translate_curve_to_hw_format()
268 rgb_minus_1 = rgb; in cm3_helper_translate_curve_to_hw_format()
273 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm3_helper_translate_curve_to_hw_format()
274 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm3_helper_translate_curve_to_hw_format()
275 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm3_helper_translate_curve_to_hw_format()
276 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm3_helper_translate_curve_to_hw_format()
277 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm3_helper_translate_curve_to_hw_format()
278 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm3_helper_translate_curve_to_hw_format()
281 rgb in cm3_helper_translate_curve_to_hw_format()
315 struct pwl_result_data *rgb; cm3_helper_translate_curve_to_degamma_hw_format() local
463 struct pwl_result_data *rgb = rgb_resulted; cm3_helper_convert_to_custom_float() local
631 is_rgb_equal(const struct pwl_result_data *rgb, uint32_t num) is_rgb_equal() argument
[all...]
H A Ddcn30_hubbub.c343 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub3_get_dcc_compression_cap()
344 output->grph.rgb.max_compressed_blk_size = 256; in hubbub3_get_dcc_compression_cap()
345 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap()
346 output->grph.rgb.dcc_controls.dcc_256_256_unconstrained = 1; in hubbub3_get_dcc_compression_cap()
347 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub3_get_dcc_compression_cap()
350 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub3_get_dcc_compression_cap()
351 output->grph.rgb.max_compressed_blk_size = 128; in hubbub3_get_dcc_compression_cap()
352 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap()
353 output->grph.rgb.dcc_controls.dcc_128_128_uncontrained = 1; in hubbub3_get_dcc_compression_cap()
354 output->grph.rgb in hubbub3_get_dcc_compression_cap()
[all...]
H A Ddcn30_dpp_cm.c85 const struct pwl_result_data *rgb, in dpp3_program_gammcor_lut()
91 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_gammcor_lut()
92 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_gammcor_lut()
93 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_gammcor_lut()
98 if (is_rgb_equal(rgb, num)) { in dpp3_program_gammcor_lut()
100 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut()
108 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[ in dpp3_program_gammcor_lut()
83 dpp3_program_gammcor_lut( struct dpp *dpp_base, const struct pwl_result_data *rgb, uint32_t num, bool is_ram_a) dpp3_program_gammcor_lut() argument
[all...]
H A Ddcn30_dwb_cm.c187 const struct pwl_result_data *rgb, in dwb3_program_ogam_pwl()
192 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dwb3_program_ogam_pwl()
193 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dwb3_program_ogam_pwl()
194 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dwb3_program_ogam_pwl()
196 if (is_rgb_equal(rgb, num)) { in dwb3_program_ogam_pwl()
198 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].red_reg); in dwb3_program_ogam_pwl()
208 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[ in dwb3_program_ogam_pwl()
186 dwb3_program_ogam_pwl(struct dcn30_dwbc *dwbc30, const struct pwl_result_data *rgb, uint32_t num) dwb3_program_ogam_pwl() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_cm_common.c114 struct pwl_result_data *rgb; in cm3_helper_translate_curve_to_hw_format() local
266 rgb = rgb_resulted; in cm3_helper_translate_curve_to_hw_format()
268 rgb_minus_1 = rgb; in cm3_helper_translate_curve_to_hw_format()
273 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm3_helper_translate_curve_to_hw_format()
274 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm3_helper_translate_curve_to_hw_format()
275 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm3_helper_translate_curve_to_hw_format()
276 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm3_helper_translate_curve_to_hw_format()
277 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm3_helper_translate_curve_to_hw_format()
278 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm3_helper_translate_curve_to_hw_format()
281 rgb in cm3_helper_translate_curve_to_hw_format()
315 struct pwl_result_data *rgb; cm3_helper_translate_curve_to_degamma_hw_format() local
463 struct pwl_result_data *rgb = rgb_resulted; cm3_helper_convert_to_custom_float() local
631 is_rgb_equal(const struct pwl_result_data *rgb, uint32_t num) is_rgb_equal() argument
[all...]
H A Ddcn30_hubbub.c343 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub3_get_dcc_compression_cap()
344 output->grph.rgb.max_compressed_blk_size = 256; in hubbub3_get_dcc_compression_cap()
345 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap()
346 output->grph.rgb.dcc_controls.dcc_256_256_unconstrained = 1; in hubbub3_get_dcc_compression_cap()
347 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub3_get_dcc_compression_cap()
350 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub3_get_dcc_compression_cap()
351 output->grph.rgb.max_compressed_blk_size = 128; in hubbub3_get_dcc_compression_cap()
352 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap()
353 output->grph.rgb.dcc_controls.dcc_128_128_uncontrained = 1; in hubbub3_get_dcc_compression_cap()
354 output->grph.rgb in hubbub3_get_dcc_compression_cap()
[all...]
H A Ddcn30_dpp_cm.c82 const struct pwl_result_data *rgb, in dpp3_program_gammcor_lut()
88 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_gammcor_lut()
89 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_gammcor_lut()
90 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_gammcor_lut()
95 if (is_rgb_equal(rgb, num)) { in dpp3_program_gammcor_lut()
97 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut()
105 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[ in dpp3_program_gammcor_lut()
80 dpp3_program_gammcor_lut( struct dpp *dpp_base, const struct pwl_result_data *rgb, uint32_t num, bool is_ram_a) dpp3_program_gammcor_lut() argument
[all...]
H A Ddcn30_dwb_cm.c187 const struct pwl_result_data *rgb, in dwb3_program_ogam_pwl()
192 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dwb3_program_ogam_pwl()
193 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dwb3_program_ogam_pwl()
194 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dwb3_program_ogam_pwl()
196 if (is_rgb_equal(rgb, num)) { in dwb3_program_ogam_pwl()
198 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].red_reg); in dwb3_program_ogam_pwl()
208 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[ in dwb3_program_ogam_pwl()
186 dwb3_program_ogam_pwl(struct dcn30_dwbc *dwbc30, const struct pwl_result_data *rgb, uint32_t num) dwb3_program_ogam_pwl() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/
H A Drockchip_rgb.c78 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
87 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
88 if (!rgb) in rockchip_rgb_init()
91 rgb->dev = dev; in rockchip_rgb_init()
92 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
117 /* if the rgb output is not connected to anything, just return */ in rockchip_rgb_init()
127 encoder = &rgb->encoder.encoder; in rockchip_rgb_init()
146 rgb->bridge = bridge; in rockchip_rgb_init()
148 ret = drm_bridge_attach(encoder, rgb in rockchip_rgb_init()
182 rockchip_rgb_fini(struct rockchip_rgb *rgb) rockchip_rgb_fini() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
H A Drockchip_rgb.c75 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
83 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
84 if (!rgb) in rockchip_rgb_init()
87 rgb->dev = dev; in rockchip_rgb_init()
88 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
113 /* if the rgb output is not connected to anything, just return */ in rockchip_rgb_init()
123 encoder = &rgb->encoder; in rockchip_rgb_init()
142 rgb->bridge = bridge; in rockchip_rgb_init()
144 ret = drm_bridge_attach(encoder, rgb in rockchip_rgb_init()
159 rockchip_rgb_fini(struct rockchip_rgb *rgb) rockchip_rgb_fini() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_cm_common.c136 struct pwl_result_data *rgb = rgb_resulted; in cm_helper_convert_to_custom_float() local
262 if (!convert_to_custom_float_format(rgb->red, &fmt, in cm_helper_convert_to_custom_float()
263 &rgb->red_reg)) { in cm_helper_convert_to_custom_float()
268 if (!convert_to_custom_float_format(rgb->green, &fmt, in cm_helper_convert_to_custom_float()
269 &rgb->green_reg)) { in cm_helper_convert_to_custom_float()
274 if (!convert_to_custom_float_format(rgb->blue, &fmt, in cm_helper_convert_to_custom_float()
275 &rgb->blue_reg)) { in cm_helper_convert_to_custom_float()
280 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in cm_helper_convert_to_custom_float()
281 &rgb->delta_red_reg)) { in cm_helper_convert_to_custom_float()
286 if (!convert_to_custom_float_format(rgb in cm_helper_convert_to_custom_float()
320 struct pwl_result_data *rgb; cm_helper_translate_curve_to_hw_format() local
526 struct pwl_result_data *rgb; cm_helper_translate_curve_to_degamma_hw_format() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c665 struct pwl_float_data *rgb, in calculate_mapped_value()
697 rgb[point->right_index].r, in calculate_mapped_value()
698 rgb[point->left_index].r)), in calculate_mapped_value()
699 rgb[point->left_index].r); in calculate_mapped_value()
705 rgb[point->right_index].g, in calculate_mapped_value()
706 rgb[point->left_index].g)), in calculate_mapped_value()
707 rgb[point->left_index].g); in calculate_mapped_value()
713 rgb[point->right_index].b, in calculate_mapped_value()
714 rgb[point->left_index].b)), in calculate_mapped_value()
715 rgb[poin in calculate_mapped_value()
664 calculate_mapped_value( struct pwl_float_data *rgb, const struct pixel_gamma_point *coeff, enum channel_name channel, uint32_t max_index) calculate_mapped_value() argument
734 struct pwl_float_data_ex *rgb = rgb_regamma; build_pq() local
818 struct pwl_float_data_ex *rgb = rgb_regamma; build_regamma() local
938 struct pwl_float_data_ex *rgb = rgb_regamma; build_freesync_hdr() local
1072 struct pwl_float_data_ex *rgb = degamma; build_hlg_degamma() local
1095 struct pwl_float_data_ex *rgb = regamma; build_hlg_regamma() local
1119 struct pwl_float_data *rgb = pwl_rgb; scale_gamma() local
1250 struct pwl_float_data *rgb = pwl_rgb; scale_user_regamma_ramp() local
1618 struct pwl_float_data_ex *rgb = rgb_regamma; apply_degamma_for_user_regamma() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c679 struct pwl_float_data *rgb, in calculate_mapped_value()
711 rgb[point->right_index].r, in calculate_mapped_value()
712 rgb[point->left_index].r)), in calculate_mapped_value()
713 rgb[point->left_index].r); in calculate_mapped_value()
719 rgb[point->right_index].g, in calculate_mapped_value()
720 rgb[point->left_index].g)), in calculate_mapped_value()
721 rgb[point->left_index].g); in calculate_mapped_value()
727 rgb[point->right_index].b, in calculate_mapped_value()
728 rgb[point->left_index].b)), in calculate_mapped_value()
729 rgb[poin in calculate_mapped_value()
678 calculate_mapped_value( struct pwl_float_data *rgb, const struct pixel_gamma_point *coeff, enum channel_name channel, uint32_t max_index) calculate_mapped_value() argument
747 struct pwl_float_data_ex *rgb = rgb_regamma; build_pq() local
831 struct pwl_float_data_ex *rgb = rgb_regamma; build_regamma() local
951 struct pwl_float_data_ex *rgb = rgb_regamma; build_freesync_hdr() local
1134 struct pwl_float_data_ex *rgb = degamma; build_hlg_degamma() local
1157 struct pwl_float_data_ex *rgb = regamma; build_hlg_regamma() local
1181 struct pwl_float_data *rgb = pwl_rgb; scale_gamma() local
1312 struct pwl_float_data *rgb = pwl_rgb; scale_user_regamma_ramp() local
1691 struct pwl_float_data_ex *rgb = rgb_regamma; apply_degamma_for_user_regamma() local
[all...]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
H A Dvimc-debayer.c36 unsigned int col, unsigned int rgb[3]);
319 unsigned int rgb[3]) in vimc_deb_process_rgb_frame()
329 vdeb->src_frame[index + i] = rgb[i]; in vimc_deb_process_rgb_frame()
332 vdeb->src_frame[index + i] = rgb[2 - i]; in vimc_deb_process_rgb_frame()
413 unsigned int rgb[3]) in vimc_deb_calc_rgb_sink()
419 rgb[i] = 0; in vimc_deb_calc_rgb_sink()
468 rgb[color] = rgb[color] + in vimc_deb_calc_rgb_sink()
475 vdeb->sd.name, rgb[color], n_rgb[color]); in vimc_deb_calc_rgb_sink()
483 vdeb->sd.name, lin, col, i, rgb[ in vimc_deb_calc_rgb_sink()
316 vimc_deb_process_rgb_frame(struct vimc_deb_device *vdeb, unsigned int lin, unsigned int col, unsigned int rgb[3]) vimc_deb_process_rgb_frame() argument
409 vimc_deb_calc_rgb_sink(struct vimc_deb_device *vdeb, const u8 *frame, const unsigned int lin, const unsigned int col, unsigned int rgb[3]) vimc_deb_calc_rgb_sink() argument
499 unsigned int rgb[3]; vimc_deb_process_frame() local
[all...]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vimc/
H A Dvimc-debayer.c37 unsigned int rgb[3]);
320 unsigned int rgb[3]) in vimc_debayer_process_rgb_frame()
330 vdebayer->src_frame[index + i] = rgb[i]; in vimc_debayer_process_rgb_frame()
333 vdebayer->src_frame[index + i] = rgb[2 - i]; in vimc_debayer_process_rgb_frame()
414 unsigned int rgb[3]) in vimc_debayer_calc_rgb_sink()
420 rgb[i] = 0; in vimc_debayer_calc_rgb_sink()
469 rgb[color] = rgb[color] + in vimc_debayer_calc_rgb_sink()
477 vdebayer->sd.name, rgb[color], n_rgb[color]); in vimc_debayer_calc_rgb_sink()
485 vdebayer->sd.name, lin, col, i, rgb[ in vimc_debayer_calc_rgb_sink()
317 vimc_debayer_process_rgb_frame(struct vimc_debayer_device *vdebayer, unsigned int lin, unsigned int col, unsigned int rgb[3]) vimc_debayer_process_rgb_frame() argument
410 vimc_debayer_calc_rgb_sink(struct vimc_debayer_device *vdebayer, const u8 *frame, const unsigned int lin, const unsigned int col, unsigned int rgb[3]) vimc_debayer_calc_rgb_sink() argument
502 unsigned int rgb[3]; vimc_debayer_process_frame() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_opp_regamma_v.c474 const struct pwl_result_data *rgb = in program_pwl() local
478 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); in program_pwl()
479 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); in program_pwl()
480 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); in program_pwl()
483 rgb->delta_red_reg); in program_pwl()
485 rgb->delta_green_reg); in program_pwl()
487 rgb->delta_blue_reg); in program_pwl()
489 ++rgb; in program_pwl()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_opp_regamma_v.c472 const struct pwl_result_data *rgb = in program_pwl() local
476 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); in program_pwl()
477 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); in program_pwl()
478 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); in program_pwl()
481 rgb->delta_red_reg); in program_pwl()
483 rgb->delta_green_reg); in program_pwl()
485 rgb->delta_blue_reg); in program_pwl()
487 ++rgb; in program_pwl()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dpp_cm.c87 const struct pwl_result_data *rgb, in dpp2_program_degamma_lut()
101 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp2_program_degamma_lut()
102 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp2_program_degamma_lut()
103 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].blue_reg); in dpp2_program_degamma_lut()
106 CM_DGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp2_program_degamma_lut()
108 CM_DGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp2_program_degamma_lut()
110 CM_DGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp2_program_degamma_lut()
336 const struct pwl_result_data *rgb, in dpp20_program_blnd_pwl()
343 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp20_program_blnd_pwl()
344 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[ in dpp20_program_blnd_pwl()
85 dpp2_program_degamma_lut( struct dpp *dpp_base, const struct pwl_result_data *rgb, uint32_t num, bool is_ram_a) dpp2_program_degamma_lut() argument
334 dpp20_program_blnd_pwl( struct dpp *dpp_base, const struct pwl_result_data *rgb, uint32_t num) dpp20_program_blnd_pwl() argument
502 dpp20_program_shaper_lut( struct dpp *dpp_base, const struct pwl_result_data *rgb, uint32_t num) dpp20_program_shaper_lut() argument
[all...]

Completed in 16 milliseconds

123456