Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/radeon/
H A Drv770_dpm.c265 int a_d; in rv770_populate_smc_t() local
275 a_d = (int)state->low.sclk * (100 - (int)pi->rlp) + in rv770_populate_smc_t()
278 l[1] = (u8)(pi->lmp - (int)pi->lmp * a_n / a_d); in rv770_populate_smc_t()
279 r[0] = (u8)(pi->rlp + (100 - (int)pi->rlp) * a_n / a_d); in rv770_populate_smc_t()
283 a_d = (int)state->medium.sclk * (100 - (int)pi->rmp) + in rv770_populate_smc_t()
286 l[2] = (u8)(pi->lhp - (int)pi->lhp * a_n / a_d); in rv770_populate_smc_t()
287 r[1] = (u8)(pi->rmp + (100 - (int)pi->rmp) * a_n / a_d); in rv770_populate_smc_t()
H A Drv6xx_dpm.c1004 int a_n, a_d, h_r, l_r; in rv6xx_calculate_t() local
1010 a_d = (int)l_f * l_r + (int)h_f * h_r; in rv6xx_calculate_t()
1012 if (a_d != 0) { in rv6xx_calculate_t()
1013 *l = d_l - h_r * a_n / a_d; in rv6xx_calculate_t()
1014 *r = d_r + l_r * a_n / a_d; in rv6xx_calculate_t()