smu_table 244 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c clock_limit = smu->smu_table.boot_values.uclk; smu_table 248 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c clock_limit = smu->smu_table.boot_values.gfxclk; smu_table 251 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c clock_limit = smu->smu_table.boot_values.socclk; smu_table 436 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 438 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table *table = NULL; smu_table 442 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c if (!table_data || table_id >= smu_table->table_count || table_id < 0) smu_table 445 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c table = &smu_table->tables[table_index]; smu_table 497 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 499 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c if (!smu_table->power_play_table && !smu_table->hardcode_pptable) smu_table 502 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c if (smu_table->hardcode_pptable) smu_table 503 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c *table = smu_table->hardcode_pptable; smu_table 505 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c *table = smu_table->power_play_table; smu_table 507 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c return smu_table->power_play_table_size; smu_table 512 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 524 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c if (!smu_table->hardcode_pptable) smu_table 525 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c smu_table->hardcode_pptable = kzalloc(size, GFP_KERNEL); smu_table 526 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c if (!smu_table->hardcode_pptable) { smu_table 531 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c memcpy(smu_table->hardcode_pptable, buf, size); smu_table 532 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c smu_table->power_play_table = smu_table->hardcode_pptable; smu_table 533 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c smu_table->power_play_table_size = size; smu_table 921 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 922 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table *tables = smu_table->tables; smu_table 923 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c uint32_t table_count = smu_table->table_count; smu_table 959 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 960 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table *tables = smu_table->tables; smu_table 961 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c uint32_t table_count = smu_table->table_count; smu_table 1180 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 1181 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table *memory_pool = &smu_table->memory_pool; smu_table 1214 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 1215 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table *memory_pool = &smu_table->memory_pool; smu_table 1225 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c memset(memory_pool, 0, sizeof(struct smu_table)); smu_table 1299 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c struct smu_table_context *table_context = &smu->smu_table; smu_table 284 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c static int arcturus_tables_init(struct smu_context *smu, struct smu_table *tables) smu_table 286 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 297 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); smu_table 298 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c if (!smu_table->metrics_table) smu_table 300 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c smu_table->metrics_time = 0; smu_table 424 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; smu_table 439 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.gfxclk / 100; smu_table 454 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.uclk / 100; smu_table 469 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.fclk / 100; smu_table 487 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 505 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 886 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 910 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *smu_table= &smu->smu_table; smu_table 914 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c if (!smu_table->metrics_time || smu_table 915 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c time_after(jiffies, smu_table->metrics_time + HZ / 1000)) { smu_table 917 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c (void *)smu_table->metrics_table, false); smu_table 923 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c smu_table->metrics_time = jiffies; smu_table 926 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c memcpy(metrics_table, smu_table->metrics_table, sizeof(SmuMetrics_t)); smu_table 1017 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1077 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 1337 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 1367 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c asic_default_power_limit *= (100 + smu->smu_table.TDPODLimit); smu_table 1462 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1944 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 1947 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c smu_table->table_count = TABLE_COUNT; smu_table 261 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h struct smu_table *tables; smu_table 263 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h struct smu_table memory_pool; smu_table 351 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h struct smu_table_context smu_table; smu_table 447 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h int (*tables_init)(struct smu_context *smu, struct smu_table *tables); smu_table 400 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 496 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 518 drivers/gpu/drm/amd/powerplay/navi10_ppt.c static int navi10_tables_init(struct smu_context *smu, struct smu_table *tables) smu_table 520 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 536 drivers/gpu/drm/amd/powerplay/navi10_ppt.c smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); smu_table 537 drivers/gpu/drm/amd/powerplay/navi10_ppt.c if (!smu_table->metrics_table) smu_table 539 drivers/gpu/drm/amd/powerplay/navi10_ppt.c smu_table->metrics_time = 0; smu_table 547 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *smu_table= &smu->smu_table; smu_table 551 drivers/gpu/drm/amd/powerplay/navi10_ppt.c if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) { smu_table 553 drivers/gpu/drm/amd/powerplay/navi10_ppt.c (void *)smu_table->metrics_table, false); smu_table 559 drivers/gpu/drm/amd/powerplay/navi10_ppt.c smu_table->metrics_time = jiffies; smu_table 562 drivers/gpu/drm/amd/powerplay/navi10_ppt.c memcpy(metrics_table, smu_table->metrics_table, sizeof(SmuMetrics_t)); smu_table 588 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 672 drivers/gpu/drm/amd/powerplay/navi10_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 1024 drivers/gpu/drm/amd/powerplay/navi10_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 1392 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1432 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1517 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1535 drivers/gpu/drm/amd/powerplay/navi10_ppt.c smu->smu_table.max_sustainable_clocks; smu_table 1557 drivers/gpu/drm/amd/powerplay/navi10_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 1587 drivers/gpu/drm/amd/powerplay/navi10_ppt.c asic_default_power_limit *= (100 + smu->smu_table.TDPODLimit); smu_table 1645 drivers/gpu/drm/amd/powerplay/navi10_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 1648 drivers/gpu/drm/amd/powerplay/navi10_ppt.c smu_table->table_count = TABLE_COUNT; smu_table 141 drivers/gpu/drm/amd/powerplay/renoir_ppt.c static int renoir_tables_init(struct smu_context *smu, struct smu_table *tables) smu_table 143 drivers/gpu/drm/amd/powerplay/renoir_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 152 drivers/gpu/drm/amd/powerplay/renoir_ppt.c smu_table->clocks_table = kzalloc(sizeof(DpmClocks_t), GFP_KERNEL); smu_table 153 drivers/gpu/drm/amd/powerplay/renoir_ppt.c if (!smu_table->clocks_table) smu_table 166 drivers/gpu/drm/amd/powerplay/renoir_ppt.c DpmClocks_t *table = smu->smu_table.clocks_table; smu_table 185 drivers/gpu/drm/amd/powerplay/renoir_ppt.c DpmClocks_t *clk_table = smu->smu_table.clocks_table; smu_table 268 drivers/gpu/drm/amd/powerplay/renoir_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 272 drivers/gpu/drm/amd/powerplay/renoir_ppt.c smu_table->table_count = TABLE_COUNT; smu_table 371 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (version_major == 2 && smu->smu_table.boot_values.pp_table_id > 0) { smu_table 378 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.pp_table_id); smu_table 398 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (!smu->smu_table.power_play_table) smu_table 399 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.power_play_table = table; smu_table 400 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (!smu->smu_table.power_play_table_size) smu_table 401 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.power_play_table_size = size; smu_table 438 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 439 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *tables = NULL; smu_table 442 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (smu_table->tables || smu_table->table_count == 0) smu_table 445 drivers/gpu/drm/amd/powerplay/smu_v11_0.c tables = kcalloc(SMU_TABLE_COUNT, sizeof(struct smu_table), smu_table 450 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_table->tables = tables; smu_table 465 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 468 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (!smu_table->tables || smu_table->table_count == 0) smu_table 471 drivers/gpu/drm/amd/powerplay/smu_v11_0.c kfree(smu_table->tables); smu_table 472 drivers/gpu/drm/amd/powerplay/smu_v11_0.c kfree(smu_table->metrics_table); smu_table 473 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_table->tables = NULL; smu_table 474 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_table->table_count = 0; smu_table 475 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_table->metrics_table = NULL; smu_table 476 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_table->metrics_time = 0; smu_table 545 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.revision = v_3_1->firmware_revision; smu_table 546 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.gfxclk = v_3_1->bootup_sclk_in10khz; smu_table 547 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.uclk = v_3_1->bootup_mclk_in10khz; smu_table 548 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.socclk = 0; smu_table 549 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.dcefclk = 0; smu_table 550 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vddc = v_3_1->bootup_vddc_mv; smu_table 551 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vddci = v_3_1->bootup_vddci_mv; smu_table 552 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.mvddc = v_3_1->bootup_mvddc_mv; smu_table 553 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vdd_gfx = v_3_1->bootup_vddgfx_mv; smu_table 554 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.cooling_id = v_3_1->coolingsolution_id; smu_table 555 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.pp_table_id = 0; smu_table 560 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.revision = v_3_3->firmware_revision; smu_table 561 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.gfxclk = v_3_3->bootup_sclk_in10khz; smu_table 562 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.uclk = v_3_3->bootup_mclk_in10khz; smu_table 563 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.socclk = 0; smu_table 564 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.dcefclk = 0; smu_table 565 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vddc = v_3_3->bootup_vddc_mv; smu_table 566 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vddci = v_3_3->bootup_vddci_mv; smu_table 567 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.mvddc = v_3_3->bootup_mvddc_mv; smu_table 568 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vdd_gfx = v_3_3->bootup_vddgfx_mv; smu_table 569 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.cooling_id = v_3_3->coolingsolution_id; smu_table 570 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.pp_table_id = v_3_3->pplib_pptable_id; smu_table 573 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.format_revision = header->format_revision; smu_table 574 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.content_revision = header->content_revision; smu_table 597 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.socclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 611 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.dcefclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 625 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.eclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 639 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.vclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 653 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.dclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 655 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if ((smu->smu_table.boot_values.format_revision == 3) && smu_table 656 drivers/gpu/drm/amd/powerplay/smu_v11_0.c (smu->smu_table.boot_values.content_revision >= 2)) { smu_table 670 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.boot_values.fclk = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; smu_table 678 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 679 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *memory_pool = &smu_table->memory_pool; smu_table 734 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *table_context = &smu->smu_table; smu_table 735 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *table = &table_context->tables[SMU_TABLE_PPTABLE]; smu_table 765 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *table_context = &smu->smu_table; smu_table 777 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 778 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *table = NULL; smu_table 780 drivers/gpu/drm/amd/powerplay/smu_v11_0.c table = &smu_table->tables[SMU_TABLE_WATERMARKS]; smu_table 805 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *table_context = &smu->smu_table; smu_table 819 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *tool_table = &smu->smu_table.tables[SMU_TABLE_PMSTATUSLOG]; smu_table 991 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (!smu->smu_table.max_sustainable_clocks) smu_table 995 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_sustainable_clocks = smu->smu_table.max_sustainable_clocks; smu_table 997 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu->smu_table.max_sustainable_clocks = (void *)max_sustainable_clocks; smu_table 999 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_sustainable_clocks->uclock = smu->smu_table.boot_values.uclk / 100; smu_table 1000 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_sustainable_clocks->soc_clock = smu->smu_table.boot_values.socclk / 100; smu_table 1001 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_sustainable_clocks->dcef_clock = smu->smu_table.boot_values.dcefclk / 100; smu_table 1192 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (smu->smu_table.thermal_controller_type) { smu_table 1341 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table *watermarks = &smu->smu_table.tables[SMU_TABLE_WATERMARKS]; smu_table 1601 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct smu_table_context *table_context = &smu->smu_table; smu_table 275 drivers/gpu/drm/amd/powerplay/smu_v12_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 276 drivers/gpu/drm/amd/powerplay/smu_v12_0.c struct smu_table *tables = NULL; smu_table 278 drivers/gpu/drm/amd/powerplay/smu_v12_0.c if (smu_table->tables || smu_table->table_count == 0) smu_table 281 drivers/gpu/drm/amd/powerplay/smu_v12_0.c tables = kcalloc(SMU_TABLE_COUNT, sizeof(struct smu_table), smu_table 286 drivers/gpu/drm/amd/powerplay/smu_v12_0.c smu_table->tables = tables; smu_table 293 drivers/gpu/drm/amd/powerplay/smu_v12_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 295 drivers/gpu/drm/amd/powerplay/smu_v12_0.c if (!smu_table->tables || smu_table->table_count == 0) smu_table 298 drivers/gpu/drm/amd/powerplay/smu_v12_0.c kfree(smu_table->clocks_table); smu_table 299 drivers/gpu/drm/amd/powerplay/smu_v12_0.c kfree(smu_table->tables); smu_table 301 drivers/gpu/drm/amd/powerplay/smu_v12_0.c smu_table->clocks_table = NULL; smu_table 302 drivers/gpu/drm/amd/powerplay/smu_v12_0.c smu_table->tables = NULL; smu_table 309 drivers/gpu/drm/amd/powerplay/smu_v12_0.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 310 drivers/gpu/drm/amd/powerplay/smu_v12_0.c struct smu_table *table = NULL; smu_table 312 drivers/gpu/drm/amd/powerplay/smu_v12_0.c table = &smu_table->tables[SMU_TABLE_DPMCLOCKS]; smu_table 319 drivers/gpu/drm/amd/powerplay/smu_v12_0.c return smu_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, smu_table->clocks_table, false); smu_table 316 drivers/gpu/drm/amd/powerplay/vega20_ppt.c static int vega20_tables_init(struct smu_context *smu, struct smu_table *tables) smu_table 318 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 334 drivers/gpu/drm/amd/powerplay/vega20_ppt.c smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); smu_table 335 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (!smu_table->metrics_table) smu_table 337 drivers/gpu/drm/amd/powerplay/vega20_ppt.c smu_table->metrics_time = 0; smu_table 380 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 456 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 474 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 566 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 733 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.socclk / 100; smu_table 749 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.gfxclk / 100; smu_table 765 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.uclk / 100; smu_table 780 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.eclk / 100; smu_table 795 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.vclk / 100; smu_table 810 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.dclk / 100; smu_table 826 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.dcefclk / 100; smu_table 949 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1503 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 1691 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *smu_table= &smu->smu_table; smu_table 1695 drivers/gpu/drm/amd/powerplay/vega20_ppt.c if (!smu_table->metrics_time || time_after(jiffies, smu_table->metrics_time + HZ / 1000)) { smu_table 1697 drivers/gpu/drm/amd/powerplay/vega20_ppt.c (void *)smu_table->metrics_table, false); smu_table 1703 drivers/gpu/drm/amd/powerplay/vega20_ppt.c smu_table->metrics_time = jiffies; smu_table 1706 drivers/gpu/drm/amd/powerplay/vega20_ppt.c memcpy(metrics_table, smu_table->metrics_table, sizeof(SmuMetrics_t)); smu_table 1715 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 2438 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 2515 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 2600 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.gfxclk / 100; smu_table 2616 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 2822 drivers/gpu/drm/amd/powerplay/vega20_ppt.c single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.gfxclk / 100; smu_table 2878 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 2909 drivers/gpu/drm/amd/powerplay/vega20_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 3023 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 3123 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *table_context = &smu->smu_table; smu_table 3125 drivers/gpu/drm/amd/powerplay/vega20_ppt.c PPTable_t *pptable = smu->smu_table.driver_pptable; smu_table 3194 drivers/gpu/drm/amd/powerplay/vega20_ppt.c struct smu_table_context *smu_table = &smu->smu_table; smu_table 3197 drivers/gpu/drm/amd/powerplay/vega20_ppt.c smu_table->table_count = TABLE_COUNT;