Home
last modified time | relevance | path

Searched refs:power_context (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dvangogh_ppt.c2330 struct smu_11_5_power_context *power_context = in vangogh_get_power_limit() local
2331 smu->smu_power.power_context; in vangogh_get_power_limit()
2359 power_context->current_fast_ppt_limit = in vangogh_get_power_limit()
2360 power_context->default_fast_ppt_limit = ppt_limit / 1000; in vangogh_get_power_limit()
2361 power_context->max_fast_ppt_limit = 30; in vangogh_get_power_limit()
2371 struct smu_11_5_power_context *power_context = in vangogh_get_ppt_limit() local
2372 smu->smu_power.power_context; in vangogh_get_ppt_limit()
2374 if (!power_context) in vangogh_get_ppt_limit()
2380 *ppt_limit = power_context->max_fast_ppt_limit; in vangogh_get_ppt_limit()
2383 *ppt_limit = power_context->current_fast_ppt_limit; in vangogh_get_ppt_limit()
[all …]
Dsmu_v11_0.c478 smu_power->power_context = kzalloc(size, GFP_KERNEL); in smu_v11_0_init_power()
479 if (!smu_power->power_context) in smu_v11_0_init_power()
490 kfree(smu_power->power_context); in smu_v11_0_fini_power()
491 smu_power->power_context = NULL; in smu_v11_0_fini_power()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu14/
Dsmu_v14_0.c532 if (smu_power->power_context || smu_power->power_context_size != 0) in smu_v14_0_init_power()
535 smu_power->power_context = kzalloc(sizeof(struct smu_14_0_dpm_context), in smu_v14_0_init_power()
537 if (!smu_power->power_context) in smu_v14_0_init_power()
548 if (!smu_power->power_context || smu_power->power_context_size == 0) in smu_v14_0_fini_power()
551 kfree(smu_power->power_context); in smu_v14_0_fini_power()
552 smu_power->power_context = NULL; in smu_v14_0_fini_power()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c549 if (smu_power->power_context || smu_power->power_context_size != 0) in smu_v13_0_init_power()
552 smu_power->power_context = kzalloc(sizeof(struct smu_13_0_power_context), in smu_v13_0_init_power()
554 if (!smu_power->power_context) in smu_v13_0_init_power()
565 if (!smu_power->power_context || smu_power->power_context_size == 0) in smu_v13_0_fini_power()
568 kfree(smu_power->power_context); in smu_v13_0_fini_power()
569 smu_power->power_context = NULL; in smu_v13_0_fini_power()
Dsmu_v13_0_6_ppt.c944 struct smu_13_0_power_context *power_context = smu_power->power_context; in smu_v13_0_6_get_throttler_status() local
947 throttler_status = atomic_read(&power_context->throttle_status); in smu_v13_0_6_get_throttler_status()
1535 struct smu_13_0_power_context *power_context = smu_power->power_context; in smu_v13_0_6_irq_process() local
1568 &power_context->throttle_status, in smu_v13_0_6_irq_process()
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/inc/
Damdgpu_smu.h409 void *power_context; member