Home
last modified time | relevance | path

Searched refs:internal_offset (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Dsdma_v5_2.c117 static u32 sdma_v5_2_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v5_2_get_reg_offset() argument
121 if (internal_offset >= SDMA0_HYP_DEC_REG_START && in sdma_v5_2_get_reg_offset()
122 internal_offset <= SDMA0_HYP_DEC_REG_END) { in sdma_v5_2_get_reg_offset()
125 internal_offset += SDMA1_HYP_DEC_REG_OFFSET * instance; in sdma_v5_2_get_reg_offset()
130 internal_offset += SDMA1_REG_OFFSET; in sdma_v5_2_get_reg_offset()
134 internal_offset += SDMA3_REG_OFFSET; in sdma_v5_2_get_reg_offset()
138 return base + internal_offset; in sdma_v5_2_get_reg_offset()
Dsdma_v7_0.c124 static u32 sdma_v7_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v7_0_get_reg_offset() argument
128 if (internal_offset >= SDMA0_HYP_DEC_REG_START && in sdma_v7_0_get_reg_offset()
129 internal_offset <= SDMA0_HYP_DEC_REG_END) { in sdma_v7_0_get_reg_offset()
132 internal_offset += SDMA1_HYP_DEC_REG_OFFSET * instance; in sdma_v7_0_get_reg_offset()
136 internal_offset += SDMA1_REG_OFFSET; in sdma_v7_0_get_reg_offset()
139 return base + internal_offset; in sdma_v7_0_get_reg_offset()
Dsdma_v6_0.c123 static u32 sdma_v6_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v6_0_get_reg_offset() argument
127 if (internal_offset >= SDMA0_HYP_DEC_REG_START && in sdma_v6_0_get_reg_offset()
128 internal_offset <= SDMA0_HYP_DEC_REG_END) { in sdma_v6_0_get_reg_offset()
131 internal_offset += SDMA1_HYP_DEC_REG_OFFSET * instance; in sdma_v6_0_get_reg_offset()
135 internal_offset += SDMA1_REG_OFFSET; in sdma_v6_0_get_reg_offset()
138 return base + internal_offset; in sdma_v6_0_get_reg_offset()
Dsdma_v5_0.c216 static u32 sdma_v5_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v5_0_get_reg_offset() argument
220 if (internal_offset >= SDMA0_HYP_DEC_REG_START && in sdma_v5_0_get_reg_offset()
221 internal_offset <= SDMA0_HYP_DEC_REG_END) { in sdma_v5_0_get_reg_offset()
224 internal_offset += SDMA1_HYP_DEC_REG_OFFSET; in sdma_v5_0_get_reg_offset()
228 internal_offset += SDMA1_REG_OFFSET; in sdma_v5_0_get_reg_offset()
231 return base + internal_offset; in sdma_v5_0_get_reg_offset()