Lines Matching refs:overlay
69 u32 caps, u32 fourcc, struct omap_hw_overlay **overlay, in omap_overlay_assign() argument
82 *overlay = ovl; in omap_overlay_assign()
89 *overlay = NULL; in omap_overlay_assign()
113 void omap_overlay_release(struct drm_atomic_state *s, struct omap_hw_overlay *overlay) in omap_overlay_release() argument
119 if (!overlay) in omap_overlay_release()
122 if (WARN_ON(!overlay_map[overlay->idx])) in omap_overlay_release()
125 DBG("%s: release from plane %s", overlay->name, overlay_map[overlay->idx]->name); in omap_overlay_release()
127 overlay_map[overlay->idx] = NULL; in omap_overlay_release()
137 struct omap_hw_overlay *overlay) in omap_overlay_update_state() argument
143 if (!overlay_map[overlay->idx]) { in omap_overlay_update_state()
144 DBG("%s: disabled", overlay->name); in omap_overlay_update_state()
147 dispc_ovl_enable(priv->dispc, overlay->id, false); in omap_overlay_update_state()
151 static void omap_overlay_destroy(struct omap_hw_overlay *overlay) in omap_overlay_destroy() argument
153 kfree(overlay); in omap_overlay_destroy()
159 struct omap_hw_overlay *overlay; in omap_overlay_init() local
161 overlay = kzalloc(sizeof(*overlay), GFP_KERNEL); in omap_overlay_init()
162 if (!overlay) in omap_overlay_init()
165 overlay->name = overlay_id_to_name[overlay_id]; in omap_overlay_init()
166 overlay->id = overlay_id; in omap_overlay_init()
167 overlay->caps = caps; in omap_overlay_init()
169 return overlay; in omap_overlay_init()
183 struct omap_hw_overlay *overlay; in omap_hwoverlays_init() local
186 overlay = omap_overlay_init(hw_plane_ids[i], caps); in omap_hwoverlays_init()
187 if (IS_ERR(overlay)) { in omap_hwoverlays_init()
188 ret = PTR_ERR(overlay); in omap_hwoverlays_init()
194 overlay->idx = priv->num_ovls; in omap_hwoverlays_init()
195 priv->overlays[priv->num_ovls++] = overlay; in omap_hwoverlays_init()