Lines Matching refs:result

237 	int result;
240 result = iceland_smu_upload_firmware_image(hwmgr);
241 if (result)
242 return result;
255 result = smu7_request_smu_load_fw(hwmgr);
257 return result;
600 int result;
602 result = iceland_get_std_voltage_value_sidd(hwmgr, tab,
605 if (0 != result) {
621 int result;
626 result = iceland_populate_smc_voltage_table(hwmgr,
629 PP_ASSERT_WITH_CODE(0 == result, "do not populate SMC VDDC voltage table", return -EINVAL);
648 int result;
653 result = iceland_populate_smc_voltage_table(hwmgr,
656 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC VDDCI voltage table", return -EINVAL);
673 int result;
678 result = iceland_populate_smc_voltage_table(hwmgr,
681 PP_ASSERT_WITH_CODE(result == 0, "do not populate SMC mvdd voltage table", return -EINVAL);
697 int result;
699 result = iceland_populate_smc_vddc_table(hwmgr, table);
700 PP_ASSERT_WITH_CODE(0 == result,
703 result = iceland_populate_smc_vdd_ci_table(hwmgr, table);
704 PP_ASSERT_WITH_CODE(0 == result,
707 result = iceland_populate_smc_mvdd_table(hwmgr, table);
708 PP_ASSERT_WITH_CODE(0 == result,
718 int result;
724 result = pp_tables_get_response_times(hwmgr, &voltage_response_time, &ulv_voltage);
725 PP_ASSERT_WITH_CODE((0 == result), "can not get ULV voltage value", return result;);
808 int result;
811 result = atomctrl_get_engine_pll_dividers_vi(hwmgr, engine_clock, &dividers);
813 PP_ASSERT_WITH_CODE(result == 0,
814 "Error retrieving Engine Clock dividers from VBIOS.", return result);
895 int result;
898 result = iceland_calculate_sclk_params(hwmgr, engine_clock, graphic_level);
901 result = iceland_get_dependency_volt_by_clk(hwmgr,
904 PP_ASSERT_WITH_CODE((0 == result),
905 "can not find VDDC voltage value for VDDC engine clock dependency table", return result);
943 if (0 == result) {
956 return result;
976 int result = 0;
981 result = iceland_populate_single_graphic_level(hwmgr,
984 if (result != 0)
985 return result;
1037 result = smu7_copy_bytes_to_smc(hwmgr, level_array_adress,
1041 return result;
1065 int result;
1067 result = atomctrl_get_memory_pll_dividers_si(hwmgr,
1069 PP_ASSERT_WITH_CODE(0 == result,
1070 "Error retrieving Memory Clock Parameters from VBIOS.", return result);
1154 /* Save the result data to outpupt memory level structure */
1234 int result = 0;
1241 result = iceland_get_dependency_volt_by_clk(hwmgr,
1243 PP_ASSERT_WITH_CODE((0 == result),
1244 "can not find MinVddc voltage value from memory VDDC voltage dependency table", return result);
1250 result = iceland_get_dependency_volt_by_clk(hwmgr,
1254 PP_ASSERT_WITH_CODE((0 == result),
1255 "can not find MinVddci voltage value from memory VDDCI voltage dependency table", return result);
1320 result = iceland_calculate_mclk_params(hwmgr,
1323 if (0 == result) {
1343 return result;
1351 int result;
1364 result = iceland_populate_single_memory_level(hwmgr, dpm_table->mclk_table.dpm_levels[i].value,
1366 if (0 != result) {
1367 return result;
1388 result = smu7_copy_bytes_to_smc(hwmgr,
1392 return result;
1425 int result = 0;
1450 result = atomctrl_get_engine_pll_dividers_vi(hwmgr,
1453 PP_ASSERT_WITH_CODE(result == 0,
1454 "Error retrieving Engine Clock dividers from VBIOS.", return result);
1561 return result;
1592 int result;
1594 result = atomctrl_set_engine_dram_timings_rv770(hwmgr,
1597 PP_ASSERT_WITH_CODE(result == 0,
1598 "Error calling VBIOS to set DRAM_TIMING.", return result);
1615 int result = 0;
1623 result = iceland_populate_memory_timing_parameters
1628 if (0 != result) {
1634 if (0 == result) {
1635 result = smu7_copy_bytes_to_smc(
1644 return result;
1650 int result = 0;
1657 result = phm_find_boot_level(&(data->dpm_table.sclk_table),
1661 if (0 != result) {
1664 result = 0;
1667 result = phm_find_boot_level(&(data->dpm_table.mclk_table),
1671 if (0 != result) {
1674 result = 0;
1685 return result;
1756 int result = 0;
1769 result = res;
1772 return result;
1780 int32_t result;
1788 result = iceland_convert_mc_reg_table_to_smc(hwmgr, &(smu_data->mc_regs));
1790 if (result != 0)
1791 return result;
1804 int result;
1808 result = iceland_populate_mc_reg_address(hwmgr, &(smu_data->mc_regs));
1809 PP_ASSERT_WITH_CODE(0 == result,
1810 "Failed to initialize MCRegTable for the MC register addresses!", return result;);
1812 result = iceland_convert_mc_reg_table_to_smc(hwmgr, &smu_data->mc_regs);
1813 PP_ASSERT_WITH_CODE(0 == result,
1814 "Failed to initialize MCRegTable for driver state!", return result;);
1931 int result;
1958 result = iceland_populate_ulv_state(hwmgr, &(smu_data->ulv_setting));
1959 PP_ASSERT_WITH_CODE(0 == result,
1960 "Failed to initialize ULV state!", return result;);
1966 result = iceland_populate_smc_link_level(hwmgr, table);
1967 PP_ASSERT_WITH_CODE(0 == result,
1968 "Failed to initialize Link Level!", return result;);
1970 result = iceland_populate_all_graphic_levels(hwmgr);
1971 PP_ASSERT_WITH_CODE(0 == result,
1972 "Failed to initialize Graphics Level!", return result;);
1974 result = iceland_populate_all_memory_levels(hwmgr);
1975 PP_ASSERT_WITH_CODE(0 == result,
1976 "Failed to initialize Memory Level!", return result;);
1978 result = iceland_populate_smc_acpi_level(hwmgr, table);
1979 PP_ASSERT_WITH_CODE(0 == result,
1980 "Failed to initialize ACPI Level!", return result;);
1982 result = iceland_populate_smc_vce_level(hwmgr, table);
1983 PP_ASSERT_WITH_CODE(0 == result,
1984 "Failed to initialize VCE Level!", return result;);
1986 result = iceland_populate_smc_acp_level(hwmgr, table);
1987 PP_ASSERT_WITH_CODE(0 == result,
1988 "Failed to initialize ACP Level!", return result;);
1992 result = iceland_program_memory_timing_parameters(hwmgr);
1993 PP_ASSERT_WITH_CODE(0 == result,
1994 "Failed to Write ARB settings for the initial state.", return result;);
1996 result = iceland_populate_smc_uvd_level(hwmgr, table);
1997 PP_ASSERT_WITH_CODE(0 == result,
1998 "Failed to initialize UVD Level!", return result;);
2003 result = iceland_populate_smc_boot_level(hwmgr, table);
2004 PP_ASSERT_WITH_CODE(0 == result,
2005 "Failed to initialize Boot Level!", return result;);
2007 result = iceland_populate_smc_initial_state(hwmgr);
2008 PP_ASSERT_WITH_CODE(0 == result, "Failed to initialize Boot State!", return result);
2010 result = iceland_populate_bapm_parameters_in_dpm_table(hwmgr);
2011 PP_ASSERT_WITH_CODE(0 == result, "Failed to populate BAPM Parameters!", return result);
2034 result = iceland_populate_smc_svi2_config(hwmgr, table);
2035 PP_ASSERT_WITH_CODE(0 == result,
2036 "Failed to populate SVI2 setting!", return result);
2057 result = smu7_copy_bytes_to_smc(hwmgr, smu_data->smu7_data.dpm_table_start +
2063 PP_ASSERT_WITH_CODE(0 == result,
2064 "Failed to upload dpm data to SMC memory!", return result;);
2067 result = smu7_copy_bytes_to_smc(hwmgr,
2074 result = iceland_populate_initial_mc_reg_table(hwmgr);
2075 PP_ASSERT_WITH_CODE((0 == result),
2076 "Failed to populate initialize MC Reg table!", return result);
2078 result = iceland_populate_pm_fuses(hwmgr);
2079 PP_ASSERT_WITH_CODE(0 == result,
2080 "Failed to populate PM fuses to SMC memory!", return result);
2179 int result = 0;
2190 result = smu7_copy_bytes_to_smc(
2200 result = iceland_update_and_upload_mc_reg_table(hwmgr);
2202 PP_ASSERT_WITH_CODE((0 == result), "Failed to upload MC reg table!", return result);
2204 result = iceland_program_mem_timing_parameters(hwmgr);
2205 PP_ASSERT_WITH_CODE((result == 0),
2209 return result;
2284 int result;
2287 result = smu7_read_smc_sram_dword(hwmgr,
2292 if (0 == result) {
2296 error |= (0 != result);
2298 result = smu7_read_smc_sram_dword(hwmgr,
2303 if (0 == result) {
2308 error |= (0 != result);
2311 result = smu7_read_smc_sram_dword(hwmgr,
2316 if (0 == result) {
2320 result = smu7_read_smc_sram_dword(hwmgr,
2325 if (0 == result) {
2329 error |= (0 != result);
2331 result = smu7_read_smc_sram_dword(hwmgr,
2336 if (0 == result) {
2340 error |= (0 != result);
2343 result = smu7_read_smc_sram_dword(hwmgr,
2348 if (0 == result) {
2352 error |= (0 != result);
2354 result = smu7_read_smc_sram_dword(hwmgr,
2359 if (0 == result) {
2363 error |= (0 != result);
2377 bool result = true;
2461 result = false;
2465 return result;
2605 int result;
2638 result = atomctrl_initialize_mc_reg_table(hwmgr, module_index, table);
2640 if (0 == result)
2641 result = iceland_copy_vbios_smc_reg_table(table, ni_table);
2643 if (0 == result) {
2645 result = iceland_set_mc_special_registers(hwmgr, ni_table);
2648 if (0 == result)
2653 return result;