aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
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 05:39:11 -0500
commit822c4d9ae0d55a4fcea9f0a462bc6406a06692e2 (patch)
tree023576f530939ff497bb7fe44b62da0ce50221be /include/drm
parentf9517e63ffae6a1062a0a2ac4eea60be49b9dfd4 (diff)
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')
-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 @@
38 * @count: number of pages to allocate. 38 * @count: number of pages to allocate.
39 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set). 39 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
40 */ 40 */
41int ttm_get_pages(struct list_head *pages, 41int ttm_get_pages(struct page **pages,
42 int flags, 42 int flags,
43 enum ttm_caching_state cstate, 43 enum ttm_caching_state cstate,
44 unsigned count, 44 unsigned npages,
45 dma_addr_t *dma_address); 45 dma_addr_t *dma_address);
46/** 46/**
47 * Put linked list of pages to pool. 47 * Put linked list of pages to pool.
@@ -53,8 +53,8 @@ int ttm_get_pages(struct list_head *pages,
53 * @cstate: ttm caching state. 53 * @cstate: ttm caching state.
54 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set). 54 * @dma_address: The DMA (bus) address of pages (if TTM_PAGE_FLAG_DMA32 set).
55 */ 55 */
56void ttm_put_pages(struct list_head *pages, 56void ttm_put_pages(struct page **pages,
57 unsigned page_count, 57 unsigned npages,
58 int flags, 58 int flags,
59 enum ttm_caching_state cstate, 59 enum ttm_caching_state cstate,
60 dma_addr_t *dma_address); 60 dma_addr_t *dma_address);