Lines Matching refs:page_count
198 if (curr->page_count != 0) { in agp_free_memory()
203 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
208 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
235 size_t page_count, u32 type) in agp_allocate_memory() argument
246 if ((cur_memory + page_count > bridge->max_memory_agp) || in agp_allocate_memory()
247 (cur_memory + page_count < page_count)) in agp_allocate_memory()
251 new = agp_generic_alloc_user(page_count, type); in agp_allocate_memory()
258 new = bridge->driver->alloc_by_type(page_count, type); in agp_allocate_memory()
264 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in agp_allocate_memory()
272 if (bridge->driver->agp_alloc_pages(bridge, new, page_count)) { in agp_allocate_memory()
280 for (i = 0; i < page_count; i++) { in agp_allocate_memory()
288 new->page_count++; in agp_allocate_memory()
1059 if (mem->page_count == 0) in agp_generic_insert_memory()
1098 if (((pg_start + mem->page_count) > num_entries) || in agp_generic_insert_memory()
1099 ((pg_start + mem->page_count) < pg_start)) in agp_generic_insert_memory()
1104 while (j < (pg_start + mem->page_count)) { in agp_generic_insert_memory()
1115 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in agp_generic_insert_memory()
1139 if (mem->page_count == 0) in agp_generic_remove_memory()
1146 if (((pg_start + mem->page_count) > num_entries) || in agp_generic_remove_memory()
1147 ((pg_start + mem->page_count) < pg_start)) in agp_generic_remove_memory()
1157 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in agp_generic_remove_memory()
1167 struct agp_memory *agp_generic_alloc_by_type(size_t page_count, int type) in agp_generic_alloc_by_type() argument
1181 struct agp_memory *agp_generic_alloc_user(size_t page_count, int type) in agp_generic_alloc_user() argument
1187 pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in agp_generic_alloc_user()
1188 new = agp_create_user_memory(page_count); in agp_generic_alloc_user()
1192 for (i = 0; i < page_count; i++) in agp_generic_alloc_user()
1194 new->page_count = 0; in agp_generic_alloc_user()
1227 mem->page_count++; in agp_generic_alloc_pages()
1264 set_pages_array_wb(mem->pages, mem->page_count); in agp_generic_destroy_pages()
1267 for (i = 0; i < mem->page_count; i++) { in agp_generic_destroy_pages()