/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
H A D | bfa_hw_ct.c | 103 bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwct_msix_init() argument 105 WARN_ON((nvecs != 1) && (nvecs != BFI_MSIX_CT_MAX)); in bfa_hwct_msix_init() 106 bfa_trc(bfa, nvecs); in bfa_hwct_msix_init() 108 bfa->msix.nvecs = nvecs; in bfa_hwct_msix_init() 115 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_ctrl_install() 118 if (bfa->msix.nvecs == 1) in bfa_hwct_msix_ctrl_install() 129 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_queue_install() 132 if (bfa->msix.nvecs in bfa_hwct_msix_queue_install() [all...] |
H A D | bfa_hw_cb.c | 106 bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwcb_msix_init() argument 108 WARN_ON((nvecs != 1) && (nvecs != __HFN_NUMINTS)); in bfa_hwcb_msix_init() 110 bfa->msix.nvecs = nvecs; in bfa_hwcb_msix_init() 119 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_ctrl_install() 122 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_ctrl_install() 137 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_queue_install() 140 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_queue_install()
|
H A D | bfa.h | 169 int nvecs; member 180 void (*hw_msix_init)(struct bfa_s *bfa, int nvecs); 186 u32 *nvecs, u32 *maxvec); 314 void bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs); 319 void bfa_hwcb_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs, 328 void bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs); 333 void bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs,
|
/kernel/linux/linux-6.6/drivers/scsi/bfa/ |
H A D | bfa_hw_ct.c | 103 bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwct_msix_init() argument 105 WARN_ON((nvecs != 1) && (nvecs != BFI_MSIX_CT_MAX)); in bfa_hwct_msix_init() 106 bfa_trc(bfa, nvecs); in bfa_hwct_msix_init() 108 bfa->msix.nvecs = nvecs; in bfa_hwct_msix_init() 115 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_ctrl_install() 118 if (bfa->msix.nvecs == 1) in bfa_hwct_msix_ctrl_install() 129 if (bfa->msix.nvecs == 0) in bfa_hwct_msix_queue_install() 132 if (bfa->msix.nvecs in bfa_hwct_msix_queue_install() [all...] |
H A D | bfa_hw_cb.c | 106 bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs) in bfa_hwcb_msix_init() argument 108 WARN_ON((nvecs != 1) && (nvecs != __HFN_NUMINTS)); in bfa_hwcb_msix_init() 110 bfa->msix.nvecs = nvecs; in bfa_hwcb_msix_init() 119 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_ctrl_install() 122 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_ctrl_install() 137 if (bfa->msix.nvecs == 0) in bfa_hwcb_msix_queue_install() 140 if (bfa->msix.nvecs == 1) { in bfa_hwcb_msix_queue_install()
|
H A D | bfa.h | 168 int nvecs; member 179 void (*hw_msix_init)(struct bfa_s *bfa, int nvecs); 185 u32 *nvecs, u32 *maxvec); 313 void bfa_hwcb_msix_init(struct bfa_s *bfa, int nvecs); 318 void bfa_hwcb_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs, 327 void bfa_hwct_msix_init(struct bfa_s *bfa, int nvecs); 332 void bfa_hwct_msix_getvecs(struct bfa_s *bfa, u32 *vecmap, u32 *nvecs,
|
/kernel/linux/linux-6.6/drivers/pci/msi/ |
H A D | api.c | 259 int nvecs = -ENOSPC; in pci_alloc_irq_vectors_affinity() local 270 nvecs = __pci_enable_msix_range(dev, NULL, min_vecs, max_vecs, in pci_alloc_irq_vectors_affinity() 272 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 273 return nvecs; in pci_alloc_irq_vectors_affinity() 277 nvecs = __pci_enable_msi_range(dev, min_vecs, max_vecs, affd); in pci_alloc_irq_vectors_affinity() 278 if (nvecs > 0) in pci_alloc_irq_vectors_affinity() 279 return nvecs; in pci_alloc_irq_vectors_affinity() 297 return nvecs; in pci_alloc_irq_vectors_affinity()
|
/kernel/linux/linux-6.6/kernel/irq/ |
H A D | affinity.c | 20 * @nvecs: The total number of vectors 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() 59 masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL); in irq_create_affinity_masks() 94 for (; curvec < nvecs; curvec++) in irq_create_affinity_masks() 98 for (i = affd->pre_vectors; i < nvecs - affd->post_vectors; i++) in irq_create_affinity_masks()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_inode_item.c | 48 int *nvecs, in xfs_inode_item_data_fork_size() 60 *nvecs += 1; in xfs_inode_item_data_fork_size() 67 *nvecs += 1; in xfs_inode_item_data_fork_size() 74 *nvecs += 1; in xfs_inode_item_data_fork_size() 89 int *nvecs, in xfs_inode_item_attr_fork_size() 101 *nvecs += 1; in xfs_inode_item_attr_fork_size() 108 *nvecs += 1; in xfs_inode_item_attr_fork_size() 115 *nvecs += 1; in xfs_inode_item_attr_fork_size() 134 int *nvecs, in xfs_inode_item_size() 140 *nvecs in xfs_inode_item_size() 46 xfs_inode_item_data_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) xfs_inode_item_data_fork_size() argument 87 xfs_inode_item_attr_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) xfs_inode_item_attr_fork_size() argument 132 xfs_inode_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_inode_item_size() argument [all...] |
H A D | xfs_dquot_item.c | 32 int *nvecs, in xfs_qm_dquot_logitem_size() 35 *nvecs += 2; in xfs_qm_dquot_logitem_size() 238 int *nvecs, in xfs_qm_qoff_logitem_size() 241 *nvecs += 1; in xfs_qm_qoff_logitem_size() 30 xfs_qm_dquot_logitem_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_qm_dquot_logitem_size() argument 236 xfs_qm_qoff_logitem_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_qm_qoff_logitem_size() argument
|
H A D | xfs_buf_item.c | 70 int *nvecs, in xfs_buf_item_size_segment() 85 *nvecs += 2; in xfs_buf_item_size_segment() 106 (*nvecs)++; in xfs_buf_item_size_segment() 111 (*nvecs)++; in xfs_buf_item_size_segment() 140 int *nvecs, in xfs_buf_item_size() 155 *nvecs += bip->bli_format_count; in xfs_buf_item_size() 171 *nvecs = XFS_LOG_VEC_ORDERED; in xfs_buf_item_size() 186 nvecs, nbytes); in xfs_buf_item_size() 67 xfs_buf_item_size_segment( struct xfs_buf_log_item *bip, struct xfs_buf_log_format *blfp, int *nvecs, int *nbytes) xfs_buf_item_size_segment() argument 138 xfs_buf_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_buf_item_size() argument
|
H A D | xfs_icreate_item.c | 38 int *nvecs, in xfs_icreate_item_size() 41 *nvecs += 1; in xfs_icreate_item_size() 36 xfs_icreate_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_icreate_item_size() argument
|
H A D | xfs_refcount_item.c | 66 int *nvecs, in xfs_cui_item_size() 71 *nvecs += 1; in xfs_cui_item_size() 166 int *nvecs, in xfs_cud_item_size() 169 *nvecs += 1; in xfs_cud_item_size() 64 xfs_cui_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_cui_item_size() argument 164 xfs_cud_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_cud_item_size() argument
|
H A D | xfs_bmap_item.c | 68 int *nvecs, in xfs_bui_item_size() 73 *nvecs += 1; in xfs_bui_item_size() 161 int *nvecs, in xfs_bud_item_size() 164 *nvecs += 1; in xfs_bud_item_size() 66 xfs_bui_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_bui_item_size() argument 159 xfs_bud_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_bud_item_size() argument
|
H A D | xfs_rmap_item.c | 65 int *nvecs, in xfs_rui_item_size() 70 *nvecs += 1; in xfs_rui_item_size() 189 int *nvecs, in xfs_rud_item_size() 192 *nvecs += 1; in xfs_rud_item_size() 63 xfs_rui_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_rui_item_size() argument 187 xfs_rud_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_rud_item_size() argument
|
/kernel/linux/linux-5.10/kernel/irq/ |
H A D | affinity.c | 411 * @nvecs: The total number of vectors 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() 450 masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL); in irq_create_affinity_masks() 481 for (; curvec < nvecs; curvec++) in irq_create_affinity_masks() 485 for (i = affd->pre_vectors; i < nvecs - affd->post_vectors; i++) in irq_create_affinity_masks()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_inode_item.c | 196 int *nvecs, in xfs_inode_item_data_fork_size() 208 *nvecs += 1; in xfs_inode_item_data_fork_size() 215 *nvecs += 1; in xfs_inode_item_data_fork_size() 222 *nvecs += 1; in xfs_inode_item_data_fork_size() 237 int *nvecs, in xfs_inode_item_attr_fork_size() 249 *nvecs += 1; in xfs_inode_item_attr_fork_size() 256 *nvecs += 1; in xfs_inode_item_attr_fork_size() 263 *nvecs += 1; in xfs_inode_item_attr_fork_size() 282 int *nvecs, in xfs_inode_item_size() 288 *nvecs in xfs_inode_item_size() 194 xfs_inode_item_data_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) xfs_inode_item_data_fork_size() argument 235 xfs_inode_item_attr_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) xfs_inode_item_attr_fork_size() argument 280 xfs_inode_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_inode_item_size() argument [all...] |
H A D | xfs_buf_item.c | 90 int *nvecs, in xfs_buf_item_size_segment() 103 (*nvecs)++; in xfs_buf_item_size_segment() 119 (*nvecs)++; in xfs_buf_item_size_segment() 136 (*nvecs)++; in xfs_buf_item_size_segment() 159 (*nvecs)++; in xfs_buf_item_size_segment() 190 int *nvecs, in xfs_buf_item_size() 208 *nvecs += bip->bli_format_count; in xfs_buf_item_size() 224 *nvecs = XFS_LOG_VEC_ORDERED; in xfs_buf_item_size() 240 nvecs, &bytes); in xfs_buf_item_size() 86 xfs_buf_item_size_segment( struct xfs_buf_log_item *bip, struct xfs_buf_log_format *blfp, uint offset, int *nvecs, int *nbytes) xfs_buf_item_size_segment() argument 188 xfs_buf_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_buf_item_size() argument
|
H A D | xfs_dquot_item.c | 32 int *nvecs, in xfs_qm_dquot_logitem_size() 35 *nvecs += 2; in xfs_qm_dquot_logitem_size() 30 xfs_qm_dquot_logitem_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_qm_dquot_logitem_size() argument
|
H A D | xfs_attr_item.c | 140 int *nvecs, in xfs_attri_item_size() 146 *nvecs += 2; in xfs_attri_item_size() 153 *nvecs += 1; in xfs_attri_item_size() 263 int *nvecs, in xfs_attrd_item_size() 266 *nvecs += 1; in xfs_attrd_item_size() 138 xfs_attri_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_attri_item_size() argument 261 xfs_attrd_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) xfs_attrd_item_size() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_lib.c | 1589 int nvecs, i; in wx_acquire_msix_vectors() local 1591 nvecs = min_t(int, num_online_cpus(), wx->mac.max_msix_vectors); in wx_acquire_msix_vectors() 1593 wx->msix_entries = kcalloc(nvecs, in wx_acquire_msix_vectors() 1599 nvecs = pci_alloc_irq_vectors_affinity(wx->pdev, nvecs, in wx_acquire_msix_vectors() 1600 nvecs, in wx_acquire_msix_vectors() 1603 if (nvecs < 0) { in wx_acquire_msix_vectors() 1604 wx_err(wx, "Failed to allocate MSI-X interrupts. Err: %d\n", nvecs); in wx_acquire_msix_vectors() 1607 return nvecs; in wx_acquire_msix_vectors() 1610 for (i = 0; i < nvecs; in wx_acquire_msix_vectors() 1634 int nvecs, ret; wx_set_interrupt_capability() local [all...] |
/kernel/linux/linux-5.10/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 482 if (!nvecs) in csio_calc_sets() 485 if (nvecs < hw->num_pports) { in csio_calc_sets() 487 affd->set_size[0] = nvecs; in csio_calc_sets() 493 affd->set_size[i] = nvecs / hw->num_pports; in csio_calc_sets()
|
/kernel/linux/linux-6.6/drivers/virtio/ |
H A D | virtio_vdpa.c | 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() 319 masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL); in create_affinity_masks() 350 for (; curvec < nvecs; curvec++) in create_affinity_masks()
|
/kernel/linux/linux-6.6/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 482 if (!nvecs) in csio_calc_sets() 485 if (nvecs < hw->num_pports) { in csio_calc_sets() 487 affd->set_size[0] = nvecs; in csio_calc_sets() 493 affd->set_size[i] = nvecs / hw->num_pports; in csio_calc_sets()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu.c | 518 static void rvu_check_min_msix_vec(struct rvu *rvu, int nvecs, int pf, int vf) in rvu_check_min_msix_vec() argument 525 if (!nvecs) { in rvu_check_min_msix_vec() 528 pf, vf - 1, nvecs); in rvu_check_min_msix_vec() 538 if (!(nvecs < min_vecs)) in rvu_check_min_msix_vec() 542 pf, nvecs, min_vecs); in rvu_check_min_msix_vec() 549 int nvecs, offset, max_msix; in rvu_setup_msix_resources() local 590 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 592 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() 622 nvecs = (cfg >> 12) & 0xFF; in rvu_setup_msix_resources() 624 offset = rvu_alloc_rsrc_contig(&pfvf->msix, nvecs); in rvu_setup_msix_resources() 1484 u16 nvecs, vec, offset; rvu_set_msix_offset() local 1509 u16 nvecs, vec, offset; rvu_clear_msix_offset() local [all...] |