Lines Matching full:comp
83 static inline int mtk_ddp_comp_clk_enable(struct mtk_ddp_comp *comp) in mtk_ddp_comp_clk_enable() argument
85 if (comp->funcs && comp->funcs->clk_enable) in mtk_ddp_comp_clk_enable()
86 return comp->funcs->clk_enable(comp->dev); in mtk_ddp_comp_clk_enable()
91 static inline void mtk_ddp_comp_clk_disable(struct mtk_ddp_comp *comp) in mtk_ddp_comp_clk_disable() argument
93 if (comp->funcs && comp->funcs->clk_disable) in mtk_ddp_comp_clk_disable()
94 comp->funcs->clk_disable(comp->dev); in mtk_ddp_comp_clk_disable()
97 static inline void mtk_ddp_comp_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_config() argument
102 if (comp->funcs && comp->funcs->config) in mtk_ddp_comp_config()
103 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
106 static inline void mtk_ddp_comp_start(struct mtk_ddp_comp *comp) in mtk_ddp_comp_start() argument
108 if (comp->funcs && comp->funcs->start) in mtk_ddp_comp_start()
109 comp->funcs->start(comp->dev); in mtk_ddp_comp_start()
112 static inline void mtk_ddp_comp_stop(struct mtk_ddp_comp *comp) in mtk_ddp_comp_stop() argument
114 if (comp->funcs && comp->funcs->stop) in mtk_ddp_comp_stop()
115 comp->funcs->stop(comp->dev); in mtk_ddp_comp_stop()
118 static inline void mtk_ddp_comp_register_vblank_cb(struct mtk_ddp_comp *comp, in mtk_ddp_comp_register_vblank_cb() argument
122 if (comp->funcs && comp->funcs->register_vblank_cb) in mtk_ddp_comp_register_vblank_cb()
123 comp->funcs->register_vblank_cb(comp->dev, vblank_cb, in mtk_ddp_comp_register_vblank_cb()
127 static inline void mtk_ddp_comp_unregister_vblank_cb(struct mtk_ddp_comp *comp) in mtk_ddp_comp_unregister_vblank_cb() argument
129 if (comp->funcs && comp->funcs->unregister_vblank_cb) in mtk_ddp_comp_unregister_vblank_cb()
130 comp->funcs->unregister_vblank_cb(comp->dev); in mtk_ddp_comp_unregister_vblank_cb()
133 static inline void mtk_ddp_comp_enable_vblank(struct mtk_ddp_comp *comp) in mtk_ddp_comp_enable_vblank() argument
135 if (comp->funcs && comp->funcs->enable_vblank) in mtk_ddp_comp_enable_vblank()
136 comp->funcs->enable_vblank(comp->dev); in mtk_ddp_comp_enable_vblank()
139 static inline void mtk_ddp_comp_disable_vblank(struct mtk_ddp_comp *comp) in mtk_ddp_comp_disable_vblank() argument
141 if (comp->funcs && comp->funcs->disable_vblank) in mtk_ddp_comp_disable_vblank()
142 comp->funcs->disable_vblank(comp->dev); in mtk_ddp_comp_disable_vblank()
146 unsigned int mtk_ddp_comp_supported_rotations(struct mtk_ddp_comp *comp) in mtk_ddp_comp_supported_rotations() argument
148 if (comp->funcs && comp->funcs->supported_rotations) in mtk_ddp_comp_supported_rotations()
149 return comp->funcs->supported_rotations(comp->dev); in mtk_ddp_comp_supported_rotations()
154 static inline unsigned int mtk_ddp_comp_layer_nr(struct mtk_ddp_comp *comp) in mtk_ddp_comp_layer_nr() argument
156 if (comp->funcs && comp->funcs->layer_nr) in mtk_ddp_comp_layer_nr()
157 return comp->funcs->layer_nr(comp->dev); in mtk_ddp_comp_layer_nr()
162 static inline int mtk_ddp_comp_layer_check(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_check() argument
166 if (comp->funcs && comp->funcs->layer_check) in mtk_ddp_comp_layer_check()
167 return comp->funcs->layer_check(comp->dev, idx, state); in mtk_ddp_comp_layer_check()
171 static inline void mtk_ddp_comp_layer_config(struct mtk_ddp_comp *comp, in mtk_ddp_comp_layer_config() argument
176 if (comp->funcs && comp->funcs->layer_config) in mtk_ddp_comp_layer_config()
177 comp->funcs->layer_config(comp->dev, idx, state, cmdq_pkt); in mtk_ddp_comp_layer_config()
180 static inline void mtk_ddp_gamma_set(struct mtk_ddp_comp *comp, in mtk_ddp_gamma_set() argument
183 if (comp->funcs && comp->funcs->gamma_set) in mtk_ddp_gamma_set()
184 comp->funcs->gamma_set(comp->dev, state); in mtk_ddp_gamma_set()
187 static inline void mtk_ddp_comp_bgclr_in_on(struct mtk_ddp_comp *comp) in mtk_ddp_comp_bgclr_in_on() argument
189 if (comp->funcs && comp->funcs->bgclr_in_on) in mtk_ddp_comp_bgclr_in_on()
190 comp->funcs->bgclr_in_on(comp->dev); in mtk_ddp_comp_bgclr_in_on()
193 static inline void mtk_ddp_comp_bgclr_in_off(struct mtk_ddp_comp *comp) in mtk_ddp_comp_bgclr_in_off() argument
195 if (comp->funcs && comp->funcs->bgclr_in_off) in mtk_ddp_comp_bgclr_in_off()
196 comp->funcs->bgclr_in_off(comp->dev); in mtk_ddp_comp_bgclr_in_off()
199 static inline void mtk_ddp_ctm_set(struct mtk_ddp_comp *comp, in mtk_ddp_ctm_set() argument
202 if (comp->funcs && comp->funcs->ctm_set) in mtk_ddp_ctm_set()
203 comp->funcs->ctm_set(comp->dev, state); in mtk_ddp_ctm_set()
210 int mtk_ddp_comp_init(struct device_node *comp_node, struct mtk_ddp_comp *comp,