Lines Matching full:pg
413 struct psb_gtt *pg; in psb_gtt_init() local
424 pg = &dev_priv->gtt; in psb_gtt_init()
438 pg->gtt_phys_start = dev_priv->pge_ctl & PAGE_MASK; in psb_gtt_init()
446 pg->mmu_gatt_start = 0xE0000000; in psb_gtt_init()
448 pg->gtt_start = pci_resource_start(dev->pdev, PSB_GTT_RESOURCE); in psb_gtt_init()
452 if (pg->gtt_start == 0 || gtt_pages == 0) { in psb_gtt_init()
455 pg->gtt_start = dev_priv->pge_ctl; in psb_gtt_init()
458 pg->gatt_start = pci_resource_start(dev->pdev, PSB_GATT_RESOURCE); in psb_gtt_init()
459 pg->gatt_pages = pci_resource_len(dev->pdev, PSB_GATT_RESOURCE) in psb_gtt_init()
463 if (pg->gatt_pages == 0 || pg->gatt_start == 0) { in psb_gtt_init()
469 pg->gatt_start = 0x40000000; in psb_gtt_init()
470 pg->gatt_pages = (128 * 1024 * 1024) >> PAGE_SHIFT; in psb_gtt_init()
483 vram_stolen_size = pg->gtt_phys_start - dev_priv->stolen_base in psb_gtt_init()
491 if (resume && (gtt_pages != pg->gtt_pages) && in psb_gtt_init()
492 (stolen_size != pg->stolen_size)) { in psb_gtt_init()
498 pg->gtt_pages = gtt_pages; in psb_gtt_init()
499 pg->stolen_size = stolen_size; in psb_gtt_init()
506 dev_priv->gtt_map = ioremap(pg->gtt_phys_start, in psb_gtt_init()