Lines Matching refs:intf

38 	int intf = mdp5_encoder->intf->num;  in mdp5_vid_encoder_mode_set()  local
52 if (mdp5_encoder->intf->type != INTF_DSI) { in mdp5_vid_encoder_mode_set()
97 if (mdp5_encoder->intf->type == INTF_eDP) { in mdp5_vid_encoder_mode_set()
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()
138 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_vid_encoder_disable() local
139 int intfn = mdp5_encoder->intf->num; in mdp5_vid_encoder_disable()
150 mdp5_ctl_commit(ctl, pipeline, mdp_ctl_flush_mask_encoder(intf), true); in mdp5_vid_encoder_disable()
160 mdp_irq_wait(&mdp5_kms->base, intf2vblank(mixer, intf)); in mdp5_vid_encoder_disable()
170 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_vid_encoder_enable() local
172 int intfn = intf->num; in mdp5_vid_encoder_enable()
181 mdp5_ctl_commit(ctl, pipeline, mdp_ctl_flush_mask_encoder(intf), true); in mdp5_vid_encoder_enable()
193 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_encoder_mode_set() local
195 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_mode_set()
204 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_encoder_disable() local
206 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_disable()
215 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_encoder_enable() local
221 if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) in mdp5_encoder_enable()
233 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_encoder_atomic_check() local
237 mdp5_cstate->pipeline.intf = intf; in mdp5_encoder_atomic_check()
263 int intf = mdp5_encoder->intf->num; in mdp5_encoder_get_linecount() local
265 return mdp5_read(mdp5_kms, REG_MDP5_INTF_LINE_COUNT(intf)); in mdp5_encoder_get_linecount()
272 int intf = mdp5_encoder->intf->num; in mdp5_encoder_get_framecount() local
274 return mdp5_read(mdp5_kms, REG_MDP5_INTF_FRAME_COUNT(intf)); in mdp5_encoder_get_framecount()
291 intf_num = mdp5_encoder->intf->num; in mdp5_vid_encoder_set_split_display()
322 struct mdp5_interface *intf = mdp5_encoder->intf; in mdp5_encoder_set_intf_mode() local
326 WARN_ON(intf->type != INTF_DSI); in mdp5_encoder_set_intf_mode()
327 intf->mode = MDP5_INTF_DSI_MODE_COMMAND; in mdp5_encoder_set_intf_mode()
329 if (intf->type == INTF_DSI) in mdp5_encoder_set_intf_mode()
330 intf->mode = MDP5_INTF_DSI_MODE_VIDEO; in mdp5_encoder_set_intf_mode()
332 intf->mode = MDP5_INTF_MODE_NONE; in mdp5_encoder_set_intf_mode()
338 struct mdp5_interface *intf, in mdp5_encoder_init() argument
343 int enc_type = (intf->type == INTF_DSI) ? in mdp5_encoder_init()
355 mdp5_encoder->intf = intf; in mdp5_encoder_init()