cac_leakage_table 446 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries = kzalloc(size, GFP_KERNEL); cac_leakage_table 447 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c if (!adev->pm.dpm.dyn_state.cac_leakage_table.entries) { cac_leakage_table 454 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc1 = cac_leakage_table 456 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc2 = cac_leakage_table 458 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc3 = cac_leakage_table 461 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc = cac_leakage_table 463 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].leakage = cac_leakage_table 469 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.count = cac_table->ucNumEntries; cac_leakage_table 727 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c kfree(dyn_state->cac_leakage_table.entries); cac_leakage_table 226 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h struct amdgpu_cac_leakage_table cac_leakage_table; cac_leakage_table 2637 drivers/gpu/drm/amd/amdgpu/si_dpm.c &adev->pm.dpm.dyn_state.cac_leakage_table; cac_leakage_table 4618 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (adev->pm.dpm.dyn_state.cac_leakage_table.entries) { cac_leakage_table 4627 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((u32)v_index < adev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4629 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[v_index].vddc; cac_leakage_table 4632 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[adev->pm.dpm.dyn_state.cac_leakage_table.count-1].vddc; cac_leakage_table 4642 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((u32)v_index < adev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4644 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[v_index].vddc; cac_leakage_table 4647 drivers/gpu/drm/amd/amdgpu/si_dpm.c adev->pm.dpm.dyn_state.cac_leakage_table.entries[adev->pm.dpm.dyn_state.cac_leakage_table.count-1].vddc; cac_leakage_table 4653 drivers/gpu/drm/amd/amdgpu/si_dpm.c if ((u32)voltage->index < adev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4654 drivers/gpu/drm/amd/amdgpu/si_dpm.c *std_voltage = adev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc; cac_leakage_table 1399 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c struct phm_cac_leakage_table *cac_leakage_table; cac_leakage_table 1408 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table = kzalloc(table_size, GFP_KERNEL); cac_leakage_table 1410 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c if (cac_leakage_table == NULL) cac_leakage_table 1413 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->count = (ULONG)table->ucNumEntries; cac_leakage_table 1415 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c for (i = 0; i < cac_leakage_table->count; i++) { cac_leakage_table 1418 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->entries[i].Vddc1 = le16_to_cpu(table->entries[i].usVddc1); cac_leakage_table 1419 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->entries[i].Vddc2 = le16_to_cpu(table->entries[i].usVddc2); cac_leakage_table 1420 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->entries[i].Vddc3 = le16_to_cpu(table->entries[i].usVddc3); cac_leakage_table 1422 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->entries[i].Vddc = le16_to_cpu(table->entries[i].usVddc); cac_leakage_table 1423 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c cac_leakage_table->entries[i].Leakage = le32_to_cpu(table->entries[i].ulLeakageValue); cac_leakage_table 1427 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c *ptable = cac_leakage_table; cac_leakage_table 1496 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c hwmgr->dyn_state.cac_leakage_table = NULL; cac_leakage_table 1503 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c &hwmgr->dyn_state.cac_leakage_table, pCAC_leakage_table); cac_leakage_table 1694 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c kfree(hwmgr->dyn_state.cac_leakage_table); cac_leakage_table 1695 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c hwmgr->dyn_state.cac_leakage_table = NULL; cac_leakage_table 676 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c hwmgr->dyn_state.cac_leakage_table; cac_leakage_table 2446 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c tmp = smu7_patch_cac_vddc(hwmgr, hwmgr->dyn_state.cac_leakage_table); cac_leakage_table 634 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h struct phm_cac_leakage_table *cac_leakage_table; cac_leakage_table 583 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.cac_leakage_table, cac_leakage_table 585 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count <= 8, cac_leakage_table 587 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count == hwmgr->dyn_state.vddc_dependency_on_sclk->count, cac_leakage_table 590 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c for (i = 0; (uint32_t) i < hwmgr->dyn_state.cac_leakage_table->count; i++) { cac_leakage_table 592 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c lo_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc1); cac_leakage_table 593 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c hi_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc2); cac_leakage_table 594 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c hi2_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc3); cac_leakage_table 596 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c lo_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc); cac_leakage_table 597 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c hi_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Leakage); cac_leakage_table 775 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if (NULL == hwmgr->dyn_state.cac_leakage_table) { cac_leakage_table 783 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if ((uint32_t)v_index < hwmgr->dyn_state.cac_leakage_table->count) { cac_leakage_table 784 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; cac_leakage_table 785 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); cac_leakage_table 788 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; cac_leakage_table 789 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); cac_leakage_table 799 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c if ((uint32_t)v_index < hwmgr->dyn_state.cac_leakage_table->count) { cac_leakage_table 800 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; cac_leakage_table 801 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; cac_leakage_table 804 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; cac_leakage_table 805 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); cac_leakage_table 396 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE(NULL != hwmgr->dyn_state.cac_leakage_table, cac_leakage_table 398 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count <= 8, cac_leakage_table 400 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c PP_ASSERT_WITH_CODE(hwmgr->dyn_state.cac_leakage_table->count == hwmgr->dyn_state.vddc_dependency_on_sclk->count, cac_leakage_table 404 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c for (i = 0; (uint32_t) i < hwmgr->dyn_state.cac_leakage_table->count; i++) { cac_leakage_table 405 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c lo_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc1); cac_leakage_table 406 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c hi_vid[i] = convert_to_vid(hwmgr->dyn_state.cac_leakage_table->entries[i].Vddc2); cac_leakage_table 544 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if (NULL == hwmgr->dyn_state.cac_leakage_table) { cac_leakage_table 557 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if ((uint32_t)v_index < hwmgr->dyn_state.cac_leakage_table->count) { cac_leakage_table 558 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; cac_leakage_table 559 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); cac_leakage_table 562 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; cac_leakage_table 563 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); cac_leakage_table 577 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c if ((uint32_t)v_index < hwmgr->dyn_state.cac_leakage_table->count) { cac_leakage_table 578 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; cac_leakage_table 579 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; cac_leakage_table 582 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *lo = hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; cac_leakage_table 583 drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); cac_leakage_table 283 drivers/gpu/drm/radeon/ci_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.entries == NULL) cac_leakage_table 285 drivers/gpu/drm/radeon/ci_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.count > 8) cac_leakage_table 287 drivers/gpu/drm/radeon/ci_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.count != cac_leakage_table 291 drivers/gpu/drm/radeon/ci_dpm.c for (i = 0; i < rdev->pm.dpm.dyn_state.cac_leakage_table.count; i++) { cac_leakage_table 293 drivers/gpu/drm/radeon/ci_dpm.c lo_vid[i] = ci_convert_to_vid(rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc1); cac_leakage_table 294 drivers/gpu/drm/radeon/ci_dpm.c hi_vid[i] = ci_convert_to_vid(rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc2); cac_leakage_table 295 drivers/gpu/drm/radeon/ci_dpm.c hi2_vid[i] = ci_convert_to_vid(rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc3); cac_leakage_table 297 drivers/gpu/drm/radeon/ci_dpm.c lo_vid[i] = ci_convert_to_vid(rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc); cac_leakage_table 298 drivers/gpu/drm/radeon/ci_dpm.c hi_vid[i] = ci_convert_to_vid((u16)rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].leakage); cac_leakage_table 2340 drivers/gpu/drm/radeon/ci_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.entries) { cac_leakage_table 2345 drivers/gpu/drm/radeon/ci_dpm.c if ((u32)v_index < rdev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 2348 drivers/gpu/drm/radeon/ci_dpm.c idx = rdev->pm.dpm.dyn_state.cac_leakage_table.count - 1; cac_leakage_table 2350 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; cac_leakage_table 2352 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; cac_leakage_table 2362 drivers/gpu/drm/radeon/ci_dpm.c if ((u32)v_index < rdev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 2365 drivers/gpu/drm/radeon/ci_dpm.c idx = rdev->pm.dpm.dyn_state.cac_leakage_table.count - 1; cac_leakage_table 2367 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; cac_leakage_table 2369 drivers/gpu/drm/radeon/ci_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; cac_leakage_table 3449 drivers/gpu/drm/radeon/ci_dpm.c &rdev->pm.dpm.dyn_state.cac_leakage_table; cac_leakage_table 5089 drivers/gpu/drm/radeon/ci_dpm.c &rdev->pm.dpm.dyn_state.cac_leakage_table); cac_leakage_table 1348 drivers/gpu/drm/radeon/ni_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.entries && cac_leakage_table 1349 drivers/gpu/drm/radeon/ni_dpm.c ((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count)) cac_leakage_table 1350 drivers/gpu/drm/radeon/ni_dpm.c *std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc; cac_leakage_table 3098 drivers/gpu/drm/radeon/ni_dpm.c &rdev->pm.dpm.dyn_state.cac_leakage_table; cac_leakage_table 1039 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries = kzalloc(size, GFP_KERNEL); cac_leakage_table 1040 drivers/gpu/drm/radeon/r600_dpm.c if (!rdev->pm.dpm.dyn_state.cac_leakage_table.entries) { cac_leakage_table 1047 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc1 = cac_leakage_table 1049 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc2 = cac_leakage_table 1051 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc3 = cac_leakage_table 1054 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc = cac_leakage_table 1056 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[i].leakage = cac_leakage_table 1062 drivers/gpu/drm/radeon/r600_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.count = cac_table->ucNumEntries; cac_leakage_table 1306 drivers/gpu/drm/radeon/r600_dpm.c kfree(dyn_state->cac_leakage_table.entries); cac_leakage_table 1487 drivers/gpu/drm/radeon/radeon.h struct radeon_cac_leakage_table cac_leakage_table; cac_leakage_table 2539 drivers/gpu/drm/radeon/si_dpm.c &rdev->pm.dpm.dyn_state.cac_leakage_table; cac_leakage_table 4156 drivers/gpu/drm/radeon/si_dpm.c if (rdev->pm.dpm.dyn_state.cac_leakage_table.entries) { cac_leakage_table 4165 drivers/gpu/drm/radeon/si_dpm.c if ((u32)v_index < rdev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4167 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[v_index].vddc; cac_leakage_table 4170 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[rdev->pm.dpm.dyn_state.cac_leakage_table.count-1].vddc; cac_leakage_table 4180 drivers/gpu/drm/radeon/si_dpm.c if ((u32)v_index < rdev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4182 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[v_index].vddc; cac_leakage_table 4185 drivers/gpu/drm/radeon/si_dpm.c rdev->pm.dpm.dyn_state.cac_leakage_table.entries[rdev->pm.dpm.dyn_state.cac_leakage_table.count-1].vddc; cac_leakage_table 4191 drivers/gpu/drm/radeon/si_dpm.c if ((u32)voltage->index < rdev->pm.dpm.dyn_state.cac_leakage_table.count) cac_leakage_table 4192 drivers/gpu/drm/radeon/si_dpm.c *std_voltage = rdev->pm.dpm.dyn_state.cac_leakage_table.entries[voltage->index].vddc;