Lines Matching refs:devscope
671 dmar_match_devscope(ACPI_DMAR_DEVICE_SCOPE *devscope, int dev_busno, in dmar_match_devscope() argument
677 if (devscope->Length < sizeof(*devscope)) { in dmar_match_devscope()
679 devscope->Length); in dmar_match_devscope()
682 if (devscope->EntryType != ACPI_DMAR_SCOPE_TYPE_ENDPOINT && in dmar_match_devscope()
683 devscope->EntryType != ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_match_devscope()
685 path_len = devscope->Length - sizeof(*devscope); in dmar_match_devscope()
688 devscope->Length); in dmar_match_devscope()
692 path = (ACPI_DMAR_PCI_PATH *)(devscope + 1); in dmar_match_devscope()
695 devscope->Length); in dmar_match_devscope()
699 return (dmar_match_pathes(devscope->Bus, path, path_len, dev_busno, in dmar_match_devscope()
700 dev_path, dev_path_len, devscope->EntryType)); in dmar_match_devscope()
708 ACPI_DMAR_DEVICE_SCOPE *devscope; in dmar_match_by_path() local
725 devscope = (ACPI_DMAR_DEVICE_SCOPE *)ptr; in dmar_match_by_path()
726 ptr += devscope->Length; in dmar_match_by_path()
727 match = dmar_match_devscope(devscope, dev_busno, dev_path, in dmar_match_by_path()
807 ACPI_DMAR_DEVICE_SCOPE *devscope; in dmar_find_nonpci() local
828 devscope = (ACPI_DMAR_DEVICE_SCOPE *)ptr; in dmar_find_nonpci()
829 ptr += devscope->Length; in dmar_find_nonpci()
830 if (devscope->EntryType != entry_type) in dmar_find_nonpci()
832 if (devscope->EnumerationId != id) in dmar_find_nonpci()
845 if (devscope->Length - sizeof(ACPI_DMAR_DEVICE_SCOPE) in dmar_find_nonpci()
849 (devscope + 1); in dmar_find_nonpci()
850 *rid = PCI_RID(devscope->Bus, in dmar_find_nonpci()
905 ACPI_DMAR_DEVICE_SCOPE *devscope; in dmar_rmrr_iter() local
926 devscope = (ACPI_DMAR_DEVICE_SCOPE *)ptr; in dmar_rmrr_iter()
927 ptr += devscope->Length; in dmar_rmrr_iter()
928 match = dmar_match_devscope(devscope, ria->dev_busno, in dmar_rmrr_iter()
989 const ACPI_DMAR_DEVICE_SCOPE *devscope; in dmar_inst_rmrr_iter() local
1014 devscope = (const ACPI_DMAR_DEVICE_SCOPE *)ptr; in dmar_inst_rmrr_iter()
1015 ptr += devscope->Length; in dmar_inst_rmrr_iter()
1017 if (devscope->EntryType != ACPI_DMAR_SCOPE_TYPE_ENDPOINT) in dmar_inst_rmrr_iter()
1020 dev_path_len = (devscope->Length - in dmar_inst_rmrr_iter()
1023 devscope->Bus, in dmar_inst_rmrr_iter()
1024 (const ACPI_DMAR_PCI_PATH *)(devscope + 1), &rid); in dmar_inst_rmrr_iter()
1033 dmar_print_path(devscope->Bus, dev_path_len, in dmar_inst_rmrr_iter()
1034 (const ACPI_DMAR_PCI_PATH *)(devscope + 1)); in dmar_inst_rmrr_iter()
1038 devscope->Bus, in dmar_inst_rmrr_iter()
1039 (const ACPI_DMAR_PCI_PATH *)(devscope + 1), in dmar_inst_rmrr_iter()
1044 resmem->Segment, devscope->Bus, in dmar_inst_rmrr_iter()
1045 (const ACPI_DMAR_PCI_PATH *)(devscope + 1), in dmar_inst_rmrr_iter()