/linux/drivers/gpu/drm/amd/display/dc/optc/dcn10/ |
H A D | dcn10_optc.c | 64 struct timing_generator *optc, in optc1_program_global_sync() argument 71 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_program_global_sync() 95 static void optc1_disable_stereo(struct timing_generator *optc) in optc1_disable_stereo() argument 97 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_disable_stereo() 108 struct timing_generator *optc, in optc1_setup_vertical_interrupt0() argument 112 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_setup_vertical_interrupt0() 120 struct timing_generator *optc, in optc1_setup_vertical_interrupt1() argument 123 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc1_setup_vertical_interrupt1() 130 struct timing_generator *optc, in optc1_setup_vertical_interrupt2() argument 133 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) 624 void dcn10_timing_generator_init(struct optc *optc);
|
/linux/drivers/gpu/drm/amd/display/dc/optc/dcn35/ |
H A D | dcn35_optc.c | 58 static void optc35_set_odm_combine(struct timing_generator *optc, int *opp_id, int opp_cnt, in optc35_set_odm_combine() argument 61 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc35_set_odm_combine() 112 static bool optc35_enable_crtc(struct timing_generator *optc) in optc35_enable_crtc() argument 114 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc35_enable_crtc() 118 OPTC_SEG0_SRC_SEL, optc->inst); in optc35_enable_crtc() 138 static bool optc35_disable_crtc(struct timing_generator *optc) in optc35_disable_crtc() argument 140 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc35_disable_crtc() 165 optc1_clear_optc_underflow(optc); in optc35_disable_crtc() 170 static void optc35_phantom_crtc_post_enable(struct timing_generator *optc) in optc35_phantom_crtc_post_enable() argument 172 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc35_phantom_crtc_post_enable() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | optc.h | 45 struct optc { struct 101 void optc1_read_otg_state(struct optc *optc1, struct dcn_otg_state *s); 105 bool optc1_validate_timing(struct timing_generator *optc, 108 void optc1_program_timing(struct timing_generator *optc, 118 void optc1_setup_vertical_interrupt0(struct timing_generator *optc, 122 void optc1_setup_vertical_interrupt1(struct timing_generator *optc, 125 void optc1_setup_vertical_interrupt2(struct timing_generator *optc, 128 void optc1_program_global_sync(struct timing_generator *optc, 135 bool optc1_disable_crtc(struct timing_generator *optc); 137 bool optc1_is_counter_moving(struct timing_generator *optc); [all …]
|
H A D | timing_generator.h | 180 struct timing_generator *optc, 184 struct timing_generator *optc, 187 struct timing_generator *optc, 206 bool (*get_otg_active_size)(struct timing_generator *optc, 244 void (*set_vtotal_min_max)(struct timing_generator *optc, int vtotal_min, int vtotal_max); 245 void (*get_last_used_drr_vtotal)(struct timing_generator *optc, uint32_t *refresh_rate); 274 void (*set_dwb_source)(struct timing_generator *optc, 277 void (*get_optc_source)(struct timing_generator *optc, 297 void (*program_manual_trigger)(struct timing_generator *optc); 298 void (*setup_manual_trigger)(struct timing_generator *optc); [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/optc/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 …]
|
/linux/drivers/gpu/drm/amd/display/dc/optc/dcn401/ |
H A D | dcn401_optc.c | 104 static void optc401_set_odm_combine(struct timing_generator *optc, int *opp_id, in optc401_set_odm_combine() argument 107 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc401_set_odm_combine() 165 static void optc401_set_h_timing_div_manual_mode(struct timing_generator *optc, bool manual_mode) in optc401_set_h_timing_div_manual_mode() argument 167 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc401_set_h_timing_div_manual_mode() 180 static bool optc401_enable_crtc(struct timing_generator *optc) in optc401_enable_crtc() argument 182 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc401_enable_crtc() 186 OPTC_SEG0_SRC_SEL, optc->inst); in optc401_enable_crtc() 206 static bool optc401_disable_crtc(struct timing_generator *optc) in optc401_disable_crtc() argument 208 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc401_disable_crtc() 237 static void optc401_phantom_crtc_post_enable(struct timing_generator *optc) in optc401_phantom_crtc_post_enable() argument [all …]
|
H A D | dcn401_optc.h | 168 void dcn401_timing_generator_init(struct optc *optc1); 171 struct timing_generator *optc, 173 void optc401_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max); 174 void optc401_setup_manual_trigger(struct timing_generator *optc);
|
/linux/drivers/gpu/drm/amd/display/dc/optc/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() 95 static bool optc31_enable_crtc(struct timing_generator *optc) in optc31_enable_crtc() argument 97 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_enable_crtc() 101 OPTC_SEG0_SRC_SEL, optc->inst); in optc31_enable_crtc() 121 static bool optc31_disable_crtc(struct timing_generator *optc) in optc31_disable_crtc() argument 123 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_disable_crtc() 148 optc1_clear_optc_underflow(optc); in optc31_disable_crtc() 155 bool optc31_immediate_disable_crtc(struct timing_generator *optc) in optc31_immediate_disable_crtc() argument 157 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc31_immediate_disable_crtc() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/optc/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() 105 static bool optc314_enable_crtc(struct timing_generator *optc) in optc314_enable_crtc() argument 107 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_enable_crtc() 111 OPTC_SEG0_SRC_SEL, optc->inst); in optc314_enable_crtc() 131 static bool optc314_disable_crtc(struct timing_generator *optc) in optc314_disable_crtc() argument 133 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_disable_crtc() 152 static void optc314_phantom_crtc_post_enable(struct timing_generator *optc) in optc314_phantom_crtc_post_enable() argument 154 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc314_phantom_crtc_post_enable() 163 static void optc314_set_odm_bypass(struct timing_generator *optc, in optc314_set_odm_bypass() argument [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/optc/ |
H A D | Makefile | 33 AMD_DAL_OPTC_DCN10 = $(addprefix $(AMDDALPATH)/dc/optc/dcn10/,$(OPTC_DCN10)) 41 AMD_DAL_OPTC_DCN20 = $(addprefix $(AMDDALPATH)/dc/optc/dcn20/,$(OPTC_DCN20)) 49 AMD_DAL_OPTC_DCN201 = $(addprefix $(AMDDALPATH)/dc/optc/dcn201/,$(OPTC_DCN201)) 61 AMD_DAL_OPTC_DCN30 = $(addprefix $(AMDDALPATH)/dc/optc/dcn30/,$(OPTC_DCN30)) 69 AMD_DAL_OPTC_DCN301 = $(addprefix $(AMDDALPATH)/dc/optc/dcn301/,$(OPTC_DCN301)) 77 AMD_DAL_OPTC_DCN31 = $(addprefix $(AMDDALPATH)/dc/optc/dcn31/,$(OPTC_DCN31)) 85 AMD_DAL_OPTC_DCN314 = $(addprefix $(AMDDALPATH)/dc/optc/dcn314/,$(OPTC_DCN314)) 93 AMD_DAL_OPTC_DCN32 = $(addprefix $(AMDDALPATH)/dc/optc/dcn32/,$(OPTC_DCN32)) 101 AMD_DAL_OPTC_DCN35 = $(addprefix $(AMDDALPATH)/dc/optc/dcn35/,$(OPTC_DCN35)) 110 AMD_DAL_OPTC_DCN401 = $(addprefix $(AMDDALPATH)/dc/optc/dcn401/,$(OPTC_DCN401))
|
/linux/drivers/gpu/drm/amd/display/dc/optc/dcn201/ |
H A D | dcn201_optc.c | 41 static void optc201_triplebuffer_lock(struct timing_generator *optc) in optc201_triplebuffer_lock() argument 43 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_triplebuffer_lock() 46 OTG_MASTER_UPDATE_LOCK_SEL, optc->inst); in optc201_triplebuffer_lock() 57 static void optc201_triplebuffer_unlock(struct timing_generator *optc) in optc201_triplebuffer_unlock() argument 59 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_triplebuffer_unlock() 69 struct timing_generator *optc, in optc201_validate_timing() argument 75 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_validate_timing() 119 static void optc201_get_optc_source(struct timing_generator *optc, in optc201_get_optc_source() argument 124 struct optc *optc1 = DCN10TG_FROM_TG(optc); in optc201_get_optc_source() 185 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);
|
/linux/drivers/gpu/drm/amd/display/dc/optc/dcn301/ |
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);
|
/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__)
|
H A D | Makefile | 25 DC_LIBS = basics bios dml clk_mgr dce gpio hwss irq link virtual dsc resource optc dpp hubbub dccg …
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
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()
|
H A D | dcn30_fpu.h | 32 void optc3_fpu_set_vrr_m_const(struct timing_generator *optc,
|
/linux/drivers/gpu/drm/amd/display/ |
H A D | Makefile | 35 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/optc
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn201/ |
H A D | dcn201_resource.c | 761 struct optc *tgn10 = in dcn201_timing_generator_create() 762 kzalloc(sizeof(struct optc), GFP_ATOMIC); in dcn201_timing_generator_create()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/ |
H A D | dcn21_resource.c | 1044 struct optc *tgn10 = in dcn21_timing_generator_create() 1045 kzalloc(sizeof(struct optc), GFP_KERNEL); in dcn21_timing_generator_create()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn31/ |
H A D | dcn31_hwseq.c | 83 if (dc->debug.enable_mem_low_power.bits.optc) { in enable_memory_low_power()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
H A D | dcn30_hwseq.c | 658 if (dc->debug.enable_mem_low_power.bits.optc) { in dcn30_init_hw()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn35/ |
H A D | dcn35_hwseq.c | 89 if (dc->debug.enable_mem_low_power.bits.optc) {
|