Lines Matching refs:scratch
272 rdev->scratch.num_reg = 5; in radeon_scratch_init()
274 rdev->scratch.num_reg = 7; in radeon_scratch_init()
276 rdev->scratch.reg_base = RADEON_SCRATCH_REG0; in radeon_scratch_init()
277 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_init()
278 rdev->scratch.free[i] = true; in radeon_scratch_init()
279 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in radeon_scratch_init()
296 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_get()
297 if (rdev->scratch.free[i]) { in radeon_scratch_get()
298 rdev->scratch.free[i] = false; in radeon_scratch_get()
299 *reg = rdev->scratch.reg[i]; in radeon_scratch_get()
318 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_free()
319 if (rdev->scratch.reg[i] == reg) { in radeon_scratch_free()
320 rdev->scratch.free[i] = true; in radeon_scratch_free()
1024 kfree(rdev->mode_info.atom_context->scratch); in radeon_atombios_fini()