diff options
| author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | 2019-04-17 14:24:43 -0400 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2019-04-23 07:23:11 -0400 |
| commit | b54f4260c7df878c231e7b3a3687636d74d83c8f (patch) | |
| tree | 38cc285175267f8649a39fbcee4e0ebffaa372fd | |
| parent | 5702ee24182f9b3e33476b74b5c92a4f913ad9bd (diff) | |
iommu/arm-smmu-v3: Rename arm_smmu_master_data to arm_smmu_master
The arm_smmu_master_data structure already represents more than just the
firmware data associated to a master, and will be used extensively to
represent a device's state when implementing more SMMU features. Rename
the structure to arm_smmu_master.
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
| -rw-r--r-- | drivers/iommu/arm-smmu-v3.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index d3880010c6cf..50cb037f3d8a 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c | |||
| @@ -591,7 +591,7 @@ struct arm_smmu_device { | |||
| 591 | }; | 591 | }; |
| 592 | 592 | ||
| 593 | /* SMMU private data for each master */ | 593 | /* SMMU private data for each master */ |
| 594 | struct arm_smmu_master_data { | 594 | struct arm_smmu_master { |
| 595 | struct arm_smmu_device *smmu; | 595 | struct arm_smmu_device *smmu; |
| 596 | struct arm_smmu_strtab_ent ste; | 596 | struct arm_smmu_strtab_ent ste; |
| 597 | }; | 597 | }; |
| @@ -1691,7 +1691,7 @@ static __le64 *arm_smmu_get_step_for_sid(struct arm_smmu_device *smmu, u32 sid) | |||
| 1691 | static void arm_smmu_install_ste_for_dev(struct iommu_fwspec *fwspec) | 1691 | static void arm_smmu_install_ste_for_dev(struct iommu_fwspec *fwspec) |
| 1692 | { | 1692 | { |
| 1693 | int i, j; | 1693 | int i, j; |
| 1694 | struct arm_smmu_master_data *master = fwspec->iommu_priv; | 1694 | struct arm_smmu_master *master = fwspec->iommu_priv; |
| 1695 | struct arm_smmu_device *smmu = master->smmu; | 1695 | struct arm_smmu_device *smmu = master->smmu; |
| 1696 | 1696 | ||
| 1697 | for (i = 0; i < fwspec->num_ids; ++i) { | 1697 | for (i = 0; i < fwspec->num_ids; ++i) { |
| @@ -1712,7 +1712,7 @@ static void arm_smmu_install_ste_for_dev(struct iommu_fwspec *fwspec) | |||
| 1712 | static void arm_smmu_detach_dev(struct device *dev) | 1712 | static void arm_smmu_detach_dev(struct device *dev) |
| 1713 | { | 1713 | { |
| 1714 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 1714 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 1715 | struct arm_smmu_master_data *master = fwspec->iommu_priv; | 1715 | struct arm_smmu_master *master = fwspec->iommu_priv; |
| 1716 | 1716 | ||
| 1717 | master->ste.assigned = false; | 1717 | master->ste.assigned = false; |
| 1718 | arm_smmu_install_ste_for_dev(fwspec); | 1718 | arm_smmu_install_ste_for_dev(fwspec); |
| @@ -1724,7 +1724,7 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) | |||
| 1724 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 1724 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 1725 | struct arm_smmu_device *smmu; | 1725 | struct arm_smmu_device *smmu; |
| 1726 | struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); | 1726 | struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); |
| 1727 | struct arm_smmu_master_data *master; | 1727 | struct arm_smmu_master *master; |
| 1728 | struct arm_smmu_strtab_ent *ste; | 1728 | struct arm_smmu_strtab_ent *ste; |
| 1729 | 1729 | ||
| 1730 | if (!fwspec) | 1730 | if (!fwspec) |
| @@ -1860,7 +1860,7 @@ static int arm_smmu_add_device(struct device *dev) | |||
| 1860 | { | 1860 | { |
| 1861 | int i, ret; | 1861 | int i, ret; |
| 1862 | struct arm_smmu_device *smmu; | 1862 | struct arm_smmu_device *smmu; |
| 1863 | struct arm_smmu_master_data *master; | 1863 | struct arm_smmu_master *master; |
| 1864 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 1864 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 1865 | struct iommu_group *group; | 1865 | struct iommu_group *group; |
| 1866 | 1866 | ||
| @@ -1913,7 +1913,7 @@ static int arm_smmu_add_device(struct device *dev) | |||
| 1913 | static void arm_smmu_remove_device(struct device *dev) | 1913 | static void arm_smmu_remove_device(struct device *dev) |
| 1914 | { | 1914 | { |
| 1915 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); | 1915 | struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); |
| 1916 | struct arm_smmu_master_data *master; | 1916 | struct arm_smmu_master *master; |
| 1917 | struct arm_smmu_device *smmu; | 1917 | struct arm_smmu_device *smmu; |
| 1918 | 1918 | ||
| 1919 | if (!fwspec || fwspec->ops != &arm_smmu_ops) | 1919 | if (!fwspec || fwspec->ops != &arm_smmu_ops) |
