diff options
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r-- | include/drm/drm_mm.h | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index 88591ef8fa24..4d06edb56d5f 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h | |||
@@ -177,17 +177,6 @@ static inline struct drm_mm_node *drm_mm_get_block_range( | |||
177 | return drm_mm_get_block_range_generic(parent, size, alignment, 0, | 177 | return drm_mm_get_block_range_generic(parent, size, alignment, 0, |
178 | start, end, 0); | 178 | start, end, 0); |
179 | } | 179 | } |
180 | static inline struct drm_mm_node *drm_mm_get_color_block_range( | ||
181 | struct drm_mm_node *parent, | ||
182 | unsigned long size, | ||
183 | unsigned alignment, | ||
184 | unsigned long color, | ||
185 | unsigned long start, | ||
186 | unsigned long end) | ||
187 | { | ||
188 | return drm_mm_get_block_range_generic(parent, size, alignment, color, | ||
189 | start, end, 0); | ||
190 | } | ||
191 | static inline struct drm_mm_node *drm_mm_get_block_atomic_range( | 180 | static inline struct drm_mm_node *drm_mm_get_block_atomic_range( |
192 | struct drm_mm_node *parent, | 181 | struct drm_mm_node *parent, |
193 | unsigned long size, | 182 | unsigned long size, |
@@ -255,29 +244,10 @@ static inline struct drm_mm_node *drm_mm_search_free_in_range( | |||
255 | return drm_mm_search_free_in_range_generic(mm, size, alignment, 0, | 244 | return drm_mm_search_free_in_range_generic(mm, size, alignment, 0, |
256 | start, end, best_match); | 245 | start, end, best_match); |
257 | } | 246 | } |
258 | static inline struct drm_mm_node *drm_mm_search_free_color(const struct drm_mm *mm, | 247 | |
259 | unsigned long size, | 248 | extern void drm_mm_init(struct drm_mm *mm, |
260 | unsigned alignment, | 249 | unsigned long start, |
261 | unsigned long color, | 250 | unsigned long size); |
262 | bool best_match) | ||
263 | { | ||
264 | return drm_mm_search_free_generic(mm,size, alignment, color, best_match); | ||
265 | } | ||
266 | static inline struct drm_mm_node *drm_mm_search_free_in_range_color( | ||
267 | const struct drm_mm *mm, | ||
268 | unsigned long size, | ||
269 | unsigned alignment, | ||
270 | unsigned long color, | ||
271 | unsigned long start, | ||
272 | unsigned long end, | ||
273 | bool best_match) | ||
274 | { | ||
275 | return drm_mm_search_free_in_range_generic(mm, size, alignment, color, | ||
276 | start, end, best_match); | ||
277 | } | ||
278 | extern int drm_mm_init(struct drm_mm *mm, | ||
279 | unsigned long start, | ||
280 | unsigned long size); | ||
281 | extern void drm_mm_takedown(struct drm_mm *mm); | 251 | extern void drm_mm_takedown(struct drm_mm *mm); |
282 | extern int drm_mm_clean(struct drm_mm *mm); | 252 | extern int drm_mm_clean(struct drm_mm *mm); |
283 | extern int drm_mm_pre_get(struct drm_mm *mm); | 253 | extern int drm_mm_pre_get(struct drm_mm *mm); |