irte             3873 drivers/iommu/amd_iommu.c static int modify_irte_ga(u16 devid, int index, struct irte_ga *irte,
irte             3894 drivers/iommu/amd_iommu.c 	entry->hi.val = irte->hi.val;
irte             3895 drivers/iommu/amd_iommu.c 	entry->lo.val = irte->lo.val;
irte             3908 drivers/iommu/amd_iommu.c static int modify_irte(u16 devid, int index, union irte *irte)
irte             3923 drivers/iommu/amd_iommu.c 	table->table[index] = irte->val;
irte             3958 drivers/iommu/amd_iommu.c 	union irte *irte = (union irte *) entry;
irte             3960 drivers/iommu/amd_iommu.c 	irte->val                = 0;
irte             3961 drivers/iommu/amd_iommu.c 	irte->fields.vector      = vector;
irte             3962 drivers/iommu/amd_iommu.c 	irte->fields.int_type    = delivery_mode;
irte             3963 drivers/iommu/amd_iommu.c 	irte->fields.destination = dest_apicid;
irte             3964 drivers/iommu/amd_iommu.c 	irte->fields.dm          = dest_mode;
irte             3965 drivers/iommu/amd_iommu.c 	irte->fields.valid       = 1;
irte             3972 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = (struct irte_ga *) entry;
irte             3974 drivers/iommu/amd_iommu.c 	irte->lo.val                      = 0;
irte             3975 drivers/iommu/amd_iommu.c 	irte->hi.val                      = 0;
irte             3976 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.int_type    = delivery_mode;
irte             3977 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.dm          = dest_mode;
irte             3978 drivers/iommu/amd_iommu.c 	irte->hi.fields.vector            = vector;
irte             3979 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.destination = APICID_TO_IRTE_DEST_LO(dest_apicid);
irte             3980 drivers/iommu/amd_iommu.c 	irte->hi.fields.destination       = APICID_TO_IRTE_DEST_HI(dest_apicid);
irte             3981 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.valid       = 1;
irte             3986 drivers/iommu/amd_iommu.c 	union irte *irte = (union irte *) entry;
irte             3988 drivers/iommu/amd_iommu.c 	irte->fields.valid = 1;
irte             3989 drivers/iommu/amd_iommu.c 	modify_irte(devid, index, irte);
irte             3994 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = (struct irte_ga *) entry;
irte             3996 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.valid = 1;
irte             3997 drivers/iommu/amd_iommu.c 	modify_irte_ga(devid, index, irte, NULL);
irte             4002 drivers/iommu/amd_iommu.c 	union irte *irte = (union irte *) entry;
irte             4004 drivers/iommu/amd_iommu.c 	irte->fields.valid = 0;
irte             4005 drivers/iommu/amd_iommu.c 	modify_irte(devid, index, irte);
irte             4010 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = (struct irte_ga *) entry;
irte             4012 drivers/iommu/amd_iommu.c 	irte->lo.fields_remap.valid = 0;
irte             4013 drivers/iommu/amd_iommu.c 	modify_irte_ga(devid, index, irte, NULL);
irte             4019 drivers/iommu/amd_iommu.c 	union irte *irte = (union irte *) entry;
irte             4021 drivers/iommu/amd_iommu.c 	irte->fields.vector = vector;
irte             4022 drivers/iommu/amd_iommu.c 	irte->fields.destination = dest_apicid;
irte             4023 drivers/iommu/amd_iommu.c 	modify_irte(devid, index, irte);
irte             4029 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = (struct irte_ga *) entry;
irte             4031 drivers/iommu/amd_iommu.c 	if (!irte->lo.fields_remap.guest_mode) {
irte             4032 drivers/iommu/amd_iommu.c 		irte->hi.fields.vector = vector;
irte             4033 drivers/iommu/amd_iommu.c 		irte->lo.fields_remap.destination =
irte             4035 drivers/iommu/amd_iommu.c 		irte->hi.fields.destination =
irte             4037 drivers/iommu/amd_iommu.c 		modify_irte_ga(devid, index, irte, NULL);
irte             4050 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = &ptr[index];
irte             4052 drivers/iommu/amd_iommu.c 	memset(&irte->lo.val, 0, sizeof(u64));
irte             4053 drivers/iommu/amd_iommu.c 	memset(&irte->hi.val, 0, sizeof(u64));
irte             4054 drivers/iommu/amd_iommu.c 	irte->hi.fields.vector = 0xff;
irte             4059 drivers/iommu/amd_iommu.c 	union irte *ptr = (union irte *)table->table;
irte             4060 drivers/iommu/amd_iommu.c 	union irte *irte = &ptr[index];
irte             4062 drivers/iommu/amd_iommu.c 	return irte->val != 0;
irte             4068 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = &ptr[index];
irte             4070 drivers/iommu/amd_iommu.c 	return irte->hi.fields.vector != 0;
irte             4081 drivers/iommu/amd_iommu.c 	struct irte_ga *irte = &ptr[index];
irte             4083 drivers/iommu/amd_iommu.c 	memset(&irte->lo.val, 0, sizeof(u64));
irte             4084 drivers/iommu/amd_iommu.c 	memset(&irte->hi.val, 0, sizeof(u64));
irte             4313 drivers/iommu/amd_iommu.c 			data->entry = kzalloc(sizeof(union irte), GFP_KERNEL);
irte              307 drivers/iommu/intel-iommu-debugfs.c 	struct irte *ri_entry;
irte              331 drivers/iommu/intel-iommu-debugfs.c 	struct irte *pi_entry;
irte               55 drivers/iommu/intel_irq_remapping.c 	struct irte				irte_entry;
irte              158 drivers/iommu/intel_irq_remapping.c 		       struct irte *irte_modified)
irte              162 drivers/iommu/intel_irq_remapping.c 	struct irte *irte;
irte              173 drivers/iommu/intel_irq_remapping.c 	irte = &iommu->ir_table->base[index];
irte              176 drivers/iommu/intel_irq_remapping.c 	if ((irte->pst == 1) || (irte_modified->pst == 1)) {
irte              179 drivers/iommu/intel_irq_remapping.c 		ret = cmpxchg_double(&irte->low, &irte->high,
irte              180 drivers/iommu/intel_irq_remapping.c 				     irte->low, irte->high,
irte              192 drivers/iommu/intel_irq_remapping.c 		set_64bit(&irte->low, irte_modified->low);
irte              193 drivers/iommu/intel_irq_remapping.c 		set_64bit(&irte->high, irte_modified->high);
irte              195 drivers/iommu/intel_irq_remapping.c 	__iommu_flush_cache(iommu, irte, sizeof(*irte));
irte              200 drivers/iommu/intel_irq_remapping.c 	irq_iommu->mode = irte->pst ? IRQ_POSTING : IRQ_REMAPPING;
irte              239 drivers/iommu/intel_irq_remapping.c 	struct irte *start, *entry, *end;
irte              287 drivers/iommu/intel_irq_remapping.c static void set_irte_sid(struct irte *irte, unsigned int svt,
irte              292 drivers/iommu/intel_irq_remapping.c 	irte->svt = svt;
irte              293 drivers/iommu/intel_irq_remapping.c 	irte->sq = sq;
irte              294 drivers/iommu/intel_irq_remapping.c 	irte->sid = sid;
irte              302 drivers/iommu/intel_irq_remapping.c static void set_irte_verify_bus(struct irte *irte, unsigned int start_bus,
irte              305 drivers/iommu/intel_irq_remapping.c 	set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16,
irte              309 drivers/iommu/intel_irq_remapping.c static int set_ioapic_sid(struct irte *irte, int apic)
irte              314 drivers/iommu/intel_irq_remapping.c 	if (!irte)
irte              331 drivers/iommu/intel_irq_remapping.c 	set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, sid);
irte              336 drivers/iommu/intel_irq_remapping.c static int set_hpet_sid(struct irte *irte, u8 id)
irte              341 drivers/iommu/intel_irq_remapping.c 	if (!irte)
irte              363 drivers/iommu/intel_irq_remapping.c 	set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_13_IGNORE_3, sid);
irte              389 drivers/iommu/intel_irq_remapping.c static int set_msi_sid(struct irte *irte, struct pci_dev *dev)
irte              393 drivers/iommu/intel_irq_remapping.c 	if (!irte || !dev)
irte              419 drivers/iommu/intel_irq_remapping.c 		set_irte_verify_bus(irte, PCI_BUS_NUM(data.alias),
irte              422 drivers/iommu/intel_irq_remapping.c 		set_irte_verify_bus(irte, dev->bus->number, dev->bus->number);
irte              424 drivers/iommu/intel_irq_remapping.c 		set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, data.alias);
irte              426 drivers/iommu/intel_irq_remapping.c 		set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16,
irte              434 drivers/iommu/intel_irq_remapping.c 	struct irte *old_ir_table;
irte              447 drivers/iommu/intel_irq_remapping.c 	size     = INTR_REMAP_TABLE_ENTRIES*sizeof(struct irte);
irte             1075 drivers/iommu/intel_irq_remapping.c static void prepare_irte(struct irte *irte, int vector, unsigned int dest)
irte             1077 drivers/iommu/intel_irq_remapping.c 	memset(irte, 0, sizeof(*irte));
irte             1079 drivers/iommu/intel_irq_remapping.c 	irte->present = 1;
irte             1080 drivers/iommu/intel_irq_remapping.c 	irte->dst_mode = apic->irq_dest_mode;
irte             1088 drivers/iommu/intel_irq_remapping.c 	irte->trigger_mode = 0;
irte             1089 drivers/iommu/intel_irq_remapping.c 	irte->dlvry_mode = apic->irq_delivery_mode;
irte             1090 drivers/iommu/intel_irq_remapping.c 	irte->vector = vector;
irte             1091 drivers/iommu/intel_irq_remapping.c 	irte->dest_id = IRTE_DEST(dest);
irte             1092 drivers/iommu/intel_irq_remapping.c 	irte->redir_hint = 1;
irte             1155 drivers/iommu/intel_irq_remapping.c 	struct irte *irte = &ir_data->irte_entry;
irte             1162 drivers/iommu/intel_irq_remapping.c 	irte->vector = cfg->vector;
irte             1163 drivers/iommu/intel_irq_remapping.c 	irte->dest_id = IRTE_DEST(cfg->dest_apicid);
irte             1167 drivers/iommu/intel_irq_remapping.c 		modify_irte(&ir_data->irq_2_iommu, irte);
irte             1224 drivers/iommu/intel_irq_remapping.c 		struct irte irte_pi;
irte             1265 drivers/iommu/intel_irq_remapping.c 	struct irte *irte = &data->irte_entry;
irte             1268 drivers/iommu/intel_irq_remapping.c 	prepare_irte(irte, irq_cfg->vector, irq_cfg->dest_apicid);
irte             1272 drivers/iommu/intel_irq_remapping.c 		set_ioapic_sid(irte, info->ioapic_id);
irte             1274 drivers/iommu/intel_irq_remapping.c 			info->ioapic_id, irte->present, irte->fpd,
irte             1275 drivers/iommu/intel_irq_remapping.c 			irte->dst_mode, irte->redir_hint,
irte             1276 drivers/iommu/intel_irq_remapping.c 			irte->trigger_mode, irte->dlvry_mode,
irte             1277 drivers/iommu/intel_irq_remapping.c 			irte->avail, irte->vector, irte->dest_id,
irte             1278 drivers/iommu/intel_irq_remapping.c 			irte->sid, irte->sq, irte->svt);
irte             1303 drivers/iommu/intel_irq_remapping.c 			set_hpet_sid(irte, info->hpet_id);
irte             1305 drivers/iommu/intel_irq_remapping.c 			set_msi_sid(irte, info->msi_dev);
irte             1437 drivers/iommu/intel_irq_remapping.c 	struct irte entry;
irte              158 drivers/parisc/iosapic.c #define COMPARE_IRTE_ADDR(irte, hpa)	((irte)->dest_iosapic_addr == (hpa))
irte              160 drivers/parisc/iosapic.c #define COMPARE_IRTE_ADDR(irte, hpa)	\
irte              161 drivers/parisc/iosapic.c 		((irte)->dest_iosapic_addr == ((hpa) | 0xffffffff00000000ULL))
irte              563 drivers/parisc/iosapic.c 	struct irt_entry *p = vi->irte;
irte              709 drivers/parisc/iosapic.c 	struct irt_entry *irte = NULL;  /* only used if PAT PDC */
irte              739 drivers/parisc/iosapic.c 	irte = iosapic_xlate_pin(isi, pcidev);
irte              740 drivers/parisc/iosapic.c 	if (!irte) {
irte              746 drivers/parisc/iosapic.c 		irte,
irte              747 drivers/parisc/iosapic.c 		irte->entry_type,
irte              748 drivers/parisc/iosapic.c 		irte->entry_length,
irte              749 drivers/parisc/iosapic.c 		irte->polarity_trigger,
irte              750 drivers/parisc/iosapic.c 		irte->src_bus_irq_devno,
irte              751 drivers/parisc/iosapic.c 		irte->src_bus_id,
irte              752 drivers/parisc/iosapic.c 		irte->src_seg_id,
irte              753 drivers/parisc/iosapic.c 		irte->dest_iosapic_intin,
irte              754 drivers/parisc/iosapic.c 		(u32) irte->dest_iosapic_addr);
irte              755 drivers/parisc/iosapic.c 	isi_line = irte->dest_iosapic_intin;
irte              762 drivers/parisc/iosapic.c 	if (vi->irte)
irte              765 drivers/parisc/iosapic.c 	vi->irte = irte;
irte              806 drivers/parisc/iosapic.c 	struct irt_entry *irte;
irte              815 drivers/parisc/iosapic.c 		irte = &irt_cell[cnt];
irte              816 drivers/parisc/iosapic.c 		if (COMPARE_IRTE_ADDR(irte, dev->mod0) &&
irte              817 drivers/parisc/iosapic.c 		    irte->dest_iosapic_intin == intin)
irte              824 drivers/parisc/iosapic.c 		irte,
irte              825 drivers/parisc/iosapic.c 		irte->entry_type,
irte              826 drivers/parisc/iosapic.c 		irte->entry_length,
irte              827 drivers/parisc/iosapic.c 		irte->polarity_trigger,
irte              828 drivers/parisc/iosapic.c 		irte->src_bus_irq_devno,
irte              829 drivers/parisc/iosapic.c 		irte->src_bus_id,
irte              830 drivers/parisc/iosapic.c 		irte->src_seg_id,
irte              831 drivers/parisc/iosapic.c 		irte->dest_iosapic_intin,
irte              832 drivers/parisc/iosapic.c 		(u32) irte->dest_iosapic_addr);
irte              846 drivers/parisc/iosapic.c 	if (vi->irte)
irte              849 drivers/parisc/iosapic.c 	vi->irte = irte;
irte              904 drivers/parisc/iosapic.c 	struct irt_entry *irte = irt_cell;
irte              913 drivers/parisc/iosapic.c 	for (cnt=0; cnt < irt_num_entry; cnt++, irte++) {
irte              914 drivers/parisc/iosapic.c 		WARN_ON(IRT_IOSAPIC_TYPE != irte->entry_type);
irte              915 drivers/parisc/iosapic.c 		if (COMPARE_IRTE_ADDR(irte, hpa))
irte              120 drivers/parisc/iosapic_private.h 	struct irt_entry *irte;		/* IRT entry */
irte              255 include/linux/dmar.h static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src)
irte              418 include/linux/intel-iommu.h 	struct irte *base;