Lines Matching refs:comp

67 	void (*config)(struct mtk_ddp_comp *comp, unsigned int w,
69 void (*start)(struct mtk_ddp_comp *comp);
70 void (*stop)(struct mtk_ddp_comp *comp);
71 void (*enable_vblank)(struct mtk_ddp_comp *comp, struct drm_crtc *crtc);
72 void (*disable_vblank)(struct mtk_ddp_comp *comp);
73 unsigned int (*layer_nr)(struct mtk_ddp_comp *comp);
74 void (*layer_on)(struct mtk_ddp_comp *comp, unsigned int idx);
75 void (*layer_off)(struct mtk_ddp_comp *comp, unsigned int idx);
76 void (*layer_config)(struct mtk_ddp_comp *comp, unsigned int idx,
78 void (*gamma_set)(struct mtk_ddp_comp *comp,
91 static inline void mtk_ddp_comp_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_config() argument
95 if (comp->funcs && comp->funcs->config) in mtk_ddp_comp_config()
96 comp->funcs->config(comp, w, h, vrefresh, bpc); in mtk_ddp_comp_config()
99 static inline void mtk_ddp_comp_start(struct mtk_ddp_comp *comp) in mtk_ddp_comp_start() argument
101 if (comp->funcs && comp->funcs->start) in mtk_ddp_comp_start()
102 comp->funcs->start(comp); in mtk_ddp_comp_start()
105 static inline void mtk_ddp_comp_stop(struct mtk_ddp_comp *comp) in mtk_ddp_comp_stop() argument
107 if (comp->funcs && comp->funcs->stop) in mtk_ddp_comp_stop()
108 comp->funcs->stop(comp); in mtk_ddp_comp_stop()
111 static inline void mtk_ddp_comp_enable_vblank(struct mtk_ddp_comp *comp, in mtk_ddp_comp_enable_vblank() argument
114 if (comp->funcs && comp->funcs->enable_vblank) in mtk_ddp_comp_enable_vblank()
115 comp->funcs->enable_vblank(comp, crtc); in mtk_ddp_comp_enable_vblank()
118 static inline void mtk_ddp_comp_disable_vblank(struct mtk_ddp_comp *comp) in mtk_ddp_comp_disable_vblank() argument
120 if (comp->funcs && comp->funcs->disable_vblank) in mtk_ddp_comp_disable_vblank()
121 comp->funcs->disable_vblank(comp); in mtk_ddp_comp_disable_vblank()
124 static inline unsigned int mtk_ddp_comp_layer_nr(struct mtk_ddp_comp *comp) in mtk_ddp_comp_layer_nr() argument
126 if (comp->funcs && comp->funcs->layer_nr) in mtk_ddp_comp_layer_nr()
127 return comp->funcs->layer_nr(comp); in mtk_ddp_comp_layer_nr()
132 static inline void mtk_ddp_comp_layer_on(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_on() argument
135 if (comp->funcs && comp->funcs->layer_on) in mtk_ddp_comp_layer_on()
136 comp->funcs->layer_on(comp, idx); in mtk_ddp_comp_layer_on()
139 static inline void mtk_ddp_comp_layer_off(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_off() argument
142 if (comp->funcs && comp->funcs->layer_off) in mtk_ddp_comp_layer_off()
143 comp->funcs->layer_off(comp, idx); in mtk_ddp_comp_layer_off()
146 static inline void mtk_ddp_comp_layer_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_config() argument
150 if (comp->funcs && comp->funcs->layer_config) in mtk_ddp_comp_layer_config()
151 comp->funcs->layer_config(comp, idx, state); in mtk_ddp_comp_layer_config()
154 static inline void mtk_ddp_gamma_set(struct mtk_ddp_comp *comp, in mtk_ddp_gamma_set() argument
157 if (comp->funcs && comp->funcs->gamma_set) in mtk_ddp_gamma_set()
158 comp->funcs->gamma_set(comp, state); in mtk_ddp_gamma_set()
164 struct mtk_ddp_comp *comp, enum mtk_ddp_comp_id comp_id,
166 int mtk_ddp_comp_register(struct drm_device *drm, struct mtk_ddp_comp *comp);
167 void mtk_ddp_comp_unregister(struct drm_device *drm, struct mtk_ddp_comp *comp);
168 void mtk_dither_set(struct mtk_ddp_comp *comp, unsigned int bpc,