Lines Matching +full:pci +full:- +full:domain

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013-2015 ARM Limited, All Rights Reserved.
8 #include <linux/pci.h>
27 .name = "ITS-MSI",
54 static int its_pci_msi_prepare(struct irq_domain *domain, struct device *dev, in its_pci_msi_prepare() argument
62 return -EINVAL; in its_pci_msi_prepare()
64 msi_info = msi_get_domain_info(domain->parent); in its_pci_msi_prepare()
75 if (alias_dev->subordinate) in its_pci_msi_prepare()
76 pci_walk_bus(alias_dev->subordinate, in its_pci_msi_prepare()
78 info->flags |= MSI_ALLOC_FLAGS_PROXY_DEVICE; in its_pci_msi_prepare()
82 info->scratchpad[0].ul = pci_msi_domain_get_msi_rid(domain, pdev); in its_pci_msi_prepare()
92 if (!info->scratchpad[0].ul) in its_pci_msi_prepare()
95 return msi_info->ops->msi_prepare(domain->parent, dev, nvec, info); in its_pci_msi_prepare()
110 { .compatible = "arm,gic-v3-its", },
121 pr_err("%s: Unable to locate ITS domain\n", name); in its_pci_msi_init_one()
122 return -ENXIO; in its_pci_msi_init_one()
127 pr_err("%s: Unable to create PCI domain\n", name); in its_pci_msi_init_one()
128 return -ENOMEM; in its_pci_msi_init_one()
142 if (!of_property_read_bool(np, "msi-controller")) in its_pci_of_msi_init()
145 if (its_pci_msi_init_one(of_node_to_fwnode(np), np->full_name)) in its_pci_of_msi_init()
148 pr_info("PCI/MSI: %pOF domain created\n", np); in its_pci_of_msi_init()
163 int err = -ENXIO; in its_pci_msi_parse_madt()
167 (long)its_entry->base_address); in its_pci_msi_parse_madt()
168 dom_handle = iort_find_domain_token(its_entry->translation_id); in its_pci_msi_parse_madt()
170 pr_err("%s: Unable to locate ITS domain handle\n", node_name); in its_pci_msi_parse_madt()
176 pr_info("PCI/MSI: %s domain created\n", node_name); in its_pci_msi_parse_madt()