/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_optc.c | 64 struct timing_generator *optc, in optc1_program_global_sync() argument 70 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_program_global_sync() 93 static void optc1_disable_stereo(struct timing_generator *optc) in optc1_disable_stereo() argument 95 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_disable_stereo() 106 struct timing_generator *optc, in optc1_setup_vertical_interrupt0() argument 110 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_setup_vertical_interrupt0() 118 struct timing_generator *optc, in optc1_setup_vertical_interrupt1() argument 121 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_setup_vertical_interrupt1() 128 struct timing_generator *optc, in optc1_setup_vertical_interrupt2() argument 131 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_setup_vertical_interrupt2() [all …]
|
H A D | dcn10_optc.h | 32 container_of(tg, struct optc, base) 567 struct optc { struct 594 void dcn10_timing_generator_init(struct optc *optc); argument 622 void optc1_read_otg_state(struct optc *optc1, 629 struct timing_generator *optc, 633 struct timing_generator *optc, 643 struct timing_generator *optc, 647 struct timing_generator *optc, 650 struct timing_generator *optc, 654 struct timing_generator *optc, [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_optc.c | 45 void optc3_triplebuffer_lock(struct timing_generator *optc) in optc3_triplebuffer_lock() argument 47 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc3_triplebuffer_lock() 50 OTG_MASTER_UPDATE_LOCK_SEL, optc->inst); in optc3_triplebuffer_lock() 62 TRACE_OPTC_LOCK_UNLOCK_STATE(optc1, optc->inst, true); in optc3_triplebuffer_lock() 65 void optc3_lock_doublebuffer_enable(struct timing_generator *optc) in optc3_lock_doublebuffer_enable() argument 67 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc3_lock_doublebuffer_enable() 99 TRACE_OPTC_LOCK_UNLOCK_STATE(optc1, optc->inst, true); in optc3_lock_doublebuffer_enable() 102 void optc3_lock_doublebuffer_disable(struct timing_generator *optc) in optc3_lock_doublebuffer_disable() argument 104 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc3_lock_doublebuffer_disable() 116 TRACE_OPTC_LOCK_UNLOCK_STATE(optc1, optc->inst, true); in optc3_lock_doublebuffer_disable() [all …]
|
H A D | dcn30_optc.h | 324 void dcn30_timing_generator_init(struct optc *optc1); 326 void optc3_set_out_mux(struct timing_generator *optc, enum otg_out_mux_dest dest); 328 void optc3_lock(struct timing_generator *optc); 330 void optc3_lock_doublebuffer_enable(struct timing_generator *optc); 332 void optc3_lock_doublebuffer_disable(struct timing_generator *optc); 334 void optc3_set_drr_trigger_window(struct timing_generator *optc, 337 void optc3_triplebuffer_lock(struct timing_generator *optc); 339 void optc3_program_blank_color(struct timing_generator *optc, 342 void optc3_set_vtotal_change_limit(struct timing_generator *optc, 345 void optc3_set_dsc_config(struct timing_generator *optc, [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_optc.c | 48 bool optc2_enable_crtc(struct timing_generator *optc) in optc2_enable_crtc() argument 54 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc2_enable_crtc() 60 OPTC_SEG0_SRC_SEL, optc->inst); in optc2_enable_crtc() 86 void optc2_set_gsl(struct timing_generator *optc, in optc2_set_gsl() argument 89 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc2_set_gsl() 106 struct timing_generator *optc, in optc2_set_gsl_source_select() argument 110 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc2_set_gsl_source_select() 132 void optc2_set_dsc_config(struct timing_generator *optc, in optc2_set_dsc_config() argument 137 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc2_set_dsc_config() 152 void optc2_get_dsc_status(struct timing_generator *optc, in optc2_get_dsc_status() argument [all …]
|
H A D | dcn20_optc.h | 82 void dcn20_timing_generator_init(struct optc *optc); 84 void optc2_get_last_used_drr_vtotal(struct timing_generator *optc, 87 bool optc2_enable_crtc(struct timing_generator *optc); 89 void optc2_set_gsl(struct timing_generator *optc, 92 void optc2_set_gsl_source_select(struct timing_generator *optc, 96 void optc2_set_dsc_config(struct timing_generator *optc, 101 void optc2_get_dsc_status(struct timing_generator *optc, 104 void optc2_set_odm_bypass(struct timing_generator *optc, 107 void optc2_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt, 110 void optc2_get_optc_source(struct timing_generator *optc, [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_optc.c | 45 static void optc32_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt, in optc32_set_odm_combine() argument 48 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc32_set_odm_combine() 101 void optc32_set_h_timing_div_manual_mode(struct timing_generator *optc, bool manual_mode) in optc32_set_h_timing_div_manual_mode() argument 103 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc32_set_h_timing_div_manual_mode() 115 static bool optc32_enable_crtc(struct timing_generator *optc) in optc32_enable_crtc() argument 117 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc32_enable_crtc() 121 OPTC_SEG0_SRC_SEL, optc->inst); in optc32_enable_crtc() 141 static bool optc32_disable_crtc(struct timing_generator *optc) in optc32_disable_crtc() argument 143 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc32_disable_crtc() 172 static void optc32_phantom_crtc_post_enable(struct timing_generator *optc) in optc32_phantom_crtc_post_enable() argument [all …]
|
H A D | dcn32_optc.h | 181 void dcn32_timing_generator_init(struct optc *optc1); 182 void optc32_set_h_timing_div_manual_mode(struct timing_generator *optc, bool manual_mode);
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_optc.c | 43 static void optc31_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt, in optc31_set_odm_combine() argument 46 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_set_odm_combine() 97 static bool optc31_enable_crtc(struct timing_generator *optc) in optc31_enable_crtc() argument 99 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_enable_crtc() 103 OPTC_SEG0_SRC_SEL, optc->inst); in optc31_enable_crtc() 123 static bool optc31_disable_crtc(struct timing_generator *optc) in optc31_disable_crtc() argument 125 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_disable_crtc() 139 optc1_clear_optc_underflow(optc); in optc31_disable_crtc() 144 bool optc31_immediate_disable_crtc(struct timing_generator *optc) in optc31_immediate_disable_crtc() argument 146 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_immediate_disable_crtc() [all …]
|
H A D | dcn31_optc.h | 259 void dcn31_timing_generator_init(struct optc *optc1); 261 bool optc31_immediate_disable_crtc(struct timing_generator *optc); 263 void optc31_set_drr(struct timing_generator *optc, const struct drr_params *params); 265 void optc3_init_odm(struct timing_generator *optc);
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_optc.c | 50 static void optc314_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt, in optc314_set_odm_combine() argument 53 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_set_odm_combine() 106 static bool optc314_enable_crtc(struct timing_generator *optc) in optc314_enable_crtc() argument 108 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_enable_crtc() 112 OPTC_SEG0_SRC_SEL, optc->inst); in optc314_enable_crtc() 132 static bool optc314_disable_crtc(struct timing_generator *optc) in optc314_disable_crtc() argument 134 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_disable_crtc() 153 static void optc314_phantom_crtc_post_enable(struct timing_generator *optc) in optc314_phantom_crtc_post_enable() argument 155 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_phantom_crtc_post_enable() 164 static void optc314_set_odm_bypass(struct timing_generator *optc, in optc314_set_odm_bypass() argument [all …]
|
H A D | dcn314_optc.h | 253 void dcn314_timing_generator_init(struct optc *optc1);
|
H A D | dcn314_resource.c | 904 .optc = true, 1129 struct optc *tgn10 = in dcn31_timing_generator_create() 1130 kzalloc(sizeof(struct optc), GFP_KERNEL); in dcn31_timing_generator_create()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | timing_generator.h | 173 struct timing_generator *optc, 177 struct timing_generator *optc, 180 struct timing_generator *optc, 201 bool (*get_otg_active_size)(struct timing_generator *optc, 239 void (*set_vtotal_min_max)(struct timing_generator *optc, int vtotal_min, int vtotal_max); 240 void (*get_last_used_drr_vtotal)(struct timing_generator *optc, uint32_t *refresh_rate); 268 void (*set_dwb_source)(struct timing_generator *optc, 271 void (*get_optc_source)(struct timing_generator *optc, 290 void (*program_manual_trigger)(struct timing_generator *optc); 291 void (*setup_manual_trigger)(struct timing_generator *optc); [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn301/ |
H A D | dcn301_optc.c | 53 struct timing_generator *optc, in optc301_set_drr() argument 56 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc301_set_drr() 74 …optc->funcs->set_vtotal_min_max(optc, params->vertical_total_min - 1, params->vertical_total_max -… in optc301_set_drr() 83 optc->funcs->setup_manual_trigger(optc); in optc301_set_drr() 92 optc->funcs->set_vtotal_min_max(optc, 0, 0); in optc301_set_drr() 97 void optc301_setup_manual_trigger(struct timing_generator *optc) in optc301_setup_manual_trigger() argument 99 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc301_setup_manual_trigger() 103 OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst, in optc301_setup_manual_trigger() 173 void dcn301_timing_generator_init(struct optc *optc1) in dcn301_timing_generator_init()
|
H A D | dcn301_optc.h | 32 void dcn301_timing_generator_init(struct optc *optc1); 33 void optc301_setup_manual_trigger(struct timing_generator *optc); 34 void optc301_set_drr(struct timing_generator *optc, const struct drr_params *params);
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_optc.c | 47 static void optc201_triplebuffer_lock(struct timing_generator *optc) in optc201_triplebuffer_lock() argument 49 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_triplebuffer_lock() 52 OTG_MASTER_UPDATE_LOCK_SEL, optc->inst); in optc201_triplebuffer_lock() 63 static void optc201_triplebuffer_unlock(struct timing_generator *optc) in optc201_triplebuffer_unlock() argument 65 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_triplebuffer_unlock() 75 struct timing_generator *optc, in optc201_validate_timing() argument 81 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_validate_timing() 125 static void optc201_get_optc_source(struct timing_generator *optc, in optc201_get_optc_source() argument 130 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_get_optc_source() 190 void dcn201_timing_generator_init(struct optc *optc1) in dcn201_timing_generator_init()
|
H A D | dcn201_optc.h | 70 void dcn201_timing_generator_init(struct optc *optc);
|
H A D | dcn201_resource.c | 759 struct optc *tgn10 = in dcn201_timing_generator_create() 760 kzalloc(sizeof(struct optc), GFP_ATOMIC); in dcn201_timing_generator_create()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_trace.h | 43 #define TRACE_OPTC_LOCK_UNLOCK_STATE(optc, inst, lock) \ argument 44 trace_dcn_optc_lock_unlock_state(optc, inst, lock, __func__, __LINE__)
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | dcn30_fpu.h | 32 void optc3_fpu_set_vrr_m_const(struct timing_generator *optc,
|
H A D | dcn30_fpu.c | 181 void optc3_fpu_set_vrr_m_const(struct timing_generator *optc, in optc3_fpu_set_vrr_m_const() argument 184 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc3_fpu_set_vrr_m_const() 213 optc->funcs->set_vtotal_min_max(optc, 0, 0); in optc3_fpu_set_vrr_m_const() 252 optc->funcs->set_vtotal_min_max(optc, vtotal_min, vtotal_max); in optc3_fpu_set_vrr_m_const()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn316/ |
H A D | dcn316_resource.c | 882 .optc = true, 1051 struct optc *tgn10 = in dcn31_timing_generator_create() 1052 kzalloc(sizeof(struct optc), GFP_KERNEL); in dcn31_timing_generator_create()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn315/ |
H A D | dcn315_resource.c | 885 .optc = true, 1055 struct optc *tgn10 = in dcn31_timing_generator_create() 1056 kzalloc(sizeof(struct optc), GFP_KERNEL); in dcn31_timing_generator_create()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn321/ |
H A D | dcn321_resource.c | 710 .optc = true, 991 struct optc *tgn10 = in dcn321_timing_generator_create() 992 kzalloc(sizeof(struct optc), GFP_KERNEL); in dcn321_timing_generator_create()
|