Home
last modified time | relevance | path

Searched refs:metrics_table (Results 1 – 18 of 18) sorted by relevance

/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dcyan_skillfish_ppt.c96 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in cyan_skillfish_tables_init()
97 if (!smu_table->metrics_table) in cyan_skillfish_tables_init()
111 kfree(smu_table->metrics_table); in cyan_skillfish_tables_init()
131 kfree(smu_table->metrics_table); in cyan_skillfish_finit_smc_tables()
132 smu_table->metrics_table = NULL; in cyan_skillfish_finit_smc_tables()
149 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in cyan_skillfish_get_smu_metrics_data()
Dnavi10_ppt.c515 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_NV1X_t), in navi10_tables_init()
517 if (!smu_table->metrics_table) in navi10_tables_init()
535 kfree(smu_table->metrics_table); in navi10_tables_init()
546 (SmuMetrics_legacy_t *)smu_table->metrics_table; in navi10_get_legacy_smu_metrics_data()
638 (SmuMetrics_t *)smu_table->metrics_table; in navi10_get_smu_metrics_data()
733 (SmuMetrics_NV12_legacy_t *)smu_table->metrics_table; in navi12_get_legacy_smu_metrics_data()
825 (SmuMetrics_NV12_t *)smu_table->metrics_table; in navi12_get_smu_metrics_data()
2729 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_legacy_t)); in navi10_get_legacy_gpu_metrics()
2921 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_t)); in navi10_get_gpu_metrics()
2999 memcpy(&metrics, smu_table->metrics_table, sizeof(SmuMetrics_NV12_legacy_t)); in navi12_get_legacy_gpu_metrics()
[all …]
Dvangogh_ppt.c233 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_legacy_t), GFP_KERNEL); in vangogh_tables_init()
237 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in vangogh_tables_init()
239 if (!smu_table->metrics_table) in vangogh_tables_init()
263 kfree(smu_table->metrics_table); in vangogh_tables_init()
273 SmuMetrics_legacy_t *metrics = (SmuMetrics_legacy_t *)smu_table->metrics_table; in vangogh_get_legacy_smu_metrics_data()
348 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in vangogh_get_smu_metrics_data()
Darcturus_ppt.c273 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in arcturus_tables_init()
274 if (!smu_table->metrics_table) in arcturus_tables_init()
281 kfree(smu_table->metrics_table); in arcturus_tables_init()
599 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in arcturus_get_smu_metrics_data()
Dsienna_cichlid_ppt.c514 smu_table->metrics_table = kzalloc(sizeof(SmuMetricsExternal_t), GFP_KERNEL); in sienna_cichlid_tables_init()
515 if (!smu_table->metrics_table) in sienna_cichlid_tables_init()
533 kfree(smu_table->metrics_table); in sienna_cichlid_tables_init()
542 (SmuMetricsExternal_t *)(smu_table->metrics_table); in sienna_cichlid_get_throttler_status_locked()
564 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics); in sienna_cichlid_get_smu_metrics_data()
566 &(((SmuMetricsExternal_t *)(smu_table->metrics_table))->SmuMetrics_V2); in sienna_cichlid_get_smu_metrics_data()
Dsmu_v11_0.c474 kfree(smu_table->metrics_table); in smu_v11_0_fini_smc_tables()
476 smu_table->metrics_table = NULL; in smu_v11_0_fini_smc_tables()
/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.c942 void *metrics_table, in smu_cmn_get_metrics_table_locked() argument
956 smu_table->metrics_table, in smu_cmn_get_metrics_table_locked()
965 if (metrics_table) in smu_cmn_get_metrics_table_locked()
966 memcpy(metrics_table, smu_table->metrics_table, table_size); in smu_cmn_get_metrics_table_locked()
972 void *metrics_table, in smu_cmn_get_metrics_table() argument
979 metrics_table, in smu_cmn_get_metrics_table()
Dsmu_cmn.h101 void *metrics_table,
105 void *metrics_table,
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c1355 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 …]
Dvega20_hwmgr.c2112 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 …]
Dvega12_hwmgr.h401 SmuMetrics_t metrics_table; member
Dvega20_hwmgr.h529 SmuMetrics_t metrics_table; member
/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dyellow_carp_ppt.c163 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in yellow_carp_init_smc_tables()
164 if (!smu_table->metrics_table) in yellow_carp_init_smc_tables()
182 kfree(smu_table->metrics_table); in yellow_carp_init_smc_tables()
196 kfree(smu_table->metrics_table); in yellow_carp_fini_smc_tables()
197 smu_table->metrics_table = NULL; in yellow_carp_fini_smc_tables()
350 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in yellow_carp_get_smu_metrics_data()
Daldebaran_ppt.c226 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init()
227 if (!smu_table->metrics_table) in aldebaran_tables_init()
234 kfree(smu_table->metrics_table); in aldebaran_tables_init()
567 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table; in aldebaran_get_smu_metrics_data()
1586 SmuMetrics_t *metrics = smu->smu_table.metrics_table; in aldebaran_get_unique_id()
Dsmu_v13_0.c433 kfree(smu_table->metrics_table); in smu_v13_0_fini_smc_tables()
435 smu_table->metrics_table = NULL; in smu_v13_0_fini_smc_tables()
/drivers/gpu/drm/amd/pm/swsmu/smu12/
Dsmu_v12_0.c189 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()
Drenoir_ppt.c163 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in renoir_init_smc_tables()
164 if (!smu_table->metrics_table) in renoir_init_smc_tables()
182 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()
/drivers/gpu/drm/amd/pm/inc/
Damdgpu_smu.h336 void *metrics_table; member