Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/ntb/
Dntb_transport.c215 unsigned int mw_count; member
253 #define QP_TO_MW(nt, qp) ((qp) % nt->mw_count)
604 unsigned int mw_num, mw_count, qp_count; in ntb_transport_setup_qp_mw() local
608 mw_count = nt->mw_count; in ntb_transport_setup_qp_mw()
617 if (mw_num < qp_count % mw_count) in ntb_transport_setup_qp_mw()
618 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_setup_qp_mw()
620 num_qps_mw = qp_count / mw_count; in ntb_transport_setup_qp_mw()
623 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
870 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
883 ntb_peer_spad_write(ndev, PIDX, NUM_MWS, nt->mw_count); in ntb_transport_link_work()
[all …]
/linux-4.19.296/drivers/ntb/hw/intel/
Dntb_hw_gen1.c178 if (idx < 0 || idx >= ndev->mw_count) in ndev_mw_to_bar()
553 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_ntb_debugfs_read()
800 return ntb_ndev(ntb)->mw_count; in intel_ntb_mw_count()
1022 return ntb_ndev(ntb)->mw_count; in intel_ntb_peer_mw_count()
1310 --ndev->mw_count; in xeon_setup_b2b_mw()
1528 ndev->mw_count = HSX_SPLIT_BAR_MW_COUNT; in xeon_init_ntb()
1530 ndev->mw_count = XEON_MW_COUNT; in xeon_init_ntb()
1577 ndev->b2b_idx = b2b_mw_idx + ndev->mw_count; in xeon_init_ntb()
1581 if (ndev->b2b_idx >= ndev->mw_count) { in xeon_init_ntb()
1584 b2b_mw_idx, ndev->mw_count); in xeon_init_ntb()
[all …]
Dntb_hw_intel.h151 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()
572 .mw_count = intel_ntb_mw_count,
/linux-4.19.296/drivers/ntb/hw/amd/
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()
297 return ntb_ndev(ntb)->mw_count; in amd_ntb_peer_mw_count()
465 .mw_count = amd_ntb_mw_count,
757 "Memory Window Count -\t%u\n", ndev->mw_count); in ndev_debugfs_read()
912 ndev->mw_count = AMD_MW_CNT; in amd_init_ntb()
Dntb_hw_amd.h188 unsigned char mw_count; member
/linux-4.19.296/include/linux/
Dntb.h270 int (*mw_count)(struct ntb_dev *ntb, int pidx); member
346 ops->mw_count && in ntb_dev_ops_is_valid()
746 return ntb->ops->mw_count(ntb, pidx); in ntb_mw_count()
/linux-4.19.296/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c828 .mw_count = switchtec_ntb_mw_count,
1014 u64 *mw_addrs, int mw_count) in crosslink_setup_mws() argument
1040 sndev->nr_direct_mw = min_t(int, sndev->nr_direct_mw, mw_count); in crosslink_setup_mws()
/linux-4.19.296/drivers/ntb/hw/idt/
Dntb_hw_idt.c2037 .mw_count = idt_ntb_mw_count,