Lines Matching refs:Crtc
107 Crtc* ResourceManager::reserve_crtc(Connector* conn)
112 if (Crtc* crtc = conn->get_current_crtc()) {
113 m_reserved_crtcs.insert(crtc);
114 return crtc;
117 for (Crtc* crtc : conn->get_possible_crtcs()) {
118 if (m_reserved_crtcs.count(crtc))
121 m_reserved_crtcs.insert(crtc);
122 return crtc;
128 Crtc* ResourceManager::reserve_crtc(Crtc* crtc)
130 if (!crtc)
133 if (m_reserved_crtcs.count(crtc))
136 m_reserved_crtcs.insert(crtc);
138 return crtc;
141 Plane* ResourceManager::reserve_plane(Crtc* crtc, PlaneType type, PixelFormat format)
143 if (!crtc)
146 for (Plane* plane : crtc->get_possible_planes()) {
176 Plane* ResourceManager::reserve_generic_plane(Crtc* crtc, PixelFormat format)
178 if (!crtc)
181 for (Plane* plane : crtc->get_possible_planes()) {
198 Plane* ResourceManager::reserve_primary_plane(Crtc* crtc, PixelFormat format)
200 return reserve_plane(crtc, PlaneType::Primary, format);
203 Plane* ResourceManager::reserve_overlay_plane(Crtc* crtc, PixelFormat format)
205 return reserve_plane(crtc, PlaneType::Overlay, format);