Home
last modified time | relevance | path

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

/freebsd/sys/dev/drm2/ttm/
H A Dttm_page_alloc.c48 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(vm_page_t)) macro
236 if (val > NUM_PAGES_TO_ALLOC*8) {
238 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7),
239 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10));
241 } else if (val > NUM_PAGES_TO_ALLOC) {
243 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10));
361 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_page_pool_free()
362 npages_to_free = NUM_PAGES_TO_ALLOC; in ttm_page_pool_free()
376 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_page_pool_free()
392 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_page_pool_free()
[all …]
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) { in ttm_pool_store()
228 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7), in ttm_pool_store()
229 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()
231 } else if (val > NUM_PAGES_TO_ALLOC) { in ttm_pool_store()
233 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()
424 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_dma_page_pool_free()
425 npages_to_free = NUM_PAGES_TO_ALLOC; in ttm_dma_page_pool_free()
456 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_dma_page_pool_free()
473 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_dma_page_pool_free()
[all …]