Home
last modified time | relevance | path

Searched refs:dmcu (Results 1 – 25 of 28) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/dce/
Ddce_dmcu.c37 #define TO_DCE_DMCU(dmcu)\ argument
38 container_of(dmcu, struct dce_dmcu, base)
62 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument
68 bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument
73 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram()
96 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, uint32_t *psr_state) in dce_get_dmcu_psr_state() argument
98 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state()
119 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument
121 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable()
145 dce_get_dmcu_psr_state(dmcu, &psr_state); in dce_dmcu_set_psr_enable()
[all …]
Ddce_dmcu.h181 struct dmcu base;
252 struct dmcu *dce_dmcu_create(
258 struct dmcu *dcn10_dmcu_create(
265 struct dmcu *dcn20_dmcu_create(
272 void dce_dmcu_destroy(struct dmcu **dmcu);
Ddce_clk_mgr.c254 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; in dce_set_clock() local
282 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dce_set_clock()
283 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock()
294 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dce112_set_clock() local
330 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock()
332 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock()
/drivers/gpu/drm/amd/display/dc/inc/hw/
Ddmcu.h48 struct dmcu { struct
58 bool (*dmcu_init)(struct dmcu *dmcu); argument
59 bool (*load_iram)(struct dmcu *dmcu,
63 void (*set_psr_enable)(struct dmcu *dmcu, bool enable, bool wait);
64 bool (*setup_psr)(struct dmcu *dmcu,
67 void (*get_psr_state)(struct dmcu *dmcu, uint32_t *psr_state);
68 void (*set_psr_wait_loop)(struct dmcu *dmcu,
70 void (*get_psr_wait_loop)(struct dmcu *dmcu,
72 bool (*is_dmcu_initialized)(struct dmcu *dmcu);
73 bool (*lock_phy)(struct dmcu *dmcu);
[all …]
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
Ddce112_clk_mgr.c76 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dce112_set_clock() local
114 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock()
116 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock()
130 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dce112_set_dispclk() local
156 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_dispclk()
158 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_dispclk()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr_vbios_smu.c92 struct dmcu *dmcu = core_dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local
104 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk()
106 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr_vbios_smu.c86 struct dmcu *dmcu = core_dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local
99 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk()
101 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_vbios_smu_set_dispclk()
Drn_clk_mgr.c67 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local
121 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks()
123 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_hwss.c73 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dp_enable_link_phy() local
100 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_enable_link_phy()
101 dmcu->funcs->lock_phy(dmcu); in dp_enable_link_phy()
115 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_enable_link_phy()
116 dmcu->funcs->unlock_phy(dmcu); in dp_enable_link_phy()
178 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dp_disable_link_phy() local
187 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_disable_link_phy()
188 dmcu->funcs->lock_phy(dmcu); in dp_disable_link_phy()
192 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_disable_link_phy()
193 dmcu->funcs->unlock_phy(dmcu); in dp_disable_link_phy()
Ddc_link.c2324 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dc_link_set_backlight_level() local
2330 if ((dmcu == NULL) || in dc_link_set_backlight_level()
2335 use_smooth_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dc_link_set_backlight_level()
2389 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dc_link_set_psr_enable() local
2391 if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && link->psr_enabled) in dc_link_set_psr_enable()
2392 dmcu->funcs->set_psr_enable(dmcu, enable, wait); in dc_link_set_psr_enable()
Ddc.c809 if (dc->res_pool->dmcu != NULL) in dc_create()
810 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create()
2347 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local
2349 if (dmcu) in dc_is_dmcu_initialized()
2350 return dmcu->funcs->is_dmcu_initialized(dmcu); in dc_is_dmcu_initialized()
/drivers/gpu/drm/amd/display/modules/power/
Dpower_helpers.c651 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument
657 if (dmcu == NULL) in dmcu_load_iram()
660 if (!dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram()
665 if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram()
668 result = dmcu->funcs->load_iram( in dmcu_load_iram()
669 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram()
670 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram()
673 result = dmcu->funcs->load_iram( in dmcu_load_iram()
674 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram()
678 result = dmcu->funcs->load_iram( in dmcu_load_iram()
[all …]
Dpower_helpers.h45 bool dmcu_load_iram(struct dmcu *dmcu,
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
Ddce_clk_mgr.c237 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; in dce_set_clock() local
265 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dce_set_clock()
266 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c197 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local
312 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks()
314 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c782 if (pool->base.dmcu != NULL) in destruct()
783 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
942 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct()
946 if (pool->base.dmcu == NULL) { in dce80_construct()
1139 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct()
1143 if (pool->base.dmcu == NULL) { in dce81_construct()
1332 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct()
1336 if (pool->base.dmcu == NULL) { in dce83_construct()
/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h226 struct dmcu *dmcu; member
/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c741 if (pool->base.dmcu != NULL) in destruct()
742 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
961 pool->base.dmcu = dce_dmcu_create(ctx, in construct()
965 if (pool->base.dmcu == NULL) { in construct()
/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c612 if (pool->base.dmcu != NULL) in destruct()
613 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
1055 pool->base.dmcu = dce_dmcu_create(ctx, in construct()
1059 if (pool->base.dmcu == NULL) { in construct()
/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c762 if (pool->base.dmcu != NULL) in destruct()
763 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
1217 pool->base.dmcu = dce_dmcu_create(ctx, in construct()
1221 if (pool->base.dmcu == NULL) { in construct()
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_resource.c800 if (pool->base.dmcu != NULL) in destruct()
801 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
1333 pool->base.dmcu = dce_dmcu_create(ctx, in construct()
1337 if (pool->base.dmcu == NULL) { in construct()
Ddce110_hw_sequencer.c2372 struct dmcu *dmcu; in init_hw() local
2425 dmcu = dc->res_pool->dmcu; in init_hw()
2426 if (dmcu != NULL && abm != NULL) in init_hw()
2427 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw()
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c964 if (pool->base.dmcu != NULL) in destruct()
965 dce_dmcu_destroy(&pool->base.dmcu); in destruct()
1362 pool->base.dmcu = dcn10_dmcu_create(ctx, in construct()
1366 if (pool->base.dmcu == NULL) { in construct()
Ddcn10_hw_sequencer.c1179 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn10_init_hw() local
1284 if (dmcu != NULL) in dcn10_init_hw()
1285 dmcu->funcs->dmcu_init(dmcu); in dcn10_init_hw()
1287 if (abm != NULL && dmcu != NULL) in dcn10_init_hw()
1288 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dcn10_init_hw()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ucode.h264 struct dmcu_firmware_header_v1_0 dmcu; member

12