Home
last modified time | relevance | path

Searched refs:mw_count (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/ntb/
Dntb_transport.c230 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()
990 for (i = 0; i < nt->mw_count; i++) in ntb_transport_link_cleanup()
1045 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
[all …]
/kernel/linux/linux-5.10/drivers/ntb/hw/amd/
Dntb_hw_amd.h169 const unsigned char mw_count; member
189 unsigned char mw_count; member
Dntb_hw_amd.c78 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()
1065 ndev->mw_count = ndev->dev_data->mw_count; in amd_init_ntb()
1320 .mw_count = 3,
1324 .mw_count = 2,
/kernel/linux/linux-5.10/drivers/ntb/hw/intel/
Dntb_hw_gen1.c179 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 …]
Dntb_hw_intel.h154 unsigned char mw_count; member
Dntb_hw_gen3.c178 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,
Dntb_hw_gen4.c132 ndev->mw_count = XEON_MW_COUNT; in gen4_init_ntb()
265 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_ntb4_debugfs_read()
542 .mw_count = intel_ntb_mw_count,
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dbnxt_re.h178 atomic_t mw_count; member
Dhw_counters.c130 stats->value[BNXT_RE_ACTIVE_MW] = atomic_read(&rdev->mw_count); in bnxt_re_ib_get_hw_stats()
Dmain.c779 atomic_set(&rdev->mw_count, 0); in bnxt_re_dev_add()
Dib_verbs.c3751 atomic_inc(&rdev->mw_count); in bnxt_re_alloc_mw()
3772 atomic_dec(&rdev->mw_count); in bnxt_re_dealloc_mw()
/kernel/linux/linux-5.10/include/linux/
Dntb.h272 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()
/kernel/linux/linux-5.10/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c812 .mw_count = switchtec_ntb_mw_count,
999 u64 *mw_addrs, int mw_count) in crosslink_setup_mws() argument
1025 sndev->nr_direct_mw = min_t(int, sndev->nr_direct_mw, mw_count); in crosslink_setup_mws()
/kernel/linux/linux-5.10/drivers/ntb/hw/idt/
Dntb_hw_idt.c2249 .mw_count = idt_ntb_mw_count,