Lines Matching full:table
397 "The CAC Leakage table does not exist!", return -EINVAL); in iceland_populate_bapm_vddc_vid_sidd()
512 /* clock - voltage dependency table is empty table */ in iceland_get_dependency_volt_by_clk()
524 /* sclk is bigger than max sclk in the dependence table */ in iceland_get_dependency_volt_by_clk()
539 /* SCLK/VDDC Dependency Table has to exist. */ in iceland_get_std_voltage_value_sidd()
541 "The SCLK/VDDC Dependency Table does not exist.", in iceland_get_std_voltage_value_sidd()
545 pr_warn("CAC Leakage Table does not exist, using vddc.\n"); in iceland_get_std_voltage_value_sidd()
550 * Since voltage in the sclk/vddc dependency table is not in iceland_get_std_voltage_value_sidd()
561 …warn("Index from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index, using maximum ind… in iceland_get_std_voltage_value_sidd()
581 …ex from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index in second look up, using ma… in iceland_get_std_voltage_value_sidd()
590 pr_warn("Unable to get std_vddc from SCLK/VDDC Dependency Table, using vddc.\n"); in iceland_get_std_voltage_value_sidd()
618 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vddc_table() argument
624 table->VddcLevelCount = data->vddc_voltage_table.count; in iceland_populate_smc_vddc_table()
625 for (count = 0; count < table->VddcLevelCount; count++) { in iceland_populate_smc_vddc_table()
628 &(table->VddcLevel[count])); in iceland_populate_smc_vddc_table()
629 PP_ASSERT_WITH_CODE(0 == result, "do not populate SMC VDDC voltage table", return -EINVAL); in iceland_populate_smc_vddc_table()
633 table->VddcLevel[count].Smio |= data->vddc_voltage_table.entries[count].smio_low; in iceland_populate_smc_vddc_table()
635 table->VddcLevel[count].Smio = 0; in iceland_populate_smc_vddc_table()
638 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in iceland_populate_smc_vddc_table()
644 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vdd_ci_table() argument
650 table->VddciLevelCount = data->vddci_voltage_table.count; in iceland_populate_smc_vdd_ci_table()
652 for (count = 0; count < table->VddciLevelCount; count++) { in iceland_populate_smc_vdd_ci_table()
655 &(table->VddciLevel[count])); in iceland_populate_smc_vdd_ci_table()
656 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC VDDCI voltage table", return -EINVAL); in iceland_populate_smc_vdd_ci_table()
658 table->VddciLevel[count].Smio |= data->vddci_voltage_table.entries[count].smio_low; in iceland_populate_smc_vdd_ci_table()
660 table->VddciLevel[count].Smio |= 0; in iceland_populate_smc_vdd_ci_table()
663 CONVERT_FROM_HOST_TO_SMC_UL(table->VddciLevelCount); in iceland_populate_smc_vdd_ci_table()
669 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_mvdd_table() argument
675 table->MvddLevelCount = data->mvdd_voltage_table.count; in iceland_populate_smc_mvdd_table()
677 for (count = 0; count < table->VddciLevelCount; count++) { in iceland_populate_smc_mvdd_table()
680 &table->MvddLevel[count]); in iceland_populate_smc_mvdd_table()
681 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC mvdd voltage table", return -EINVAL); in iceland_populate_smc_mvdd_table()
683 table->MvddLevel[count].Smio |= data->mvdd_voltage_table.entries[count].smio_low; in iceland_populate_smc_mvdd_table()
685 table->MvddLevel[count].Smio |= 0; in iceland_populate_smc_mvdd_table()
688 CONVERT_FROM_HOST_TO_SMC_UL(table->MvddLevelCount); in iceland_populate_smc_mvdd_table()
695 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_voltage_tables() argument
699 result = iceland_populate_smc_vddc_table(hwmgr, table); in iceland_populate_smc_voltage_tables()
701 "can not populate VDDC voltage table to SMC", return -EINVAL); in iceland_populate_smc_voltage_tables()
703 result = iceland_populate_smc_vdd_ci_table(hwmgr, table); in iceland_populate_smc_voltage_tables()
705 "can not populate VDDCI voltage table to SMC", return -EINVAL); in iceland_populate_smc_voltage_tables()
707 result = iceland_populate_smc_mvdd_table(hwmgr, table); in iceland_populate_smc_voltage_tables()
709 "can not populate MVDD voltage table to SMC", return -EINVAL); in iceland_populate_smc_voltage_tables()
764 static int iceland_populate_smc_link_level(struct pp_hwmgr *hwmgr, SMU71_Discrete_DpmTable *table) in iceland_populate_smc_link_level() argument
773 table->LinkLevel[i].PcieGenSpeed = in iceland_populate_smc_link_level()
775 table->LinkLevel[i].PcieLaneCount = in iceland_populate_smc_link_level()
777 table->LinkLevel[i].EnabledForActivity = in iceland_populate_smc_link_level()
779 table->LinkLevel[i].SPC = in iceland_populate_smc_link_level()
781 table->LinkLevel[i].DownThreshold = in iceland_populate_smc_link_level()
783 table->LinkLevel[i].UpThreshold = in iceland_populate_smc_link_level()
905 "can not find VDDC voltage value for VDDC engine clock dependency table", return result); in iceland_populate_single_graphic_level()
1036 /* level count will send to smc once at init smc table and never change*/ in iceland_populate_all_graphic_levels()
1244 "can not find MinVddc voltage value from memory VDDC voltage dependency table", return result); in iceland_populate_single_memory_level()
1255 "can not find MinVddci voltage value from memory VDDCI voltage dependency table", return result); in iceland_populate_single_memory_level()
1353 /* populate MCLK dpm table to SMU7 */ in iceland_populate_all_memory_levels()
1387 /* level count will send to smc once at init smc table and never change*/ in iceland_populate_all_memory_levels()
1423 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_acpi_level() argument
1438 table->ACPILevel.Flags &= ~PPSMC_SWSTATE_FLAG_DC; in iceland_populate_smc_acpi_level()
1441 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->acpi_vddc * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
1443 table->ACPILevel.MinVddc = PP_HOST_TO_SMC_UL(data->min_vddc_in_pptable * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
1445 table->ACPILevel.MinVddcPhases = vddc_phase_shed_control ? 0 : 1; in iceland_populate_smc_acpi_level()
1447 table->ACPILevel.SclkFrequency = atomctrl_get_reference_clock(hwmgr); in iceland_populate_smc_acpi_level()
1451 table->ACPILevel.SclkFrequency, ÷rs); in iceland_populate_smc_acpi_level()
1457 table->ACPILevel.SclkDid = (uint8_t)dividers.pll_post_divider; in iceland_populate_smc_acpi_level()
1458 table->ACPILevel.DisplayWatermark = PPSMC_DISPLAY_WATERMARK_LOW; in iceland_populate_smc_acpi_level()
1459 table->ACPILevel.DeepSleepDivId = 0; in iceland_populate_smc_acpi_level()
1468 table->ACPILevel.CgSpllFuncCntl = spll_func_cntl; in iceland_populate_smc_acpi_level()
1469 table->ACPILevel.CgSpllFuncCntl2 = spll_func_cntl_2; in iceland_populate_smc_acpi_level()
1470 table->ACPILevel.CgSpllFuncCntl3 = data->clock_registers.vCG_SPLL_FUNC_CNTL_3; in iceland_populate_smc_acpi_level()
1471 table->ACPILevel.CgSpllFuncCntl4 = data->clock_registers.vCG_SPLL_FUNC_CNTL_4; in iceland_populate_smc_acpi_level()
1472 table->ACPILevel.SpllSpreadSpectrum = data->clock_registers.vCG_SPLL_SPREAD_SPECTRUM; in iceland_populate_smc_acpi_level()
1473 table->ACPILevel.SpllSpreadSpectrum2 = data->clock_registers.vCG_SPLL_SPREAD_SPECTRUM_2; in iceland_populate_smc_acpi_level()
1474 table->ACPILevel.CcPwrDynRm = 0; in iceland_populate_smc_acpi_level()
1475 table->ACPILevel.CcPwrDynRm1 = 0; in iceland_populate_smc_acpi_level()
1479 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.Flags); in iceland_populate_smc_acpi_level()
1481 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.SclkFrequency); in iceland_populate_smc_acpi_level()
1482 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CgSpllFuncCntl); in iceland_populate_smc_acpi_level()
1483 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CgSpllFuncCntl2); in iceland_populate_smc_acpi_level()
1484 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CgSpllFuncCntl3); in iceland_populate_smc_acpi_level()
1485 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CgSpllFuncCntl4); in iceland_populate_smc_acpi_level()
1486 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.SpllSpreadSpectrum); in iceland_populate_smc_acpi_level()
1487 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.SpllSpreadSpectrum2); in iceland_populate_smc_acpi_level()
1488 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CcPwrDynRm); in iceland_populate_smc_acpi_level()
1489 CONVERT_FROM_HOST_TO_SMC_UL(table->ACPILevel.CcPwrDynRm1); in iceland_populate_smc_acpi_level()
1491 /* table->MemoryACPILevel.MinVddcPhases = table->ACPILevel.MinVddcPhases;*/ in iceland_populate_smc_acpi_level()
1492 table->MemoryACPILevel.MinVddc = table->ACPILevel.MinVddc; in iceland_populate_smc_acpi_level()
1493 table->MemoryACPILevel.MinVddcPhases = table->ACPILevel.MinVddcPhases; in iceland_populate_smc_acpi_level()
1496 table->MemoryACPILevel.MinVddci = table->MemoryACPILevel.MinVddc; in iceland_populate_smc_acpi_level()
1499 table->MemoryACPILevel.MinVddci = PP_HOST_TO_SMC_UL(data->acpi_vddci * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
1501 table->MemoryACPILevel.MinVddci = PP_HOST_TO_SMC_UL(data->min_vddci_in_pptable * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
1505 table->MemoryACPILevel.MinMvdd = in iceland_populate_smc_acpi_level()
1508 table->MemoryACPILevel.MinMvdd = 0; in iceland_populate_smc_acpi_level()
1528 table->MemoryACPILevel.DllCntl = in iceland_populate_smc_acpi_level()
1530 table->MemoryACPILevel.MclkPwrmgtCntl = in iceland_populate_smc_acpi_level()
1532 table->MemoryACPILevel.MpllAdFuncCntl = in iceland_populate_smc_acpi_level()
1534 table->MemoryACPILevel.MpllDqFuncCntl = in iceland_populate_smc_acpi_level()
1536 table->MemoryACPILevel.MpllFuncCntl = in iceland_populate_smc_acpi_level()
1538 table->MemoryACPILevel.MpllFuncCntl_1 = in iceland_populate_smc_acpi_level()
1540 table->MemoryACPILevel.MpllFuncCntl_2 = in iceland_populate_smc_acpi_level()
1542 table->MemoryACPILevel.MpllSs1 = in iceland_populate_smc_acpi_level()
1544 table->MemoryACPILevel.MpllSs2 = in iceland_populate_smc_acpi_level()
1547 table->MemoryACPILevel.EnabledForThrottle = 0; in iceland_populate_smc_acpi_level()
1548 table->MemoryACPILevel.EnabledForActivity = 0; in iceland_populate_smc_acpi_level()
1549 table->MemoryACPILevel.UpHyst = 0; in iceland_populate_smc_acpi_level()
1550 table->MemoryACPILevel.DownHyst = 100; in iceland_populate_smc_acpi_level()
1551 table->MemoryACPILevel.VoltageDownHyst = 0; in iceland_populate_smc_acpi_level()
1553 …table->MemoryACPILevel.ActivityLevel = PP_HOST_TO_SMC_US(data->current_profile_setting.mclk_activi… in iceland_populate_smc_acpi_level()
1555 table->MemoryACPILevel.StutterEnable = 0; in iceland_populate_smc_acpi_level()
1556 table->MemoryACPILevel.StrobeEnable = 0; in iceland_populate_smc_acpi_level()
1557 table->MemoryACPILevel.EdcReadEnable = 0; in iceland_populate_smc_acpi_level()
1558 table->MemoryACPILevel.EdcWriteEnable = 0; in iceland_populate_smc_acpi_level()
1559 table->MemoryACPILevel.RttEnable = 0; in iceland_populate_smc_acpi_level()
1565 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_uvd_level() argument
1571 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vce_level() argument
1577 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_acp_level() argument
1648 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_boot_level() argument
1653 table->GraphicsBootLevel = 0; in iceland_populate_smc_boot_level()
1654 table->MemoryBootLevel = 0; in iceland_populate_smc_boot_level()
1656 /* find boot level from dpm table*/ in iceland_populate_smc_boot_level()
1663 …pr_err("VBIOS did not find boot engine clock value in dependency table. Using Graphics DPM level 0… in iceland_populate_smc_boot_level()
1673 …pr_err("VBIOS did not find boot engine clock value in dependency table. Using Memory DPM level 0!\… in iceland_populate_smc_boot_level()
1677 table->BootVddc = data->vbios_boot_state.vddc_bootup_value; in iceland_populate_smc_boot_level()
1679 table->BootVddci = table->BootVddc; in iceland_populate_smc_boot_level()
1681 table->BootVddci = data->vbios_boot_state.vddci_bootup_value; in iceland_populate_smc_boot_level()
1683 table->BootMVdd = data->vbios_boot_state.mvdd_bootup_value; in iceland_populate_smc_boot_level()
1934 SMU71_Discrete_DpmTable *table = &(smu_data->smc_state_table); in iceland_init_smc_table() local
1941 iceland_populate_smc_voltage_tables(hwmgr, table); in iceland_init_smc_table()
1946 table->SystemFlags |= PPSMC_SYSTEMFLAG_GPIO_DC; in iceland_init_smc_table()
1951 table->SystemFlags |= PPSMC_SYSTEMFLAG_STEPVDDC; in iceland_init_smc_table()
1954 table->SystemFlags |= PPSMC_SYSTEMFLAG_GDDR5; in iceland_init_smc_table()
1966 result = iceland_populate_smc_link_level(hwmgr, table); in iceland_init_smc_table()
1978 result = iceland_populate_smc_acpi_level(hwmgr, table); in iceland_init_smc_table()
1982 result = iceland_populate_smc_vce_level(hwmgr, table); in iceland_init_smc_table()
1986 result = iceland_populate_smc_acp_level(hwmgr, table); in iceland_init_smc_table()
1996 result = iceland_populate_smc_uvd_level(hwmgr, table); in iceland_init_smc_table()
2000 table->GraphicsBootLevel = 0; in iceland_init_smc_table()
2001 table->MemoryBootLevel = 0; in iceland_init_smc_table()
2003 result = iceland_populate_smc_boot_level(hwmgr, table); in iceland_init_smc_table()
2013 table->GraphicsVoltageChangeEnable = 1; in iceland_init_smc_table()
2014 table->GraphicsThermThrottleEnable = 1; in iceland_init_smc_table()
2015 table->GraphicsInterval = 1; in iceland_init_smc_table()
2016 table->VoltageInterval = 1; in iceland_init_smc_table()
2017 table->ThermalInterval = 1; in iceland_init_smc_table()
2019 table->TemperatureLimitHigh = in iceland_init_smc_table()
2022 table->TemperatureLimitLow = in iceland_init_smc_table()
2026 table->MemoryVoltageChangeEnable = 1; in iceland_init_smc_table()
2027 table->MemoryInterval = 1; in iceland_init_smc_table()
2028 table->VoltageResponseTime = 0; in iceland_init_smc_table()
2029 table->PhaseResponseTime = 0; in iceland_init_smc_table()
2030 table->MemoryThermThrottleEnable = 1; in iceland_init_smc_table()
2031 table->PCIeBootLinkLevel = 0; in iceland_init_smc_table()
2032 table->PCIeGenInterval = 1; in iceland_init_smc_table()
2034 result = iceland_populate_smc_svi2_config(hwmgr, table); in iceland_init_smc_table()
2038 table->ThermGpio = 17; in iceland_init_smc_table()
2039 table->SclkStepSize = 0x4000; in iceland_init_smc_table()
2041 CONVERT_FROM_HOST_TO_SMC_UL(table->SystemFlags); in iceland_init_smc_table()
2042 CONVERT_FROM_HOST_TO_SMC_UL(table->SmioMaskVddcVid); in iceland_init_smc_table()
2043 CONVERT_FROM_HOST_TO_SMC_UL(table->SmioMaskVddcPhase); in iceland_init_smc_table()
2044 CONVERT_FROM_HOST_TO_SMC_UL(table->SmioMaskVddciVid); in iceland_init_smc_table()
2045 CONVERT_FROM_HOST_TO_SMC_UL(table->SmioMaskMvddVid); in iceland_init_smc_table()
2046 CONVERT_FROM_HOST_TO_SMC_UL(table->SclkStepSize); in iceland_init_smc_table()
2047 CONVERT_FROM_HOST_TO_SMC_US(table->TemperatureLimitHigh); in iceland_init_smc_table()
2048 CONVERT_FROM_HOST_TO_SMC_US(table->TemperatureLimitLow); in iceland_init_smc_table()
2049 CONVERT_FROM_HOST_TO_SMC_US(table->VoltageResponseTime); in iceland_init_smc_table()
2050 CONVERT_FROM_HOST_TO_SMC_US(table->PhaseResponseTime); in iceland_init_smc_table()
2052 table->BootVddc = PP_HOST_TO_SMC_US(table->BootVddc * VOLTAGE_SCALE); in iceland_init_smc_table()
2053 table->BootVddci = PP_HOST_TO_SMC_US(table->BootVddci * VOLTAGE_SCALE); in iceland_init_smc_table()
2054 table->BootMVdd = PP_HOST_TO_SMC_US(table->BootMVdd * VOLTAGE_SCALE); in iceland_init_smc_table()
2059 (uint8_t *)&(table->SystemFlags), in iceland_init_smc_table()
2076 "Failed to populate initialize MC Reg table!", return result); in iceland_init_smc_table()
2202 PP_ASSERT_WITH_CODE((0 == result), "Failed to upload MC reg table!", return result); in iceland_update_sclk_threshold()
2467 static int iceland_set_s0_mc_reg_index(struct iceland_mc_reg_table *table) in iceland_set_s0_mc_reg_index() argument
2472 for (i = 0; i < table->last; i++) { in iceland_set_s0_mc_reg_index()
2473 table->mc_reg_address[i].s0 = in iceland_set_s0_mc_reg_index()
2474 iceland_check_s0_mc_reg_index(table->mc_reg_address[i].s1, &address) in iceland_set_s0_mc_reg_index()
2475 ? address : table->mc_reg_address[i].s1; in iceland_set_s0_mc_reg_index()
2480 static int iceland_copy_vbios_smc_reg_table(const pp_atomctrl_mc_reg_table *table, in iceland_copy_vbios_smc_reg_table() argument
2485 PP_ASSERT_WITH_CODE((table->last <= SMU71_DISCRETE_MC_REGISTER_ARRAY_SIZE), in iceland_copy_vbios_smc_reg_table()
2486 "Invalid VramInfo table.", return -EINVAL); in iceland_copy_vbios_smc_reg_table()
2487 PP_ASSERT_WITH_CODE((table->num_entries <= MAX_AC_TIMING_ENTRIES), in iceland_copy_vbios_smc_reg_table()
2488 "Invalid VramInfo table.", return -EINVAL); in iceland_copy_vbios_smc_reg_table()
2490 for (i = 0; i < table->last; i++) { in iceland_copy_vbios_smc_reg_table()
2491 ni_table->mc_reg_address[i].s1 = table->mc_reg_address[i].s1; in iceland_copy_vbios_smc_reg_table()
2493 ni_table->last = table->last; in iceland_copy_vbios_smc_reg_table()
2495 for (i = 0; i < table->num_entries; i++) { in iceland_copy_vbios_smc_reg_table()
2497 table->mc_reg_table_entry[i].mclk_max; in iceland_copy_vbios_smc_reg_table()
2498 for (j = 0; j < table->last; j++) { in iceland_copy_vbios_smc_reg_table()
2500 table->mc_reg_table_entry[i].mc_data[j]; in iceland_copy_vbios_smc_reg_table()
2504 ni_table->num_entries = table->num_entries; in iceland_copy_vbios_smc_reg_table()
2510 struct iceland_mc_reg_table *table) in iceland_set_mc_special_registers() argument
2516 for (i = 0, j = table->last; i < table->last; i++) { in iceland_set_mc_special_registers()
2518 "Invalid VramInfo table.", return -EINVAL); in iceland_set_mc_special_registers()
2520 switch (table->mc_reg_address[i].s1) { in iceland_set_mc_special_registers()
2524 table->mc_reg_address[j].s1 = mmMC_PMG_CMD_EMRS; in iceland_set_mc_special_registers()
2525 table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_EMRS_LP; in iceland_set_mc_special_registers()
2526 for (k = 0; k < table->num_entries; k++) { in iceland_set_mc_special_registers()
2527 table->mc_reg_table_entry[k].mc_data[j] = in iceland_set_mc_special_registers()
2529 ((table->mc_reg_table_entry[k].mc_data[i] & 0xffff0000) >> 16); in iceland_set_mc_special_registers()
2534 "Invalid VramInfo table.", return -EINVAL); in iceland_set_mc_special_registers()
2536 table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS; in iceland_set_mc_special_registers()
2537 table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS_LP; in iceland_set_mc_special_registers()
2538 for (k = 0; k < table->num_entries; k++) { in iceland_set_mc_special_registers()
2539 table->mc_reg_table_entry[k].mc_data[j] = in iceland_set_mc_special_registers()
2541 (table->mc_reg_table_entry[k].mc_data[i] & 0x0000ffff); in iceland_set_mc_special_registers()
2544 table->mc_reg_table_entry[k].mc_data[j] |= 0x100; in iceland_set_mc_special_registers()
2551 "Invalid VramInfo table.", return -EINVAL); in iceland_set_mc_special_registers()
2552 table->mc_reg_address[j].s1 = mmMC_PMG_AUTO_CMD; in iceland_set_mc_special_registers()
2553 table->mc_reg_address[j].s0 = mmMC_PMG_AUTO_CMD; in iceland_set_mc_special_registers()
2554 for (k = 0; k < table->num_entries; k++) { in iceland_set_mc_special_registers()
2555 table->mc_reg_table_entry[k].mc_data[j] = in iceland_set_mc_special_registers()
2556 (table->mc_reg_table_entry[k].mc_data[i] & 0xffff0000) >> 16; in iceland_set_mc_special_registers()
2565 table->mc_reg_address[j].s1 = mmMC_PMG_CMD_MRS1; in iceland_set_mc_special_registers()
2566 table->mc_reg_address[j].s0 = mmMC_SEQ_PMG_CMD_MRS1_LP; in iceland_set_mc_special_registers()
2567 for (k = 0; k < table->num_entries; k++) { in iceland_set_mc_special_registers()
2568 table->mc_reg_table_entry[k].mc_data[j] = in iceland_set_mc_special_registers()
2570 (table->mc_reg_table_entry[k].mc_data[i] & 0x0000ffff); in iceland_set_mc_special_registers()
2581 table->last = j; in iceland_set_mc_special_registers()
2586 static int iceland_set_valid_flag(struct iceland_mc_reg_table *table) in iceland_set_valid_flag() argument
2589 for (i = 0; i < table->last; i++) { in iceland_set_valid_flag()
2590 for (j = 1; j < table->num_entries; j++) { in iceland_set_valid_flag()
2591 if (table->mc_reg_table_entry[j-1].mc_data[i] != in iceland_set_valid_flag()
2592 table->mc_reg_table_entry[j].mc_data[i]) { in iceland_set_valid_flag()
2593 table->validflag |= (1<<i); in iceland_set_valid_flag()
2606 pp_atomctrl_mc_reg_table *table; in iceland_initialize_mc_reg_table() local
2610 table = kzalloc(sizeof(pp_atomctrl_mc_reg_table), GFP_KERNEL); in iceland_initialize_mc_reg_table()
2612 if (NULL == table) in iceland_initialize_mc_reg_table()
2637 result = atomctrl_initialize_mc_reg_table(hwmgr, module_index, table); in iceland_initialize_mc_reg_table()
2640 result = iceland_copy_vbios_smc_reg_table(table, ni_table); in iceland_initialize_mc_reg_table()
2650 kfree(table); in iceland_initialize_mc_reg_table()