Lines Matching refs:new
240 struct agp_memory *new; in alloc_agpphysmem_i8xx() local
257 new = agp_create_memory(pg_count); in alloc_agpphysmem_i8xx()
258 if (new == NULL) in alloc_agpphysmem_i8xx()
261 new->pages[0] = page; in alloc_agpphysmem_i8xx()
264 new->pages[1] = new->pages[0] + 1; in alloc_agpphysmem_i8xx()
265 new->pages[2] = new->pages[1] + 1; in alloc_agpphysmem_i8xx()
266 new->pages[3] = new->pages[2] + 1; in alloc_agpphysmem_i8xx()
268 new->page_count = pg_count; in alloc_agpphysmem_i8xx()
269 new->num_scratch_pages = pg_count; in alloc_agpphysmem_i8xx()
270 new->type = AGP_PHYS_MEMORY; in alloc_agpphysmem_i8xx()
271 new->physical = page_to_phys(new->pages[0]); in alloc_agpphysmem_i8xx()
272 return new; in alloc_agpphysmem_i8xx()
966 struct agp_memory *new; in intel_fake_agp_alloc_by_type() local
972 new = agp_create_memory(1); in intel_fake_agp_alloc_by_type()
973 if (new == NULL) in intel_fake_agp_alloc_by_type()
976 new->type = AGP_DCACHE_MEMORY; in intel_fake_agp_alloc_by_type()
977 new->page_count = pg_count; in intel_fake_agp_alloc_by_type()
978 new->num_scratch_pages = 0; in intel_fake_agp_alloc_by_type()
979 agp_free_page_array(new); in intel_fake_agp_alloc_by_type()
980 return new; in intel_fake_agp_alloc_by_type()