Home
last modified time | relevance | path

Searched refs:cur_qp (Results 1 – 6 of 6) sorted by relevance

/drivers/infiniband/hw/mthca/
Dmthca_cq.c480 struct mthca_qp **cur_qp, in mthca_poll_one() argument
514 if (!*cur_qp || be32_to_cpu(cqe->my_qpn) != (*cur_qp)->qpn) { in mthca_poll_one()
520 *cur_qp = mthca_array_get(&dev->qp_table.qp, in mthca_poll_one()
523 if (!*cur_qp) { in mthca_poll_one()
531 entry->qp = &(*cur_qp)->ibqp; in mthca_poll_one()
534 wq = &(*cur_qp)->sq; in mthca_poll_one()
535 wqe_index = ((be32_to_cpu(cqe->wqe) - (*cur_qp)->send_wqe_offset) in mthca_poll_one()
537 entry->wr_id = (*cur_qp)->wrid[wqe_index + in mthca_poll_one()
538 (*cur_qp)->rq.max]; in mthca_poll_one()
539 } else if ((*cur_qp)->ibqp.srq) { in mthca_poll_one()
[all …]
/drivers/infiniband/hw/mlx4/
Dcq.c662 struct mlx4_ib_qp **cur_qp, in mlx4_ib_poll_one() argument
713 if (!*cur_qp || in mlx4_ib_poll_one()
714 (be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK) != (*cur_qp)->mqp.qpn) { in mlx4_ib_poll_one()
722 *cur_qp = to_mibqp(mqp); in mlx4_ib_poll_one()
725 wc->qp = &(*cur_qp)->ibqp; in mlx4_ib_poll_one()
737 wq = &(*cur_qp)->sq; in mlx4_ib_poll_one()
738 if (!(*cur_qp)->sq_signal_bits) { in mlx4_ib_poll_one()
744 } else if ((*cur_qp)->ibqp.srq) { in mlx4_ib_poll_one()
745 srq = to_msrq((*cur_qp)->ibqp.srq); in mlx4_ib_poll_one()
755 wq = &(*cur_qp)->rq; in mlx4_ib_poll_one()
[all …]
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_cq.c318 static int pvrdma_poll_one(struct pvrdma_cq *cq, struct pvrdma_qp **cur_qp, in pvrdma_poll_one() argument
348 *cur_qp = (struct pvrdma_qp *)dev->qp_tbl[cqe->qp & 0xffff]; in pvrdma_poll_one()
355 wc->qp = &(*cur_qp)->ibqp; in pvrdma_poll_one()
385 struct pvrdma_qp *cur_qp = NULL; in pvrdma_poll_cq() local
394 if (pvrdma_poll_one(cq, &cur_qp, wc + npolled)) in pvrdma_poll_cq()
/drivers/infiniband/hw/mlx5/
Dcq.c418 struct mlx5_ib_qp **cur_qp, in mlx5_poll_one() argument
463 if (!*cur_qp || (qpn != (*cur_qp)->ibqp.qp_num)) { in mlx5_poll_one()
469 *cur_qp = to_mibqp(mqp); in mlx5_poll_one()
472 wc->qp = &(*cur_qp)->ibqp; in mlx5_poll_one()
475 wq = &(*cur_qp)->sq; in mlx5_poll_one()
487 handle_responder(wc, cqe64, *cur_qp); in mlx5_poll_one()
502 wq = &(*cur_qp)->sq; in mlx5_poll_one()
510 if ((*cur_qp)->ibqp.srq) { in mlx5_poll_one()
511 srq = to_msrq((*cur_qp)->ibqp.srq); in mlx5_poll_one()
516 wq = &(*cur_qp)->rq; in mlx5_poll_one()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c2658 struct hns_roce_qp **cur_qp, in hns_roce_handle_recv_inl_wqe() argument
2668 wr_cnt = wr_num & ((*cur_qp)->rq.wqe_cnt - 1); in hns_roce_handle_recv_inl_wqe()
2670 sge_list = (*cur_qp)->rq_inl_buf.wqe_list[wr_cnt].sg_list; in hns_roce_handle_recv_inl_wqe()
2671 sge_num = (*cur_qp)->rq_inl_buf.wqe_list[wr_cnt].sge_cnt; in hns_roce_handle_recv_inl_wqe()
2672 wqe_buf = get_recv_wqe(*cur_qp, wr_cnt); in hns_roce_handle_recv_inl_wqe()
2692 struct hns_roce_qp **cur_qp, struct ib_wc *wc) in hns_roce_v2_poll_one() argument
2723 if (!*cur_qp || (qpn & HNS_ROCE_V2_CQE_QPN_MASK) != (*cur_qp)->qpn) { in hns_roce_v2_poll_one()
2731 *cur_qp = hr_qp; in hns_roce_v2_poll_one()
2734 wc->qp = &(*cur_qp)->ibqp; in hns_roce_v2_poll_one()
2738 wq = &(*cur_qp)->sq; in hns_roce_v2_poll_one()
[all …]
Dhns_roce_hw_v1.c2189 struct hns_roce_qp **cur_qp, struct ib_wc *wc) in hns_roce_v1_poll_one() argument
2227 if (!*cur_qp || (qpn & HNS_ROCE_CQE_QPN_MASK) != (*cur_qp)->qpn) { in hns_roce_v1_poll_one()
2235 *cur_qp = hr_qp; in hns_roce_v1_poll_one()
2238 wc->qp = &(*cur_qp)->ibqp; in hns_roce_v1_poll_one()
2296 sq_wqe = get_send_wqe(*cur_qp, roce_get_field(cqe->cqe_byte_4, in hns_roce_v1_poll_one()
2299 ((*cur_qp)->sq.wqe_cnt-1)); in hns_roce_v1_poll_one()
2324 wq = &(*cur_qp)->sq; in hns_roce_v1_poll_one()
2325 if ((*cur_qp)->sq_signal_bits) { in hns_roce_v1_poll_one()
2371 wq = &(*cur_qp)->rq; in hns_roce_v1_poll_one()
2393 struct hns_roce_qp *cur_qp = NULL; in hns_roce_v1_poll_cq() local
[all …]