Lines Matching refs:scratch
612 adev->gfx.scratch.num_reg = 7; in gfx_v8_0_scratch_init()
613 adev->gfx.scratch.reg_base = mmSCRATCH_REG0; in gfx_v8_0_scratch_init()
614 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in gfx_v8_0_scratch_init()
615 adev->gfx.scratch.free[i] = true; in gfx_v8_0_scratch_init()
616 adev->gfx.scratch.reg[i] = adev->gfx.scratch.reg_base + i; in gfx_v8_0_scratch_init()
623 uint32_t scratch; in gfx_v8_0_ring_test_ring() local
628 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v8_0_ring_test_ring()
633 WREG32(scratch, 0xCAFEDEAD); in gfx_v8_0_ring_test_ring()
638 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v8_0_ring_test_ring()
642 amdgpu_ring_write(ring, (scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v8_0_ring_test_ring()
647 tmp = RREG32(scratch); in gfx_v8_0_ring_test_ring()
657 ring->idx, scratch, tmp); in gfx_v8_0_ring_test_ring()
660 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v8_0_ring_test_ring()
669 uint32_t scratch; in gfx_v8_0_ring_test_ib() local
674 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v8_0_ring_test_ib()
679 WREG32(scratch, 0xCAFEDEAD); in gfx_v8_0_ring_test_ib()
687 ib.ptr[1] = ((scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v8_0_ring_test_ib()
703 tmp = RREG32(scratch); in gfx_v8_0_ring_test_ib()
714 scratch, tmp); in gfx_v8_0_ring_test_ib()
721 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v8_0_ring_test_ib()