Home
last modified time | relevance | path

Searched refs:affd (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/kernel/irq/
Daffinity.c12 static void default_calc_sets(struct irq_affinity *affd, unsigned int affvecs) in default_calc_sets() argument
14 affd->nr_sets = 1; in default_calc_sets()
15 affd->set_size[0] = affvecs; in default_calc_sets()
26 irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) in irq_create_affinity_masks() argument
37 if (nvecs > affd->pre_vectors + affd->post_vectors) in irq_create_affinity_masks()
38 affvecs = nvecs - affd->pre_vectors - affd->post_vectors; in irq_create_affinity_masks()
46 if (!affd->calc_sets) in irq_create_affinity_masks()
47 affd->calc_sets = default_calc_sets; in irq_create_affinity_masks()
50 affd->calc_sets(affd, affvecs); in irq_create_affinity_masks()
52 if (WARN_ON_ONCE(affd->nr_sets > IRQ_AFFINITY_MAX_SETS)) in irq_create_affinity_masks()
[all …]
/linux-6.6.21/drivers/pci/msi/
Dapi.c256 struct irq_affinity *affd) in pci_alloc_irq_vectors_affinity() argument
262 if (!affd) in pci_alloc_irq_vectors_affinity()
263 affd = &msi_default_affd; in pci_alloc_irq_vectors_affinity()
265 if (WARN_ON(affd)) in pci_alloc_irq_vectors_affinity()
266 affd = NULL; in pci_alloc_irq_vectors_affinity()
271 affd, flags); in pci_alloc_irq_vectors_affinity()
277 nvecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, affd); in pci_alloc_irq_vectors_affinity()
290 if (affd) in pci_alloc_irq_vectors_affinity()
291 irq_create_affinity_masks(1, affd); in pci_alloc_irq_vectors_affinity()
Dmsi.c348 struct irq_affinity *affd) in msi_capability_init() argument
365 if (affd) in msi_capability_init()
366 masks = irq_create_affinity_masks(nvec, affd); in msi_capability_init()
406 struct irq_affinity *affd) in __pci_enable_msi_range() argument
443 if (affd) { in __pci_enable_msi_range()
444 nvec = irq_calc_affinity_vectors(minvec, nvec, affd); in __pci_enable_msi_range()
449 rc = msi_capability_init(dev, nvec, affd); in __pci_enable_msi_range()
655 int nvec, struct irq_affinity *affd) in msix_setup_interrupts() argument
660 if (affd) in msix_setup_interrupts()
661 masks = irq_create_affinity_masks(nvec, affd); in msix_setup_interrupts()
[all …]
Dmsi.h96 int __pci_enable_msi_range(struct pci_dev *dev, int minvec, int maxvec, struct irq_affinity *affd);
98 int maxvec, struct irq_affinity *affd, int flags);
/linux-6.6.21/drivers/virtio/
Dvirtio_vdpa.c296 static void default_calc_sets(struct irq_affinity *affd, unsigned int affvecs) in default_calc_sets() argument
298 affd->nr_sets = 1; in default_calc_sets()
299 affd->set_size[0] = affvecs; in default_calc_sets()
303 create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) in create_affinity_masks() argument
308 if (nvecs > affd->pre_vectors + affd->post_vectors) in create_affinity_masks()
309 affvecs = nvecs - affd->pre_vectors - affd->post_vectors; in create_affinity_masks()
311 if (!affd->calc_sets) in create_affinity_masks()
312 affd->calc_sets = default_calc_sets; in create_affinity_masks()
314 affd->calc_sets(affd, affvecs); in create_affinity_masks()
324 for (curvec = 0; curvec < affd->pre_vectors; curvec++) in create_affinity_masks()
[all …]
/linux-6.6.21/drivers/scsi/csiostor/
Dcsio_isr.c477 static void csio_calc_sets(struct irq_affinity *affd, unsigned int nvecs) in csio_calc_sets() argument
479 struct csio_hw *hw = affd->priv; in csio_calc_sets()
486 affd->nr_sets = 1; in csio_calc_sets()
487 affd->set_size[0] = nvecs; in csio_calc_sets()
491 affd->nr_sets = hw->num_pports; in csio_calc_sets()
493 affd->set_size[i] = nvecs / hw->num_pports; in csio_calc_sets()
/linux-6.6.21/include/linux/
Dinterrupt.h361 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd);
364 const struct irq_affinity *affd);
416 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd) in irq_create_affinity_masks() argument
423 const struct irq_affinity *affd) in irq_calc_affinity_vectors() argument
Dplatform_device.h107 struct irq_affinity *affd,
Dpci.h1651 struct irq_affinity *affd);
/linux-6.6.21/drivers/base/
Dplatform.c335 struct irq_affinity *affd, in devm_platform_get_irqs_affinity() argument
345 if (!affd) in devm_platform_get_irqs_affinity()
358 nvec = irq_calc_affinity_vectors(minvec, nvec, affd); in devm_platform_get_irqs_affinity()
382 desc = irq_create_affinity_masks(nvec, affd); in devm_platform_get_irqs_affinity()
/linux-6.6.21/drivers/nvme/host/
Dpci.c2176 static void nvme_calc_irq_sets(struct irq_affinity *affd, unsigned int nrirqs) in nvme_calc_irq_sets() argument
2178 struct nvme_dev *dev = affd->priv; in nvme_calc_irq_sets()
2204 affd->set_size[HCTX_TYPE_DEFAULT] = nrirqs - nr_read_queues; in nvme_calc_irq_sets()
2206 affd->set_size[HCTX_TYPE_READ] = nr_read_queues; in nvme_calc_irq_sets()
2207 affd->nr_sets = nr_read_queues ? 2 : 1; in nvme_calc_irq_sets()
2213 struct irq_affinity affd = { in nvme_setup_irqs() local
2243 PCI_IRQ_ALL_TYPES | PCI_IRQ_AFFINITY, &affd); in nvme_setup_irqs()
/linux-6.6.21/drivers/net/ethernet/wangxun/libwx/
Dwx_lib.c1588 struct irq_affinity affd = {0, }; in wx_acquire_msix_vectors() local
1602 &affd); in wx_acquire_msix_vectors()