Lines Matching refs:mdp5_kms
13 static struct mdp5_kms *get_kms(struct drm_encoder *encoder) in get_kms()
35 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_mode_set() local
104 mdp5_write(mdp5_kms, REG_MDP5_INTF_HSYNC_CTL(intf), in mdp5_vid_encoder_mode_set()
107 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_PERIOD_F0(intf), vsync_period); in mdp5_vid_encoder_mode_set()
108 mdp5_write(mdp5_kms, REG_MDP5_INTF_VSYNC_LEN_F0(intf), vsync_len); in mdp5_vid_encoder_mode_set()
109 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_HCTL(intf), in mdp5_vid_encoder_mode_set()
112 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VSTART_F0(intf), display_v_start); in mdp5_vid_encoder_mode_set()
113 mdp5_write(mdp5_kms, REG_MDP5_INTF_DISPLAY_VEND_F0(intf), display_v_end); in mdp5_vid_encoder_mode_set()
114 mdp5_write(mdp5_kms, REG_MDP5_INTF_BORDER_COLOR(intf), 0); in mdp5_vid_encoder_mode_set()
115 mdp5_write(mdp5_kms, REG_MDP5_INTF_UNDERFLOW_COLOR(intf), 0xff); in mdp5_vid_encoder_mode_set()
116 mdp5_write(mdp5_kms, REG_MDP5_INTF_HSYNC_SKEW(intf), dtv_hsync_skew); in mdp5_vid_encoder_mode_set()
117 mdp5_write(mdp5_kms, REG_MDP5_INTF_POLARITY_CTL(intf), ctrl_pol); in mdp5_vid_encoder_mode_set()
118 mdp5_write(mdp5_kms, REG_MDP5_INTF_ACTIVE_HCTL(intf), in mdp5_vid_encoder_mode_set()
121 mdp5_write(mdp5_kms, REG_MDP5_INTF_ACTIVE_VSTART_F0(intf), 0); in mdp5_vid_encoder_mode_set()
122 mdp5_write(mdp5_kms, REG_MDP5_INTF_ACTIVE_VEND_F0(intf), 0); in mdp5_vid_encoder_mode_set()
123 mdp5_write(mdp5_kms, REG_MDP5_INTF_PANEL_FORMAT(intf), format); in mdp5_vid_encoder_mode_set()
124 mdp5_write(mdp5_kms, REG_MDP5_INTF_FRAME_LINE_COUNT_EN(intf), 0x3); /* frame+line? */ in mdp5_vid_encoder_mode_set()
134 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_disable() local
148 mdp5_write(mdp5_kms, REG_MDP5_INTF_TIMING_ENGINE_EN(intfn), 0); in mdp5_vid_encoder_disable()
160 mdp_irq_wait(&mdp5_kms->base, intf2vblank(mixer, intf)); in mdp5_vid_encoder_disable()
168 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_enable() local
179 mdp5_write(mdp5_kms, REG_MDP5_INTF_TIMING_ENGINE_EN(intfn), 1); in mdp5_vid_encoder_enable()
262 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_linecount() local
265 return mdp5_read(mdp5_kms, REG_MDP5_INTF_LINE_COUNT(intf)); in mdp5_encoder_get_linecount()
271 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_framecount() local
274 return mdp5_read(mdp5_kms, REG_MDP5_INTF_FRAME_COUNT(intf)); in mdp5_encoder_get_framecount()
282 struct mdp5_kms *mdp5_kms; in mdp5_vid_encoder_set_split_display() local
290 mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_set_split_display()
303 dev = &mdp5_kms->pdev->dev; in mdp5_vid_encoder_set_split_display()
308 mdp5_write(mdp5_kms, REG_MDP5_SPLIT_DPL_UPPER, 0); in mdp5_vid_encoder_set_split_display()
309 mdp5_write(mdp5_kms, REG_MDP5_SPLIT_DPL_LOWER, data); in mdp5_vid_encoder_set_split_display()
310 mdp5_write(mdp5_kms, REG_MDP5_SPLIT_DPL_EN, 1); in mdp5_vid_encoder_set_split_display()