Lines Matching full:encoder
13 static struct mdp5_kms *get_kms(struct drm_encoder *encoder) in get_kms() argument
15 struct msm_drm_private *priv = encoder->dev->dev_private; in get_kms()
19 static void mdp5_vid_encoder_mode_set(struct drm_encoder *encoder, in mdp5_vid_encoder_mode_set() argument
23 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_vid_encoder_mode_set()
24 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_mode_set()
25 struct drm_device *dev = encoder->dev; in mdp5_vid_encoder_mode_set()
53 if (connector->encoder == encoder) { in mdp5_vid_encoder_mode_set()
117 mdp5_crtc_set_pipeline(encoder->crtc); in mdp5_vid_encoder_mode_set()
120 static void mdp5_vid_encoder_disable(struct drm_encoder *encoder) in mdp5_vid_encoder_disable() argument
122 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_vid_encoder_disable()
123 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_disable()
125 struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); in mdp5_vid_encoder_disable()
126 struct mdp5_hw_mixer *mixer = mdp5_crtc_get_mixer(encoder->crtc); in mdp5_vid_encoder_disable()
154 static void mdp5_vid_encoder_enable(struct drm_encoder *encoder) in mdp5_vid_encoder_enable() argument
156 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_vid_encoder_enable()
157 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_enable()
160 struct mdp5_pipeline *pipeline = mdp5_crtc_get_pipeline(encoder->crtc); in mdp5_vid_encoder_enable()
177 static void mdp5_encoder_mode_set(struct drm_encoder *encoder, in mdp5_encoder_mode_set() argument
181 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_mode_set()
185 mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
187 mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
190 static void mdp5_encoder_disable(struct drm_encoder *encoder) in mdp5_encoder_disable() argument
192 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_disable()
196 mdp5_cmd_encoder_disable(encoder); in mdp5_encoder_disable()
198 mdp5_vid_encoder_disable(encoder); in mdp5_encoder_disable()
201 static void mdp5_encoder_enable(struct drm_encoder *encoder) in mdp5_encoder_enable() argument
203 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_enable()
206 struct drm_crtc_state *cstate = encoder->crtc->state; in mdp5_encoder_enable()
208 mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); in mdp5_encoder_enable()
211 mdp5_cmd_encoder_enable(encoder); in mdp5_encoder_enable()
213 mdp5_vid_encoder_enable(encoder); in mdp5_encoder_enable()
216 static int mdp5_encoder_atomic_check(struct drm_encoder *encoder, in mdp5_encoder_atomic_check() argument
220 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_atomic_check()
233 * defer to encoder->enable(). But we need to *know* whether in mdp5_encoder_atomic_check()
234 * encoder->enable() will be called to do this: in mdp5_encoder_atomic_check()
248 int mdp5_encoder_get_linecount(struct drm_encoder *encoder) in mdp5_encoder_get_linecount() argument
250 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_get_linecount()
251 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_linecount()
257 u32 mdp5_encoder_get_framecount(struct drm_encoder *encoder) in mdp5_encoder_get_framecount() argument
259 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_get_framecount()
260 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_framecount()
266 void mdp5_encoder_set_intf_mode(struct drm_encoder *encoder, bool cmd_mode) in mdp5_encoder_set_intf_mode() argument
268 struct mdp5_encoder *mdp5_encoder = to_mdp5_encoder(encoder); in mdp5_encoder_set_intf_mode()
283 /* initialize encoder */
288 struct drm_encoder *encoder = NULL; in mdp5_encoder_init() local
298 encoder = &mdp5_encoder->base; in mdp5_encoder_init()
304 drm_encoder_helper_add(encoder, &mdp5_encoder_helper_funcs); in mdp5_encoder_init()
306 return encoder; in mdp5_encoder_init()