Lines Matching refs:scope

83 	struct acpi_dmar_device_scope *scope;  in dmar_alloc_dev_scope()  local
87 scope = start; in dmar_alloc_dev_scope()
88 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope()
89 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope()
90 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope()
92 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope()
93 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope()
96 start += scope->length; in dmar_alloc_dev_scope()
221 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
227 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
228 scope = start; in dmar_insert_dev_scope()
229 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
230 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
233 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
234 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
235 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
247 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
249 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
732 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
742 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
743 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
744 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
745 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
747 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
750 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
753 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
756 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()