Lines Matching refs:nvec
116 static void platform_msi_free_descs(struct device *dev, int base, int nvec) in platform_msi_free_descs() argument
122 desc->platform.msi_index < (base + nvec)) { in platform_msi_free_descs()
130 int nvec, in platform_msi_alloc_descs_with_irq() argument
143 for (i = 0; i < nvec; i++) { in platform_msi_alloc_descs_with_irq()
155 if (i != nvec) { in platform_msi_alloc_descs_with_irq()
157 platform_msi_free_descs(dev, base, nvec); in platform_msi_alloc_descs_with_irq()
165 static int platform_msi_alloc_descs(struct device *dev, int nvec, in platform_msi_alloc_descs() argument
169 return platform_msi_alloc_descs_with_irq(dev, 0, nvec, data); in platform_msi_alloc_descs()
203 platform_msi_alloc_priv_data(struct device *dev, unsigned int nvec, in platform_msi_alloc_priv_data() argument
213 if (!dev->msi_domain || !write_msi_msg || !nvec || nvec > MAX_DEV_MSIS) in platform_msi_alloc_priv_data()
258 int platform_msi_domain_alloc_irqs(struct device *dev, unsigned int nvec, in platform_msi_domain_alloc_irqs() argument
264 priv_data = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg); in platform_msi_domain_alloc_irqs()
268 err = platform_msi_alloc_descs(dev, nvec, priv_data); in platform_msi_domain_alloc_irqs()
272 err = msi_domain_alloc_irqs(dev->msi_domain, dev, nvec); in platform_msi_domain_alloc_irqs()
287 platform_msi_free_descs(dev, 0, nvec); in platform_msi_domain_alloc_irqs()
342 unsigned int nvec, in __platform_msi_create_device_domain() argument
352 data = platform_msi_alloc_priv_data(dev, nvec, write_msi_msg); in __platform_msi_create_device_domain()
358 is_tree ? 0 : nvec, in __platform_msi_create_device_domain()
364 err = msi_domain_prepare_irqs(domain->parent, dev, nvec, &data->arg); in __platform_msi_create_device_domain()
386 unsigned int nvec) in platform_msi_domain_free() argument
393 if (!(desc->irq >= virq && desc->irq < (virq + nvec))) in platform_msi_domain_free()