Lines Matching refs:smu_dpm
344 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_allocate_dpm_context() local
346 if (smu_dpm->dpm_context) in vega20_allocate_dpm_context()
349 smu_dpm->dpm_context = kzalloc(sizeof(struct vega20_dpm_table), in vega20_allocate_dpm_context()
351 if (!smu_dpm->dpm_context) in vega20_allocate_dpm_context()
354 if (smu_dpm->golden_dpm_context) in vega20_allocate_dpm_context()
357 smu_dpm->golden_dpm_context = kzalloc(sizeof(struct vega20_dpm_table), in vega20_allocate_dpm_context()
359 if (!smu_dpm->golden_dpm_context) in vega20_allocate_dpm_context()
362 smu_dpm->dpm_context_size = sizeof(struct vega20_dpm_table); in vega20_allocate_dpm_context()
364 smu_dpm->dpm_current_power_state = kzalloc(sizeof(struct smu_power_state), in vega20_allocate_dpm_context()
366 if (!smu_dpm->dpm_current_power_state) in vega20_allocate_dpm_context()
369 smu_dpm->dpm_request_power_state = kzalloc(sizeof(struct smu_power_state), in vega20_allocate_dpm_context()
371 if (!smu_dpm->dpm_request_power_state) in vega20_allocate_dpm_context()
631 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in vega20_get_current_power_state()
715 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_set_default_dpm_table() local
719 dpm_table = smu_dpm->dpm_context; in vega20_set_default_dpm_table()
890 memcpy(smu_dpm->golden_dpm_context, dpm_table, in vega20_set_default_dpm_table()
898 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_populate_umd_state_clk() local
903 dpm_table = smu_dpm->dpm_context; in vega20_populate_umd_state_clk()
950 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_print_clk_levels() local
958 dpm_table = smu_dpm->dpm_context; in vega20_print_clk_levels()
1191 dpm_table = smu->smu_dpm.dpm_context; in vega20_upload_dpm_level()
1277 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_force_clk_levels() local
1280 if (smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) { in vega20_force_clk_levels()
1290 dpm_table = smu->smu_dpm.dpm_context; in vega20_force_clk_levels()
1449 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_get_clock_by_type_with_latency() local
1452 dpm_table = smu_dpm->dpm_context; in vega20_get_clock_by_type_with_latency()
1749 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_get_od_percentage() local
1756 dpm_table = smu_dpm->dpm_context; in vega20_get_od_percentage()
1757 golden_table = smu_dpm->golden_dpm_context; in vega20_get_od_percentage()
1989 struct vega20_dpm_table *dpm_table = (struct vega20_dpm_table *)smu->smu_dpm.dpm_context; in vega20_get_profiling_clk_mask()
1994 if (!smu->smu_dpm.dpm_context) in vega20_get_profiling_clk_mask()
2031 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in vega20_set_uclk_to_highest_dpm_level()
2062 struct vega20_dpm_table *dpm_table = smu->smu_dpm.dpm_context; in vega20_pre_display_config_changed()
2064 if (!smu->smu_dpm.dpm_context) in vega20_pre_display_config_changed()
2102 struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm); in vega20_apply_clocks_adjust_rules()
2250 struct vega20_dpm_table *dpm_table = smu->smu_dpm.dpm_context; in vega20_notify_smc_dispaly_config()
2342 (struct vega20_dpm_table *)smu->smu_dpm.dpm_context; in vega20_force_dpm_limit_value()
2393 (struct vega20_dpm_table *)smu->smu_dpm.dpm_context; in vega20_unforce_dpm_levels()
2540 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_set_od_percentage() local
2552 dpm_table = smu_dpm->dpm_context; in vega20_set_od_percentage()
2553 golden_table = smu_dpm->golden_dpm_context; in vega20_set_od_percentage()
2600 ret = smu_handle_task(smu, smu_dpm->dpm_level, in vega20_set_od_percentage()
2616 struct smu_dpm_context *smu_dpm = &smu->smu_dpm; in vega20_odn_edit_dpm_table() local
2626 dpm_table = smu_dpm->dpm_context; in vega20_odn_edit_dpm_table()
2831 ret = smu_handle_task(smu, smu_dpm->dpm_level, in vega20_odn_edit_dpm_table()