|
@@ -124,7 +124,7 @@ void drm_legacy_dma_takedown(struct drm_device *dev)
|
|
*
|
|
*
|
|
* Resets the fields of \p buf.
|
|
* Resets the fields of \p buf.
|
|
*/
|
|
*/
|
|
-void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf)
|
|
|
|
|
|
+void drm_legacy_free_buffer(struct drm_device *dev, struct drm_buf * buf)
|
|
{
|
|
{
|
|
if (!buf)
|
|
if (!buf)
|
|
return;
|
|
return;
|
|
@@ -142,8 +142,8 @@ void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf)
|
|
*
|
|
*
|
|
* Frees each buffer associated with \p file_priv not already on the hardware.
|
|
* Frees each buffer associated with \p file_priv not already on the hardware.
|
|
*/
|
|
*/
|
|
-void drm_core_reclaim_buffers(struct drm_device *dev,
|
|
|
|
- struct drm_file *file_priv)
|
|
|
|
|
|
+void drm_legacy_reclaim_buffers(struct drm_device *dev,
|
|
|
|
+ struct drm_file *file_priv)
|
|
{
|
|
{
|
|
struct drm_device_dma *dma = dev->dma;
|
|
struct drm_device_dma *dma = dev->dma;
|
|
int i;
|
|
int i;
|
|
@@ -154,7 +154,7 @@ void drm_core_reclaim_buffers(struct drm_device *dev,
|
|
if (dma->buflist[i]->file_priv == file_priv) {
|
|
if (dma->buflist[i]->file_priv == file_priv) {
|
|
switch (dma->buflist[i]->list) {
|
|
switch (dma->buflist[i]->list) {
|
|
case DRM_LIST_NONE:
|
|
case DRM_LIST_NONE:
|
|
- drm_free_buffer(dev, dma->buflist[i]);
|
|
|
|
|
|
+ drm_legacy_free_buffer(dev, dma->buflist[i]);
|
|
break;
|
|
break;
|
|
case DRM_LIST_WAIT:
|
|
case DRM_LIST_WAIT:
|
|
dma->buflist[i]->list = DRM_LIST_RECLAIM;
|
|
dma->buflist[i]->list = DRM_LIST_RECLAIM;
|
|
@@ -166,5 +166,3 @@ void drm_core_reclaim_buffers(struct drm_device *dev,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-EXPORT_SYMBOL(drm_core_reclaim_buffers);
|
|
|