Searched refs:affd (Results 1 – 9 of 9) sorted by relevance
/linux/kernel/irq/ |
H A D | affinity.c | 12 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/drivers/virtio/ |
H A D | virtio_vdpa.c | 299 static void default_calc_sets(struct irq_affinity *affd, unsigned int affvecs) in default_calc_sets() argument 301 affd->nr_sets = 1; in default_calc_sets() 302 affd->set_size[0] = affvecs; in default_calc_sets() 306 create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) in create_affinity_masks() argument 311 if (nvecs > affd->pre_vectors + affd->post_vectors) in create_affinity_masks() 312 affvecs = nvecs - affd->pre_vectors - affd->post_vectors; in create_affinity_masks() 314 if (!affd->calc_sets) in create_affinity_masks() 315 affd->calc_sets = default_calc_sets; in create_affinity_masks() 317 affd->calc_sets(affd, affvecs); in create_affinity_masks() 327 for (curvec = 0; curvec < affd->pre_vectors; curvec++) in create_affinity_masks() [all …]
|
/linux/drivers/pci/msi/ |
H A D | msi.c | 352 struct irq_affinity *affd) in msi_capability_init() argument 369 if (affd) in msi_capability_init() 370 masks = irq_create_affinity_masks(nvec, affd); in msi_capability_init() 416 struct irq_affinity *affd) in __pci_enable_msi_range() argument 453 if (affd) { in __pci_enable_msi_range() 454 nvec = irq_calc_affinity_vectors(minvec, nvec, affd); in __pci_enable_msi_range() 459 rc = msi_capability_init(dev, nvec, affd); in __pci_enable_msi_range() 666 int nvec, struct irq_affinity *affd) in msix_setup_interrupts() argument 671 if (affd) in msix_setup_interrupts() 672 masks = irq_create_affinity_masks(nvec, affd); in msix_setup_interrupts() [all …]
|
H A D | msi.h | 96 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/drivers/scsi/csiostor/ |
H A 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()
|
/linux/include/linux/ |
H A D | interrupt.h | 368 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd); 371 const struct irq_affinity *affd); 423 irq_create_affinity_masks(unsigned int nvec, struct irq_affinity *affd) in irq_create_affinity_masks() argument 430 const struct irq_affinity *affd) in irq_calc_affinity_vectors() argument
|
H A D | pci.h | 1679 struct irq_affinity *affd);
|
/linux/drivers/nvme/host/ |
H A D | pci.c | 2221 static void nvme_calc_irq_sets(struct irq_affinity *affd, unsigned int nrirqs) in nvme_calc_irq_sets() argument 2223 struct nvme_dev *dev = affd->priv; in nvme_calc_irq_sets() 2249 affd->set_size[HCTX_TYPE_DEFAULT] = nrirqs - nr_read_queues; in nvme_calc_irq_sets() 2251 affd->set_size[HCTX_TYPE_READ] = nr_read_queues; in nvme_calc_irq_sets() 2252 affd->nr_sets = nr_read_queues ? 2 : 1; in nvme_calc_irq_sets() 2258 struct irq_affinity affd = { in nvme_setup_irqs() local 2291 &affd); in nvme_setup_irqs()
|
/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_lib.c | 1623 struct irq_affinity affd = { .pre_vectors = 1 }; in wx_acquire_msix_vectors() local 1650 &affd); in wx_acquire_msix_vectors()
|