Lines Matching full:domain
13 struct irq_domain *domain; in pci_msi_setup_msi_irqs() local
15 domain = dev_get_msi_domain(&dev->dev); in pci_msi_setup_msi_irqs()
16 if (domain && irq_domain_is_hierarchy(domain)) in pci_msi_setup_msi_irqs()
24 struct irq_domain *domain; in pci_msi_teardown_msi_irqs() local
26 domain = dev_get_msi_domain(&dev->dev); in pci_msi_teardown_msi_irqs()
27 if (domain && irq_domain_is_hierarchy(domain)) { in pci_msi_teardown_msi_irqs()
104 * pci_msi_create_irq_domain - Create a MSI interrupt domain
106 * @info: MSI domain info
107 * @parent: Parent irq domain
109 * Updates the domain and chip ops and creates a MSI interrupt domain.
112 * A domain pointer or NULL in case of failure.
143 * Per device MSI[-X] domain functionality
153 struct msi_domain_info *info = data->domain->host_data; in cond_mask_parent()
161 struct msi_domain_info *info = data->domain->host_data; in cond_unmask_parent()
225 static void pci_msix_prepare_desc(struct irq_domain *domain, msi_alloc_info_t *arg, in pci_msix_prepare_desc() argument
262 struct irq_domain *domain = dev_get_msi_domain(&pdev->dev); in pci_create_device_domain() local
264 if (!domain || !irq_domain_is_msi_parent(domain)) in pci_create_device_domain()
272 * pci_setup_msi_device_domain - Setup a device MSI interrupt domain
273 * @pdev: The PCI device to create the domain on
277 * - The device does not have a MSI parent irq domain associated,
279 * PCI/MSI domain models working
280 * - The MSI domain exists already
281 * - The MSI domain was successfully allocated
284 * - The domain creation fails.
286 * The created MSI domain is preserved until:
288 * - MSI is disabled and a MSI-X domain is created
304 * pci_setup_msix_device_domain - Setup a device MSI-X interrupt domain
305 * @pdev: The PCI device to create the domain on
310 * - The device does not have a MSI parent irq domain associated,
312 * PCI/MSI domain models working
313 * - The MSI-X domain exists already
314 * - The MSI-X domain was successfully allocated
317 * - The domain creation fails.
319 * The created MSI-X domain is preserved until:
321 * - MSI-X is disabled and a MSI domain is created
340 * @mode: If ALLOW_LEGACY this grants the feature when there is no irq domain
341 * associated to the device. If DENY_LEGACY the lack of an irq domain
348 struct irq_domain *domain; in pci_msi_domain_supports() local
351 domain = dev_get_msi_domain(&pdev->dev); in pci_msi_domain_supports()
353 if (!domain || !irq_domain_is_hierarchy(domain)) { in pci_msi_domain_supports()
359 if (!irq_domain_is_msi_parent(domain)) { in pci_msi_domain_supports()
365 info = domain->host_data; in pci_msi_domain_supports()
372 * per device domain because the parent is never in pci_msi_domain_supports()
375 supported = domain->msi_parent_ops->supported_flags; in pci_msi_domain_supports()
407 * @domain: The interrupt domain
415 u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev) in pci_msi_domain_get_msi_rid() argument
422 of_node = irq_domain_get_of_node(domain); in pci_msi_domain_get_msi_rid()
430 * pci_msi_get_device_domain - Get the MSI domain for a given PCI device
433 * Use the firmware data to find a device-specific MSI domain
436 * Returns: The corresponding MSI domain or NULL if none has been found.