Lines Matching refs:drm_mm

51 #include <drm/drm_mm.h>
56 * drm_mm provides a simple range allocator. The drivers are free to use the
57 * resource allocator from the linux core if it suits them, the upside of drm_mm
61 * The main data struct is &drm_mm, allocations are tracked in &drm_mm_node.
63 * datastructures. drm_mm itself will not do any memory allocations of its own,
74 * drm_mm maintains a stack of most recently freed holes, which of all
77 * searches are O(num_holes). Given that all the fancy features drm_mm supports
81 * drm_mm supports a few features: Alignment and range restrictions can be
118 static void show_leaks(struct drm_mm *mm)
146 static void show_leaks(struct drm_mm *mm) { }
157 __drm_mm_interval_first(const struct drm_mm *mm, u64 start, u64 last)
167 struct drm_mm *mm = hole_node->mm;
268 struct drm_mm *mm = node->mm;
305 static struct drm_mm_node *best_hole(struct drm_mm *mm, u64 size)
330 static struct drm_mm_node *find_hole_addr(struct drm_mm *mm, u64 addr, u64 size)
356 first_hole(struct drm_mm *mm,
414 next_hole(struct drm_mm *mm,
438 * @mm: drm_mm allocator to insert @node into
450 int drm_mm_reserve_node(struct drm_mm *mm, struct drm_mm_node *node)
500 * @mm: drm_mm to allocate from
514 int drm_mm_insert_node_in_range(struct drm_mm * const mm,
623 * This just removes a node from its drm_mm allocator. The node does not need to
624 * be cleared again before it can be re-inserted into this or any other drm_mm
629 struct drm_mm *mm = node->mm;
686 * @mm: drm_mm to scan
702 struct drm_mm *mm,
736 * @scan: the active drm_mm scanner
748 struct drm_mm *mm = scan->mm;
819 * @scan: the active drm_mm scanner
868 * @scan: drm_mm scan with target hole
879 struct drm_mm *mm = scan->mm;
922 * @mm: the drm_mm structure to initialize
928 void drm_mm_init(struct drm_mm *mm, u64 start, u64 size)
956 * drm_mm_takedown - clean up a drm_mm allocator
957 * @mm: drm_mm allocator to clean up
962 void drm_mm_takedown(struct drm_mm *mm)
985 * @mm: drm_mm allocator to print
988 void drm_mm_print(const struct drm_mm *mm, struct drm_printer *p)