Lines Matching refs:comp
75 void (*config)(struct mtk_ddp_comp *comp, unsigned int w,
77 void (*start)(struct mtk_ddp_comp *comp);
78 void (*stop)(struct mtk_ddp_comp *comp);
79 void (*enable_vblank)(struct mtk_ddp_comp *comp, struct drm_crtc *crtc);
80 void (*disable_vblank)(struct mtk_ddp_comp *comp);
81 unsigned int (*layer_nr)(struct mtk_ddp_comp *comp);
82 void (*layer_on)(struct mtk_ddp_comp *comp, unsigned int idx);
83 void (*layer_off)(struct mtk_ddp_comp *comp, unsigned int idx);
84 void (*layer_config)(struct mtk_ddp_comp *comp, unsigned int idx,
86 void (*gamma_set)(struct mtk_ddp_comp *comp,
99 static inline void mtk_ddp_comp_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_config() argument
103 if (comp->funcs && comp->funcs->config) in mtk_ddp_comp_config()
104 comp->funcs->config(comp, w, h, vrefresh, bpc); in mtk_ddp_comp_config()
107 static inline void mtk_ddp_comp_start(struct mtk_ddp_comp *comp) in mtk_ddp_comp_start() argument
109 if (comp->funcs && comp->funcs->start) in mtk_ddp_comp_start()
110 comp->funcs->start(comp); in mtk_ddp_comp_start()
113 static inline void mtk_ddp_comp_stop(struct mtk_ddp_comp *comp) in mtk_ddp_comp_stop() argument
115 if (comp->funcs && comp->funcs->stop) in mtk_ddp_comp_stop()
116 comp->funcs->stop(comp); in mtk_ddp_comp_stop()
119 static inline void mtk_ddp_comp_enable_vblank(struct mtk_ddp_comp *comp, in mtk_ddp_comp_enable_vblank() argument
122 if (comp->funcs && comp->funcs->enable_vblank) in mtk_ddp_comp_enable_vblank()
123 comp->funcs->enable_vblank(comp, crtc); in mtk_ddp_comp_enable_vblank()
126 static inline void mtk_ddp_comp_disable_vblank(struct mtk_ddp_comp *comp) in mtk_ddp_comp_disable_vblank() argument
128 if (comp->funcs && comp->funcs->disable_vblank) in mtk_ddp_comp_disable_vblank()
129 comp->funcs->disable_vblank(comp); in mtk_ddp_comp_disable_vblank()
132 static inline unsigned int mtk_ddp_comp_layer_nr(struct mtk_ddp_comp *comp) in mtk_ddp_comp_layer_nr() argument
134 if (comp->funcs && comp->funcs->layer_nr) in mtk_ddp_comp_layer_nr()
135 return comp->funcs->layer_nr(comp); in mtk_ddp_comp_layer_nr()
140 static inline void mtk_ddp_comp_layer_on(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_on() argument
143 if (comp->funcs && comp->funcs->layer_on) in mtk_ddp_comp_layer_on()
144 comp->funcs->layer_on(comp, idx); in mtk_ddp_comp_layer_on()
147 static inline void mtk_ddp_comp_layer_off(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_off() argument
150 if (comp->funcs && comp->funcs->layer_off) in mtk_ddp_comp_layer_off()
151 comp->funcs->layer_off(comp, idx); in mtk_ddp_comp_layer_off()
154 static inline void mtk_ddp_comp_layer_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_config() argument
158 if (comp->funcs && comp->funcs->layer_config) in mtk_ddp_comp_layer_config()
159 comp->funcs->layer_config(comp, idx, state); in mtk_ddp_comp_layer_config()
162 static inline void mtk_ddp_gamma_set(struct mtk_ddp_comp *comp, in mtk_ddp_gamma_set() argument
165 if (comp->funcs && comp->funcs->gamma_set) in mtk_ddp_gamma_set()
166 comp->funcs->gamma_set(comp, state); in mtk_ddp_gamma_set()
172 struct mtk_ddp_comp *comp, enum mtk_ddp_comp_id comp_id,
174 int mtk_ddp_comp_register(struct drm_device *drm, struct mtk_ddp_comp *comp);
175 void mtk_ddp_comp_unregister(struct drm_device *drm, struct mtk_ddp_comp *comp);
176 void mtk_dither_set(struct mtk_ddp_comp *comp, unsigned int bpc,