Searched refs:internal_offset (Results 1 – 4 of 4) sorted by relevance
117 static u32 sdma_v5_2_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v5_2_get_reg_offset() argument121 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()
124 static u32 sdma_v7_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v7_0_get_reg_offset() argument128 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()
123 static u32 sdma_v6_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v6_0_get_reg_offset() argument127 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()
216 static u32 sdma_v5_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset) in sdma_v5_0_get_reg_offset() argument220 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()