Lines Matching full:formula
3563 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_max_voltage() local
3565 if (formula->ucFlag & 1) in radeon_atom_get_max_voltage()
3567 le16_to_cpu(formula->usVoltageBaseLevel) + in radeon_atom_get_max_voltage()
3568 formula->ucNumOfVoltageEntries / 2 * in radeon_atom_get_max_voltage()
3569 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_max_voltage()
3572 le16_to_cpu(formula->usVoltageBaseLevel) + in radeon_atom_get_max_voltage()
3573 (formula->ucNumOfVoltageEntries - 1) * in radeon_atom_get_max_voltage()
3574 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_max_voltage()
3582 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_max_voltage() local
3584 if (formula->ucNumOfVoltageEntries) { in radeon_atom_get_max_voltage()
3586 ((u8 *)&formula->asVIDAdjustEntries[0] + in radeon_atom_get_max_voltage()
3587 (sizeof(VOLTAGE_LUT_ENTRY) * (formula->ucNumOfVoltageEntries - 1))); in radeon_atom_get_max_voltage()
3622 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_min_voltage() local
3625 le16_to_cpu(formula->usVoltageBaseLevel); in radeon_atom_get_min_voltage()
3633 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_min_voltage() local
3635 if (formula->ucNumOfVoltageEntries) { in radeon_atom_get_min_voltage()
3637 le16_to_cpu(formula->asVIDAdjustEntries[ in radeon_atom_get_min_voltage()
3672 ATOM_VOLTAGE_FORMULA *formula = in radeon_atom_get_voltage_step() local
3674 if (formula->ucFlag & 1) in radeon_atom_get_voltage_step()
3676 (le16_to_cpu(formula->usVoltageStep) + 1) / 2; in radeon_atom_get_voltage_step()
3679 le16_to_cpu(formula->usVoltageStep); in radeon_atom_get_voltage_step()
3747 ATOM_VOLTAGE_FORMULA_V2 *formula = in radeon_atom_get_voltage_table() local
3750 if (formula->ucNumOfVoltageEntries > MAX_VOLTAGE_ENTRIES) in radeon_atom_get_voltage_table()
3752 lut = &formula->asVIDAdjustEntries[0]; in radeon_atom_get_voltage_table()
3753 for (i = 0; i < formula->ucNumOfVoltageEntries; i++) { in radeon_atom_get_voltage_table()
3766 voltage_table->count = formula->ucNumOfVoltageEntries; in radeon_atom_get_voltage_table()