Lines Matching refs:NUM_PAGES
124 #define NUM_PAGES(x) (((x) + PAGE_SIZE-1) / PAGE_SIZE)
3601 unsigned alloc = NUM_PAGES(bo->used);
4908 bo = __kgem_bo_alloc(args.handle, NUM_PAGES(size));
4995 size = NUM_PAGES(size);
6079 bo = search_snoop_cache(kgem, NUM_PAGES(size), 0);
7092 __FUNCTION__, ptr, size, NUM_PAGES(size), read_only, handle, bo->proxy != NULL));
7640 old = search_linear_cache(kgem, NUM_PAGES(size), CREATE_INACTIVE | CREATE_CPU_MAP);
7707 old = search_linear_cache(kgem, NUM_PAGES(size),
7728 assert(num_pages(&bo->base) >= NUM_PAGES(size));
7751 alloc = NUM_PAGES(size);
7853 assert(num_pages(&bo->base) >= NUM_PAGES(size));
8105 size = NUM_PAGES(size);