Searched refs:affd (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/kernel/irq/ |
D | affinity.c | 403 static void default_calc_sets(struct irq_affinity *affd, unsigned int affvecs) in default_calc_sets() argument 405 affd->nr_sets = 1; in default_calc_sets() 406 affd->set_size[0] = affvecs; in default_calc_sets() 417 irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) in irq_create_affinity_masks() argument 428 if (nvecs > affd->pre_vectors + affd->post_vectors) in irq_create_affinity_masks() 429 affvecs = nvecs - affd->pre_vectors - affd->post_vectors; in irq_create_affinity_masks() 437 if (!affd->calc_sets) in irq_create_affinity_masks() 438 affd->calc_sets = default_calc_sets; in irq_create_affinity_masks() 441 affd->calc_sets(affd, affvecs); in irq_create_affinity_masks() 443 if (WARN_ON_ONCE(affd->nr_sets > IRQ_AFFINITY_MAX_SETS)) in irq_create_affinity_masks() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | msi.c | 580 msi_setup_entry(struct pci_dev *dev, int nvec, struct irq_affinity *affd) in msi_setup_entry() argument 586 if (affd) in msi_setup_entry() 587 masks = irq_create_affinity_masks(nvec, affd); in msi_setup_entry() 649 struct irq_affinity *affd) in msi_capability_init() argument 657 entry = msi_setup_entry(dev, nvec, affd); in msi_capability_init() 721 struct irq_affinity *affd) in msix_setup_entries() argument 729 if (affd) in msix_setup_entries() 730 masks = irq_create_affinity_masks(nvec, affd); in msix_setup_entries() 808 int nvec, struct irq_affinity *affd) in msix_capability_init() argument 831 ret = msix_setup_entries(dev, base, entries, nvec, affd); in msix_capability_init() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
D | csio_isr.c | 477 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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | interrupt.h | 364 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd); 367 const struct irq_affinity *affd); 401 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd) in irq_create_affinity_masks() argument 408 const struct irq_affinity *affd) in irq_calc_affinity_vectors() argument
|
D | pci.h | 1482 struct irq_affinity *affd);
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | pci.c | 2077 static void nvme_calc_irq_sets(struct irq_affinity *affd, unsigned int nrirqs) in nvme_calc_irq_sets() argument 2079 struct nvme_dev *dev = affd->priv; in nvme_calc_irq_sets() 2105 affd->set_size[HCTX_TYPE_DEFAULT] = nrirqs - nr_read_queues; in nvme_calc_irq_sets() 2107 affd->set_size[HCTX_TYPE_READ] = nr_read_queues; in nvme_calc_irq_sets() 2108 affd->nr_sets = nr_read_queues ? 2 : 1; in nvme_calc_irq_sets() 2114 struct irq_affinity affd = { in nvme_setup_irqs() local 2144 PCI_IRQ_ALL_TYPES | PCI_IRQ_AFFINITY, &affd); in nvme_setup_irqs()
|