Lines Matching refs:e
816 struct ivhd_entry *e; in init_iommu_from_acpi() local
837 e = (struct ivhd_entry *)p; in init_iommu_from_acpi()
838 switch (e->type) { in init_iommu_from_acpi()
849 e->flags); in init_iommu_from_acpi()
854 e->flags, 0); in init_iommu_from_acpi()
860 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
861 PCI_SLOT(e->devid), in init_iommu_from_acpi()
862 PCI_FUNC(e->devid), in init_iommu_from_acpi()
863 e->flags); in init_iommu_from_acpi()
865 devid = e->devid; in init_iommu_from_acpi()
866 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
872 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
873 PCI_SLOT(e->devid), in init_iommu_from_acpi()
874 PCI_FUNC(e->devid), in init_iommu_from_acpi()
875 e->flags); in init_iommu_from_acpi()
877 devid_start = e->devid; in init_iommu_from_acpi()
878 flags = e->flags; in init_iommu_from_acpi()
886 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
887 PCI_SLOT(e->devid), in init_iommu_from_acpi()
888 PCI_FUNC(e->devid), in init_iommu_from_acpi()
889 e->flags, in init_iommu_from_acpi()
890 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi()
891 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
892 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi()
894 devid = e->devid; in init_iommu_from_acpi()
895 devid_to = e->ext >> 8; in init_iommu_from_acpi()
896 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
897 set_dev_entry_from_acpi(iommu, devid_to, e->flags, 0); in init_iommu_from_acpi()
905 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
906 PCI_SLOT(e->devid), in init_iommu_from_acpi()
907 PCI_FUNC(e->devid), in init_iommu_from_acpi()
908 e->flags, in init_iommu_from_acpi()
909 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi()
910 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi()
911 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi()
913 devid_start = e->devid; in init_iommu_from_acpi()
914 flags = e->flags; in init_iommu_from_acpi()
915 devid_to = e->ext >> 8; in init_iommu_from_acpi()
923 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
924 PCI_SLOT(e->devid), in init_iommu_from_acpi()
925 PCI_FUNC(e->devid), in init_iommu_from_acpi()
926 e->flags, e->ext); in init_iommu_from_acpi()
928 devid = e->devid; in init_iommu_from_acpi()
929 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
930 e->ext); in init_iommu_from_acpi()
936 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
937 PCI_SLOT(e->devid), in init_iommu_from_acpi()
938 PCI_FUNC(e->devid), in init_iommu_from_acpi()
939 e->flags, e->ext); in init_iommu_from_acpi()
941 devid_start = e->devid; in init_iommu_from_acpi()
942 flags = e->flags; in init_iommu_from_acpi()
943 ext_flags = e->ext; in init_iommu_from_acpi()
949 PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
950 PCI_SLOT(e->devid), in init_iommu_from_acpi()
951 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
953 devid = e->devid; in init_iommu_from_acpi()
970 handle = e->ext & 0xff; in init_iommu_from_acpi()
971 devid = (e->ext >> 8) & 0xffff; in init_iommu_from_acpi()
972 type = (e->ext >> 24) & 0xff; in init_iommu_from_acpi()
996 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1530 struct unity_map_entry *e = NULL; in init_unity_map_range() local
1533 e = kzalloc(sizeof(*e), GFP_KERNEL); in init_unity_map_range()
1534 if (e == NULL) in init_unity_map_range()
1539 kfree(e); in init_unity_map_range()
1543 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
1547 e->devid_start = 0; in init_unity_map_range()
1548 e->devid_end = amd_iommu_last_bdf; in init_unity_map_range()
1552 e->devid_start = m->devid; in init_unity_map_range()
1553 e->devid_end = m->aux; in init_unity_map_range()
1556 e->address_start = PAGE_ALIGN(m->range_start); in init_unity_map_range()
1557 e->address_end = e->address_start + PAGE_ALIGN(m->range_length); in init_unity_map_range()
1558 e->prot = m->flags >> 1; in init_unity_map_range()
1562 PCI_BUS_NUM(e->devid_start), PCI_SLOT(e->devid_start), in init_unity_map_range()
1563 PCI_FUNC(e->devid_start), PCI_BUS_NUM(e->devid_end), in init_unity_map_range()
1564 PCI_SLOT(e->devid_end), PCI_FUNC(e->devid_end), in init_unity_map_range()
1565 e->address_start, e->address_end, m->flags); in init_unity_map_range()
1567 list_add_tail(&e->list, &amd_iommu_unity_map); in init_unity_map_range()