Lines Matching refs:new
9 * avoid having to create a new api.
435 struct agp_memory *new;
452 new = agp_create_memory(pg_count);
453 if (new == NULL)
456 new->pages[0] = page;
459 new->pages[1] = new->pages[0] + 1;
460 new->pages[2] = new->pages[1] + 1;
461 new->pages[3] = new->pages[2] + 1;
463 new->page_count = pg_count;
464 new->num_scratch_pages = pg_count;
465 new->type = AGP_PHYS_MEMORY;
466 new->physical = page_to_phys(new->pages[0]);
467 return new;
472 struct agp_memory *new;
478 new = agp_create_memory(1);
479 if (new == NULL)
482 new->type = AGP_DCACHE_MEMORY;
483 new->page_count = pg_count;
484 new->num_scratch_pages = 0;
485 agp_free_page_array(new);
486 return new;
607 * SandyBridge has new memory control reg at 0x50.w