Lines Matching full:pg
110 struct psb_gtt *pg = &dev_priv->gtt; in psb_do_init() local
114 if (pg->mmu_gatt_start & 0x0FFFFFFF) { in psb_do_init()
119 stolen_gtt = (pg->stolen_size >> PAGE_SHIFT) * 4; in psb_do_init()
121 stolen_gtt = (stolen_gtt < pg->gtt_pages) ? stolen_gtt : pg->gtt_pages; in psb_do_init()
123 dev_priv->gatt_free_offset = pg->mmu_gatt_start + in psb_do_init()
141 PSB_WSGX32(pg->gatt_start, PSB_CR_BIF_TWOD_REQ_BASE); in psb_do_init()
168 struct psb_gtt *pg = &dev_priv->gtt; in psb_driver_unload() local
170 down_read(&pg->sem); in psb_driver_unload()
174 pg->mmu_gatt_start, in psb_driver_unload()
176 up_read(&pg->sem); in psb_driver_unload()
218 struct psb_gtt *pg; in psb_driver_load() local
229 pg = &dev_priv->gtt; in psb_driver_load()
329 down_read(&pg->sem); in psb_driver_load()
332 pg->gatt_start, in psb_driver_load()
333 pg->stolen_size >> PAGE_SHIFT, 0); in psb_driver_load()
334 up_read(&pg->sem); in psb_driver_load()