Lines Matching refs:page_count
196 if (curr->page_count != 0) {
197 for (i = 0; i < curr->page_count; i++) {
213 * @page_count: size_t argument of the number of pages
222 size_t page_count, u32 type)
231 if ((atomic_read(&bridge->current_memory_agp) + page_count) > bridge->max_memory_agp)
235 new = agp_generic_alloc_user(page_count, type);
242 new = bridge->driver->alloc_by_type(page_count, type);
248 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE;
255 for (i = 0; i < page_count; i++) {
263 new->page_count++;
1018 if (mem->page_count == 0)
1058 if ((pg_start + mem->page_count) > num_entries)
1063 while (j < (pg_start + mem->page_count)) {
1074 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {
1096 if (mem->page_count == 0)
1109 for (i = pg_start; i < (mem->page_count + pg_start); i++) {
1119 struct agp_memory *agp_generic_alloc_by_type(size_t page_count, int type)
1133 struct agp_memory *agp_generic_alloc_user(size_t page_count, int type)
1139 pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE;
1140 new = agp_create_user_memory(page_count);
1144 for (i = 0; i < page_count; i++)
1146 new->page_count = 0;