39 #include <linux/list.h>
40 #ifdef CONFIG_DEBUG_FS
80 unsigned long *
start,
unsigned long *
end);
88 static inline bool drm_mm_initialized(
struct drm_mm *
mm)
92 #define drm_mm_for_each_node(entry, mm) list_for_each_entry(entry, \
93 &(mm)->head_node.node_list, \
95 #define drm_mm_for_each_scanned_node_reverse(entry, n, mm) \
96 for (entry = (mm)->prev_scanned_node, \
97 next = entry ? list_entry(entry->node_list.next, \
98 struct drm_mm_node, node_list) : NULL; \
99 entry != NULL; entry = next, \
100 next = entry ? list_entry(entry->node_list.next, \
101 struct drm_mm_node, node_list) : NULL) \
130 static inline struct drm_mm_node *drm_mm_get_block_range(
140 static inline struct drm_mm_node *drm_mm_get_color_block_range(
151 static inline struct drm_mm_node *drm_mm_get_block_atomic_range(
166 unsigned long start,
unsigned long end);
190 static inline struct drm_mm_node *drm_mm_search_free_in_range(
199 start, end, best_match);
209 static inline struct drm_mm_node *drm_mm_search_free_in_range_color(
219 start, end, best_match);
236 unsigned long color);
247 #ifdef CONFIG_DEBUG_FS