max_clocks 867 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c struct pp_smu *pp, struct pp_smu_nv_clock_table *max_clocks) max_clocks 879 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c if (!smu->funcs->get_max_sustainable_clocks_by_dc(smu, max_clocks)) max_clocks 3094 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct pp_smu_nv_clock_table max_clocks) max_clocks 3100 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].dcfclk_mhz > (max_clocks.dcfClockInKhz / 1000)) max_clocks 3101 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.dcfClockInKhz != 0) max_clocks 3102 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].dcfclk_mhz = (max_clocks.dcfClockInKhz / 1000); max_clocks 3104 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].dram_speed_mts > (max_clocks.uClockInKhz / 1000) * 16) max_clocks 3105 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.uClockInKhz != 0) max_clocks 3106 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].dram_speed_mts = (max_clocks.uClockInKhz / 1000) * 16; max_clocks 3108 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].fabricclk_mhz > (max_clocks.fabricClockInKhz / 1000)) max_clocks 3109 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.fabricClockInKhz != 0) max_clocks 3110 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].fabricclk_mhz = (max_clocks.fabricClockInKhz / 1000); max_clocks 3112 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].dispclk_mhz > (max_clocks.displayClockInKhz / 1000)) max_clocks 3113 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.displayClockInKhz != 0) max_clocks 3114 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].dispclk_mhz = (max_clocks.displayClockInKhz / 1000); max_clocks 3116 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].dppclk_mhz > (max_clocks.dppClockInKhz / 1000)) max_clocks 3117 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.dppClockInKhz != 0) max_clocks 3118 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].dppclk_mhz = (max_clocks.dppClockInKhz / 1000); max_clocks 3120 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].phyclk_mhz > (max_clocks.phyClockInKhz / 1000)) max_clocks 3121 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.phyClockInKhz != 0) max_clocks 3122 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].phyclk_mhz = (max_clocks.phyClockInKhz / 1000); max_clocks 3124 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].socclk_mhz > (max_clocks.socClockInKhz / 1000)) max_clocks 3125 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.socClockInKhz != 0) max_clocks 3126 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].socclk_mhz = (max_clocks.socClockInKhz / 1000); max_clocks 3128 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if ((bb->clock_limits[i].dscclk_mhz > (max_clocks.dscClockInKhz / 1000)) max_clocks 3129 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c && max_clocks.dscClockInKhz != 0) max_clocks 3130 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c bb->clock_limits[i].dscclk_mhz = (max_clocks.dscClockInKhz / 1000); max_clocks 3160 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct pp_smu_nv_clock_table *max_clocks, unsigned int *uclk_states, unsigned int num_states) max_clocks 3190 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].socclk_mhz = (calculated_states[i].fabricclk_mhz > max_clocks->socClockInKhz / 1000) ? max_clocks 3191 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c max_clocks->socClockInKhz / 1000 : calculated_states[i].fabricclk_mhz; max_clocks 3193 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].dcfclk_mhz = (calculated_states[i].fabricclk_mhz > max_clocks->dcfClockInKhz / 1000) ? max_clocks 3194 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c max_clocks->dcfClockInKhz / 1000 : calculated_states[i].fabricclk_mhz; max_clocks 3196 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].dispclk_mhz = max_clocks->displayClockInKhz / 1000; max_clocks 3197 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].dppclk_mhz = max_clocks->displayClockInKhz / 1000; max_clocks 3198 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].dscclk_mhz = max_clocks->displayClockInKhz / (1000 * 3); max_clocks 3200 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[i].phyclk_mhz = max_clocks->phyClockInKhz / 1000; max_clocks 3205 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[num_calculated_states - 1].socclk_mhz = max_clocks->socClockInKhz / 1000; max_clocks 3206 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[num_calculated_states - 1].fabricclk_mhz = max_clocks->socClockInKhz / 1000; max_clocks 3207 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c calculated_states[num_calculated_states - 1].dcfclk_mhz = max_clocks->dcfClockInKhz / 1000; max_clocks 3394 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct pp_smu_nv_clock_table max_clocks = {0}; max_clocks 3410 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c (&pool->base.pp_smu->nv_funcs.pp_smu, &max_clocks); max_clocks 3413 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (max_clocks.dcfClockInKhz >= max_clocks.socClockInKhz) max_clocks 3414 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c max_clocks.dcfClockInKhz = max_clocks.socClockInKhz - 1000; max_clocks 3419 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c update_bounding_box(dc, loaded_bb, &max_clocks, uclk_states, num_states); max_clocks 3421 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c cap_soc_clocks(loaded_bb, max_clocks); max_clocks 142 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct pp_smu_nv_clock_table max_clocks); max_clocks 231 drivers/gpu/drm/amd/display/dc/dm_pp_smu.h struct pp_smu_nv_clock_table *max_clocks); max_clocks 537 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h int (*get_max_sustainable_clocks_by_dc)(struct smu_context *smu, struct pp_smu_nv_clock_table *max_clocks); max_clocks 753 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_get_max_sustainable_clocks_by_dc(smu, max_clocks) \ max_clocks 754 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->funcs->get_max_sustainable_clocks_by_dc ? (smu)->funcs->get_max_sustainable_clocks_by_dc((smu), (max_clocks)) : 0) max_clocks 1599 drivers/gpu/drm/amd/powerplay/smu_v11_0.c struct pp_smu_nv_clock_table *max_clocks) max_clocks 1604 drivers/gpu/drm/amd/powerplay/smu_v11_0.c if (!max_clocks || !table_context->max_sustainable_clocks) max_clocks 1609 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->dcfClockInKhz = max_clocks 1611 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->displayClockInKhz = max_clocks 1613 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->phyClockInKhz = max_clocks 1615 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->pixelClockInKhz = max_clocks 1617 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->uClockInKhz = max_clocks 1619 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->socClockInKhz = max_clocks 1621 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->dscClockInKhz = 0; max_clocks 1622 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->dppClockInKhz = 0; max_clocks 1623 drivers/gpu/drm/amd/powerplay/smu_v11_0.c max_clocks->fabricClockInKhz = 0;