/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/ |
D | smu_cmn.c | 903 void *metrics_table, in smu_cmn_get_metrics_table() argument 917 smu_table->metrics_table, in smu_cmn_get_metrics_table() 926 if (metrics_table) in smu_cmn_get_metrics_table() 927 memcpy(metrics_table, smu_table->metrics_table, table_size); in smu_cmn_get_metrics_table()
|
D | smu_cmn.h | 99 void *metrics_table,
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | cyan_skillfish_ppt.c | 97 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in cyan_skillfish_tables_init() 98 if (!smu_table->metrics_table) in cyan_skillfish_tables_init() 112 kfree(smu_table->metrics_table); in cyan_skillfish_tables_init() 134 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in cyan_skillfish_get_smu_metrics_data()
|
D | navi10_ppt.c | 516 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_NV1X_t), in navi10_tables_init() 518 if (!smu_table->metrics_table) in navi10_tables_init() 543 kfree(smu_table->metrics_table); in navi10_tables_init() 554 (SmuMetrics_legacy_t *)smu_table->metrics_table; in navi10_get_legacy_smu_metrics_data() 640 (SmuMetrics_t *)smu_table->metrics_table; in navi10_get_smu_metrics_data() 729 (SmuMetrics_NV12_legacy_t *)smu_table->metrics_table; in navi12_get_legacy_smu_metrics_data() 815 (SmuMetrics_NV12_t *)smu_table->metrics_table; in navi12_get_smu_metrics_data() 2905 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_legacy_t)); in navi10_get_legacy_gpu_metrics() 3128 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_t)); in navi10_get_gpu_metrics() 3200 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_NV12_legacy_t)); in navi12_get_legacy_gpu_metrics() [all …]
|
D | vangogh_ppt.c | 247 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_legacy_t), GFP_KERNEL); in vangogh_tables_init() 251 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in vangogh_tables_init() 253 if (!smu_table->metrics_table) in vangogh_tables_init() 280 kfree(smu_table->metrics_table); in vangogh_tables_init() 290 SmuMetrics_legacy_t *metrics = (SmuMetrics_legacy_t *)smu_table->metrics_table; in vangogh_get_legacy_smu_metrics_data() 359 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in vangogh_get_smu_metrics_data()
|
D | arcturus_ppt.c | 271 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init() 272 if (!smu_table->metrics_table) in arcturus_tables_init() 279 kfree(smu_table->metrics_table); in arcturus_tables_init() 602 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in arcturus_get_smu_metrics_data()
|
D | sienna_cichlid_ppt.c | 544 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in sienna_cichlid_tables_init() 545 if (!smu_table->metrics_table) in sienna_cichlid_tables_init() 576 kfree(smu_table->metrics_table); in sienna_cichlid_tables_init() 585 (SmuMetricsExternal_t *)(smu_table->metrics_table); in sienna_cichlid_get_throttler_status_locked() 652 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V4); in sienna_cichlid_get_smartshift_power_percentage() 706 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in sienna_cichlid_get_smu_metrics_data() 708 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V2); in sienna_cichlid_get_smu_metrics_data() 710 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V3); in sienna_cichlid_get_smu_metrics_data()
|
D | smu_v11_0.c | 478 kfree(smu_table->metrics_table); in smu_v11_0_fini_smc_tables() 482 smu_table->metrics_table = NULL; in smu_v11_0_fini_smc_tables()
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 1355 SmuMetrics_t *metrics_table, in vega12_get_metrics_table() argument 1366 (uint8_t *)(&data->metrics_table), in vega12_get_metrics_table() 1376 if (metrics_table) in vega12_get_metrics_table() 1377 memcpy(metrics_table, &data->metrics_table, sizeof(SmuMetrics_t)); in vega12_get_metrics_table() 1384 SmuMetrics_t metrics_table; in vega12_get_gpu_power() local 1387 ret = vega12_get_metrics_table(hwmgr, &metrics_table, false); in vega12_get_gpu_power() 1391 *query = metrics_table.CurrSocketPower << 8; in vega12_get_gpu_power() 1435 SmuMetrics_t metrics_table; in vega12_get_current_activity_percent() local 1438 ret = vega12_get_metrics_table(hwmgr, &metrics_table, false); in vega12_get_current_activity_percent() 1444 *activity_percent = metrics_table.AverageGfxActivity; in vega12_get_current_activity_percent() [all …]
|
D | vega20_hwmgr.c | 2112 SmuMetrics_t *metrics_table, in vega20_get_metrics_table() argument 2123 (uint8_t *)(&data->metrics_table), in vega20_get_metrics_table() 2133 if (metrics_table) in vega20_get_metrics_table() 2134 memcpy(metrics_table, &data->metrics_table, sizeof(SmuMetrics_t)); in vega20_get_metrics_table() 2143 SmuMetrics_t metrics_table; in vega20_get_gpu_power() local 2145 ret = vega20_get_metrics_table(hwmgr, &metrics_table, false); in vega20_get_gpu_power() 2151 *query = metrics_table.AverageSocketPower << 8; in vega20_get_gpu_power() 2153 *query = metrics_table.CurrSocketPower << 8; in vega20_get_gpu_power() 2181 SmuMetrics_t metrics_table; in vega20_get_current_activity_percent() local 2183 ret = vega20_get_metrics_table(hwmgr, &metrics_table, false); in vega20_get_current_activity_percent() [all …]
|
D | vega12_hwmgr.h | 401 SmuMetrics_t metrics_table; member
|
D | vega20_hwmgr.h | 529 SmuMetrics_t metrics_table; member
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | smu_v13_0_5_ppt.c | 140 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v13_0_5_init_smc_tables() 141 if (!smu_table->metrics_table) in smu_v13_0_5_init_smc_tables() 159 kfree(smu_table->metrics_table); in smu_v13_0_5_init_smc_tables() 173 kfree(smu_table->metrics_table); in smu_v13_0_5_fini_smc_tables() 174 smu_table->metrics_table = NULL; in smu_v13_0_5_fini_smc_tables() 262 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_5_get_smu_metrics_data()
|
D | smu_v13_0_4_ppt.c | 162 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in smu_v13_0_4_init_smc_tables() 163 if (!smu_table->metrics_table) in smu_v13_0_4_init_smc_tables() 181 kfree(smu_table->metrics_table); in smu_v13_0_4_init_smc_tables() 195 kfree(smu_table->metrics_table); in smu_v13_0_4_fini_smc_tables() 196 smu_table->metrics_table = NULL; in smu_v13_0_4_fini_smc_tables() 290 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in smu_v13_0_4_get_smu_metrics_data()
|
D | yellow_carp_ppt.c | 159 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in yellow_carp_init_smc_tables() 160 if (!smu_table->metrics_table) in yellow_carp_init_smc_tables() 178 kfree(smu_table->metrics_table); in yellow_carp_init_smc_tables() 192 kfree(smu_table->metrics_table); in yellow_carp_fini_smc_tables() 193 smu_table->metrics_table = NULL; in yellow_carp_fini_smc_tables() 329 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in yellow_carp_get_smu_metrics_data()
|
D | smu_v13_0_0_ppt.c | 432 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in smu_v13_0_0_tables_init() 433 if (!smu_table->metrics_table) in smu_v13_0_0_tables_init() 451 kfree(smu_table->metrics_table); in smu_v13_0_0_tables_init() 663 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_0_get_smu_metrics_data() 1321 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_0_get_unique_id()
|
D | smu_v13_0_7_ppt.c | 486 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in smu_v13_0_7_tables_init() 487 if (!smu_table->metrics_table) in smu_v13_0_7_tables_init() 505 kfree(smu_table->metrics_table); in smu_v13_0_7_tables_init() 710 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in smu_v13_0_7_get_smu_metrics_data()
|
D | aldebaran_ppt.c | 248 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init() 249 if (!smu_table->metrics_table) in aldebaran_tables_init() 256 kfree(smu_table->metrics_table); in aldebaran_tables_init() 584 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in aldebaran_get_smu_metrics_data()
|
D | smu_v13_0.c | 554 kfree(smu_table->metrics_table); in smu_v13_0_fini_smc_tables() 557 smu_table->metrics_table = NULL; in smu_v13_0_fini_smc_tables()
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | smu_v12_0.c | 189 kfree(smu_table->metrics_table); in smu_v12_0_fini_smc_tables() 190 smu_table->metrics_table = NULL; in smu_v12_0_fini_smc_tables()
|
D | renoir_ppt.c | 172 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables() 173 if (!smu_table->metrics_table) in renoir_init_smc_tables() 191 kfree(smu_table->metrics_table); in renoir_init_smc_tables() 1170 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in renoir_get_smu_metrics_data()
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/inc/ |
D | amdgpu_smu.h | 334 void *metrics_table; member
|