/linux-6.6.21/drivers/infiniband/hw/mlx4/ |
D | qp.c | 1050 qp->sqp = kzalloc(sizeof(struct mlx4_ib_sqp), GFP_KERNEL); in create_qp_common() 1051 if (!qp->sqp) in create_qp_common() 1284 kfree(qp->sqp); in create_qp_common() 1638 struct mlx4_ib_sqp *sqp = qp->sqp; in mlx4_ib_create_qp() local 1644 sqp->roce_v2_gsi = ib_create_qp(pd, init_attr); in mlx4_ib_create_qp() 1646 if (IS_ERR(sqp->roce_v2_gsi)) { in mlx4_ib_create_qp() 1647 pr_err("Failed to create GSI QP for RoCEv2 (%ld)\n", PTR_ERR(sqp->roce_v2_gsi)); in mlx4_ib_create_qp() 1648 sqp->roce_v2_gsi = NULL; in mlx4_ib_create_qp() 1650 to_mqp(sqp->roce_v2_gsi)->flags |= in mlx4_ib_create_qp() 1684 kfree(mqp->sqp); in _mlx4_ib_destroy_qp() [all …]
|
D | mad.c | 1365 struct mlx4_ib_demux_pv_qp *sqp; in mlx4_ib_send_to_wire() local 1382 sqp = &sqp_ctx->qp[0]; in mlx4_ib_send_to_wire() 1386 sqp = &sqp_ctx->qp[1]; in mlx4_ib_send_to_wire() 1390 send_qp = sqp->qp; in mlx4_ib_send_to_wire() 1406 spin_lock(&sqp->tx_lock); in mlx4_ib_send_to_wire() 1407 if (sqp->tx_ix_head - sqp->tx_ix_tail >= in mlx4_ib_send_to_wire() 1411 wire_tx_ix = (++sqp->tx_ix_head) & (MLX4_NUM_WIRE_BUFS - 1); in mlx4_ib_send_to_wire() 1412 spin_unlock(&sqp->tx_lock); in mlx4_ib_send_to_wire() 1416 sqp_mad = (struct mlx4_mad_snd_buf *) (sqp->tx_ring[wire_tx_ix].buf.addr); in mlx4_ib_send_to_wire() 1417 kfree(sqp->tx_ring[wire_tx_ix].ah); in mlx4_ib_send_to_wire() [all …]
|
D | mlx4_ib.h | 370 struct mlx4_ib_sqp *sqp; member
|
/linux-6.6.21/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 2881 struct rvt_qp *sqp) in loopback_qp_drop() argument 2888 return sqp->ibqp.qp_type == IB_QPT_RC ? in loopback_qp_drop() 2902 void rvt_ruc_loopback(struct rvt_qp *sqp) in rvt_ruc_loopback() argument 2905 struct rvt_dev_info *rdi = ib_to_rvt(sqp->ibqp.device); in rvt_ruc_loopback() 2920 rvp = rdi->ports[sqp->port_num - 1]; in rvt_ruc_loopback() 2927 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), rvp, in rvt_ruc_loopback() 2928 sqp->remote_qpn); in rvt_ruc_loopback() 2930 spin_lock_irqsave(&sqp->s_lock, flags); in rvt_ruc_loopback() 2933 if ((sqp->s_flags & (RVT_S_BUSY | RVT_S_ANY_WAIT)) || in rvt_ruc_loopback() 2934 !(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_OR_FLUSH_SEND)) in rvt_ruc_loopback() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 299 static void store_attrs(struct mthca_sqp *sqp, const struct ib_qp_attr *attr, in store_attrs() argument 303 sqp->pkey_index = attr->pkey_index; in store_attrs() 305 sqp->qkey = attr->qkey; in store_attrs() 307 sqp->send_psn = attr->sq_psn; in store_attrs() 812 store_attrs(qp->sqp, attr, attr_mask); in __mthca_modify_qp() 1385 qp->sqp->header_buf_size = qp->sq.max * MTHCA_UD_HEADER_SIZE; in mthca_alloc_sqp() 1386 qp->sqp->header_buf = in mthca_alloc_sqp() 1387 dma_alloc_coherent(&dev->pdev->dev, qp->sqp->header_buf_size, in mthca_alloc_sqp() 1388 &qp->sqp->header_dma, GFP_KERNEL); in mthca_alloc_sqp() 1389 if (!qp->sqp->header_buf) in mthca_alloc_sqp() [all …]
|
D | mthca_provider.h | 278 struct mthca_sqp *sqp; member
|
D | mthca_provider.c | 519 qp->sqp = kzalloc(sizeof(struct mthca_sqp), GFP_KERNEL); in mthca_create_qp() 520 if (!qp->sqp) in mthca_create_qp() 539 kfree(qp->sqp); in mthca_create_qp() 571 kfree(to_mqp(qp)->sqp); in mthca_destroy_qp()
|
/linux-6.6.21/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 51 static void qib_ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe) in qib_ud_loopback() argument 53 struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in qib_ud_loopback() 73 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback() 74 IB_QPT_UD : sqp->ibqp.qp_type; in qib_ud_loopback() 92 pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); in qib_ud_loopback() 99 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback() 115 sqp->qkey : rvt_get_swqe_remote_qkey(swqe); in qib_ud_loopback() 205 wc.src_qp = sqp->ibqp.qp_num; in qib_ud_loopback()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | ud.c | 31 static void ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe) in ud_loopback() argument 33 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ud_loopback() 35 struct hfi1_qp_priv *priv = sqp->priv; in ud_loopback() 47 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback() 55 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback() 56 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback() 74 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback() 82 sqp->ibqp.qp_num, qp->ibqp.qp_num, in ud_loopback() 97 sqp->qkey : rvt_get_swqe_remote_qkey(swqe); in ud_loopback() 197 wc.src_qp = sqp->ibqp.qp_num; in ud_loopback() [all …]
|
/linux-6.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_hdr.h | 465 __be32 sqp; member 489 return DETH_SQP_MASK & be32_to_cpu(deth->sqp); in __deth_sqp() 492 static inline void __deth_set_sqp(void *arg, u32 sqp) in __deth_set_sqp() argument 496 deth->sqp = cpu_to_be32(DETH_SQP_MASK & sqp); in __deth_set_sqp() 517 static inline void deth_set_sqp(struct rxe_pkt_info *pkt, u32 sqp) in deth_set_sqp() argument 520 rxe_opcode[pkt->opcode].offset[RXE_DETH], sqp); in deth_set_sqp()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | ptp.c | 459 struct mlx5e_sq_param *sqp = &cparams->txq_sq_param; in mlx5e_ptp_open_txqsq() local 464 err = mlx5e_ptp_alloc_txqsq(c, txq_ix, &cparams->params, sqp, in mlx5e_ptp_open_txqsq() 476 err = mlx5e_create_sq_rdy(c->mdev, sqp, &csp, 0, &txqsq->sqn); in mlx5e_ptp_open_txqsq()
|
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 1415 struct bnxt_re_qp *sqp; in bnxt_re_create_shadow_gsi() local 1427 sqp = bnxt_re_create_shadow_qp(pd, &rdev->qplib_res, &qp->qplib_qp); in bnxt_re_create_shadow_gsi() 1428 if (!sqp) { in bnxt_re_create_shadow_gsi() 1433 rdev->gsi_ctx.gsi_sqp = sqp; in bnxt_re_create_shadow_gsi() 1435 sqp->rcq = qp->rcq; in bnxt_re_create_shadow_gsi() 1436 sqp->scq = qp->scq; in bnxt_re_create_shadow_gsi() 1441 &sqp->qplib_qp); in bnxt_re_create_shadow_gsi()
|