Lines Matching refs:scope
82 struct acpi_dmar_device_scope *scope; in dmar_alloc_dev_scope() local
86 scope = start; in dmar_alloc_dev_scope()
87 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope()
88 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope()
89 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope()
91 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope()
92 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope()
95 start += scope->length; in dmar_alloc_dev_scope()
217 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local
223 for (; start < end; start += scope->length) { in dmar_insert_dev_scope()
224 scope = start; in dmar_insert_dev_scope()
225 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
226 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_insert_dev_scope()
229 path = (struct acpi_dmar_pci_path *)(scope + 1); in dmar_insert_dev_scope()
230 level = (scope->length - sizeof(*scope)) / sizeof(*path); in dmar_insert_dev_scope()
231 if (!dmar_match_pci_path(info, scope->bus, path, level)) in dmar_insert_dev_scope()
243 if ((scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_insert_dev_scope()
245 (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE && in dmar_insert_dev_scope()
695 struct acpi_dmar_device_scope *scope; in dmar_acpi_insert_dev_scope() local
705 for (scope = (void *)(drhd + 1); in dmar_acpi_insert_dev_scope()
706 (unsigned long)scope < ((unsigned long)drhd) + drhd->header.length; in dmar_acpi_insert_dev_scope()
707 scope = ((void *)scope) + scope->length) { in dmar_acpi_insert_dev_scope()
708 if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_NAMESPACE) in dmar_acpi_insert_dev_scope()
710 if (scope->enumeration_id != device_number) in dmar_acpi_insert_dev_scope()
713 path = (void *)(scope + 1); in dmar_acpi_insert_dev_scope()
716 scope->bus, path->device, path->function); in dmar_acpi_insert_dev_scope()
719 dmaru->devices[i].bus = scope->bus; in dmar_acpi_insert_dev_scope()