/openbsd-current/sys/dev/pci/drm/amd/display/dc/ |
H A D | dc_edid_parser.c | 35 struct dmcu *dmcu = dc->res_pool->dmcu; local 37 if (dmcu && 38 dmcu->funcs->is_dmcu_initialized(dmcu) && 39 dmcu->funcs->send_edid_cea) { 40 return dmcu->funcs->send_edid_cea(dmcu, 52 struct dmcu *dmc local 68 struct dmcu *dmcu = dc->res_pool->dmcu; local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/inc/hw/ |
H A D | dmcu.h | 48 struct dmcu { struct 60 bool (*dmcu_init)(struct dmcu *dmcu); 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 *dmc [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dce/ |
H A D | dce_dmcu.c | 34 #define TO_DCE_DMCU(dmcu)\ 35 container_of(dmcu, struct dce_dmcu, base) 72 static bool dce_dmcu_init(struct dmcu *dmcu) argument 78 static bool dce_dmcu_load_iram(struct dmcu *dmcu, argument 83 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); 106 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, enum dc_psr_state *state) argument 108 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); 129 dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) argument 168 dce_dmcu_setup_psr(struct dmcu *dmcu, struct dc_link *link, struct psr_context *psr_context) argument 280 dce_is_dmcu_initialized(struct dmcu *dmcu) argument 295 dce_psr_wait_loop( struct dmcu *dmcu, unsigned int wait_loop_number) argument 324 dce_get_psr_wait_loop( struct dmcu *dmcu, unsigned int *psr_wait_loop_number) argument 331 dcn10_get_dmcu_version(struct dmcu *dmcu) argument 357 dcn10_dmcu_enable_fractional_pwm(struct dmcu *dmcu, uint32_t fractional_pwm) argument 379 dcn10_dmcu_init(struct dmcu *dmcu) argument 462 dcn21_dmcu_init(struct dmcu *dmcu) argument 474 dcn10_dmcu_load_iram(struct dmcu *dmcu, unsigned int start_offset, const char *src, unsigned int bytes) argument 519 dcn10_get_dmcu_psr_state(struct dmcu *dmcu, enum dc_psr_state *state) argument 546 dcn10_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) argument 599 dcn10_dmcu_setup_psr(struct dmcu *dmcu, struct dc_link *link, struct psr_context *psr_context) argument 723 dcn10_psr_wait_loop( struct dmcu *dmcu, unsigned int wait_loop_number) argument 751 dcn10_get_psr_wait_loop( struct dmcu *dmcu, unsigned int *psr_wait_loop_number) argument 758 dcn10_is_dmcu_initialized(struct dmcu *dmcu) argument 768 dcn20_lock_phy(struct dmcu *dmcu) argument 791 dcn20_unlock_phy(struct dmcu *dmcu) argument 814 dcn10_send_edid_cea(struct dmcu *dmcu, int offset, int total_length, uint8_t *data, int length) argument 855 dcn10_get_scp_results(struct dmcu *dmcu, uint32_t *cmd, uint32_t *data1, uint32_t *data2, uint32_t *data3) argument 878 dcn10_recv_amd_vsdb(struct dmcu *dmcu, int *version, int *min_frame_rate, int *max_frame_rate) argument 906 dcn10_recv_edid_cea_ack(struct dmcu *dmcu, int *offset) argument 930 dcn10_forward_crc_window(struct dmcu *dmcu, struct rect *rect, struct otg_phy_mux *mux_mapping) argument 980 dcn10_stop_crc_win_update(struct dmcu *dmcu, struct otg_phy_mux *mux_mapping) argument 1186 dce_dmcu_destroy(struct dmcu **dmcu) argument [all...] |
H A D | dce_dmcu.h | 30 #include "dmcu.h" 234 struct dmcu base; 305 struct dmcu *dce_dmcu_create( 311 struct dmcu *dcn10_dmcu_create( 317 struct dmcu *dcn20_dmcu_create( 323 struct dmcu *dcn21_dmcu_create( 329 void dce_dmcu_destroy(struct dmcu **dmcu);
|
H A D | dce_clk_mgr.c | 31 #include "dmcu.h" 254 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; local 282 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) 283 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); 294 struct dmcu *dmc local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn10/ |
H A D | rv1_clk_mgr_vbios_smu.c | 130 struct dmcu *dmcu = dc->res_pool->dmcu; local 138 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { 140 dmcu->funcs->set_psr_wait_loop(dmcu,
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dce112/ |
H A D | dce112_clk_mgr.c | 76 struct dmcu *dmcu = dc->res_pool->dmcu; local 114 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { 116 dmcu->funcs->set_psr_wait_loop(dmcu, 129 struct dmcu *dmcu local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/modules/power/ |
H A D | power_helpers.h | 28 #include "dc/inc/hw/dmcu.h" 50 bool dmcu_load_iram(struct dmcu *dmcu,
|
H A D | power_helpers.c | 26 #include "dc/inc/hw/dmcu.h" 766 bool dmcu_load_iram(struct dmcu *dmcu, argument 772 if (dmcu == NULL) 775 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) 780 if (dmcu->dmcu_version.abm_version == 0x24) { 782 result = dmcu->funcs->load_iram(dmcu, [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn21/ |
H A D | rn_clk_mgr_vbios_smu.c | 142 struct dmcu *dmcu = dc->res_pool->dmcu; local 150 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { 152 dmcu->funcs->set_psr_wait_loop(dmcu,
|
H A D | rn_clk_mgr.c | 143 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; local 246 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { 247 /*update dmcu for wait_loop count*/ 248 dmcu->funcs->set_psr_wait_loop(dmcu,
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dcn21/ |
H A D | dcn21_hwseq.c | 184 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; local 186 if (dmcu) { 211 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; local 219 if (dmcu) { 253 if (dc->dc->res_pool->dmcu) {
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/link/protocols/ |
H A D | link_edp_panel_control.c | 547 struct dmcu *dmcu = dc->res_pool->dmcu; local 583 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && 585 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); 595 struct dmcu *dmcu local 652 struct dmcu *dmcu; local 1058 struct dmcu *dmcu = dc->res_pool->dmcu; local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dce100/ |
H A D | dce_clk_mgr.c | 33 #include "dmcu.h" 237 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; local 265 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) 266 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7);
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dcn314/ |
H A D | dcn314_hwseq.c | 476 struct dmcu *dmcu = dc->res_pool->dmcu; local 482 else if (dmcu != NULL && dmcu->funcs->lock_phy) 483 dmcu->funcs->lock_phy(dmcu); 492 if (dmcu != NULL && dmcu->funcs->lock_phy) 493 dmcu [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn20/ |
H A D | dcn20_clk_mgr.c | 229 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; local 336 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { 337 /*update dmcu for wait_loop count*/ 338 dmcu->funcs->set_psr_wait_loop(dmcu,
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn30/ |
H A D | dcn30_clk_mgr.c | 205 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; local 316 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) 317 /*update dmcu for wait_loop count*/ 318 dmcu->funcs->set_psr_wait_loop(dmcu,
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dce110/ |
H A D | dce110_hw_sequencer.c | 2589 struct dmcu *dmcu; local 2649 dmcu = dc->res_pool->dmcu; 2650 if (dmcu != NULL && abm != NULL) 2651 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); 2965 struct dmcu *dmcu = dc->res_pool->dmcu; local 3050 struct dmcu *dmcu = dc->res_pool->dmcu; local 3115 struct dmcu *dmcu = dc->res_pool->dmcu; local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32/ |
H A D | dcn32_clk_mgr.c | 466 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; local 654 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) 655 /*update dmcu for wait_loop count*/ 656 dmcu->funcs->set_psr_wait_loop(dmcu,
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dcn32/ |
H A D | dcn32_hwseq.c | 1324 struct dmcu *dmcu = dc->res_pool->dmcu; local 1329 else if (dmcu != NULL && dmcu->funcs->lock_phy) 1330 dmcu->funcs->lock_phy(dmcu); 1338 else if (dmcu != NULL && dmcu->funcs->lock_phy) 1339 dmcu [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dce60/ |
H A D | dce60_resource.c | 849 if (pool->base.dmcu != NULL) 850 dce_dmcu_destroy(&pool->base.dmcu); 1007 pool->base.dmcu = dce_dmcu_create(ctx, 1011 if (pool->base.dmcu == NULL) { 1012 dm_error("DC: failed to create dmcu!\n"); 1205 pool->base.dmcu = dce_dmcu_create(ctx, 1209 if (pool->base.dmcu == NULL) { 1210 dm_error("DC: failed to create dmcu!\n"); 1399 pool->base.dmcu = dce_dmcu_create(ctx, 1403 if (pool->base.dmcu [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/inc/ |
H A D | core_types.h | 281 struct dmcu *dmcu; member in struct:resource_pool
|
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dce80/ |
H A D | dce80_resource.c | 856 if (pool->base.dmcu != NULL) 857 dce_dmcu_destroy(&pool->base.dmcu); 1021 pool->base.dmcu = dce_dmcu_create(ctx, 1025 if (pool->base.dmcu == NULL) { 1026 dm_error("DC: failed to create dmcu!\n"); 1221 pool->base.dmcu = dce_dmcu_create(ctx, 1225 if (pool->base.dmcu == NULL) { 1226 dm_error("DC: failed to create dmcu!\n"); 1418 pool->base.dmcu = dce_dmcu_create(ctx, 1422 if (pool->base.dmcu [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/core/ |
H A D | amdgpu_dc.c | 45 #include "dmcu.h" 522 dc_stream_forward_dmcu_crc_window(struct dmcu *dmcu, argument 526 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); 528 dmcu->funcs->forward_crc_window(dmcu, rect, mux_mapping); 535 struct dmcu *dmcu; local 555 dmcu 4644 struct dmcu *dmcu = dc->res_pool->dmcu; local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/display/dc/dce100/ |
H A D | dce100_resource.c | 815 if (pool->base.dmcu != NULL) 816 dce_dmcu_destroy(&pool->base.dmcu); 1036 pool->base.dmcu = dce_dmcu_create(ctx, 1040 if (pool->base.dmcu == NULL) { 1041 dm_error("DC: failed to create dmcu!\n");
|