Lines Matching refs:e
787 struct ivhd_entry *e; in init_iommu_from_acpi() local
808 e = (struct ivhd_entry *)p; in init_iommu_from_acpi()
809 switch (e->type) { in init_iommu_from_acpi()
812 DUMP_printk(" DEV_ALL\t\t\tflags: %02x\n", e->flags); in init_iommu_from_acpi()
815 set_dev_entry_from_acpi(iommu, dev_i, e->flags, 0); in init_iommu_from_acpi()
821 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
822 PCI_SLOT(e->devid), in init_iommu_from_acpi()
823 PCI_FUNC(e->devid), in init_iommu_from_acpi()
824 e->flags); in init_iommu_from_acpi()
826 devid = e->devid; in init_iommu_from_acpi()
827 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
833 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
834 PCI_SLOT(e->devid), in init_iommu_from_acpi()
835 PCI_FUNC(e->devid), in init_iommu_from_acpi()
836 e->flags); in init_iommu_from_acpi()
838 devid_start = e->devid; in init_iommu_from_acpi()
839 flags = e->flags; in init_iommu_from_acpi()
847 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
848 PCI_SLOT(e->devid), in init_iommu_from_acpi()
849 PCI_FUNC(e->devid), in init_iommu_from_acpi()
850 e->flags, in init_iommu_from_acpi()
851 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi()
852 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
853 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi()
855 devid = e->devid; in init_iommu_from_acpi()
856 devid_to = e->ext >> 8; in init_iommu_from_acpi()
857 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
858 set_dev_entry_from_acpi(iommu, devid_to, e->flags, 0); in init_iommu_from_acpi()
866 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
867 PCI_SLOT(e->devid), in init_iommu_from_acpi()
868 PCI_FUNC(e->devid), in init_iommu_from_acpi()
869 e->flags, in init_iommu_from_acpi()
870 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi()
871 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
872 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi()
874 devid_start = e->devid; in init_iommu_from_acpi()
875 flags = e->flags; in init_iommu_from_acpi()
876 devid_to = e->ext >> 8; in init_iommu_from_acpi()
884 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
885 PCI_SLOT(e->devid), in init_iommu_from_acpi()
886 PCI_FUNC(e->devid), in init_iommu_from_acpi()
887 e->flags, e->ext); in init_iommu_from_acpi()
889 devid = e->devid; in init_iommu_from_acpi()
890 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
891 e->ext); in init_iommu_from_acpi()
897 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
898 PCI_SLOT(e->devid), in init_iommu_from_acpi()
899 PCI_FUNC(e->devid), in init_iommu_from_acpi()
900 e->flags, e->ext); in init_iommu_from_acpi()
902 devid_start = e->devid; in init_iommu_from_acpi()
903 flags = e->flags; in init_iommu_from_acpi()
904 ext_flags = e->ext; in init_iommu_from_acpi()
910 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
911 PCI_SLOT(e->devid), in init_iommu_from_acpi()
912 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
914 devid = e->devid; in init_iommu_from_acpi()
931 handle = e->ext & 0xff; in init_iommu_from_acpi()
932 devid = (e->ext >> 8) & 0xffff; in init_iommu_from_acpi()
933 type = (e->ext >> 24) & 0xff; in init_iommu_from_acpi()
957 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1481 struct unity_map_entry *e = NULL; in init_unity_map_range() local
1484 e = kzalloc(sizeof(*e), GFP_KERNEL); in init_unity_map_range()
1485 if (e == NULL) in init_unity_map_range()
1490 kfree(e); in init_unity_map_range()
1494 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
1498 e->devid_start = 0; in init_unity_map_range()
1499 e->devid_end = amd_iommu_last_bdf; in init_unity_map_range()
1503 e->devid_start = m->devid; in init_unity_map_range()
1504 e->devid_end = m->aux; in init_unity_map_range()
1507 e->address_start = PAGE_ALIGN(m->range_start); in init_unity_map_range()
1508 e->address_end = e->address_start + PAGE_ALIGN(m->range_length); in init_unity_map_range()
1509 e->prot = m->flags >> 1; in init_unity_map_range()
1513 PCI_BUS_NUM(e->devid_start), PCI_SLOT(e->devid_start), in init_unity_map_range()
1514 PCI_FUNC(e->devid_start), PCI_BUS_NUM(e->devid_end), in init_unity_map_range()
1515 PCI_SLOT(e->devid_end), PCI_FUNC(e->devid_end), in init_unity_map_range()
1516 e->address_start, e->address_end, m->flags); in init_unity_map_range()
1518 list_add_tail(&e->list, &amd_iommu_unity_map); in init_unity_map_range()