Lines Matching refs:scratch
2349 adev->gfx.scratch.num_reg = 7; in gfx_v7_0_scratch_init()
2350 adev->gfx.scratch.reg_base = mmSCRATCH_REG0; in gfx_v7_0_scratch_init()
2351 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in gfx_v7_0_scratch_init()
2352 adev->gfx.scratch.free[i] = true; in gfx_v7_0_scratch_init()
2353 adev->gfx.scratch.reg[i] = adev->gfx.scratch.reg_base + i; in gfx_v7_0_scratch_init()
2371 uint32_t scratch; in gfx_v7_0_ring_test_ring() local
2376 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v7_0_ring_test_ring()
2381 WREG32(scratch, 0xCAFEDEAD); in gfx_v7_0_ring_test_ring()
2385 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v7_0_ring_test_ring()
2389 amdgpu_ring_write(ring, (scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v7_0_ring_test_ring()
2394 tmp = RREG32(scratch); in gfx_v7_0_ring_test_ring()
2403 ring->idx, scratch, tmp); in gfx_v7_0_ring_test_ring()
2406 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v7_0_ring_test_ring()
2652 uint32_t scratch; in gfx_v7_0_ring_test_ib() local
2657 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v7_0_ring_test_ib()
2662 WREG32(scratch, 0xCAFEDEAD); in gfx_v7_0_ring_test_ib()
2670 ib.ptr[1] = ((scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v7_0_ring_test_ib()
2686 tmp = RREG32(scratch); in gfx_v7_0_ring_test_ib()
2697 scratch, tmp); in gfx_v7_0_ring_test_ib()
2705 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v7_0_ring_test_ib()