Lines Matching full:engine
25 * This callback allows to prepare our engine for an atomic
32 void (*atomic_begin)(struct sunxi_engine *engine,
49 int (*atomic_check)(struct sunxi_engine *engine,
61 void (*commit)(struct sunxi_engine *engine);
67 * the layers supported by that engine.
77 struct sunxi_engine *engine);
83 * engine. This is useful only for the composite output.
87 void (*apply_color_correction)(struct sunxi_engine *engine);
93 * engine. This is useful only for the composite output.
97 void (*disable_color_correction)(struct sunxi_engine *engine);
102 * This callback is used to implement engine-specific
110 void (*vblank_quirk)(struct sunxi_engine *engine);
114 * struct sunxi_engine - the common parts of an engine for sun4i-drm driver
115 * @ops: the operations of the engine
116 * @node: the of device node of the engine
117 * @regs: the regmap of the engine
118 * @id: the id of the engine (-1 if not used)
128 /* Engine list management */
133 * sunxi_engine_commit() - commit all changes of the engine
134 * @engine: pointer to the engine
137 sunxi_engine_commit(struct sunxi_engine *engine) in sunxi_engine_commit() argument
139 if (engine->ops && engine->ops->commit) in sunxi_engine_commit()
140 engine->ops->commit(engine); in sunxi_engine_commit()
144 * sunxi_engine_layers_init() - Create planes (layers) for the engine
146 * @engine: pointer to the engine
149 sunxi_engine_layers_init(struct drm_device *drm, struct sunxi_engine *engine) in sunxi_engine_layers_init() argument
151 if (engine->ops && engine->ops->layers_init) in sunxi_engine_layers_init()
152 return engine->ops->layers_init(drm, engine); in sunxi_engine_layers_init()
158 * @engine: pointer to the engine
160 * This functionality is optional for an engine, however, if the engine is
162 * without the color correction, due to TV Encoder expects the engine to
166 sunxi_engine_apply_color_correction(struct sunxi_engine *engine) in sunxi_engine_apply_color_correction() argument
168 if (engine->ops && engine->ops->apply_color_correction) in sunxi_engine_apply_color_correction()
169 engine->ops->apply_color_correction(engine); in sunxi_engine_apply_color_correction()
174 * @engine: pointer to the engine
179 sunxi_engine_disable_color_correction(struct sunxi_engine *engine) in sunxi_engine_disable_color_correction() argument
181 if (engine->ops && engine->ops->disable_color_correction) in sunxi_engine_disable_color_correction()
182 engine->ops->disable_color_correction(engine); in sunxi_engine_disable_color_correction()