Lines Matching refs:fwspec
1583 static int arm_smmu_install_ste_for_dev(struct iommu_fwspec *fwspec) in arm_smmu_install_ste_for_dev() argument
1586 struct arm_smmu_master_data *master = fwspec->iommu_priv; in arm_smmu_install_ste_for_dev()
1589 for (i = 0; i < fwspec->num_ids; ++i) { in arm_smmu_install_ste_for_dev()
1590 u32 sid = fwspec->ids[i]; in arm_smmu_install_ste_for_dev()
1595 if (fwspec->ids[j] == sid) in arm_smmu_install_ste_for_dev()
1757 struct iommu_fwspec *fwspec = dev->iommu_fwspec; in arm_smmu_add_device() local
1760 if (!fwspec || fwspec->ops != &arm_smmu_ops) in arm_smmu_add_device()
1767 if (WARN_ON_ONCE(fwspec->iommu_priv)) { in arm_smmu_add_device()
1768 master = fwspec->iommu_priv; in arm_smmu_add_device()
1771 smmu = arm_smmu_get_by_node(to_of_node(fwspec->iommu_fwnode)); in arm_smmu_add_device()
1779 fwspec->iommu_priv = master; in arm_smmu_add_device()
1783 for (i = 0; i < fwspec->num_ids; i++) { in arm_smmu_add_device()
1784 u32 sid = fwspec->ids[i]; in arm_smmu_add_device()
1806 struct iommu_fwspec *fwspec = dev->iommu_fwspec; in arm_smmu_remove_device() local
1809 if (!fwspec || fwspec->ops != &arm_smmu_ops) in arm_smmu_remove_device()
1812 master = fwspec->iommu_priv; in arm_smmu_remove_device()