Lines Matching refs:mode
187 static int radeon_agp_head_enable(struct radeon_device *rdev, struct radeon_agp_mode mode) in radeon_agp_head_enable() argument
192 rdev->agp->mode = mode.mode; in radeon_agp_head_enable()
193 agp_enable(rdev->agp->bridge, mode.mode); in radeon_agp_head_enable()
208 info->mode = kern->mode; in radeon_agp_head_info()
224 struct radeon_agp_mode mode; in radeon_agp_init() local
253 mode.mode = info.mode; in radeon_agp_init()
258 agp_status = (RREG32(RADEON_AGP_STATUS) | RADEON_AGPv3_MODE) & mode.mode; in radeon_agp_init()
260 agp_status = mode.mode; in radeon_agp_init()
303 mode.mode &= ~RADEON_AGP_MODE_MASK; in radeon_agp_init()
307 mode.mode |= RADEON_AGPv3_8X_MODE; in radeon_agp_init()
311 mode.mode |= RADEON_AGPv3_4X_MODE; in radeon_agp_init()
317 mode.mode |= RADEON_AGP_4X_MODE; in radeon_agp_init()
320 mode.mode |= RADEON_AGP_2X_MODE; in radeon_agp_init()
324 mode.mode |= RADEON_AGP_1X_MODE; in radeon_agp_init()
329 mode.mode &= ~RADEON_AGP_FW_MODE; /* disable fw */ in radeon_agp_init()
330 ret = radeon_agp_head_enable(rdev, mode); in radeon_agp_init()
332 DRM_ERROR("Unable to enable AGP (mode = 0x%lx)\n", mode.mode); in radeon_agp_init()