[PATCH openEuler-OLK-6.6 003/129] iommu/arm-smmu-v3: Move the STE generation for S1 and S2 domains into functions