Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_dmcu.c37 #define TO_DCE_DMCU(dmcu)\ argument
38 container_of(dmcu, struct dce_dmcu, base)
68 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument
74 bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument
79 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram()
102 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, uint32_t *psr_state) in dce_get_dmcu_psr_state() argument
104 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state()
125 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument
127 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable()
151 dce_get_dmcu_psr_state(dmcu, &psr_state); in dce_dmcu_set_psr_enable()
[all …]
H A Ddce_dmcu.h223 struct dmcu base;
294 struct dmcu *dce_dmcu_create(
300 struct dmcu *dcn10_dmcu_create(
306 struct dmcu *dcn20_dmcu_create(
312 struct dmcu *dcn21_dmcu_create(
318 void dce_dmcu_destroy(struct dmcu **dmcu);
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Ddmcu.h48 struct dmcu { struct
60 bool (*dmcu_init)(struct dmcu *dmcu); argument
61 bool (*load_iram)(struct dmcu *dmcu,
65 void (*set_psr_enable)(struct dmcu *dmcu, bool enable, bool wait);
66 bool (*setup_psr)(struct dmcu *dmcu,
69 void (*get_psr_state)(struct dmcu *dmcu, uint32_t *psr_state);
70 void (*set_psr_wait_loop)(struct dmcu *dmcu,
72 void (*get_psr_wait_loop)(struct dmcu *dmcu,
74 bool (*is_dmcu_initialized)(struct dmcu *dmcu);
75 bool (*lock_phy)(struct dmcu *dmcu);
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
H A Ddce112_clk_mgr.c76 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_clock() local
113 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock()
115 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock()
129 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_dispclk() local
155 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_dispclk()
157 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_dispclk()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
H A Drv1_clk_mgr_vbios_smu.c127 struct dmcu *dmcu = dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local
136 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk()
138 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_link_hwss.c100 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_enable_link_phy() local
138 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_enable_link_phy()
139 dmcu->funcs->lock_phy(dmcu); in dp_enable_link_phy()
153 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_enable_link_phy()
154 dmcu->funcs->unlock_phy(dmcu); in dp_enable_link_phy()
226 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_disable_link_phy() local
237 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_disable_link_phy()
238 dmcu->funcs->lock_phy(dmcu); in dp_disable_link_phy()
242 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_disable_link_phy()
243 dmcu->funcs->unlock_phy(dmcu); in dp_disable_link_phy()
H A Ddc_link.c2590 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_set_psr_allow_active() local
2597 …else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && link->psr_settings.psr_featur… in dc_link_set_psr_allow_active()
2598 dmcu->funcs->set_psr_enable(dmcu, allow_active, wait); in dc_link_set_psr_allow_active()
2608 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_psr_state() local
2613 else if (dmcu != NULL && link->psr_settings.psr_feature_enabled) in dc_link_get_psr_state()
2614 dmcu->funcs->get_psr_state(dmcu, psr_state); in dc_link_get_psr_state()
2659 struct dmcu *dmcu; in dc_link_setup_psr() local
2671 dmcu = dc->res_pool->dmcu; in dc_link_setup_psr()
2674 if (!dmcu && !psr) in dc_link_setup_psr()
2786 link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context); in dc_link_setup_psr()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr_vbios_smu.c123 struct dmcu *dmcu = dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local
132 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk()
134 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_vbios_smu_set_dispclk()
H A Drn_clk_mgr.c120 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local
205 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks()
207 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn21/
H A Ddcn21_hwseq.c167 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local
169 if (dmcu) { in dcn21_set_abm_immediate_disable()
184 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local
186 if (dmcu) { in dcn21_set_pipe()
205 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/modules/power/
H A Dpower_helpers.c727 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument
733 if (dmcu == NULL) in dmcu_load_iram()
736 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram()
741 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram()
743 result = dmcu->funcs->load_iram( in dmcu_load_iram()
744 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram()
745 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram()
748 result = dmcu->funcs->load_iram( in dmcu_load_iram()
749 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram()
750 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram()
[all …]
H A Dpower_helpers.h48 bool dmcu_load_iram(struct dmcu *dmcu,
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.c158 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local
266 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks()
268 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c239 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local
337 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks()
339 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_resource.c853 if (pool->base.dmcu != NULL) in dce60_resource_destruct()
854 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct()
1011 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct()
1015 if (pool->base.dmcu == NULL) { in dce60_construct()
1208 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct()
1212 if (pool->base.dmcu == NULL) { in dce61_construct()
1401 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct()
1405 if (pool->base.dmcu == NULL) { in dce64_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce80/
H A Ddce80_resource.c858 if (pool->base.dmcu != NULL) in dce80_resource_destruct()
859 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct()
1020 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct()
1024 if (pool->base.dmcu == NULL) { in dce80_construct()
1217 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct()
1221 if (pool->base.dmcu == NULL) { in dce81_construct()
1410 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct()
1414 if (pool->base.dmcu == NULL) { in dce83_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_hw_sequencer.c2440 struct dmcu *dmcu; in init_hw() local
2500 dmcu = dc->res_pool->dmcu; in init_hw()
2501 if (dmcu != NULL && abm != NULL) in init_hw()
2502 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw()
2815 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local
2825 if (dmcu) in dce110_set_backlight_level()
2826 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level()
H A Ddce110_resource.c880 if (pool->base.dmcu != NULL) in dce110_resource_destruct()
881 dce_dmcu_destroy(&pool->base.dmcu); in dce110_resource_destruct()
1416 pool->base.dmcu = dce_dmcu_create(ctx, in dce110_resource_construct()
1420 if (pool->base.dmcu == NULL) { in dce110_resource_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/
H A Dcore_types.h241 struct dmcu *dmcu; member
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce100/
H A Ddce100_resource.c817 if (pool->base.dmcu != NULL) in dce100_resource_destruct()
818 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct()
1038 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct()
1042 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce120/
H A Ddce120_resource.c668 if (pool->base.dmcu != NULL) in dce120_resource_destruct()
669 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct()
1133 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct()
1137 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce112/
H A Ddce112_resource.c840 if (pool->base.dmcu != NULL) in dce112_resource_destruct()
841 dce_dmcu_destroy(&pool->base.dmcu); in dce112_resource_destruct()
1296 pool->base.dmcu = dce_dmcu_create(ctx, in dce112_resource_construct()
1300 if (pool->base.dmcu == NULL) { in dce112_resource_construct()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_resource.c1044 if (pool->base.dmcu != NULL) in dcn10_resource_destruct()
1045 dce_dmcu_destroy(&pool->base.dmcu); in dcn10_resource_destruct()
1469 pool->base.dmcu = dcn10_dmcu_create(ctx, in dcn10_resource_construct()
1473 if (pool->base.dmcu == NULL) { in dcn10_resource_construct()

12