Lines Matching refs:formula
3559 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_max_voltage() local
3561 if (formula->ucFlag & 1) in radeon_atom_get_max_voltage()
3563 le16_to_cpu(formula->usVoltageBaseLevel) + in radeon_atom_get_max_voltage()
3564 formula->ucNumOfVoltageEntries / 2 * in radeon_atom_get_max_voltage()
3565 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_max_voltage()
3568 le16_to_cpu(formula->usVoltageBaseLevel) + in radeon_atom_get_max_voltage()
3569 (formula->ucNumOfVoltageEntries - 1) * in radeon_atom_get_max_voltage()
3570 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_max_voltage()
3578 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_max_voltage() local
3580 if (formula->ucNumOfVoltageEntries) { in radeon_atom_get_max_voltage()
3582 ((u8 *)&formula->asVIDAdjustEntries[0] + in radeon_atom_get_max_voltage()
3583 (sizeof(VOLTAGE_LUT_ENTRY) * (formula->ucNumOfVoltageEntries - 1))); in radeon_atom_get_max_voltage()
3618 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_min_voltage() local
3621 le16_to_cpu(formula->usVoltageBaseLevel); in radeon_atom_get_min_voltage()
3629 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_min_voltage() local
3631 if (formula->ucNumOfVoltageEntries) { in radeon_atom_get_min_voltage()
3633 le16_to_cpu(formula->asVIDAdjustEntries[ in radeon_atom_get_min_voltage()
3668 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_voltage_step() local
3670 if (formula->ucFlag & 1) in radeon_atom_get_voltage_step()
3672 (le16_to_cpu(formula->usVoltageStep) + 1) / 2; in radeon_atom_get_voltage_step()
3675 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_voltage_step()
3743 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_voltage_table() local
3746 if (formula->ucNumOfVoltageEntries > MAX_VOLTAGE_ENTRIES) in radeon_atom_get_voltage_table()
3748 lut = &formula->asVIDAdjustEntries[0]; in radeon_atom_get_voltage_table()
3749 for (i = 0; i < formula->ucNumOfVoltageEntries; i++) { in radeon_atom_get_voltage_table()
3762 voltage_table->count = formula->ucNumOfVoltageEntries; in radeon_atom_get_voltage_table()