Searched refs:scaling_factor (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/drivers/gpu/drm/tests/ |
D | drm_rect_test.c | 410 int scaling_factor; in drm_test_rect_calc_hscale() local 412 scaling_factor = drm_rect_calc_hscale(¶ms->src, ¶ms->dst, in drm_test_rect_calc_hscale() 415 KUNIT_EXPECT_EQ(test, scaling_factor, params->expected_scaling_factor); in drm_test_rect_calc_hscale() 421 int scaling_factor; in drm_test_rect_calc_vscale() local 423 scaling_factor = drm_rect_calc_vscale(¶ms->src, ¶ms->dst, in drm_test_rect_calc_vscale() 426 KUNIT_EXPECT_EQ(test, scaling_factor, params->expected_scaling_factor); in drm_test_rect_calc_vscale()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 185 struct fixed31_32 scaling_factor = in compute_hlg_eotf() local 202 *out_y = dc_fixpt_mul(x, scaling_factor); in compute_hlg_eotf() 216 struct fixed31_32 scaling_factor = in compute_hlg_oetf() local 222 x = dc_fixpt_mul(in_x, scaling_factor); in compute_hlg_oetf() 244 struct fixed31_32 scaling_factor = in precompute_pq() local 254 x = dc_fixpt_mul(coord_x->x, scaling_factor); in precompute_pq() 267 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in precompute_de_pq() local 280 de_pq_table[i] = dc_fixpt_mul(y, scaling_factor); in precompute_de_pq() 751 struct fixed31_32 scaling_factor = in build_pq() local 774 x = dc_fixpt_mul(coord_x->x, scaling_factor); in build_pq() [all …]
|
/Linux-v6.6/drivers/gpu/drm/radeon/ |
D | ni_dpm.c | 1375 static u32 ni_scale_power_for_smc(u32 power_in_watts, u32 scaling_factor) in ni_scale_power_for_smc() argument 1377 return (power_in_watts * scaling_factor) << 2; in ni_scale_power_for_smc() 1460 u32 scaling_factor = ni_get_smc_power_scaling_factor(rdev); in ni_populate_smc_tdp_limits() local 1466 if (scaling_factor == 0) in ni_populate_smc_tdp_limits() 1483 cpu_to_be32(ni_scale_power_for_smc(tdp_limit, scaling_factor)); in ni_populate_smc_tdp_limits() 1485 cpu_to_be32(ni_scale_power_for_smc(near_tdp_limit, scaling_factor)); in ni_populate_smc_tdp_limits() 1488 scaling_factor)); in ni_populate_smc_tdp_limits() 1490 cpu_to_be32(ni_scale_power_for_smc(power_boost_limit, scaling_factor)); in ni_populate_smc_tdp_limits() 3058 u32 scaling_factor; in ni_init_driver_calculated_leakage_table() local 3065 scaling_factor = ni_get_smc_power_scaling_factor(rdev); in ni_init_driver_calculated_leakage_table() [all …]
|
D | si_dpm.c | 2097 static u32 si_scale_power_for_smc(u32 power_in_watts, u32 scaling_factor) in si_scale_power_for_smc() argument 2145 u32 scaling_factor = si_get_smc_power_scaling_factor(rdev); in si_populate_smc_tdp_limits() local 2150 if (scaling_factor == 0) in si_populate_smc_tdp_limits() 2164 cpu_to_be32(si_scale_power_for_smc(tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2166 cpu_to_be32(si_scale_power_for_smc(near_tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2168 …wer_for_smc((near_tdp_limit * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2208 u32 scaling_factor = si_get_smc_power_scaling_factor(rdev); in si_populate_smc_tdp_limits_2() local 2214 cpu_to_be32(si_scale_power_for_smc(rdev->pm.dpm.near_tdp_limit_adjusted, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2() 2216 …dpm.near_tdp_limit_adjusted * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2() 2567 u32 scaling_factor; in si_init_dte_leakage_table() local [all …]
|
/Linux-v6.6/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 171 u16 scaling_factor; member 463 param->scaling_factor = in wdt87xx_get_sysparam() 969 w *= param->scaling_factor; in wdt87xx_report_contact()
|
/Linux-v6.6/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.c | 2204 static u32 si_scale_power_for_smc(u32 power_in_watts, u32 scaling_factor) in si_scale_power_for_smc() argument 2252 u32 scaling_factor = si_get_smc_power_scaling_factor(adev); in si_populate_smc_tdp_limits() local 2257 if (scaling_factor == 0) in si_populate_smc_tdp_limits() 2271 cpu_to_be32(si_scale_power_for_smc(tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2273 cpu_to_be32(si_scale_power_for_smc(near_tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2275 …wer_for_smc((near_tdp_limit * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits() 2315 u32 scaling_factor = si_get_smc_power_scaling_factor(adev); in si_populate_smc_tdp_limits_2() local 2321 cpu_to_be32(si_scale_power_for_smc(adev->pm.dpm.near_tdp_limit_adjusted, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2() 2323 …dpm.near_tdp_limit_adjusted * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2() 2681 u32 scaling_factor; in si_init_dte_leakage_table() local [all …]
|
/Linux-v6.6/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_drv.c | 137 unsigned int scaling_factor) in adv7511_set_colormap() argument 157 0xe0, 0x80 | (scaling_factor << 5)); in adv7511_set_colormap()
|