/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_dmcu.c | 37 #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 …]
|
D | dce_dmcu.h | 181 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);
|
D | dce_clk_mgr.c | 254 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/ |
D | dmcu.h | 48 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/ |
D | dce112_clk_mgr.c | 76 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/ |
D | rv1_clk_mgr_vbios_smu.c | 92 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/ |
D | rn_clk_mgr_vbios_smu.c | 86 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()
|
D | rn_clk_mgr.c | 67 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/ |
D | dc_link_hwss.c | 73 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()
|
D | dc_link.c | 2324 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()
|
D | dc.c | 809 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/ |
D | power_helpers.c | 651 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 …]
|
D | power_helpers.h | 45 bool dmcu_load_iram(struct dmcu *dmcu,
|
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 237 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/ |
D | dcn20_clk_mgr.c | 197 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/ |
D | dce80_resource.c | 782 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/ |
D | core_types.h | 226 struct dmcu *dmcu; member
|
/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 741 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/ |
D | dce120_resource.c | 612 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/ |
D | dce112_resource.c | 762 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/ |
D | dce110_resource.c | 800 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()
|
D | dce110_hw_sequencer.c | 2372 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/ |
D | dcn10_resource.c | 964 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()
|
D | dcn10_hw_sequencer.c | 1179 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/ |
D | amdgpu_ucode.h | 264 struct dmcu_firmware_header_v1_0 dmcu; member
|