Searched refs:mdp_kms (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/msm/mdp/
H A Dmdp_kms.c20 #include "mdp_kms.h"
32 static void update_irq(struct mdp_kms *mdp_kms) update_irq() argument
35 uint32_t irqmask = mdp_kms->vblank_mask; update_irq()
39 list_for_each_entry(irq, &mdp_kms->irq_list, node) update_irq()
42 mdp_kms->funcs->set_irqmask(mdp_kms, irqmask, mdp_kms->cur_irq_mask); update_irq()
43 mdp_kms->cur_irq_mask = irqmask; update_irq()
49 void mdp_irq_update(struct mdp_kms *mdp_kms) mdp_irq_update() argument
53 update_irq(mdp_kms); mdp_irq_update()
57 void mdp_dispatch_irqs(struct mdp_kms *mdp_kms, uint32_t status) mdp_dispatch_irqs() argument
63 mdp_kms->in_irq = true; mdp_dispatch_irqs()
64 list_for_each_entry_safe(handler, n, &mdp_kms->irq_list, node) { mdp_dispatch_irqs()
71 mdp_kms->in_irq = false; mdp_dispatch_irqs()
72 update_irq(mdp_kms); mdp_dispatch_irqs()
77 void mdp_update_vblank_mask(struct mdp_kms *mdp_kms, uint32_t mask, bool enable) mdp_update_vblank_mask() argument
83 mdp_kms->vblank_mask |= mask; mdp_update_vblank_mask()
85 mdp_kms->vblank_mask &= ~mask; mdp_update_vblank_mask()
86 update_irq(mdp_kms); mdp_update_vblank_mask()
98 void mdp_irq_wait(struct mdp_kms *mdp_kms, uint32_t irqmask) mdp_irq_wait() argument
107 mdp_irq_register(mdp_kms, &wait.irq); mdp_irq_wait()
110 mdp_irq_unregister(mdp_kms, &wait.irq); mdp_irq_wait()
113 void mdp_irq_register(struct mdp_kms *mdp_kms, struct mdp_irq *irq) mdp_irq_register() argument
122 list_add(&irq->node, &mdp_kms->irq_list); mdp_irq_register()
123 needs_update = !mdp_kms->in_irq; mdp_irq_register()
129 mdp_irq_update(mdp_kms); mdp_irq_register()
132 void mdp_irq_unregister(struct mdp_kms *mdp_kms, struct mdp_irq *irq) mdp_irq_unregister() argument
142 needs_update = !mdp_kms->in_irq; mdp_irq_unregister()
148 mdp_irq_update(mdp_kms); mdp_irq_unregister()
H A Dmdp_kms.h29 struct mdp_kms;
33 void (*set_irqmask)(struct mdp_kms *mdp_kms, uint32_t irqmask,
37 struct mdp_kms { struct
48 #define to_mdp_kms(x) container_of(x, struct mdp_kms, base)
50 static inline void mdp_kms_init(struct mdp_kms *mdp_kms, mdp_kms_init() argument
53 mdp_kms->funcs = funcs; mdp_kms_init()
54 INIT_LIST_HEAD(&mdp_kms->irq_list); mdp_kms_init()
55 msm_kms_init(&mdp_kms->base, &funcs->base); mdp_kms_init()
75 void mdp_dispatch_irqs(struct mdp_kms *mdp_kms, uint32_t status);
76 void mdp_update_vblank_mask(struct mdp_kms *mdp_kms, uint32_t mask, bool enable);
77 void mdp_irq_wait(struct mdp_kms *mdp_kms, uint32_t irqmask);
78 void mdp_irq_register(struct mdp_kms *mdp_kms, struct mdp_irq *irq);
79 void mdp_irq_unregister(struct mdp_kms *mdp_kms, struct mdp_irq *irq);
80 void mdp_irq_update(struct mdp_kms *mdp_kms);
H A Dmdp_format.c21 #include "mdp_kms.h"
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
H A Dmdp4_irq.c22 void mdp4_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask, mdp4_set_irqmask() argument
25 mdp4_write(to_mdp4_kms(mdp_kms), REG_MDP4_INTR_CLEAR, mdp4_set_irqmask()
27 mdp4_write(to_mdp4_kms(mdp_kms), REG_MDP4_INTR_ENABLE, irqmask); mdp4_set_irqmask()
46 struct mdp_kms *mdp_kms = to_mdp_kms(kms); mdp4_irq_postinstall() local
47 struct mdp4_kms *mdp4_kms = to_mdp4_kms(mdp_kms); mdp4_irq_postinstall()
54 mdp_irq_register(mdp_kms, error_handler); mdp4_irq_postinstall()
69 struct mdp_kms *mdp_kms = to_mdp_kms(kms); mdp4_irq() local
70 struct mdp4_kms *mdp4_kms = to_mdp4_kms(mdp_kms); mdp4_irq()
82 mdp_dispatch_irqs(mdp_kms, status); mdp4_irq()
H A Dmdp4_kms.h23 #include "mdp/mdp_kms.h"
29 struct mdp_kms base;
170 void mdp4_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask,
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_irq.c24 void mdp5_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask, mdp5_set_irqmask() argument
27 mdp5_write(to_mdp5_kms(mdp_kms), REG_MDP5_MDP_INTR_CLEAR(0), mdp5_set_irqmask()
29 mdp5_write(to_mdp5_kms(mdp_kms), REG_MDP5_MDP_INTR_EN(0), irqmask); mdp5_set_irqmask()
48 struct mdp_kms *mdp_kms = to_mdp_kms(kms); mdp5_irq_postinstall() local
49 struct mdp5_kms *mdp5_kms = to_mdp5_kms(mdp_kms); mdp5_irq_postinstall()
58 mdp_irq_register(mdp_kms, error_handler); mdp5_irq_postinstall()
71 static void mdp5_irq_mdp(struct mdp_kms *mdp_kms) mdp5_irq_mdp() argument
73 struct mdp5_kms *mdp5_kms = to_mdp5_kms(mdp_kms); mdp5_irq_mdp()
85 mdp_dispatch_irqs(mdp_kms, status); mdp5_irq_mdp()
94 struct mdp_kms *mdp_kms = to_mdp_kms(kms); mdp5_irq() local
95 struct mdp5_kms *mdp5_kms = to_mdp5_kms(mdp_kms); mdp5_irq()
103 mdp5_irq_mdp(mdp_kms); mdp5_irq()
H A Dmdp5_kms.h23 #include "mdp/mdp_kms.h"
30 struct mdp_kms base;
191 void mdp5_set_irqmask(struct mdp_kms *mdp_kms, uint32_t irqmask,
/linux-4.4.14/drivers/gpu/drm/msm/
H A DMakefile25 mdp/mdp_kms.o \

Completed in 149 milliseconds