Lines Matching refs:spad
696 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_peer_msi() local
701 if (spad >= ntb_spad_count(nt->ndev)) in ntb_transport_setup_qp_peer_msi()
705 ntb_peer_spad_read(qp->ndev, PIDX, spad); in ntb_transport_setup_qp_peer_msi()
707 ntb_peer_spad_read(qp->ndev, PIDX, spad + 1); in ntb_transport_setup_qp_peer_msi()
723 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_msi() local
729 if (spad >= ntb_spad_count(nt->ndev)) { in ntb_transport_setup_qp_msi()
735 ntb_spad_write(qp->ndev, spad, 0); in ntb_transport_setup_qp_msi()
736 ntb_spad_write(qp->ndev, spad + 1, 0); in ntb_transport_setup_qp_msi()
750 rc = ntb_spad_write(qp->ndev, spad, qp->msi_desc.addr_offset); in ntb_transport_setup_qp_msi()
754 rc = ntb_spad_write(qp->ndev, spad + 1, qp->msi_desc.data); in ntb_transport_setup_qp_msi()
1026 int rc = 0, i, spad; in ntb_transport_link_work() local
1049 spad = MW0_SZ_HIGH + (i * 2); in ntb_transport_link_work()
1050 ntb_peer_spad_write(ndev, PIDX, spad, upper_32_bits(size)); in ntb_transport_link_work()
1052 spad = MW0_SZ_LOW + (i * 2); in ntb_transport_link_work()
1053 ntb_peer_spad_write(ndev, PIDX, spad, lower_32_bits(size)); in ntb_transport_link_work()