Lines Matching refs:nw
1496 agp_memory *nw; in intel_i830_alloc_by_type() local
1512 nw = agp_create_memory(pg_count); in intel_i830_alloc_by_type()
1514 if (nw == NULL) return(NULL); in intel_i830_alloc_by_type()
1518 nw->memory[0] = agp_bridge.agp_alloc_page(); in intel_i830_alloc_by_type()
1521 nw->memory[0] = i830_alloc_pages(); in intel_i830_alloc_by_type()
1522 nw->memory[1] = nw->memory[0] + PAGE_SIZE; in intel_i830_alloc_by_type()
1523 nw->memory[2] = nw->memory[1] + PAGE_SIZE; in intel_i830_alloc_by_type()
1524 nw->memory[3] = nw->memory[2] + PAGE_SIZE; in intel_i830_alloc_by_type()
1527 if (nw->memory[0] == 0) { in intel_i830_alloc_by_type()
1529 agp_free_memory(nw); in intel_i830_alloc_by_type()
1533 physical = nw->memory[0]; in intel_i830_alloc_by_type()
1535 nw->memory[0] = virt_to_phys((void *) nw->memory[0]); in intel_i830_alloc_by_type()
1538 nw->memory[1] = virt_to_phys((void *) nw->memory[1]); in intel_i830_alloc_by_type()
1539 nw->memory[2] = virt_to_phys((void *) nw->memory[2]); in intel_i830_alloc_by_type()
1540 nw->memory[3] = virt_to_phys((void *) nw->memory[3]); in intel_i830_alloc_by_type()
1542 nw->page_count = pg_count; in intel_i830_alloc_by_type()
1543 nw->num_scratch_pages = pg_count; in intel_i830_alloc_by_type()
1544 nw->type = AGP_PHYS_MEMORY; in intel_i830_alloc_by_type()
1545 nw->physical = virt_to_phys((void *) physical); in intel_i830_alloc_by_type()
1546 return(nw); in intel_i830_alloc_by_type()