Home
last modified time | relevance | path

Searched refs:s_scale (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgk20a.c52 gk20a_volt_get_cvb_voltage(int speedo, int s_scale, const struct cvb_coef *coef) in gk20a_volt_get_cvb_voltage() argument
56 mv = DIV_ROUND_CLOSEST(coef->c2 * speedo, s_scale); in gk20a_volt_get_cvb_voltage()
57 mv = DIV_ROUND_CLOSEST((mv + coef->c1) * speedo, s_scale) + coef->c0; in gk20a_volt_get_cvb_voltage()
67 gk20a_volt_get_cvb_t_voltage(int speedo, int temp, int s_scale, int t_scale, in gk20a_volt_get_cvb_t_voltage() argument
72 cvb_mv = gk20a_volt_get_cvb_voltage(speedo, s_scale, coef); in gk20a_volt_get_cvb_t_voltage()
74 mv = DIV_ROUND_CLOSEST(coef->c3 * speedo, s_scale) + coef->c4 + in gk20a_volt_get_cvb_t_voltage()
/drivers/clk/tegra/
Dcvb.c14 static inline int get_cvb_voltage(int speedo, int s_scale, in get_cvb_voltage() argument
20 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage()
21 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage()