aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_dma.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-11 01:41:51 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-12 05:08:53 -0400
commita266162aef4f43307d18c88fb5ecaffd8e9303af (patch)
tree89f3a864bed6a08c7f145f201a3791d99461df51 /drivers/gpu/drm/drm_dma.c
parentedbaae5a5cab89de0e64b8c03ebd9a8d5d266550 (diff)
drm: Move dma functions into drm_legacy.h
Also drop the unneeded EXPORT_SYMBOL and sprinkle drm_legacy_ prefixes where missing. v2: Drop the confusing _core_ and drop extern, both suggested by David. Cc: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_dma.c')
-rw-r--r--drivers/gpu/drm/drm_dma.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_dma.c b/drivers/gpu/drm/drm_dma.c
index 8a140a953754..1b1dd356a1e4 100644
--- a/drivers/gpu/drm/drm_dma.c
+++ b/drivers/gpu/drm/drm_dma.c
@@ -124,7 +124,7 @@ void drm_legacy_dma_takedown(struct drm_device *dev)
124 * 124 *
125 * Resets the fields of \p buf. 125 * Resets the fields of \p buf.
126 */ 126 */
127void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf) 127void drm_legacy_free_buffer(struct drm_device *dev, struct drm_buf * buf)
128{ 128{
129 if (!buf) 129 if (!buf)
130 return; 130 return;
@@ -142,8 +142,8 @@ void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf)
142 * 142 *
143 * Frees each buffer associated with \p file_priv not already on the hardware. 143 * Frees each buffer associated with \p file_priv not already on the hardware.
144 */ 144 */
145void drm_core_reclaim_buffers(struct drm_device *dev, 145void drm_legacy_reclaim_buffers(struct drm_device *dev,
146 struct drm_file *file_priv) 146 struct drm_file *file_priv)
147{ 147{
148 struct drm_device_dma *dma = dev->dma; 148 struct drm_device_dma *dma = dev->dma;
149 int i; 149 int i;
@@ -154,7 +154,7 @@ void drm_core_reclaim_buffers(struct drm_device *dev,
154 if (dma->buflist[i]->file_priv == file_priv) { 154 if (dma->buflist[i]->file_priv == file_priv) {
155 switch (dma->buflist[i]->list) { 155 switch (dma->buflist[i]->list) {
156 case DRM_LIST_NONE: 156 case DRM_LIST_NONE:
157 drm_free_buffer(dev, dma->buflist[i]); 157 drm_legacy_free_buffer(dev, dma->buflist[i]);
158 break; 158 break;
159 case DRM_LIST_WAIT: 159 case DRM_LIST_WAIT:
160 dma->buflist[i]->list = DRM_LIST_RECLAIM; 160 dma->buflist[i]->list = DRM_LIST_RECLAIM;
@@ -166,5 +166,3 @@ void drm_core_reclaim_buffers(struct drm_device *dev,
166 } 166 }
167 } 167 }
168} 168}
169
170EXPORT_SYMBOL(drm_core_reclaim_buffers);