Home
last modified time | relevance | path

Searched refs:mc_reg_table (Results 1 – 19 of 19) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/radeon/
Dcypress_dpm.c833 for (i = 0; i < eg_pi->mc_reg_table.num_entries; i++) { in cypress_convert_mc_reg_table_entry_to_smc()
835 eg_pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) in cypress_convert_mc_reg_table_entry_to_smc()
839 if ((i == eg_pi->mc_reg_table.num_entries) && (i > 0)) in cypress_convert_mc_reg_table_entry_to_smc()
842 cypress_convert_mc_registers(&eg_pi->mc_reg_table.mc_reg_table_entry[i], in cypress_convert_mc_reg_table_entry_to_smc()
844 eg_pi->mc_reg_table.last, in cypress_convert_mc_reg_table_entry_to_smc()
845 eg_pi->mc_reg_table.valid_flag); in cypress_convert_mc_reg_table_entry_to_smc()
850 SMC_Evergreen_MCRegisters *mc_reg_table) in cypress_convert_mc_reg_table_to_smc() argument
856 &mc_reg_table->data[2]); in cypress_convert_mc_reg_table_to_smc()
859 &mc_reg_table->data[3]); in cypress_convert_mc_reg_table_to_smc()
862 &mc_reg_table->data[4]); in cypress_convert_mc_reg_table_to_smc()
[all …]
Dni_dpm.c2875 struct ni_mc_reg_table *ni_table = &ni_pi->mc_reg_table; in ni_initialize_mc_reg_table()
2922 SMC_NIslands_MCRegisters *mc_reg_table) in ni_populate_mc_reg_addresses() argument
2927 for (i = 0, j = 0; j < ni_pi->mc_reg_table.last; j++) { in ni_populate_mc_reg_addresses()
2928 if (ni_pi->mc_reg_table.valid_flag & (1 << j)) { in ni_populate_mc_reg_addresses()
2931 mc_reg_table->address[i].s0 = in ni_populate_mc_reg_addresses()
2932 cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s0); in ni_populate_mc_reg_addresses()
2933 mc_reg_table->address[i].s1 = in ni_populate_mc_reg_addresses()
2934 cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s1); in ni_populate_mc_reg_addresses()
2938 mc_reg_table->last = (u8)i; in ni_populate_mc_reg_addresses()
2963 for (i = 0; i < ni_pi->mc_reg_table.num_entries; i++) { in ni_convert_mc_reg_table_entry_to_smc()
[all …]
Dcypress_dpm.h83 struct evergreen_mc_reg_table mc_reg_table; member
Dsi_dpm.c5517 struct si_mc_reg_table *si_table = &si_pi->mc_reg_table; in si_initialize_mc_reg_table()
5564 SMC_SIslands_MCRegisters *mc_reg_table) in si_populate_mc_reg_addresses() argument
5569 for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { in si_populate_mc_reg_addresses()
5570 if (si_pi->mc_reg_table.valid_flag & (1 << j)) { in si_populate_mc_reg_addresses()
5573 mc_reg_table->address[i].s0 = in si_populate_mc_reg_addresses()
5574 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); in si_populate_mc_reg_addresses()
5575 mc_reg_table->address[i].s1 = in si_populate_mc_reg_addresses()
5576 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); in si_populate_mc_reg_addresses()
5580 mc_reg_table->last = (u8)i; in si_populate_mc_reg_addresses()
5604 for (i = 0; i < si_pi->mc_reg_table.num_entries; i++) { in si_convert_mc_reg_table_entry_to_smc()
[all …]
Dsi_dpm.h155 struct si_mc_reg_table mc_reg_table; member
Dni_dpm.h182 struct ni_mc_reg_table mc_reg_table; member
Dci_dpm.h228 struct ci_mc_reg_table mc_reg_table; member
Dci_dpm.c4591 struct ci_mc_reg_table *ci_table = &pi->mc_reg_table; in ci_initialize_mc_reg_table()
4647 SMU7_Discrete_MCRegisters *mc_reg_table) in ci_populate_mc_reg_addresses() argument
4652 for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { in ci_populate_mc_reg_addresses()
4653 if (pi->mc_reg_table.valid_flag & (1 << j)) { in ci_populate_mc_reg_addresses()
4656 mc_reg_table->address[i].s0 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s0); in ci_populate_mc_reg_addresses()
4657 mc_reg_table->address[i].s1 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s1); in ci_populate_mc_reg_addresses()
4662 mc_reg_table->last = (u8)i; in ci_populate_mc_reg_addresses()
4688 for(i = 0; i < pi->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc()
4689 if (memory_clock <= pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) in ci_convert_mc_reg_table_entry_to_smc()
4693 if ((i == pi->mc_reg_table.num_entries) && (i > 0)) in ci_convert_mc_reg_table_entry_to_smc()
[all …]
Dbtc_dpm.c2020 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dpolaris10_smumgr.h63 pp_atomctrl_mc_reg_table mc_reg_table; member
Diceland_smumgr.h67 struct iceland_mc_reg_table mc_reg_table; member
Dci_smumgr.h72 struct ci_mc_reg_table mc_reg_table; member
Dtonga_smumgr.h71 struct tonga_mc_reg_table mc_reg_table; member
Diceland_smumgr.c1689 SMU71_Discrete_MCRegisters *mc_reg_table) in iceland_populate_mc_reg_address() argument
1695 for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { in iceland_populate_mc_reg_address()
1696 if (smu_data->mc_reg_table.validflag & 1<<j) { in iceland_populate_mc_reg_address()
1699 mc_reg_table->address[i].s0 = in iceland_populate_mc_reg_address()
1700 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); in iceland_populate_mc_reg_address()
1701 mc_reg_table->address[i].s1 = in iceland_populate_mc_reg_address()
1702 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); in iceland_populate_mc_reg_address()
1707 mc_reg_table->last = (uint8_t)i; in iceland_populate_mc_reg_address()
1736 for (i = 0; i < smu_data->mc_reg_table.num_entries; i++) { in iceland_convert_mc_reg_table_entry_to_smc()
1738 smu_data->mc_reg_table.mc_reg_table_entry[i].mclk_max) { in iceland_convert_mc_reg_table_entry_to_smc()
[all …]
Dci_smumgr.c1725 SMU7_Discrete_MCRegisters *mc_reg_table) in ci_populate_mc_reg_address() argument
1731 for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { in ci_populate_mc_reg_address()
1732 if (smu_data->mc_reg_table.validflag & 1<<j) { in ci_populate_mc_reg_address()
1735 mc_reg_table->address[i].s0 = in ci_populate_mc_reg_address()
1736 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); in ci_populate_mc_reg_address()
1737 mc_reg_table->address[i].s1 = in ci_populate_mc_reg_address()
1738 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); in ci_populate_mc_reg_address()
1743 mc_reg_table->last = (uint8_t)i; in ci_populate_mc_reg_address()
1772 for (i = 0; i < smu_data->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc()
1774 smu_data->mc_reg_table.mc_reg_table_entry[i].mclk_max) { in ci_convert_mc_reg_table_entry_to_smc()
[all …]
Dtonga_smumgr.c2064 SMU72_Discrete_MCRegisters *mc_reg_table) in tonga_populate_mc_reg_address() argument
2070 for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { in tonga_populate_mc_reg_address()
2071 if (smu_data->mc_reg_table.validflag & 1<<j) { in tonga_populate_mc_reg_address()
2077 mc_reg_table->address[i].s0 = in tonga_populate_mc_reg_address()
2078 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); in tonga_populate_mc_reg_address()
2079 mc_reg_table->address[i].s1 = in tonga_populate_mc_reg_address()
2080 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); in tonga_populate_mc_reg_address()
2085 mc_reg_table->last = (uint8_t)i; in tonga_populate_mc_reg_address()
2115 for (i = 0; i < smu_data->mc_reg_table.num_entries; i++) { in tonga_convert_mc_reg_table_entry_to_smc()
2117 smu_data->mc_reg_table.mc_reg_table_entry[i].mclk_max) { in tonga_convert_mc_reg_table_entry_to_smc()
[all …]
Dpolaris10_smumgr.c2572 pp_atomctrl_mc_reg_table *mc_reg_table = &smu_data->mc_reg_table; in polaris10_initialize_mc_reg_table() local
2575 memset(mc_reg_table, 0, sizeof(pp_atomctrl_mc_reg_table)); in polaris10_initialize_mc_reg_table()
2576 result = atomctrl_initialize_mc_reg_table_v2_2(hwmgr, module_index, mc_reg_table); in polaris10_initialize_mc_reg_table()
/linux-5.19.10/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.h674 struct evergreen_mc_reg_table mc_reg_table; member
829 struct ni_mc_reg_table mc_reg_table; member
969 struct si_mc_reg_table mc_reg_table; member
Dsi_dpm.c6010 struct si_mc_reg_table *si_table = &si_pi->mc_reg_table; in si_initialize_mc_reg_table()
6057 SMC_SIslands_MCRegisters *mc_reg_table) in si_populate_mc_reg_addresses() argument
6062 for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { in si_populate_mc_reg_addresses()
6063 if (si_pi->mc_reg_table.valid_flag & (1 << j)) { in si_populate_mc_reg_addresses()
6066 mc_reg_table->address[i].s0 = in si_populate_mc_reg_addresses()
6067 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); in si_populate_mc_reg_addresses()
6068 mc_reg_table->address[i].s1 = in si_populate_mc_reg_addresses()
6069 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); in si_populate_mc_reg_addresses()
6073 mc_reg_table->last = (u8)i; in si_populate_mc_reg_addresses()
6097 for (i = 0; i < si_pi->mc_reg_table.num_entries; i++) { in si_convert_mc_reg_table_entry_to_smc()
[all …]