Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/
H A Dsmu_v14_0.c530 struct smu_power_context *smu_power = &smu->smu_power; in smu_v14_0_init_power() local
532 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()
539 smu_power->power_context_size = sizeof(struct smu_14_0_dpm_context); in smu_v14_0_init_power()
546 struct smu_power_context *smu_power = &smu->smu_power; in smu_v14_0_fini_power() local
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()
553 smu_power->power_context_size = 0; in smu_v14_0_fini_power()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0.c547 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_init_power() local
549 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()
556 smu_power->power_context_size = sizeof(struct smu_13_0_power_context); in smu_v13_0_init_power()
563 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_fini_power() local
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()
570 smu_power->power_context_size = 0; in smu_v13_0_fini_power()
H A Dsmu_v13_0_6_ppt.c943 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_6_get_throttler_status() local
944 struct smu_13_0_power_context *power_context = smu_power->power_context; in smu_v13_0_6_get_throttler_status()
1534 struct smu_power_context *smu_power = &smu->smu_power; in smu_v13_0_6_irq_process() local
1535 struct smu_13_0_power_context *power_context = smu_power->power_context; in smu_v13_0_6_irq_process()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dsmu_v11_0.c472 struct smu_power_context *smu_power = &smu->smu_power; in smu_v11_0_init_power() local
478 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()
481 smu_power->power_context_size = size; in smu_v11_0_init_power()
488 struct smu_power_context *smu_power = &smu->smu_power; in smu_v11_0_fini_power() local
490 kfree(smu_power->power_context); in smu_v11_0_fini_power()
491 smu_power->power_context = NULL; in smu_v11_0_fini_power()
492 smu_power->power_context_size = 0; in smu_v11_0_fini_power()