Lines Matching refs:irq_iommu
106 struct irq_2_iommu *irq_iommu, u16 count) in alloc_irte() argument
113 if (!count || !irq_iommu) in alloc_irte()
134 irq_iommu->iommu = iommu; in alloc_irte()
135 irq_iommu->irte_index = index; in alloc_irte()
136 irq_iommu->sub_handle = 0; in alloc_irte()
137 irq_iommu->irte_mask = mask; in alloc_irte()
138 irq_iommu->mode = IRQ_REMAPPING; in alloc_irte()
158 static int modify_irte(struct irq_2_iommu *irq_iommu, in modify_irte() argument
166 if (!irq_iommu) in modify_irte()
171 iommu = irq_iommu->iommu; in modify_irte()
173 index = irq_iommu->irte_index + irq_iommu->sub_handle; in modify_irte()
201 irq_iommu->mode = irte->pst ? IRQ_POSTING : IRQ_REMAPPING; in modify_irte()
236 static int clear_entries(struct irq_2_iommu *irq_iommu) in clear_entries() argument
242 if (irq_iommu->sub_handle) in clear_entries()
245 iommu = irq_iommu->iommu; in clear_entries()
246 index = irq_iommu->irte_index; in clear_entries()
249 end = start + (1 << irq_iommu->irte_mask); in clear_entries()
256 irq_iommu->irte_mask); in clear_entries()
258 return qi_flush_iec(iommu, index, irq_iommu->irte_mask); in clear_entries()
1307 struct irq_2_iommu *irq_iommu; in intel_free_irq_resources() local
1314 irq_iommu = &data->irq_2_iommu; in intel_free_irq_resources()
1316 clear_entries(irq_iommu); in intel_free_irq_resources()