Lines Matching refs:table
404 struct atom_voltage_table *table, in cypress_populate_voltage_value() argument
409 for (i = 0; i < table->count; i++) { in cypress_populate_voltage_value()
410 if (value <= table->entries[i].value) { in cypress_populate_voltage_value()
412 voltage->value = cpu_to_be16(table->entries[i].value); in cypress_populate_voltage_value()
417 if (i == table->count) in cypress_populate_voltage_value()
1236 RV770_SMC_STATETABLE *table) in cypress_populate_smc_initial_state() argument
1243 table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = in cypress_populate_smc_initial_state()
1245 table->initialState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = in cypress_populate_smc_initial_state()
1247 table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = in cypress_populate_smc_initial_state()
1249 table->initialState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = in cypress_populate_smc_initial_state()
1251 table->initialState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = in cypress_populate_smc_initial_state()
1253 table->initialState.levels[0].mclk.mclk770.vDLL_CNTL = in cypress_populate_smc_initial_state()
1256 table->initialState.levels[0].mclk.mclk770.vMPLL_SS = in cypress_populate_smc_initial_state()
1258 table->initialState.levels[0].mclk.mclk770.vMPLL_SS2 = in cypress_populate_smc_initial_state()
1261 table->initialState.levels[0].mclk.mclk770.mclk_value = in cypress_populate_smc_initial_state()
1264 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL = in cypress_populate_smc_initial_state()
1266 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_2 = in cypress_populate_smc_initial_state()
1268 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_3 = in cypress_populate_smc_initial_state()
1270 table->initialState.levels[0].sclk.vCG_SPLL_SPREAD_SPECTRUM = in cypress_populate_smc_initial_state()
1272 table->initialState.levels[0].sclk.vCG_SPLL_SPREAD_SPECTRUM_2 = in cypress_populate_smc_initial_state()
1275 table->initialState.levels[0].sclk.sclk_value = in cypress_populate_smc_initial_state()
1278 table->initialState.levels[0].arbValue = MC_CG_ARB_FREQ_F0; in cypress_populate_smc_initial_state()
1280 table->initialState.levels[0].ACIndex = 0; in cypress_populate_smc_initial_state()
1285 &table->initialState.levels[0].vddc); in cypress_populate_smc_initial_state()
1291 &table->initialState.levels[0].vddci); in cypress_populate_smc_initial_state()
1294 &table->initialState.levels[0].mvdd); in cypress_populate_smc_initial_state()
1297 table->initialState.levels[0].aT = cpu_to_be32(a_t); in cypress_populate_smc_initial_state()
1299 table->initialState.levels[0].bSP = cpu_to_be32(pi->dsp); in cypress_populate_smc_initial_state()
1303 table->initialState.levels[0].gen2PCIE = 1; in cypress_populate_smc_initial_state()
1305 table->initialState.levels[0].gen2PCIE = 0; in cypress_populate_smc_initial_state()
1307 table->initialState.levels[0].gen2XSP = 1; in cypress_populate_smc_initial_state()
1309 table->initialState.levels[0].gen2XSP = 0; in cypress_populate_smc_initial_state()
1312 table->initialState.levels[0].strobeMode = in cypress_populate_smc_initial_state()
1317 table->initialState.levels[0].mcFlags = SMC_MC_EDC_RD_FLAG | SMC_MC_EDC_WR_FLAG; in cypress_populate_smc_initial_state()
1319 table->initialState.levels[0].mcFlags = 0; in cypress_populate_smc_initial_state()
1322 table->initialState.levels[1] = table->initialState.levels[0]; in cypress_populate_smc_initial_state()
1323 table->initialState.levels[2] = table->initialState.levels[0]; in cypress_populate_smc_initial_state()
1325 table->initialState.flags |= PPSMC_SWSTATE_FLAG_DC; in cypress_populate_smc_initial_state()
1331 RV770_SMC_STATETABLE *table) in cypress_populate_smc_acpi_state() argument
1354 table->ACPIState = table->initialState; in cypress_populate_smc_acpi_state()
1356 table->ACPIState.flags &= ~PPSMC_SWSTATE_FLAG_DC; in cypress_populate_smc_acpi_state()
1362 &table->ACPIState.levels[0].vddc); in cypress_populate_smc_acpi_state()
1365 table->ACPIState.levels[0].gen2PCIE = 1; in cypress_populate_smc_acpi_state()
1367 table->ACPIState.levels[0].gen2PCIE = 0; in cypress_populate_smc_acpi_state()
1369 table->ACPIState.levels[0].gen2PCIE = 0; in cypress_populate_smc_acpi_state()
1371 table->ACPIState.levels[0].gen2XSP = 1; in cypress_populate_smc_acpi_state()
1373 table->ACPIState.levels[0].gen2XSP = 0; in cypress_populate_smc_acpi_state()
1378 &table->ACPIState.levels[0].vddc); in cypress_populate_smc_acpi_state()
1379 table->ACPIState.levels[0].gen2PCIE = 0; in cypress_populate_smc_acpi_state()
1387 &table->ACPIState.levels[0].vddci); in cypress_populate_smc_acpi_state()
1433 table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL = in cypress_populate_smc_acpi_state()
1435 table->ACPIState.levels[0].mclk.mclk770.vMPLL_AD_FUNC_CNTL_2 = in cypress_populate_smc_acpi_state()
1437 table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL = in cypress_populate_smc_acpi_state()
1439 table->ACPIState.levels[0].mclk.mclk770.vMPLL_DQ_FUNC_CNTL_2 = in cypress_populate_smc_acpi_state()
1441 table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = in cypress_populate_smc_acpi_state()
1443 table->ACPIState.levels[0].mclk.mclk770.vDLL_CNTL = cpu_to_be32(dll_cntl); in cypress_populate_smc_acpi_state()
1445 table->ACPIState.levels[0].mclk.mclk770.mclk_value = 0; in cypress_populate_smc_acpi_state()
1447 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL = in cypress_populate_smc_acpi_state()
1449 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_2 = in cypress_populate_smc_acpi_state()
1451 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_3 = in cypress_populate_smc_acpi_state()
1454 table->ACPIState.levels[0].sclk.sclk_value = 0; in cypress_populate_smc_acpi_state()
1456 cypress_populate_mvdd_value(rdev, 0, &table->ACPIState.levels[0].mvdd); in cypress_populate_smc_acpi_state()
1459 table->ACPIState.levels[0].ACIndex = 1; in cypress_populate_smc_acpi_state()
1461 table->ACPIState.levels[1] = table->ACPIState.levels[0]; in cypress_populate_smc_acpi_state()
1462 table->ACPIState.levels[2] = table->ACPIState.levels[0]; in cypress_populate_smc_acpi_state()
1513 RV770_SMC_STATETABLE *table) in cypress_populate_smc_voltage_table() argument
1518 table->highSMIO[i] = 0; in cypress_populate_smc_voltage_table()
1519 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in cypress_populate_smc_voltage_table()
1524 RV770_SMC_STATETABLE *table) in cypress_populate_smc_voltage_tables() argument
1533 table); in cypress_populate_smc_voltage_tables()
1535 table->voltageMaskTable.highMask[RV770_SMC_VOLTAGEMASK_VDDC] = 0; in cypress_populate_smc_voltage_tables()
1536 table->voltageMaskTable.lowMask[RV770_SMC_VOLTAGEMASK_VDDC] = in cypress_populate_smc_voltage_tables()
1542 table->maxVDDCIndexInPPTable = i; in cypress_populate_smc_voltage_tables()
1551 table); in cypress_populate_smc_voltage_tables()
1553 table->voltageMaskTable.highMask[RV770_SMC_VOLTAGEMASK_VDDCI] = 0; in cypress_populate_smc_voltage_tables()
1554 table->voltageMaskTable.lowMask[RV770_SMC_VOLTAGEMASK_VDDCI] = in cypress_populate_smc_voltage_tables()
1615 RV770_SMC_STATETABLE *table = &pi->smc_statetable; in cypress_init_smc_table() local
1618 memset(table, 0, sizeof(RV770_SMC_STATETABLE)); in cypress_init_smc_table()
1620 cypress_populate_smc_voltage_tables(rdev, table); in cypress_init_smc_table()
1625 table->thermalProtectType = PPSMC_THERMAL_PROTECT_TYPE_INTERNAL; in cypress_init_smc_table()
1628 table->thermalProtectType = PPSMC_THERMAL_PROTECT_TYPE_NONE; in cypress_init_smc_table()
1631 table->thermalProtectType = PPSMC_THERMAL_PROTECT_TYPE_EXTERNAL; in cypress_init_smc_table()
1636 table->systemFlags |= PPSMC_SYSTEMFLAG_GPIO_DC; in cypress_init_smc_table()
1639 table->systemFlags |= PPSMC_SYSTEMFLAG_REGULATOR_HOT; in cypress_init_smc_table()
1642 table->systemFlags |= PPSMC_SYSTEMFLAG_STEPVDDC; in cypress_init_smc_table()
1645 table->systemFlags |= PPSMC_SYSTEMFLAG_GDDR5; in cypress_init_smc_table()
1647 ret = cypress_populate_smc_initial_state(rdev, radeon_boot_state, table); in cypress_init_smc_table()
1651 ret = cypress_populate_smc_acpi_state(rdev, table); in cypress_init_smc_table()
1655 table->driverState = table->initialState; in cypress_init_smc_table()
1659 (u8 *)table, sizeof(RV770_SMC_STATETABLE), in cypress_init_smc_table()