Searched refs:NUM_PAGES_TO_ALLOC (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/ttm/
H A Dttm_page_alloc.c55 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *)) macro
172 if (val > NUM_PAGES_TO_ALLOC*8) { ttm_pool_store()
174 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7), ttm_pool_store()
175 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); ttm_pool_store()
177 } else if (val > NUM_PAGES_TO_ALLOC) { ttm_pool_store()
179 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); ttm_pool_store()
295 * To prevent hogging the ttm_swap process we only free NUM_PAGES_TO_ALLOC
305 static struct page *static_buf[NUM_PAGES_TO_ALLOC]; ttm_page_pool_free()
312 if (NUM_PAGES_TO_ALLOC < nr_free) ttm_page_pool_free()
313 npages_to_free = NUM_PAGES_TO_ALLOC; ttm_page_pool_free()
333 /* We can only remove NUM_PAGES_TO_ALLOC at a time. */ ttm_page_pool_free()
334 if (freed_pages >= NUM_PAGES_TO_ALLOC) { ttm_page_pool_free()
349 if (NUM_PAGES_TO_ALLOC >= nr_free) ttm_page_pool_free()
352 npages_to_free = NUM_PAGES_TO_ALLOC; ttm_page_pool_free()
710 /* free at least NUM_PAGES_TO_ALLOC number of pages ttm_put_pages()
712 if (npages < NUM_PAGES_TO_ALLOC) ttm_put_pages()
713 npages = NUM_PAGES_TO_ALLOC; ttm_put_pages()
834 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; ttm_page_alloc_init()
H A Dttm_page_alloc_dma.c57 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *)) macro
226 if (val > NUM_PAGES_TO_ALLOC*8) { ttm_pool_store()
228 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7), ttm_pool_store()
229 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); ttm_pool_store()
231 } else if (val > NUM_PAGES_TO_ALLOC) { ttm_pool_store()
233 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); ttm_pool_store()
409 * To prevent hogging the ttm_swap process we only free NUM_PAGES_TO_ALLOC
419 static struct page *static_buf[NUM_PAGES_TO_ALLOC]; ttm_dma_page_pool_free()
427 if (NUM_PAGES_TO_ALLOC < nr_free) ttm_dma_page_pool_free()
428 npages_to_free = NUM_PAGES_TO_ALLOC; ttm_dma_page_pool_free()
461 /* We can only remove NUM_PAGES_TO_ALLOC at a time. */ ttm_dma_page_pool_free()
462 if (freed_pages >= NUM_PAGES_TO_ALLOC) { ttm_dma_page_pool_free()
479 if (NUM_PAGES_TO_ALLOC >= nr_free) ttm_dma_page_pool_free()
482 npages_to_free = NUM_PAGES_TO_ALLOC; ttm_dma_page_pool_free()
966 /* free at least NUM_PAGES_TO_ALLOC number of pages ttm_dma_unpopulate()
968 if (npages < NUM_PAGES_TO_ALLOC) ttm_dma_unpopulate()
969 npages = NUM_PAGES_TO_ALLOC; ttm_dma_unpopulate()
1095 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; ttm_dma_page_alloc_init()

Completed in 56 milliseconds