Home
last modified time | relevance | path

Searched refs:mdp5_kms (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_kms.c24 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_hw_init() local
137 state->mdp5_kms = mdp5_kms; in mdp5_global_obj_init()
206 static void mdp5_destroy(struct mdp5_kms *mdp5_kms);
287 static int mdp5_disable(struct mdp5_kms *mdp5_kms) in mdp5_disable() argument
304 static int mdp5_enable(struct mdp5_kms *mdp5_kms) in mdp5_enable() argument
429 static int modeset_init(struct mdp5_kms *mdp5_kms) in modeset_init() argument
555 struct mdp5_kms *mdp5_kms; in mdp5_kms_init() local
682 static int hwpipe_init(struct mdp5_kms *mdp5_kms) in hwpipe_init() argument
781 mdp5_kms->intfs[mdp5_kms->num_intfs++] = intf; in interface_init()
790 struct mdp5_kms *mdp5_kms; in mdp5_init() local
[all …]
H A Dmdp5_irq.c25 struct mdp5_kms *mdp5_kms = container_of(irq, struct mdp5_kms, error_handler); in mdp5_irq_error_handler() local
33 drm_state_dump(mdp5_kms->dev, &p); in mdp5_irq_error_handler()
34 if (mdp5_kms->smp) in mdp5_irq_error_handler()
35 mdp5_smp_dump(mdp5_kms->smp, &p); in mdp5_irq_error_handler()
41 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_irq_preinstall() local
53 struct mdp5_kms *mdp5_kms = to_mdp5_kms(mdp_kms); in mdp5_irq_postinstall() local
72 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_irq_uninstall() local
83 struct mdp5_kms *mdp5_kms = to_mdp5_kms(mdp_kms); in mdp5_irq() local
84 struct drm_device *dev = mdp5_kms->dev; in mdp5_irq()
105 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_enable_vblank() local
[all …]
H A Dmdp5_cmd_encoder.c23 struct mdp5_kms *mdp5_kms = get_kms(encoder); in pingpong_tearcheck_setup() local
30 if (IS_ERR_OR_NULL(mdp5_kms->vsync_clk)) { in pingpong_tearcheck_setup()
62 mdp5_write(mdp5_kms, in pingpong_tearcheck_setup()
65 mdp5_write(mdp5_kms, in pingpong_tearcheck_setup()
79 struct mdp5_kms *mdp5_kms = get_kms(encoder); in pingpong_tearcheck_enable() local
84 ret = clk_set_rate(mdp5_kms->vsync_clk, in pingpong_tearcheck_enable()
105 struct mdp5_kms *mdp5_kms = get_kms(encoder); in pingpong_tearcheck_disable() local
110 clk_disable_unprepare(mdp5_kms->vsync_clk); in pingpong_tearcheck_disable()
166 struct mdp5_kms *mdp5_kms; in mdp5_cmd_encoder_set_split_display() local
174 mdp5_kms = get_kms(encoder); in mdp5_cmd_encoder_set_split_display()
[all …]
H A Dmdp5_encoder.c13 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()
134 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_disable() local
168 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_vid_encoder_enable() local
262 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_linecount() local
271 struct mdp5_kms *mdp5_kms = get_kms(encoder); in mdp5_encoder_get_framecount() local
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()
[all …]
H A Dmdp5_smp.c32 struct mdp5_kms *get_kms(struct mdp5_smp *smp) in get_kms()
121 struct mdp5_kms *mdp5_kms = get_kms(smp); in mdp5_smp_calculate() local
122 int rev = mdp5_cfg_get_hw_rev(mdp5_kms->cfg); in mdp5_smp_calculate()
167 struct mdp5_kms *mdp5_kms = get_kms(smp); in mdp5_smp_assign() local
168 struct drm_device *dev = mdp5_kms->dev; in mdp5_smp_assign()
257 struct mdp5_kms *mdp5_kms = get_kms(smp); in write_smp_alloc_regs() local
272 struct mdp5_kms *mdp5_kms = get_kms(smp); in write_smp_fifo_regs() local
275 for (i = 0; i < mdp5_kms->num_hwpipes; i++) { in write_smp_fifo_regs()
330 struct mdp5_kms *mdp5_kms = get_kms(smp); in mdp5_smp_dump() local
378 struct mdp5_smp *mdp5_smp_init(struct mdp5_kms *mdp5_kms, const struct mdp5_smp_block *cfg) in mdp5_smp_init() argument
[all …]
H A Dmdp5_plane.c80 struct mdp5_kms *mdp5_kms = get_kms(state->plane); in mdp5_plane_atomic_print_state() local
166 struct mdp5_kms *mdp5_kms = get_kms(plane); in mdp5_plane_cleanup_fb() local
235 struct mdp5_kms *mdp5_kms = get_kms(plane); in mdp5_plane_atomic_check_with_state() local
273 if (mdp5_kms->smp) { in mdp5_plane_atomic_check_with_state()
479 static void set_scanout_locked(struct mdp5_kms *mdp5_kms, in set_scanout_locked() argument
504 static void csc_disable(struct mdp5_kms *mdp5_kms, enum mdp5_pipe pipe) in csc_disable() argument
513 static void csc_enable(struct mdp5_kms *mdp5_kms, enum mdp5_pipe pipe, in csc_enable() argument
595 struct mdp5_kms *mdp5_kms = get_kms(plane); in calc_scalex_steps() local
618 struct mdp5_kms *mdp5_kms = get_kms(plane); in calc_scaley_steps() local
761 static void mdp5_hwpipe_mode_set(struct mdp5_kms *mdp5_kms, in mdp5_hwpipe_mode_set() argument
[all …]
H A Dmdp5_kms.h20 struct mdp5_kms { struct
82 struct mdp5_kms *mdp5_kms; member
89 struct mdp5_global_state * mdp5_get_existing_global_state(struct mdp5_kms *mdp5_kms);
172 static inline void mdp5_write(struct mdp5_kms *mdp5_kms, u32 reg, u32 data) in mdp5_write() argument
174 WARN_ON(mdp5_kms->enable_count <= 0); in mdp5_write()
175 msm_writel(data, mdp5_kms->mmio + reg); in mdp5_write()
178 static inline u32 mdp5_read(struct mdp5_kms *mdp5_kms, u32 reg) in mdp5_read() argument
180 WARN_ON(mdp5_kms->enable_count <= 0); in mdp5_read()
181 return msm_readl(mdp5_kms->mmio + reg); in mdp5_read()
272 int mdp5_irq_domain_init(struct mdp5_kms *mdp5_kms);
[all …]
H A Dmdp5_pipe.c15 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms)); in mdp5_pipe_assign() local
25 old_global_state = mdp5_get_existing_global_state(mdp5_kms); in mdp5_pipe_assign()
30 for (i = 0; i < mdp5_kms->num_hwpipes; i++) { in mdp5_pipe_assign()
31 struct mdp5_hw_pipe *cur = mdp5_kms->hwpipes[i]; in mdp5_pipe_assign()
64 for (j = i + 1; j < mdp5_kms->num_hwpipes; in mdp5_pipe_assign()
67 mdp5_kms->hwpipes[j]; in mdp5_pipe_assign()
94 if (mdp5_kms->smp) { in mdp5_pipe_assign()
101 ret = mdp5_smp_assign(mdp5_kms->smp, &new_global_state->smp, in mdp5_pipe_assign()
125 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms)); in mdp5_pipe_release() local
144 if (mdp5_kms->smp) { in mdp5_pipe_release()
[all …]
H A Dmdp5_crtc.c168 struct mdp5_kms *mdp5_kms = get_kms(&mdp5_crtc->base); in unref_cursor_worker() local
218 struct mdp5_kms *mdp5_kms = get_kms(crtc); in blend_setup() local
368 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_mode_set_nofb() local
495 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_atomic_disable() local
541 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_atomic_enable() local
702 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_atomic_check() local
887 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_restore_cursor() local
958 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_cursor_set() local
1041 struct mdp5_kms *mdp5_kms = get_kms(crtc); in mdp5_crtc_cursor_move() local
1089 struct mdp5_kms *mdp5_kms = get_kms(state->crtc); in mdp5_crtc_atomic_print_state() local
[all …]
H A Dmdp5_mixer.c19 static int get_right_pair_idx(struct mdp5_kms *mdp5_kms, int lm) in get_right_pair_idx() argument
28 for (i = 0; i < mdp5_kms->num_hwmixers; i++) { in get_right_pair_idx()
29 struct mdp5_hw_mixer *mixer = mdp5_kms->hwmixers[i]; in get_right_pair_idx()
43 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms)); in mdp5_mixer_assign() local
53 for (i = 0; i < mdp5_kms->num_hwmixers; i++) { in mdp5_mixer_assign()
54 struct mdp5_hw_mixer *cur = mdp5_kms->hwmixers[i]; in mdp5_mixer_assign()
74 pair_idx = get_right_pair_idx(mdp5_kms, cur->lm); in mdp5_mixer_assign()
81 *r_mixer = mdp5_kms->hwmixers[pair_idx]; in mdp5_mixer_assign()
H A Dmdp5_ctl.c85 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_write() local
88 mdp5_write(mdp5_kms, reg, data); in ctl_write()
94 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in ctl_read() local
97 return mdp5_read(mdp5_kms, reg); in ctl_read()
100 static void set_display_intf(struct mdp5_kms *mdp5_kms, in set_display_intf() argument
106 spin_lock_irqsave(&mdp5_kms->resource_lock, flags); in set_display_intf()
170 struct mdp5_kms *mdp5_kms = get_kms(ctl->ctlm); in mdp5_ctl_set_pipeline() local
175 set_display_intf(mdp5_kms, intf); in mdp5_ctl_set_pipeline()
596 struct mdp5_kms *mdp5_kms = get_kms(ctl_mgr); in mdp5_ctl_pair() local
605 mdp5_write(mdp5_kms, REG_MDP5_SPARE_0, 0); in mdp5_ctl_pair()
[all …]
H A Dmdp5_smp.h60 struct mdp5_kms;
69 struct mdp5_smp *mdp5_smp_init(struct mdp5_kms *mdp5_kms,
H A Dmdp5_cfg.h111 struct mdp5_kms;
122 struct mdp5_cfg_handler *mdp5_cfg_init(struct mdp5_kms *mdp5_kms,
H A Dmdp5_cfg.c1358 struct mdp5_cfg_handler *mdp5_cfg_init(struct mdp5_kms *mdp5_kms, in mdp5_cfg_init() argument
1361 struct drm_device *dev = mdp5_kms->dev; in mdp5_cfg_init()
/openbmc/linux/drivers/gpu/drm/msm/
H A DMakefile51 disp/mdp5/mdp5_kms.o \