Lines Matching refs:mw_count

208 	unsigned int mw_count;  member
249 #define QP_TO_MW(nt, qp) ((qp) % nt->mw_count)
590 unsigned int mw_num, mw_count, qp_count; in ntb_transport_setup_qp_mw() local
593 mw_count = nt->mw_count; in ntb_transport_setup_qp_mw()
602 if (qp_count % mw_count && mw_num + 1 < qp_count / mw_count) in ntb_transport_setup_qp_mw()
603 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_setup_qp_mw()
605 num_qps_mw = qp_count / mw_count; in ntb_transport_setup_qp_mw()
608 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
821 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
834 ntb_peer_spad_write(ndev, NUM_MWS, nt->mw_count); in ntb_transport_link_work()
853 if (val != nt->mw_count) in ntb_transport_link_work()
856 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
886 for (i = 0; i < nt->mw_count; i++) in ntb_transport_link_work()
934 unsigned int mw_num, mw_count, qp_count; in ntb_transport_init_queue() local
937 mw_count = nt->mw_count; in ntb_transport_init_queue()
950 if (qp_count % mw_count && mw_num + 1 < qp_count / mw_count) in ntb_transport_init_queue()
951 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_init_queue()
953 num_qps_mw = qp_count / mw_count; in ntb_transport_init_queue()
959 qp_offset = tx_size * (qp_num / mw_count); in ntb_transport_init_queue()
1012 unsigned int mw_count, qp_count; in ntb_transport_probe() local
1032 mw_count = ntb_mw_count(ndev); in ntb_transport_probe()
1034 nt->mw_count = mw_count; in ntb_transport_probe()
1036 nt->mw_vec = kzalloc_node(mw_count * sizeof(*nt->mw_vec), in ntb_transport_probe()
1043 for (i = 0; i < mw_count; i++) { in ntb_transport_probe()
1068 else if (mw_count < qp_count) in ntb_transport_probe()
1069 qp_count = mw_count; in ntb_transport_probe()
1155 for (i = nt->mw_count; i--; ) { in ntb_transport_free()