Lines Matching full:engine
29 * This callback allows to prepare our engine for an atomic
36 void (*atomic_begin)(struct sunxi_engine *engine,
53 int (*atomic_check)(struct sunxi_engine *engine,
65 void (*commit)(struct sunxi_engine *engine);
71 * the layers supported by that engine.
81 struct sunxi_engine *engine);
87 * engine. This is useful only for the composite output.
91 void (*apply_color_correction)(struct sunxi_engine *engine);
97 * engine. This is useful only for the composite output.
101 void (*disable_color_correction)(struct sunxi_engine *engine);
106 * This callback is used to implement engine-specific
114 void (*vblank_quirk)(struct sunxi_engine *engine);
118 * struct sunxi_engine - the common parts of an engine for sun4i-drm driver
119 * @ops: the operations of the engine
120 * @node: the of device node of the engine
121 * @regs: the regmap of the engine
122 * @id: the id of the engine (-1 if not used)
132 /* Engine list management */
137 * sunxi_engine_commit() - commit all changes of the engine
138 * @engine: pointer to the engine
141 sunxi_engine_commit(struct sunxi_engine *engine) in sunxi_engine_commit() argument
143 if (engine->ops && engine->ops->commit) in sunxi_engine_commit()
144 engine->ops->commit(engine); in sunxi_engine_commit()
148 * sunxi_engine_layers_init() - Create planes (layers) for the engine
150 * @engine: pointer to the engine
153 sunxi_engine_layers_init(struct drm_device *drm, struct sunxi_engine *engine) in sunxi_engine_layers_init() argument
155 if (engine->ops && engine->ops->layers_init) in sunxi_engine_layers_init()
156 return engine->ops->layers_init(drm, engine); in sunxi_engine_layers_init()
162 * @engine: pointer to the engine
164 * This functionality is optional for an engine, however, if the engine is
166 * without the color correction, due to TV Encoder expects the engine to
170 sunxi_engine_apply_color_correction(struct sunxi_engine *engine) in sunxi_engine_apply_color_correction() argument
172 if (engine->ops && engine->ops->apply_color_correction) in sunxi_engine_apply_color_correction()
173 engine->ops->apply_color_correction(engine); in sunxi_engine_apply_color_correction()
178 * @engine: pointer to the engine
183 sunxi_engine_disable_color_correction(struct sunxi_engine *engine) in sunxi_engine_disable_color_correction() argument
185 if (engine->ops && engine->ops->disable_color_correction) in sunxi_engine_disable_color_correction()
186 engine->ops->disable_color_correction(engine); in sunxi_engine_disable_color_correction()