Home
last modified time | relevance | path

Searched refs:smu_power (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c580 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_init_power() local
582 if (smu_power->power_context || smu_power->power_context_size != 0) in smu_v13_0_init_power()
585 smu_power->power_context = kzalloc(sizeof(struct smu_13_0_dpm_context), in smu_v13_0_init_power()
587 if (!smu_power->power_context) in smu_v13_0_init_power()
589 smu_power->power_context_size = sizeof(struct smu_13_0_dpm_context); in smu_v13_0_init_power()
596 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_fini_power() local
598 if (!smu_power->power_context || smu_power->power_context_size == 0) in smu_v13_0_fini_power()
601 kfree(smu_power->power_context); in smu_v13_0_fini_power()
602 smu_power->power_context = NULL; in smu_v13_0_fini_power()
603 smu_power->power_context_size = 0; in smu_v13_0_fini_power()
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c502 struct smu_power_context *smu_power = &smu->smu_power; in smu_v11_0_init_power() local
507 smu_power->power_context = kzalloc(size, GFP_KERNEL); in smu_v11_0_init_power()
508 if (!smu_power->power_context) in smu_v11_0_init_power()
510 smu_power->power_context_size = size; in smu_v11_0_init_power()
517 struct smu_power_context *smu_power = &smu->smu_power; in smu_v11_0_fini_power() local
519 kfree(smu_power->power_context); in smu_v11_0_fini_power()
520 smu_power->power_context = NULL; in smu_v11_0_fini_power()
521 smu_power->power_context_size = 0; in smu_v11_0_fini_power()
Dvangogh_ppt.c2230 smu->smu_power.power_context; in vangogh_get_power_limit()
2269 smu->smu_power.power_context; in vangogh_get_ppt_limit()
2298 smu->smu_power.power_context; in vangogh_set_power_limit()
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c201 struct smu_power_context *smu_power = &smu->smu_power; in smu_dpm_set_vcn_enable() local
202 struct smu_power_gate *power_gate = &smu_power->power_gate; in smu_dpm_set_vcn_enable()
221 struct smu_power_context *smu_power = &smu->smu_power; in smu_dpm_set_jpeg_enable() local
222 struct smu_power_gate *power_gate = &smu_power->power_gate; in smu_dpm_set_jpeg_enable()
648 struct smu_power_context *smu_power = &smu->smu_power; in smu_set_default_dpm_table() local
649 struct smu_power_gate *power_gate = &smu_power->power_gate; in smu_set_default_dpm_table()
1046 atomic_set(&smu->smu_power.power_gate.vcn_gated, 1); in smu_sw_init()
1047 atomic_set(&smu->smu_power.power_gate.jpeg_gated, 1); in smu_sw_init()
2488 *(uint32_t *)data = atomic_read(&smu->smu_power.power_gate.vcn_gated) ? 0: 1; in smu_read_sensor()
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/inc/
Damdgpu_smu.h497 struct smu_power_context smu_power; member