Home
last modified time | relevance | path

Searched refs:scaling_factor (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c197 struct fixed31_32 scaling_factor = in precompute_pq() local
205 x = dc_fixpt_mul(coord_x->x, scaling_factor); in precompute_pq()
218 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in precompute_de_pq() local
231 de_pq_table[i] = dc_fixpt_mul(y, scaling_factor); in precompute_de_pq()
617 struct fixed31_32 scaling_factor = in build_pq() local
639 x = dc_fixpt_mul(coord_x->x, scaling_factor); in build_pq()
665 struct fixed31_32 scaling_factor = dc_fixpt_from_int(125); in build_de_pq() local
678 else if (dc_fixpt_lt(scaling_factor, output)) in build_de_pq()
679 output = scaling_factor; in build_de_pq()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dni_dpm.c1375 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()
3053 u32 scaling_factor; in ni_init_driver_calculated_leakage_table() local
3060 scaling_factor = ni_get_smc_power_scaling_factor(rdev); in ni_init_driver_calculated_leakage_table()
[all …]
Dsi_dpm.c2116 static u32 si_scale_power_for_smc(u32 power_in_watts, u32 scaling_factor) in si_scale_power_for_smc() argument
2164 u32 scaling_factor = si_get_smc_power_scaling_factor(rdev); in si_populate_smc_tdp_limits() local
2169 if (scaling_factor == 0) in si_populate_smc_tdp_limits()
2183 cpu_to_be32(si_scale_power_for_smc(tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2185 cpu_to_be32(si_scale_power_for_smc(near_tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2187 …wer_for_smc((near_tdp_limit * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2227 u32 scaling_factor = si_get_smc_power_scaling_factor(rdev); in si_populate_smc_tdp_limits_2() local
2233 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()
2235 …dpm.near_tdp_limit_adjusted * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2()
2586 u32 scaling_factor; in si_init_dte_leakage_table() local
[all …]
/Linux-v4.19/drivers/staging/rtlwifi/phydm/
Dphydm_hwconfig.c1774 u8 scaling_factor = 4; in phydm_process_rssi_for_dm_new_type() local
1826 (phy_info->rx_pwdb_all << scaling_factor); in phydm_process_rssi_for_dm_new_type()
1830 (accumulate_pwdb >> scaling_factor) + in phydm_process_rssi_for_dm_new_type()
1834 (1 << (scaling_factor - 1))) >> in phydm_process_rssi_for_dm_new_type()
1835 scaling_factor; in phydm_process_rssi_for_dm_new_type()
/Linux-v4.19/drivers/input/touchscreen/
Dwdt87xx_i2c.c171 u16 scaling_factor; member
463 param->scaling_factor = in wdt87xx_get_sysparam()
969 w *= param->scaling_factor; in wdt87xx_report_contact()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Dsi_dpm.c2207 static u32 si_scale_power_for_smc(u32 power_in_watts, u32 scaling_factor) in si_scale_power_for_smc() argument
2255 u32 scaling_factor = si_get_smc_power_scaling_factor(adev); in si_populate_smc_tdp_limits() local
2260 if (scaling_factor == 0) in si_populate_smc_tdp_limits()
2274 cpu_to_be32(si_scale_power_for_smc(tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2276 cpu_to_be32(si_scale_power_for_smc(near_tdp_limit, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2278 …wer_for_smc((near_tdp_limit * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits()
2318 u32 scaling_factor = si_get_smc_power_scaling_factor(adev); in si_populate_smc_tdp_limits_2() local
2324 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()
2326 …dpm.near_tdp_limit_adjusted * SISLANDS_DPM2_TDP_SAFE_LIMIT_PERCENT) / 100, scaling_factor) * 1000); in si_populate_smc_tdp_limits_2()
2684 u32 scaling_factor; in si_init_dte_leakage_table() local
[all …]
/Linux-v4.19/drivers/gpu/drm/bridge/adv7511/
Dadv7511_drv.c137 unsigned int scaling_factor) in adv7511_set_colormap() argument
157 0xe0, 0x80 | (scaling_factor << 5)); in adv7511_set_colormap()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_pm.c7102 const int scaling_factor = 180; in gen6_update_ring_freq() local
7173 ia_freq = max_ia_freq - ((diff * scaling_factor) / 2); in gen6_update_ring_freq()