/linux-6.12.1/drivers/ntb/ |
D | ntb_transport.c | 230 unsigned int mw_count; member 272 #define QP_TO_MW(nt, qp) ((qp) % nt->mw_count) 623 unsigned int mw_num, mw_count, qp_count; in ntb_transport_setup_qp_mw() local 627 mw_count = nt->mw_count; in ntb_transport_setup_qp_mw() 636 if (mw_num < qp_count % mw_count) in ntb_transport_setup_qp_mw() 637 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_setup_qp_mw() 639 num_qps_mw = qp_count / mw_count; in ntb_transport_setup_qp_mw() 642 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw() 1010 for (i = 0; i < nt->mw_count; i++) in ntb_transport_link_cleanup() 1065 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work() [all …]
|
/linux-6.12.1/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.h | 169 const unsigned char mw_count; member 189 unsigned char mw_count; member
|
D | ntb_hw_amd.c | 78 if (idx < 0 || idx > ndev->mw_count) in ndev_mw_to_bar() 89 return ntb_ndev(ntb)->mw_count; in amd_ntb_mw_count() 378 return ntb_ndev(ntb)->mw_count; in amd_ntb_peer_mw_count() 546 .mw_count = amd_ntb_mw_count, 884 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_debugfs_read() 1062 ndev->mw_count = ndev->dev_data->mw_count; in amd_init_ntb() 1307 .mw_count = 3, 1311 .mw_count = 2,
|
/linux-6.12.1/drivers/ntb/hw/epf/ |
D | ntb_hw_epf.c | 71 unsigned int mw_count; member 142 if (idx < 0 || idx > ndev->mw_count) { in ntb_epf_mw_to_bar() 160 return ndev->mw_count; in ntb_epf_mw_count() 385 return ntb_ndev(ntb)->mw_count; in ntb_epf_peer_mw_count() 516 .mw_count = ntb_epf_mw_count, 560 ndev->mw_count = readl(ndev->ctrl_reg + NTB_EPF_MW_COUNT); in ntb_epf_init_dev()
|
/linux-6.12.1/drivers/ntb/hw/intel/ |
D | ntb_hw_gen1.c | 179 if (idx < 0 || idx >= ndev->mw_count) in ndev_mw_to_bar() 552 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_ntb_debugfs_read() 801 return ntb_ndev(ntb)->mw_count; in intel_ntb_mw_count() 1023 return ntb_ndev(ntb)->mw_count; in intel_ntb_peer_mw_count() 1326 --ndev->mw_count; in xeon_setup_b2b_mw() 1544 ndev->mw_count = HSX_SPLIT_BAR_MW_COUNT; in xeon_init_ntb() 1546 ndev->mw_count = XEON_MW_COUNT; in xeon_init_ntb() 1593 ndev->b2b_idx = b2b_mw_idx + ndev->mw_count; in xeon_init_ntb() 1597 if (ndev->b2b_idx >= ndev->mw_count) { in xeon_init_ntb() 1600 b2b_mw_idx, ndev->mw_count); in xeon_init_ntb() [all …]
|
D | ntb_hw_gen4.c | 132 ndev->mw_count = XEON_MW_COUNT; in gen4_init_ntb() 267 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_ntb4_debugfs_read() 567 .mw_count = intel_ntb_mw_count,
|
D | ntb_hw_gen3.c | 178 ndev->mw_count = XEON_MW_COUNT; in gen3_init_ntb() 303 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_ntb3_debugfs_read() 602 .mw_count = intel_ntb_mw_count,
|
D | ntb_hw_intel.h | 152 unsigned char mw_count; member
|
/linux-6.12.1/drivers/infiniband/hw/bnxt_re/ |
D | hw_counters.h | 154 atomic_t mw_count; member
|
D | hw_counters.c | 317 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&res_s->mw_count); in bnxt_re_ib_get_hw_stats()
|
D | main.c | 988 atomic_set(&rdev->stats.res.mw_count, 0); in bnxt_re_dev_add()
|
D | ib_verbs.c | 4064 active_mws = atomic_inc_return(&rdev->stats.res.mw_count); in bnxt_re_alloc_mw() 4087 atomic_dec(&rdev->stats.res.mw_count); in bnxt_re_dealloc_mw()
|
/linux-6.12.1/drivers/infiniband/hw/mana/ |
D | mana_ib.h | 45 u32 mw_count; member 170 u32 mw_count; member
|
D | main.c | 658 caps->mw_count = resp.mw_count; in mana_ib_gd_query_adapter_caps()
|
/linux-6.12.1/include/linux/ |
D | ntb.h | 272 int (*mw_count)(struct ntb_dev *ntb, int pidx); member 349 ops->mw_count && in ntb_dev_ops_is_valid() 804 return ntb->ops->mw_count(ntb, pidx); in ntb_mw_count()
|
/linux-6.12.1/drivers/ntb/hw/mscc/ |
D | ntb_hw_switchtec.c | 814 .mw_count = switchtec_ntb_mw_count, 997 u64 *mw_addrs, int mw_count) in crosslink_setup_mws() argument 1023 sndev->nr_direct_mw = min_t(int, sndev->nr_direct_mw, mw_count); in crosslink_setup_mws()
|
/linux-6.12.1/drivers/pci/endpoint/functions/ |
D | pci-epf-vntb.c | 1229 .mw_count = vntb_epf_mw_count,
|
/linux-6.12.1/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 2249 .mw_count = idt_ntb_mw_count,
|