Lines Matching refs:irte

55 	struct irte				irte_entry;
158 struct irte *irte_modified) in modify_irte()
162 struct irte *irte; in modify_irte() local
173 irte = &iommu->ir_table->base[index]; in modify_irte()
176 if ((irte->pst == 1) || (irte_modified->pst == 1)) { in modify_irte()
179 ret = cmpxchg_double(&irte->low, &irte->high, in modify_irte()
180 irte->low, irte->high, in modify_irte()
192 set_64bit(&irte->low, irte_modified->low); in modify_irte()
193 set_64bit(&irte->high, irte_modified->high); in modify_irte()
195 __iommu_flush_cache(iommu, irte, sizeof(*irte)); in modify_irte()
200 irq_iommu->mode = irte->pst ? IRQ_POSTING : IRQ_REMAPPING; in modify_irte()
239 struct irte *start, *entry, *end; in clear_entries()
287 static void set_irte_sid(struct irte *irte, unsigned int svt, in set_irte_sid() argument
292 irte->svt = svt; in set_irte_sid()
293 irte->sq = sq; in set_irte_sid()
294 irte->sid = sid; in set_irte_sid()
302 static void set_irte_verify_bus(struct irte *irte, unsigned int start_bus, in set_irte_verify_bus() argument
305 set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, in set_irte_verify_bus()
309 static int set_ioapic_sid(struct irte *irte, int apic) in set_ioapic_sid() argument
314 if (!irte) in set_ioapic_sid()
331 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, sid); in set_ioapic_sid()
336 static int set_hpet_sid(struct irte *irte, u8 id) in set_hpet_sid() argument
341 if (!irte) in set_hpet_sid()
363 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_13_IGNORE_3, sid); in set_hpet_sid()
389 static int set_msi_sid(struct irte *irte, struct pci_dev *dev) in set_msi_sid() argument
393 if (!irte || !dev) in set_msi_sid()
419 set_irte_verify_bus(irte, PCI_BUS_NUM(data.alias), in set_msi_sid()
422 set_irte_verify_bus(irte, dev->bus->number, dev->bus->number); in set_msi_sid()
424 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, data.alias); in set_msi_sid()
426 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, in set_msi_sid()
434 struct irte *old_ir_table; in iommu_load_old_irte()
447 size = INTR_REMAP_TABLE_ENTRIES*sizeof(struct irte); in iommu_load_old_irte()
1075 static void prepare_irte(struct irte *irte, int vector, unsigned int dest) in prepare_irte() argument
1077 memset(irte, 0, sizeof(*irte)); in prepare_irte()
1079 irte->present = 1; in prepare_irte()
1080 irte->dst_mode = apic->irq_dest_mode; in prepare_irte()
1088 irte->trigger_mode = 0; in prepare_irte()
1089 irte->dlvry_mode = apic->irq_delivery_mode; in prepare_irte()
1090 irte->vector = vector; in prepare_irte()
1091 irte->dest_id = IRTE_DEST(dest); in prepare_irte()
1092 irte->redir_hint = 1; in prepare_irte()
1155 struct irte *irte = &ir_data->irte_entry; in intel_ir_reconfigure_irte() local
1162 irte->vector = cfg->vector; in intel_ir_reconfigure_irte()
1163 irte->dest_id = IRTE_DEST(cfg->dest_apicid); in intel_ir_reconfigure_irte()
1167 modify_irte(&ir_data->irq_2_iommu, irte); in intel_ir_reconfigure_irte()
1224 struct irte irte_pi; in intel_ir_set_vcpu_affinity()
1265 struct irte *irte = &data->irte_entry; in intel_irq_remapping_prepare_irte() local
1268 prepare_irte(irte, irq_cfg->vector, irq_cfg->dest_apicid); in intel_irq_remapping_prepare_irte()
1272 set_ioapic_sid(irte, info->ioapic_id); in intel_irq_remapping_prepare_irte()
1274 info->ioapic_id, irte->present, irte->fpd, in intel_irq_remapping_prepare_irte()
1275 irte->dst_mode, irte->redir_hint, in intel_irq_remapping_prepare_irte()
1276 irte->trigger_mode, irte->dlvry_mode, in intel_irq_remapping_prepare_irte()
1277 irte->avail, irte->vector, irte->dest_id, in intel_irq_remapping_prepare_irte()
1278 irte->sid, irte->sq, irte->svt); in intel_irq_remapping_prepare_irte()
1303 set_hpet_sid(irte, info->hpet_id); in intel_irq_remapping_prepare_irte()
1305 set_msi_sid(irte, info->msi_dev); in intel_irq_remapping_prepare_irte()
1437 struct irte entry; in intel_irq_remapping_deactivate()