| /linux-6.15/drivers/gpu/drm/amd/display/dc/dml2/ |
| H A D | dml2_policy.c | 96 table->state_array[i] = table->state_array[i - 1]; in insert_entry_into_table_sorted() 101 table->state_array[index] = *entry; in insert_entry_into_table_sorted() 117 table->state_array[i] = table->state_array[i + 1]; in remove_entry_from_table_at_index() 165 s->entry = p->in_states->state_array[0]; in dml2_policy_build_synthetic_soc_states() 235 … if (p->in_states->state_array[j].dram_speed_mts >= p->out_states->state_array[i].dram_speed_mts) { in dml2_policy_build_synthetic_soc_states() 236 p->out_states->state_array[i].dram_speed_mts = p->in_states->state_array[j].dram_speed_mts; in dml2_policy_build_synthetic_soc_states() 246 if (p->in_states->state_array[j].fabricclk_mhz >= p->out_states->state_array[i].fabricclk_mhz) { in dml2_policy_build_synthetic_soc_states() 247 p->out_states->state_array[i].fabricclk_mhz = p->in_states->state_array[j].fabricclk_mhz; in dml2_policy_build_synthetic_soc_states() 267 if (p->out_states->state_array[i].dcfclk_mhz == p->out_states->state_array[i + 1].dcfclk_mhz && in dml2_policy_build_synthetic_soc_states() 268 p->out_states->state_array[i].fabricclk_mhz == p->out_states->state_array[i + 1].fabricclk_mhz && in dml2_policy_build_synthetic_soc_states() [all …]
|
| H A D | dml2_translation_helper.c | 361 p->in_states->state_array[0].phyclk_mhz = 810; in dml2_init_soc_states() 531 p->in_states->state_array[i].fabricclk_mhz = in dml2_init_soc_states() 541 p->in_states->state_array[i].socclk_mhz = in dml2_init_soc_states() 547 p->in_states->state_array[i].dtbclk_mhz = in dml2_init_soc_states() 552 p->in_states->state_array[i].dispclk_mhz = in dml2_init_soc_states() 554 p->in_states->state_array[i].dppclk_mhz = in dml2_init_soc_states() 586 p->out_states->state_array[i] = p->in_states->state_array[0]; in dml2_init_soc_states() 598 p->out_states->state_array[i].dram_speed_mts = p->in_states->state_array[i].dram_speed_mts; in dml2_init_soc_states() 599 p->out_states->state_array[i].fabricclk_mhz = p->in_states->state_array[i].fabricclk_mhz; in dml2_init_soc_states() 600 p->out_states->state_array[i].socclk_mhz = p->in_states->state_array[i].socclk_mhz; in dml2_init_soc_states() [all …]
|
| H A D | dml2_wrapper.c | 263 …s->uclk_change_latencies[i] = dml2->v20.dml_core_ctx.states.state_array[i].dram_clock_change_laten… in calculate_lowest_supported_state_for_temp_read() 292 …dml2->v20.dml_core_ctx.states.state_array[i].dram_clock_change_latency_us = s->uclk_change_latenci… in calculate_lowest_supported_state_for_temp_read() 592 …out_clks.dcfclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dc… in dml2_validate_and_build_resource() 593 …out_clks.fclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].fabr… in dml2_validate_and_build_resource() 594 …out_clks.uclk_mts = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dram… in dml2_validate_and_build_resource() 595 …out_clks.phyclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].ph… in dml2_validate_and_build_resource() 596 …out_clks.socclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].so… in dml2_validate_and_build_resource() 650 …out_clks.dcfclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dc… in dml2_validate_and_build_resource() 652 …out_clks.uclk_mts = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dram… in dml2_validate_and_build_resource() 653 …out_clks.phyclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].ph… in dml2_validate_and_build_resource() [all …]
|
| H A D | dml2_utils.c | 364 …context->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz = in_ctx->v20.dml_core_ctx.states.state_array[… in dml2_calculate_rq_and_dlg_params() 366 …context->bw_ctx.bw.dcn.clk.max_supported_dispclk_khz = in_ctx->v20.dml_core_ctx.states.state_array… in dml2_calculate_rq_and_dlg_params()
|
| H A D | display_mode_core_structs.h | 1269 …struct soc_state_bounding_box_st state_array[__DML_MAX_STATE_ARRAY_SIZE__]; /// <brief fixed size … member
|
| H A D | display_mode_core.c | 10046 return (states->state_array[state_idx]); in dml_get_soc_state_bounding_box()
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | trinity_dpm.c | 1688 struct _StateArray *state_array; in trinity_parse_power_table() local 1703 state_array = (struct _StateArray *) in trinity_parse_power_table() 1713 rdev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in trinity_parse_power_table() 1718 power_state_offset = (u8 *)state_array->states; in trinity_parse_power_table() 1719 for (i = 0; i < state_array->ucNumEntries; i++) { in trinity_parse_power_table() 1756 rdev->pm.dpm.num_ps = state_array->ucNumEntries; in trinity_parse_power_table()
|
| H A D | sumo_dpm.c | 1457 struct _StateArray *state_array; in sumo_parse_power_table() local 1472 state_array = (struct _StateArray *) in sumo_parse_power_table() 1482 rdev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in sumo_parse_power_table() 1487 power_state_offset = (u8 *)state_array->states; in sumo_parse_power_table() 1488 for (i = 0; i < state_array->ucNumEntries; i++) { in sumo_parse_power_table() 1524 rdev->pm.dpm.num_ps = state_array->ucNumEntries; in sumo_parse_power_table()
|
| H A D | kv_dpm.c | 2435 struct _StateArray *state_array; in kv_parse_power_table() local 2450 state_array = (struct _StateArray *) in kv_parse_power_table() 2460 rdev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in kv_parse_power_table() 2465 power_state_offset = (u8 *)state_array->states; in kv_parse_power_table() 2466 for (i = 0; i < state_array->ucNumEntries; i++) { in kv_parse_power_table() 2501 rdev->pm.dpm.num_ps = state_array->ucNumEntries; in kv_parse_power_table()
|
| H A D | radeon_atombios.c | 2670 struct _StateArray *state_array; in radeon_atombios_parse_power_table_6() local 2686 state_array = (struct _StateArray *) in radeon_atombios_parse_power_table_6() 2695 if (state_array->ucNumEntries == 0) in radeon_atombios_parse_power_table_6() 2697 rdev->pm.power_state = kcalloc(state_array->ucNumEntries, in radeon_atombios_parse_power_table_6() 2702 power_state_offset = (u8 *)state_array->states; in radeon_atombios_parse_power_table_6() 2703 for (i = 0; i < state_array->ucNumEntries; i++) { in radeon_atombios_parse_power_table_6()
|
| H A D | si_dpm.c | 6751 struct _StateArray *state_array; in si_parse_power_table() local 6766 state_array = (struct _StateArray *) in si_parse_power_table() 6776 rdev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in si_parse_power_table() 6781 power_state_offset = (u8 *)state_array->states; in si_parse_power_table() 6782 for (i = 0; i < state_array->ucNumEntries; i++) { in si_parse_power_table() 6817 rdev->pm.dpm.num_ps = state_array->ucNumEntries; in si_parse_power_table()
|
| H A D | ci_dpm.c | 5492 struct _StateArray *state_array; in ci_parse_power_table() local 5508 state_array = (struct _StateArray *) in ci_parse_power_table() 5518 rdev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in ci_parse_power_table() 5523 power_state_offset = (u8 *)state_array->states; in ci_parse_power_table() 5525 for (i = 0; i < state_array->ucNumEntries; i++) { in ci_parse_power_table()
|
| /linux-6.15/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | kv_dpm.c | 2700 struct _StateArray *state_array; in kv_parse_power_table() local 2717 state_array = (struct _StateArray *) in kv_parse_power_table() 2727 adev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in kv_parse_power_table() 2732 power_state_offset = (u8 *)state_array->states; in kv_parse_power_table() 2733 for (i = 0; i < state_array->ucNumEntries; i++) { in kv_parse_power_table() 2764 adev->pm.dpm.num_ps = state_array->ucNumEntries; in kv_parse_power_table()
|
| H A D | si_dpm.c | 7265 struct _StateArray *state_array; in si_parse_power_table() local 7282 state_array = (struct _StateArray *) in si_parse_power_table() 7292 adev->pm.dpm.ps = kcalloc(state_array->ucNumEntries, in si_parse_power_table() 7297 power_state_offset = (u8 *)state_array->states; in si_parse_power_table() 7298 for (adev->pm.dpm.num_ps = 0, i = 0; i < state_array->ucNumEntries; i++) { in si_parse_power_table()
|