Home
last modified time | relevance | path

Searched refs:interpolate (Results 1 - 6 of 6) sorted by relevance

/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop.c3567 brightness = interpolate(0, -0x80, 0x64, 0x7f, s->tv_state->brightness); in vop_tv_config_update()
3569 brightness = interpolate(0, -0x40, 0x64, 0x3f, s->tv_state->brightness); in vop_tv_config_update()
3571 brightness = interpolate(0, -0x20, 0x64, 0x1f, s->tv_state->brightness); in vop_tv_config_update()
3576 contrast = interpolate(0, 0, 0x64, 0x1ff, s->tv_state->contrast); in vop_tv_config_update()
3577 saturation = interpolate(0, 0, 0x64, 0x1ff, s->tv_state->saturation); in vop_tv_config_update()
3586 hue = interpolate(0, -0x1e, 0x64, 0x1e, s->tv_state->hue); in vop_tv_config_update()
3591 contrast = interpolate(0, 0, 0x64, 0xff, s->tv_state->contrast); in vop_tv_config_update()
3592 saturation = interpolate(0, 0, 0x64, 0xff, s->tv_state->saturation); in vop_tv_config_update()
3601 hue = interpolate(0, -0x1e, 0x64, 0x1e, s->tv_state->hue); in vop_tv_config_update()
H A Drockchip_drm_vop.h1320 static inline int interpolate(int x1, int y1, int x2, int y2, int x) in interpolate() function
H A Drockchip_drm_vop2.c7155 brightness = interpolate(0, -0x80, 0x64, 0x7f, vcstate->tv_state->brightness); in vop2_tv_config_update()
7157 brightness = interpolate(0, -0x20, 0x64, 0x1f, vcstate->tv_state->brightness); in vop2_tv_config_update()
7159 contrast = interpolate(0, 0, 0x64, 0x1ff, vcstate->tv_state->contrast); in vop2_tv_config_update()
7160 saturation = interpolate(0, 0, 0x64, 0x1ff, vcstate->tv_state->saturation); in vop2_tv_config_update()
7161 hue = interpolate(0, -0x1e, 0x64, 0x1e, vcstate->tv_state->hue); in vop2_tv_config_update()
/device/soc/rockchip/common/vendor/drivers/power/
H A Drk817_battery.c728 static u32 interpolate(int value, u32 *table, int size) in interpolate() function
1371 temp = interpolate(voltage, ocv_table, ocv_size); in rk817_bat_vol_to_soc()
1384 temp = interpolate(voltage, ocv_table, ocv_size); in rk817_bat_vol_to_cap()
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/
H A Drk817_battery.c649 static u32 interpolate(int value, u32 *table, int size) in interpolate() function
1301 temp = interpolate(voltage, ocv_table, ocv_size); in rk817_bat_vol_to_soc()
1315 temp = interpolate(voltage, ocv_table, ocv_size); in rk817_bat_vol_to_cap()
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c7272 brightness = interpolate(0, -128, 100, 127, in vop2_tv_config_update()
7275 brightness = interpolate(0, -32, 100, 31, in vop2_tv_config_update()
7277 contrast = interpolate(0, 0, 100, 511, vcstate->tv_state->contrast); in vop2_tv_config_update()
7278 saturation = interpolate(0, 0, 100, 511, vcstate->tv_state->saturation); in vop2_tv_config_update()
7279 hue = interpolate(0, -30, 100, 30, vcstate->tv_state->hue); in vop2_tv_config_update()

Completed in 50 milliseconds