Lines Matching refs:mw_count

230 	unsigned int mw_count;  member
272 #define QP_TO_MW(nt, qp) ((qp) % nt->mw_count)
621 unsigned int mw_num, mw_count, qp_count; in ntb_transport_setup_qp_mw() local
625 mw_count = nt->mw_count; in ntb_transport_setup_qp_mw()
634 if (mw_num < qp_count % mw_count) in ntb_transport_setup_qp_mw()
635 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_setup_qp_mw()
637 num_qps_mw = qp_count / mw_count; in ntb_transport_setup_qp_mw()
640 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
988 for (i = 0; i < nt->mw_count; i++) in ntb_transport_link_cleanup()
1043 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
1056 ntb_peer_spad_write(ndev, PIDX, NUM_MWS, nt->mw_count); in ntb_transport_link_work()
1075 if (val != nt->mw_count) in ntb_transport_link_work()
1078 for (i = 0; i < nt->mw_count; i++) { in ntb_transport_link_work()
1109 for (i = 0; i < nt->mw_count; i++) in ntb_transport_link_work()
1163 unsigned int mw_num, mw_count, qp_count; in ntb_transport_init_queue() local
1166 mw_count = nt->mw_count; in ntb_transport_init_queue()
1179 if (mw_num < qp_count % mw_count) in ntb_transport_init_queue()
1180 num_qps_mw = qp_count / mw_count + 1; in ntb_transport_init_queue()
1182 num_qps_mw = qp_count / mw_count; in ntb_transport_init_queue()
1191 qp_offset = tx_size * (qp_num / mw_count); in ntb_transport_init_queue()
1245 unsigned int mw_count, qp_count, spad_count, max_mw_count_for_spads; in ntb_transport_probe() local
1250 mw_count = ntb_peer_mw_count(ndev); in ntb_transport_probe()
1279 if (use_msi && mw_count > 1) { in ntb_transport_probe()
1282 mw_count -= 1; in ntb_transport_probe()
1292 nt->mw_count = 0; in ntb_transport_probe()
1298 nt->mw_count = min(mw_count, max_mw_count_for_spads); in ntb_transport_probe()
1300 nt->msi_spad_offset = nt->mw_count * 2 + MW0_SZ_HIGH; in ntb_transport_probe()
1302 nt->mw_vec = kcalloc_node(mw_count, sizeof(*nt->mw_vec), in ntb_transport_probe()
1309 for (i = 0; i < mw_count; i++) { in ntb_transport_probe()
1340 else if (nt->mw_count < qp_count) in ntb_transport_probe()
1341 qp_count = nt->mw_count; in ntb_transport_probe()
1427 for (i = nt->mw_count; i--; ) { in ntb_transport_free()