Lines Matching refs:page_count

220 	if (curr->page_count != 0) {  in agp_free_memory()
221 for (i = 0; i < curr->page_count; i++) { in agp_free_memory()
234 agp_memory *agp_allocate_memory(size_t page_count, u32 type) in agp_allocate_memory() argument
243 if ((atomic_read(&agp_bridge.current_memory_agp) + page_count) > in agp_allocate_memory()
249 new = agp_bridge.alloc_by_type(page_count, type); in agp_allocate_memory()
258 scratch_pages = (page_count + ENTRIES_PER_PAGE - 1) / ENTRIES_PER_PAGE; in agp_allocate_memory()
266 for (i = 0; i < page_count; i++) { in agp_allocate_memory()
275 new->page_count++; in agp_allocate_memory()
716 if ((pg_start + mem->page_count) > num_entries) { in agp_generic_insert_memory()
721 while (j < (pg_start + mem->page_count)) { in agp_generic_insert_memory()
732 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in agp_generic_insert_memory()
750 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in agp_generic_remove_memory()
759 static agp_memory *agp_generic_alloc_by_type(size_t page_count, int type) in agp_generic_alloc_by_type() argument
984 if ((pg_start + mem->page_count) > num_entries) { in intel_i810_insert_entries()
987 for (j = pg_start; j < (pg_start + mem->page_count); j++) { in intel_i810_insert_entries()
999 i < (pg_start + mem->page_count); i++) { in intel_i810_insert_entries()
1018 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in intel_i810_insert_entries()
1034 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in intel_i810_remove_entries()
1059 new->page_count = pg_count; in intel_i810_alloc_by_type()
1104 new->page_count = pg_count; in intel_i810_alloc_by_type()
1118 if (curr->page_count == 4) in intel_i810_free_by_type()
1438 if ((pg_start + mem->page_count) > num_entries) in intel_i830_insert_entries()
1453 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) in intel_i830_insert_entries()
1456 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) in intel_i830_insert_entries()
1480 for (i = pg_start; i < (mem->page_count + pg_start); i++) in intel_i830_remove_entries()
1483 for (i = pg_start; i < (mem->page_count + pg_start); i++) in intel_i830_remove_entries()
1542 nw->page_count = pg_count; in intel_i830_alloc_by_type()
1871 if ((pg_start + I460_CPAGES_PER_KPAGE * mem->page_count) > num_entries) { in intel_i460_insert_memory_cpk()
1877 while (j < (pg_start + I460_CPAGES_PER_KPAGE * mem->page_count)) { in intel_i460_insert_memory_cpk()
1884 for (i = 0, j = pg_start; i < mem->page_count; i++) { in intel_i460_insert_memory_cpk()
1911 mem->page_count); i++) in intel_i460_remove_memory_cpk()
2009 end_pg = (pg_start + mem->page_count - 1) / in intel_i460_insert_memory_kpc()
2011 end_offset = (pg_start + mem->page_count - 1) % in intel_i460_insert_memory_kpc()
2072 end_pg = (pg_start + mem->page_count - 1) / in intel_i460_remove_memory_kpc()
2074 end_offset = (pg_start + mem->page_count - 1) % in intel_i460_remove_memory_kpc()
3467 if ((pg_start + mem->page_count) > num_entries) { in amd_insert_memory()
3472 while (j < (pg_start + mem->page_count)) { in amd_insert_memory()
3486 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in amd_insert_memory()
3506 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in amd_remove_memory()
3590 if ((pg_start + mem->page_count) > num_entries) in x86_64_insert_memory()
3596 while (j < (pg_start + mem->page_count)) { in x86_64_insert_memory()
3607 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in x86_64_insert_memory()
4231 int i, page_count; in ali_cache_flush() local
4234 page_count = 1 << A_SIZE_32(agp_bridge.current_size)->page_order; in ali_cache_flush()
4235 for (i = 0; i < PAGE_SIZE * page_count; i += PAGE_SIZE) { in ali_cache_flush()
4698 if ((pg_start + mem->page_count) > num_entries) { in serverworks_insert_memory()
4703 while (j < (pg_start + mem->page_count)) { in serverworks_insert_memory()
4717 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in serverworks_insert_memory()
4741 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in serverworks_remove_memory()
5164 if ((pg_start + mem->page_count) > in nvidia_insert_memory()
5168 for(j = pg_start; j < (pg_start + mem->page_count); j++) { in nvidia_insert_memory()
5178 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in nvidia_insert_memory()
5194 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in nvidia_remove_memory()
5511 io_pg_count = hp->io_pages_per_kpage * mem->page_count; in hp_zx1_insert_memory()
5524 for (i = 0, j = io_pg_start; i < mem->page_count; i++) { in hp_zx1_insert_memory()
5549 io_pg_count = hp->io_pages_per_kpage * mem->page_count; in hp_zx1_remove_memory()
5823 if ((pg_start + mem->page_count) > num_entries) in ati_insert_memory()
5827 while (j < (pg_start + mem->page_count)) { in ati_insert_memory()
5840 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in ati_insert_memory()
5860 for (i = pg_start; i < (mem->page_count + pg_start); i++) { in ati_remove_memory()