diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-22 03:36:25 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-27 08:16:58 -0500 |
commit | ba004e39b1997bb32150961eef4a5cd02ba3edec (patch) | |
tree | 4e583fa87569df462e90d175b927d93f6715d6ac /include/drm/drm_mm.h | |
parent | 7173320758e5dfcd7a47a51d3fe2b21c43d9633c (diff) |
drm: Fix kerneldoc for drm_mm_scan_remove_block()
The nodes must be removed in the *reverse* order. This is correct in the
overview, but backwards in the function description. Whilst here add
Intel's copyright statement and tweak some formatting.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-23-chris@chris-wilson.co.uk
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r-- | include/drm/drm_mm.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index 0ce8c3678c11..7eeb98b5bf70 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /************************************************************************** | 1 | /************************************************************************** |
2 | * | 2 | * |
3 | * Copyright 2006-2008 Tungsten Graphics, Inc., Cedar Park, TX. USA. | 3 | * Copyright 2006-2008 Tungsten Graphics, Inc., Cedar Park, TX. USA. |
4 | * Copyright 2016 Intel Corporation | ||
4 | * All Rights Reserved. | 5 | * All Rights Reserved. |
5 | * | 6 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 7 | * Permission is hereby granted, free of charge, to any person obtaining a |
@@ -117,7 +118,10 @@ struct drm_mm { | |||
117 | * drm_mm_node_allocated - checks whether a node is allocated | 118 | * drm_mm_node_allocated - checks whether a node is allocated |
118 | * @node: drm_mm_node to check | 119 | * @node: drm_mm_node to check |
119 | * | 120 | * |
120 | * Drivers should use this helpers for proper encapusulation of drm_mm | 121 | * Drivers are required to clear a node prior to using it with the |
122 | * drm_mm range manager. | ||
123 | * | ||
124 | * Drivers should use this helper for proper encapsulation of drm_mm | ||
121 | * internals. | 125 | * internals. |
122 | * | 126 | * |
123 | * Returns: | 127 | * Returns: |
@@ -132,7 +136,10 @@ static inline bool drm_mm_node_allocated(const struct drm_mm_node *node) | |||
132 | * drm_mm_initialized - checks whether an allocator is initialized | 136 | * drm_mm_initialized - checks whether an allocator is initialized |
133 | * @mm: drm_mm to check | 137 | * @mm: drm_mm to check |
134 | * | 138 | * |
135 | * Drivers should use this helpers for proper encapusulation of drm_mm | 139 | * Drivers should clear the struct drm_mm prior to initialisation if they |
140 | * want to use this function. | ||
141 | * | ||
142 | * Drivers should use this helper for proper encapsulation of drm_mm | ||
136 | * internals. | 143 | * internals. |
137 | * | 144 | * |
138 | * Returns: | 145 | * Returns: |
@@ -152,8 +159,8 @@ static inline u64 __drm_mm_hole_node_start(const struct drm_mm_node *hole_node) | |||
152 | * drm_mm_hole_node_start - computes the start of the hole following @node | 159 | * drm_mm_hole_node_start - computes the start of the hole following @node |
153 | * @hole_node: drm_mm_node which implicitly tracks the following hole | 160 | * @hole_node: drm_mm_node which implicitly tracks the following hole |
154 | * | 161 | * |
155 | * This is useful for driver-sepific debug dumpers. Otherwise drivers should not | 162 | * This is useful for driver-specific debug dumpers. Otherwise drivers should |
156 | * inspect holes themselves. Drivers must check first whether a hole indeed | 163 | * not inspect holes themselves. Drivers must check first whether a hole indeed |
157 | * follows by looking at node->hole_follows. | 164 | * follows by looking at node->hole_follows. |
158 | * | 165 | * |
159 | * Returns: | 166 | * Returns: |
@@ -174,8 +181,8 @@ static inline u64 __drm_mm_hole_node_end(const struct drm_mm_node *hole_node) | |||
174 | * drm_mm_hole_node_end - computes the end of the hole following @node | 181 | * drm_mm_hole_node_end - computes the end of the hole following @node |
175 | * @hole_node: drm_mm_node which implicitly tracks the following hole | 182 | * @hole_node: drm_mm_node which implicitly tracks the following hole |
176 | * | 183 | * |
177 | * This is useful for driver-sepific debug dumpers. Otherwise drivers should not | 184 | * This is useful for driver-specific debug dumpers. Otherwise drivers should |
178 | * inspect holes themselves. Drivers must check first whether a hole indeed | 185 | * not inspect holes themselves. Drivers must check first whether a hole indeed |
179 | * follows by looking at node->hole_follows. | 186 | * follows by looking at node->hole_follows. |
180 | * | 187 | * |
181 | * Returns: | 188 | * Returns: |