Searched refs:NUM_PAGES_TO_ALLOC (Results 1 – 2 of 2) sorted by relevance
52 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *)) macro172 if (val > NUM_PAGES_TO_ALLOC*8) { in ttm_pool_store()174 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7), in ttm_pool_store()175 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()177 } else if (val > NUM_PAGES_TO_ALLOC) { in ttm_pool_store()179 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()286 static struct page *static_buf[NUM_PAGES_TO_ALLOC]; in ttm_page_pool_free()293 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_page_pool_free()294 npages_to_free = NUM_PAGES_TO_ALLOC; in ttm_page_pool_free()316 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_page_pool_free()[all …]
54 #define NUM_PAGES_TO_ALLOC (PAGE_SIZE/sizeof(struct page *)) macro220 if (val > NUM_PAGES_TO_ALLOC*8) { in ttm_pool_store()222 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 7), in ttm_pool_store()223 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()225 } else if (val > NUM_PAGES_TO_ALLOC) { in ttm_pool_store()227 NUM_PAGES_TO_ALLOC*(PAGE_SIZE >> 10)); in ttm_pool_store()406 static struct page *static_buf[NUM_PAGES_TO_ALLOC]; in ttm_dma_page_pool_free()414 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_dma_page_pool_free()415 npages_to_free = NUM_PAGES_TO_ALLOC; in ttm_dma_page_pool_free()444 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_dma_page_pool_free()[all …]