summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-08-03 15:53:51 +1000
committerDave Airlie <airlied@redhat.com>2020-08-05 15:53:47 +1000
commite5fa1e5075972517259837a94d48cc805dc8315f (patch)
tree37c0ab1a7a9b999837f8dd56a448bc579168594c /drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
parentcd4d5454b637c68f26c208b0a4f2b288147e37d6 (diff)
drm/ttm: rename ttm_mem_reg to ttm_resource.ttm-refactor-mem-manager-rename
This name better reflects what the object does. I didn't rename all the pointers it seemed too messy. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_thp.c')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_thp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
index 6cac7b091205..f594e2e6ab7e 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
@@ -29,7 +29,7 @@ static struct vmw_thp_manager *to_thp_manager(struct ttm_resource_manager *man)
static int vmw_thp_insert_aligned(struct drm_mm *mm, struct drm_mm_node *node,
unsigned long align_pages,
const struct ttm_place *place,
- struct ttm_mem_reg *mem,
+ struct ttm_resource *mem,
unsigned long lpfn,
enum drm_mm_insert_mode mode)
{
@@ -47,7 +47,7 @@ static int vmw_thp_insert_aligned(struct drm_mm *mm, struct drm_mm_node *node,
static int vmw_thp_get_node(struct ttm_resource_manager *man,
struct ttm_buffer_object *bo,
const struct ttm_place *place,
- struct ttm_mem_reg *mem)
+ struct ttm_resource *mem)
{
struct vmw_thp_manager *rman = to_thp_manager(man);
struct drm_mm *mm = &rman->mm;
@@ -107,7 +107,7 @@ found_unlock:
static void vmw_thp_put_node(struct ttm_resource_manager *man,
- struct ttm_mem_reg *mem)
+ struct ttm_resource *mem)
{
struct vmw_thp_manager *rman = to_thp_manager(man);