Lines Matching defs:rdev
125 int radeon_agp_init(struct radeon_device *rdev)
137 ret = drm_agp_acquire(rdev->ddev);
143 ret = drm_agp_info(rdev->ddev, &info);
145 drm_agp_release(rdev->ddev);
150 if (rdev->ddev->agp->agp_info.aper_size < 32) {
151 drm_agp_release(rdev->ddev);
152 dev_warn(rdev->dev, "AGP aperture too small (%zuM) "
154 rdev->ddev->agp->agp_info.aper_size);
162 if (rdev->family <= CHIP_RV350)
184 rdev->pdev->vendor == p->chip_vendor &&
185 rdev->pdev->device == p->chip_device &&
186 rdev->pdev->subsystem_vendor == p->subsys_vendor &&
187 rdev->pdev->subsystem_device == p->subsys_device) {
235 ret = drm_agp_enable(rdev->ddev, mode);
238 drm_agp_release(rdev->ddev);
242 rdev->mc.agp_base = rdev->ddev->agp->agp_info.aper_base;
243 rdev->mc.gtt_size = rdev->ddev->agp->agp_info.aper_size << 20;
244 rdev->mc.gtt_start = rdev->mc.agp_base;
245 rdev->mc.gtt_end = rdev->mc.gtt_start + rdev->mc.gtt_size - 1;
246 dev_info(rdev->dev, "GTT: %lluM 0x%08llX - 0x%08llX\n",
247 rdev->mc.gtt_size >> 20, rdev->mc.gtt_start, rdev->mc.gtt_end);
249 if (rdev->family < CHIP_R200) {
258 void radeon_agp_resume(struct radeon_device *rdev)
262 if (rdev->flags & RADEON_IS_AGP) {
263 r = radeon_agp_init(rdev);
265 dev_warn(rdev->dev, "radeon AGP reinit failed\n");
270 void radeon_agp_fini(struct radeon_device *rdev)
273 if (rdev->ddev->agp && rdev->ddev->agp->acquired) {
274 drm_agp_release(rdev->ddev);
279 void radeon_agp_suspend(struct radeon_device *rdev)
281 radeon_agp_fini(rdev);