Lines Matching refs:scope
93 struct acpi_dmar_device_scope *scope; in dmar_alloc_dev_scope() local
97 scope = start; in dmar_alloc_dev_scope()
98 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope()
99 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope()
100 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope()
102 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope()
103 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope()
106 start += scope->length; in dmar_alloc_dev_scope()
228 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
234 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
235 scope = start; in dmar_insert_dev_scope()
236 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
237 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
240 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
241 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
242 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
254 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
256 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
706 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
716 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
717 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
718 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
719 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
721 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
724 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
727 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
730 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()