/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | cypress_dpm.c | 835 for (i = 0; i < eg_pi->mc_reg_table.num_entries; i++) { in cypress_convert_mc_reg_table_entry_to_smc() 837 eg_pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) in cypress_convert_mc_reg_table_entry_to_smc() 841 if ((i == eg_pi->mc_reg_table.num_entries) && (i > 0)) in cypress_convert_mc_reg_table_entry_to_smc() 844 cypress_convert_mc_registers(&eg_pi->mc_reg_table.mc_reg_table_entry[i], in cypress_convert_mc_reg_table_entry_to_smc() 846 eg_pi->mc_reg_table.last, in cypress_convert_mc_reg_table_entry_to_smc() 847 eg_pi->mc_reg_table.valid_flag); in cypress_convert_mc_reg_table_entry_to_smc() 852 SMC_Evergreen_MCRegisters *mc_reg_table) in cypress_convert_mc_reg_table_to_smc() argument 858 &mc_reg_table->data[2]); in cypress_convert_mc_reg_table_to_smc() 861 &mc_reg_table->data[3]); in cypress_convert_mc_reg_table_to_smc() 864 &mc_reg_table->data[4]); in cypress_convert_mc_reg_table_to_smc() [all …]
|
D | ni_dpm.c | 2876 struct ni_mc_reg_table *ni_table = &ni_pi->mc_reg_table; in ni_initialize_mc_reg_table() 2923 SMC_NIslands_MCRegisters *mc_reg_table) in ni_populate_mc_reg_addresses() argument 2928 for (i = 0, j = 0; j < ni_pi->mc_reg_table.last; j++) { in ni_populate_mc_reg_addresses() 2929 if (ni_pi->mc_reg_table.valid_flag & (1 << j)) { in ni_populate_mc_reg_addresses() 2932 mc_reg_table->address[i].s0 = in ni_populate_mc_reg_addresses() 2933 cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s0); in ni_populate_mc_reg_addresses() 2934 mc_reg_table->address[i].s1 = in ni_populate_mc_reg_addresses() 2935 cpu_to_be16(ni_pi->mc_reg_table.mc_reg_address[j].s1); in ni_populate_mc_reg_addresses() 2939 mc_reg_table->last = (u8)i; in ni_populate_mc_reg_addresses() 2964 for (i = 0; i < ni_pi->mc_reg_table.num_entries; i++) { in ni_convert_mc_reg_table_entry_to_smc() [all …]
|
D | cypress_dpm.h | 83 struct evergreen_mc_reg_table mc_reg_table; member
|
D | si_dpm.h | 155 struct si_mc_reg_table mc_reg_table; member
|
D | si_dpm.c | 5537 struct si_mc_reg_table *si_table = &si_pi->mc_reg_table; in si_initialize_mc_reg_table() 5584 SMC_SIslands_MCRegisters *mc_reg_table) in si_populate_mc_reg_addresses() argument 5589 for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { in si_populate_mc_reg_addresses() 5590 if (si_pi->mc_reg_table.valid_flag & (1 << j)) { in si_populate_mc_reg_addresses() 5593 mc_reg_table->address[i].s0 = in si_populate_mc_reg_addresses() 5594 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); in si_populate_mc_reg_addresses() 5595 mc_reg_table->address[i].s1 = in si_populate_mc_reg_addresses() 5596 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); in si_populate_mc_reg_addresses() 5600 mc_reg_table->last = (u8)i; in si_populate_mc_reg_addresses() 5624 for (i = 0; i < si_pi->mc_reg_table.num_entries; i++) { in si_convert_mc_reg_table_entry_to_smc() [all …]
|
D | ni_dpm.h | 182 struct ni_mc_reg_table mc_reg_table; member
|
D | ci_dpm.h | 228 struct ci_mc_reg_table mc_reg_table; member
|
D | ci_dpm.c | 4628 struct ci_mc_reg_table *ci_table = &pi->mc_reg_table; in ci_initialize_mc_reg_table() 4684 SMU7_Discrete_MCRegisters *mc_reg_table) in ci_populate_mc_reg_addresses() argument 4689 for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { in ci_populate_mc_reg_addresses() 4690 if (pi->mc_reg_table.valid_flag & (1 << j)) { in ci_populate_mc_reg_addresses() 4693 mc_reg_table->address[i].s0 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s0); in ci_populate_mc_reg_addresses() 4694 mc_reg_table->address[i].s1 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s1); in ci_populate_mc_reg_addresses() 4699 mc_reg_table->last = (u8)i; in ci_populate_mc_reg_addresses() 4725 for(i = 0; i < pi->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc() 4726 if (memory_clock <= pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) in ci_convert_mc_reg_table_entry_to_smc() 4730 if ((i == pi->mc_reg_table.num_entries) && (i > 0)) in ci_convert_mc_reg_table_entry_to_smc() [all …]
|
D | btc_dpm.c | 2023 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | iceland_smumgr.h | 67 struct iceland_mc_reg_table mc_reg_table; member
|
D | ci_smumgr.h | 72 struct ci_mc_reg_table mc_reg_table; member
|
D | tonga_smumgr.h | 71 struct tonga_mc_reg_table mc_reg_table; member
|
D | iceland_smumgr.c | 1689 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 …]
|
D | ci_smumgr.c | 1722 SMU7_Discrete_MCRegisters *mc_reg_table) in ci_populate_mc_reg_address() argument 1728 for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) { in ci_populate_mc_reg_address() 1729 if (smu_data->mc_reg_table.validflag & 1<<j) { in ci_populate_mc_reg_address() 1732 mc_reg_table->address[i].s0 = in ci_populate_mc_reg_address() 1733 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0); in ci_populate_mc_reg_address() 1734 mc_reg_table->address[i].s1 = in ci_populate_mc_reg_address() 1735 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1); in ci_populate_mc_reg_address() 1740 mc_reg_table->last = (uint8_t)i; in ci_populate_mc_reg_address() 1769 for (i = 0; i < smu_data->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc() 1771 smu_data->mc_reg_table.mc_reg_table_entry[i].mclk_max) { in ci_convert_mc_reg_table_entry_to_smc() [all …]
|
D | tonga_smumgr.c | 2064 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 …]
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | si_dpm.h | 667 struct evergreen_mc_reg_table mc_reg_table; member 822 struct ni_mc_reg_table mc_reg_table; member 962 struct si_mc_reg_table mc_reg_table; member
|
D | si_dpm.c | 5991 struct si_mc_reg_table *si_table = &si_pi->mc_reg_table; in si_initialize_mc_reg_table() 6038 SMC_SIslands_MCRegisters *mc_reg_table) in si_populate_mc_reg_addresses() argument 6043 for (i = 0, j = 0; j < si_pi->mc_reg_table.last; j++) { in si_populate_mc_reg_addresses() 6044 if (si_pi->mc_reg_table.valid_flag & (1 << j)) { in si_populate_mc_reg_addresses() 6047 mc_reg_table->address[i].s0 = in si_populate_mc_reg_addresses() 6048 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s0); in si_populate_mc_reg_addresses() 6049 mc_reg_table->address[i].s1 = in si_populate_mc_reg_addresses() 6050 cpu_to_be16(si_pi->mc_reg_table.mc_reg_address[j].s1); in si_populate_mc_reg_addresses() 6054 mc_reg_table->last = (u8)i; in si_populate_mc_reg_addresses() 6078 for (i = 0; i < si_pi->mc_reg_table.num_entries; i++) { in si_convert_mc_reg_table_entry_to_smc() [all …]
|