Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.c903 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()
Dsmu_cmn.h99 void *metrics_table,
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dcyan_skillfish_ppt.c97 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()
Dnavi10_ppt.c516 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 …]
Dvangogh_ppt.c247 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()
Darcturus_ppt.c271 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()
Dsienna_cichlid_ppt.c544 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()
Dsmu_v11_0.c478 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/
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
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_5_ppt.c140 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()
Dsmu_v13_0_4_ppt.c162 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()
Dyellow_carp_ppt.c159 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()
Dsmu_v13_0_0_ppt.c432 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()
Dsmu_v13_0_7_ppt.c486 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()
Daldebaran_ppt.c248 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()
Dsmu_v13_0.c554 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/
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.c172 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/
Damdgpu_smu.h334 void *metrics_table; member