Home
last modified time | relevance | path

Searched refs:sqp (Results 1 – 9 of 9) sorted by relevance

/drivers/infiniband/hw/ipath/
Dipath_ruc.c259 static void ipath_ruc_loopback(struct ipath_qp *sqp) in ipath_ruc_loopback() argument
261 struct ipath_ibdev *dev = to_idev(sqp->ibqp.device); in ipath_ruc_loopback()
275 qp = ipath_lookup_qpn(&dev->qp_table, sqp->remote_qpn); in ipath_ruc_loopback()
277 spin_lock_irqsave(&sqp->s_lock, flags); in ipath_ruc_loopback()
280 if ((sqp->s_flags & (IPATH_S_BUSY | IPATH_S_ANY_WAIT)) || in ipath_ruc_loopback()
281 !(ib_ipath_state_ops[sqp->state] & IPATH_PROCESS_OR_FLUSH_SEND)) in ipath_ruc_loopback()
284 sqp->s_flags |= IPATH_S_BUSY; in ipath_ruc_loopback()
287 if (sqp->s_last == sqp->s_head) in ipath_ruc_loopback()
289 wqe = get_swqe_ptr(sqp, sqp->s_last); in ipath_ruc_loopback()
292 if (!(ib_ipath_state_ops[sqp->state] & IPATH_PROCESS_NEXT_SEND_OK)) { in ipath_ruc_loopback()
[all …]
Dipath_ud.c49 static void ipath_ud_loopback(struct ipath_qp *sqp, struct ipath_swqe *swqe) in ipath_ud_loopback() argument
51 struct ipath_ibdev *dev = to_idev(sqp->ibqp.device); in ipath_ud_loopback()
80 sqp->qkey : swqe->wr.wr.ud.remote_qkey) != qp->qkey)) { in ipath_ud_loopback()
215 wc.src_qp = sqp->ibqp.qp_num; in ipath_ud_loopback()
/drivers/infiniband/hw/mlx4/
Dqp.c696 struct mlx4_ib_sqp *sqp; in mlx4_ib_create_qp() local
738 sqp = kzalloc(sizeof *sqp, GFP_KERNEL); in mlx4_ib_create_qp()
739 if (!sqp) in mlx4_ib_create_qp()
742 qp = &sqp->qp; in mlx4_ib_create_qp()
750 kfree(sqp); in mlx4_ib_create_qp()
827 static void store_sqp_attrs(struct mlx4_ib_sqp *sqp, const struct ib_qp_attr *attr, in store_sqp_attrs() argument
831 sqp->pkey_index = attr->pkey_index; in store_sqp_attrs()
833 sqp->qkey = attr->qkey; in store_sqp_attrs()
835 sqp->send_psn = attr->sq_psn; in store_sqp_attrs()
1209 static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr, in build_mlx_header() argument
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_qp.c297 static void store_attrs(struct mthca_sqp *sqp, const struct ib_qp_attr *attr, in store_attrs() argument
301 sqp->pkey_index = attr->pkey_index; in store_attrs()
303 sqp->qkey = attr->qkey; in store_attrs()
305 sqp->send_psn = attr->sq_psn; in store_attrs()
1355 struct mthca_sqp *sqp) in mthca_alloc_sqp() argument
1360 sqp->qp.transport = MLX; in mthca_alloc_sqp()
1361 err = mthca_set_qp_size(dev, cap, pd, &sqp->qp); in mthca_alloc_sqp()
1365 sqp->header_buf_size = sqp->qp.sq.max * MTHCA_UD_HEADER_SIZE; in mthca_alloc_sqp()
1366 sqp->header_buf = dma_alloc_coherent(&dev->pdev->dev, sqp->header_buf_size, in mthca_alloc_sqp()
1367 &sqp->header_dma, GFP_KERNEL); in mthca_alloc_sqp()
[all …]
Dmthca_dev.h557 struct mthca_sqp *sqp);
/drivers/infiniband/hw/cxgb3/
Dcxio_hal.c384 struct t3_swsq *sqp) in insert_sq_cqe() argument
392 V_CQE_OPCODE(sqp->opcode) | in insert_sq_cqe()
398 cqe.u.scqe.wrid_hi = sqp->sq_wptr; in insert_sq_cqe()
408 struct t3_swsq *sqp = wq->sq + Q_PTR2IDX(wq->sq_rptr, wq->sq_size_log2); in cxio_flush_sq() local
411 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq()
413 insert_sq_cqe(wq, cq, sqp); in cxio_flush_sq()
415 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq()
1050 struct t3_swsq *sqp; in flush_completed_wrs() local
1054 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in flush_completed_wrs()
1056 if (!sqp->signaled) { in flush_completed_wrs()
[all …]
Diwch_qp.c363 struct t3_swsq *sqp; in iwch_post_send() local
391 sqp = qhp->wq.sq + in iwch_post_send()
413 sqp->read_len = wqe->read.local_len; in iwch_post_send()
415 qhp->wq.oldest_read = sqp; in iwch_post_send()
438 sqp->wr_id = wr->wr_id; in iwch_post_send()
439 sqp->opcode = wr2opcode(t3_wr_opcode); in iwch_post_send()
440 sqp->sq_wptr = qhp->wq.sq_wptr; in iwch_post_send()
441 sqp->complete = 0; in iwch_post_send()
442 sqp->signaled = (wr->send_flags & IB_SEND_SIGNALED); in iwch_post_send()
451 sqp->opcode); in iwch_post_send()
[all …]
/drivers/infiniband/hw/ehca/
Dehca_qp.c1834 void ehca_recover_sqp(struct ib_qp *sqp) in ehca_recover_sqp() argument
1836 struct ehca_qp *my_sqp = container_of(sqp, struct ehca_qp, ib_qp); in ehca_recover_sqp()
1845 ehca_dbg(sqp->device, "SQP port=%x qp_num=%x", port, sqp->qp_num); in ehca_recover_sqp()
1851 ret = internal_modify_qp(sqp, &attr, qp_parm[i].mask, 0); in ehca_recover_sqp()
1853 ehca_err(sqp->device, "Could not modify SQP port=%x " in ehca_recover_sqp()
1854 "qp_num=%x ret=%x", port, sqp->qp_num, ret); in ehca_recover_sqp()
1857 ehca_dbg(sqp->device, "SQP port=%x qp_num=%x in state=%x", in ehca_recover_sqp()
1858 port, sqp->qp_num, attr.qp_state); in ehca_recover_sqp()
1868 ehca_dbg(sqp->device, "doorbell port=%x qp_num=%x wr_cnt=%lx", in ehca_recover_sqp()
1869 port, sqp->qp_num, wr_cnt); in ehca_recover_sqp()
Dehca_iverbs.h210 void ehca_recover_sqp(struct ib_qp *sqp);