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()
225 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
231 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
232 scope = start; in dmar_insert_dev_scope()
233 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
234 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
237 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
238 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
239 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
251 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
253 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
727 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
737 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
738 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
739 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
740 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
742 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
745 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
748 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
751 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()