Lines Matching refs:scope
84 struct acpi_dmar_device_scope *scope; in dmar_alloc_dev_scope() local
88 scope = start; in dmar_alloc_dev_scope()
89 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope()
90 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope()
91 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope()
93 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope()
94 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope()
97 start += scope->length; in dmar_alloc_dev_scope()
222 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
228 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
229 scope = start; in dmar_insert_dev_scope()
230 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
231 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
234 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
235 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
236 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
248 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
250 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
733 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
743 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
744 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
745 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
746 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
748 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
751 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
754 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
757 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()