Lines Matching refs:scope
92 struct acpi_dmar_device_scope *scope; in dmar_alloc_dev_scope() local
96 scope = start; in dmar_alloc_dev_scope()
97 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope()
98 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope()
99 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope()
101 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope()
102 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope()
105 start += scope->length; in dmar_alloc_dev_scope()
227 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
233 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
234 scope = start; in dmar_insert_dev_scope()
235 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
236 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
239 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
240 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
241 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
253 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
255 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
705 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
715 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
716 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
717 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
718 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
720 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
723 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
726 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
729 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()