summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2011-11-10 18:24:09 -0500
committerDave Airlie <airlied@redhat.com>2011-12-06 10:39:11 +0000
commit822c4d9ae0d55a4fcea9f0a462bc6406a06692e2 (patch)
tree023576f530939ff497bb7fe44b62da0ce50221be /include/drm/ttm
parentf9517e63ffae6a1062a0a2ac4eea60be49b9dfd4 (diff)
downloadlinux-822c4d9ae0d55a4fcea9f0a462bc6406a06692e2.tar.bz2
drm/ttm: page allocation use page array instead of list
Use the ttm_tt pages array for pages allocations, move the list unwinding into the page allocation functions. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'include/drm/ttm')
-rw-r--r--include/drm/ttm/ttm_page_alloc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 129de12353f1..fe61c8d85684 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -38,10 +38,10 @@
* @count: number of pages to allocate.
* @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
*/
-int ttm_get_pages(struct list_head *pages,
+int ttm_get_pages(struct page **pages,
int flags,
enum ttm_caching_state cstate,
- unsigned count,
+ unsigned npages,
dma_addr_t *dma_address);
/**
* Put linked list of pages to pool.
@@ -53,8 +53,8 @@ int ttm_get_pages(struct list_head *pages,
* @cstate: ttm caching state.
* @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
*/
-void ttm_put_pages(struct list_head *pages,
- unsigned page_count,
+void ttm_put_pages(struct page **pages,
+ unsigned npages,
int flags,
enum ttm_caching_state cstate,
dma_addr_t *dma_address);