Lines Matching refs:scratch
245 rdev->scratch.num_reg = 5; in radeon_scratch_init()
247 rdev->scratch.num_reg = 7; in radeon_scratch_init()
249 rdev->scratch.reg_base = RADEON_SCRATCH_REG0; in radeon_scratch_init()
250 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_init()
251 rdev->scratch.free[i] = true; in radeon_scratch_init()
252 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in radeon_scratch_init()
269 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_get()
270 if (rdev->scratch.free[i]) { in radeon_scratch_get()
271 rdev->scratch.free[i] = false; in radeon_scratch_get()
272 *reg = rdev->scratch.reg[i]; in radeon_scratch_get()
291 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_free()
292 if (rdev->scratch.reg[i] == reg) { in radeon_scratch_free()
293 rdev->scratch.free[i] = true; in radeon_scratch_free()
1006 kfree(rdev->mode_info.atom_context->scratch); in radeon_atombios_fini()