Lines Matching refs:spad
698 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_peer_msi() local
703 if (spad >= ntb_spad_count(nt->ndev)) in ntb_transport_setup_qp_peer_msi()
707 ntb_peer_spad_read(qp->ndev, PIDX, spad); in ntb_transport_setup_qp_peer_msi()
709 ntb_peer_spad_read(qp->ndev, PIDX, spad + 1); in ntb_transport_setup_qp_peer_msi()
725 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_msi() local
731 if (spad >= ntb_spad_count(nt->ndev)) { in ntb_transport_setup_qp_msi()
737 ntb_spad_write(qp->ndev, spad, 0); in ntb_transport_setup_qp_msi()
738 ntb_spad_write(qp->ndev, spad + 1, 0); in ntb_transport_setup_qp_msi()
752 rc = ntb_spad_write(qp->ndev, spad, qp->msi_desc.addr_offset); in ntb_transport_setup_qp_msi()
756 rc = ntb_spad_write(qp->ndev, spad + 1, qp->msi_desc.data); in ntb_transport_setup_qp_msi()
1048 int rc = 0, i, spad; in ntb_transport_link_work() local
1071 spad = MW0_SZ_HIGH + (i * 2); in ntb_transport_link_work()
1072 ntb_peer_spad_write(ndev, PIDX, spad, upper_32_bits(size)); in ntb_transport_link_work()
1074 spad = MW0_SZ_LOW + (i * 2); in ntb_transport_link_work()
1075 ntb_peer_spad_write(ndev, PIDX, spad, lower_32_bits(size)); in ntb_transport_link_work()