/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | cypress_dpm.c | 833 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 …]
|
D | ni_dpm.c | 2875 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 …]
|
D | cypress_dpm.h | 83 struct evergreen_mc_reg_table mc_reg_table; member
|
D | si_dpm.c | 5517 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 …]
|
D | si_dpm.h | 155 struct si_mc_reg_table mc_reg_table; member
|
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 | 4589 struct ci_mc_reg_table *ci_table = &pi->mc_reg_table; in ci_initialize_mc_reg_table() 4645 SMU7_Discrete_MCRegisters *mc_reg_table) in ci_populate_mc_reg_addresses() argument 4650 for (i = 0, j = 0; j < pi->mc_reg_table.last; j++) { in ci_populate_mc_reg_addresses() 4651 if (pi->mc_reg_table.valid_flag & (1 << j)) { in ci_populate_mc_reg_addresses() 4654 mc_reg_table->address[i].s0 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s0); in ci_populate_mc_reg_addresses() 4655 mc_reg_table->address[i].s1 = cpu_to_be16(pi->mc_reg_table.mc_reg_address[j].s1); in ci_populate_mc_reg_addresses() 4660 mc_reg_table->last = (u8)i; in ci_populate_mc_reg_addresses() 4686 for(i = 0; i < pi->mc_reg_table.num_entries; i++) { in ci_convert_mc_reg_table_entry_to_smc() 4687 if (memory_clock <= pi->mc_reg_table.mc_reg_table_entry[i].mclk_max) in ci_convert_mc_reg_table_entry_to_smc() 4691 if ((i == pi->mc_reg_table.num_entries) && (i > 0)) in ci_convert_mc_reg_table_entry_to_smc() [all …]
|
D | btc_dpm.c | 2020 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | polaris10_smumgr.h | 63 pp_atomctrl_mc_reg_table mc_reg_table; member
|
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 | 1725 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 …]
|
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 …]
|
D | polaris10_smumgr.c | 2571 pp_atomctrl_mc_reg_table *mc_reg_table = &smu_data->mc_reg_table; in polaris10_initialize_mc_reg_table() local 2574 memset(mc_reg_table, 0, sizeof(pp_atomctrl_mc_reg_table)); in polaris10_initialize_mc_reg_table() 2576 return atomctrl_initialize_mc_reg_table_v2_2(hwmgr, module_index, mc_reg_table); in polaris10_initialize_mc_reg_table()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.h | 674 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
|
D | si_dpm.c | 6010 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 …]
|