Lines Matching refs:qp_num
142 u8 qp_num; /* Only 64 QP's are allowed. 0-63 */ member
616 unsigned int qp_num) in ntb_transport_setup_qp_mw() argument
618 struct ntb_transport_qp *qp = &nt->qp_vec[qp_num]; in ntb_transport_setup_qp_mw()
630 mw_num = QP_TO_MW(nt, qp_num); in ntb_transport_setup_qp_mw()
642 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
695 unsigned int qp_num) in ntb_transport_setup_qp_peer_msi() argument
697 struct ntb_transport_qp *qp = &nt->qp_vec[qp_num]; in ntb_transport_setup_qp_peer_msi()
698 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_peer_msi()
712 qp_num, qp->peer_msi_desc.addr_offset, qp->peer_msi_desc.data); in ntb_transport_setup_qp_peer_msi()
717 "Using MSI interrupts for QP%d\n", qp_num); in ntb_transport_setup_qp_peer_msi()
722 unsigned int qp_num) in ntb_transport_setup_qp_msi() argument
724 struct ntb_transport_qp *qp = &nt->qp_vec[qp_num]; in ntb_transport_setup_qp_msi()
725 int spad = qp_num * 2 + nt->msi_spad_offset; in ntb_transport_setup_qp_msi()
747 qp_num); in ntb_transport_setup_qp_msi()
761 qp_num, qp->msi_irq, qp->msi_desc.addr_offset, in ntb_transport_setup_qp_msi()
942 dev_info(&pdev->dev, "qp %d: Link Cleanup\n", qp->qp_num); in ntb_qp_link_cleanup()
1137 ntb_peer_spad_write(nt->ndev, PIDX, QP_LINKS, val | BIT(qp->qp_num)); in ntb_qp_link_work()
1143 if (val & BIT(qp->qp_num)) { in ntb_qp_link_work()
1144 dev_info(&pdev->dev, "qp %d: Link Up\n", qp->qp_num); in ntb_qp_link_work()
1159 unsigned int qp_num) in ntb_transport_init_queue() argument
1171 mw_num = QP_TO_MW(nt, qp_num); in ntb_transport_init_queue()
1173 qp = &nt->qp_vec[qp_num]; in ntb_transport_init_queue()
1174 qp->qp_num = qp_num; in ntb_transport_init_queue()
1193 qp_offset = tx_size * (qp_num / mw_count); in ntb_transport_init_queue()
1214 snprintf(debugfs_name, 4, "qp%d", qp_num); in ntb_transport_init_queue()
1626 qp->qp_num, hdr->ver, hdr->len, hdr->flags); in ntb_process_rxc()
1694 __func__, qp->qp_num); in ntb_transport_rxc_db()
1712 } else if (ntb_db_read(qp->ndev) & BIT_ULL(qp->qp_num)) { in ntb_transport_rxc_db()
1714 ntb_db_clear(qp->ndev, BIT_ULL(qp->qp_num)); in ntb_transport_rxc_db()
1766 ntb_peer_db_set(qp->ndev, BIT_ULL(qp->qp_num)); in ntb_tx_copy_callback()
1932 dev_info(&pdev->dev, "qp %d: Send Link Down\n", qp->qp_num); in ntb_send_link_down()
1952 qp->qp_num); in ntb_send_link_down()
2005 qp_bit = BIT_ULL(qp->qp_num); in ntb_transport_create_queue()
2077 dev_info(&pdev->dev, "NTB Transport QP %d created\n", qp->qp_num); in ntb_transport_create_queue()
2156 qp_bit = BIT_ULL(qp->qp_num); in ntb_transport_free_queue()
2186 dev_info(&pdev->dev, "NTB Transport QP %d freed\n", qp->qp_num); in ntb_transport_free_queue()
2344 ntb_peer_spad_write(qp->ndev, PIDX, QP_LINKS, val & ~BIT(qp->qp_num)); in ntb_transport_link_down()
2383 return qp->qp_num; in ntb_transport_qp_num()
2432 unsigned int qp_num; in ntb_transport_doorbell_callback() local
2443 qp_num = __ffs(db_bits); in ntb_transport_doorbell_callback()
2444 qp = &nt->qp_vec[qp_num]; in ntb_transport_doorbell_callback()
2449 db_bits &= ~BIT_ULL(qp_num); in ntb_transport_doorbell_callback()