Lines Matching full:msi
3 * MSI framework for platform devices
13 #include <linux/msi.h>
21 * and the callback to write the MSI message.
41 u32 devid = desc->dev->msi.data->platform_data->devid; in platform_msi_calc_hwirq()
87 desc->dev->msi.data->platform_data->write_msg(desc, msg); in platform_msi_write_msg()
111 * platform_msi_create_irq_domain - Create a platform MSI interrupt domain
113 * @info: MSI domain info
116 * Updates the domain and chip ops and creates a platform MSI
152 * accordingly (which would impact the max number of MSI in platform_msi_alloc_priv_data()
155 if (!dev->msi.domain || !write_msi_msg || !nvec || nvec > MAX_DEV_MSIS) in platform_msi_alloc_priv_data()
158 if (dev->msi.domain->bus_token != DOMAIN_BUS_PLATFORM_MSI) { in platform_msi_alloc_priv_data()
168 if (dev->msi.data->platform_data) in platform_msi_alloc_priv_data()
185 dev->msi.data->platform_data = datap; in platform_msi_alloc_priv_data()
191 struct platform_msi_priv_data *data = dev->msi.data->platform_data; in platform_msi_free_priv_data()
193 dev->msi.data->platform_data = NULL; in platform_msi_free_priv_data()
199 * platform_msi_domain_alloc_irqs - Allocate MSI interrupts for @dev
225 * platform_msi_domain_free_irqs - Free MSI interrupts for @dev
237 * a platform-msi domain
238 * @domain: The platform-msi domain
253 * __platform_msi_create_device_domain - Create a platform-msi device domain
264 * This is for interrupt domains which stack on a platform-msi domain
265 * created by platform_msi_create_irq_domain(). @dev->msi.domain points to
266 * that platform-msi domain which is the parent for the new domain.
285 * Use a separate lock class for the MSI descriptor mutex on in __platform_msi_create_device_domain()
286 * platform MSI device domains because the descriptor mutex nests in __platform_msi_create_device_domain()
289 lockdep_set_class(&dev->msi.data->mutex, &platform_device_msi_lock_class); in __platform_msi_create_device_domain()
291 data = dev->msi.data->platform_data; in __platform_msi_create_device_domain()
293 domain = irq_domain_create_hierarchy(dev->msi.domain, 0, in __platform_msi_create_device_domain()
314 * platform_msi_device_domain_free - Free interrupts associated with a platform-msi
317 * @domain: The platform-msi device domain
335 * a platform-msi device domain
337 * @domain: The platform-msi device domain