Home
last modified time | relevance | path

Searched refs:mqp (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dgsi.c47 static void generate_completions(struct mlx5_ib_qp *mqp) in generate_completions() argument
49 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in generate_completions()
50 struct ib_cq *gsi_cq = mqp->ibqp.send_cq; in generate_completions()
73 struct mlx5_ib_qp *mqp = container_of(gsi, struct mlx5_ib_qp, gsi); in handle_single_completion() local
82 wr->wc.qp = &mqp->ibqp; in handle_single_completion()
84 generate_completions(mqp); in handle_single_completion()
88 int mlx5_ib_create_gsi(struct ib_pd *pd, struct mlx5_ib_qp *mqp, in mlx5_ib_create_gsi() argument
106 gsi = &mqp->gsi; in mlx5_ib_create_gsi()
168 int mlx5_ib_destroy_gsi(struct mlx5_ib_qp *mqp) in mlx5_ib_destroy_gsi() argument
170 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi()
[all …]
Dqp.c334 err = mlx5_core_qp_query(dev, &qp->trans_qp.base.mqp, outb, outlen, in mlx5_ib_qp_err_syndrome()
1408 err = mlx5_core_create_sq_tracked(dev, in, inlen, &sq->base.mqp); in create_raw_packet_qp_sq()
1428 mlx5_core_destroy_sq_tracked(dev, &sq->base.mqp); in destroy_raw_packet_qp_sq()
1436 struct mlx5_ib_qp *mqp = rq->base.container_mibqp; in create_raw_packet_qp_rq() local
1477 if (mqp->flags & IB_QP_CREATE_SCATTER_FCS) in create_raw_packet_qp_rq()
1495 err = mlx5_core_create_rq_tracked(dev, in, inlen, &rq->base.mqp); in create_raw_packet_qp_rq()
1505 mlx5_core_destroy_rq_tracked(dev, &rq->base.mqp); in destroy_raw_packet_qp_rq()
1538 MLX5_SET(tirc, tirc, inline_rqn, rq->base.mqp.qpn); in create_raw_packet_qp_tir()
1600 resp->sqn = sq->base.mqp.qpn; in create_raw_packet_qp()
1605 sq->base.mqp.event = mlx5_ib_qp_event; in create_raw_packet_qp()
[all …]
Dqpc.c199 struct mlx5_core_qp *qp = &dct->mqp; in _mlx5_core_destroy_dct()
210 struct mlx5_core_qp *qp = &dct->mqp; in mlx5_core_create_dct()
268 struct mlx5_core_qp *qp = &dct->mqp; in mlx5_core_drain_dct()
293 tmp = xa_cmpxchg_irq(&table->dct_xa, dct->mqp.qpn, dct, XA_ZERO_ENTRY, GFP_KERNEL); in mlx5_core_destroy_dct()
299 xa_cmpxchg_irq(&table->dct_xa, dct->mqp.qpn, XA_ZERO_ENTRY, dct, 0); in mlx5_core_destroy_dct()
302 xa_erase_irq(&table->dct_xa, dct->mqp.qpn); in mlx5_core_destroy_dct()
539 struct mlx5_core_qp *qp = &dct->mqp; in mlx5_core_dct_query()
Dmlx5_ib.h426 struct mlx5_core_qp mqp; member
1197 static inline struct mlx5_ib_qp *to_mibqp(struct mlx5_core_qp *mqp) in to_mibqp() argument
1199 return container_of(mqp, struct mlx5_ib_qp_base, mqp)->container_mibqp; in to_mibqp()
1471 int mlx5_ib_create_gsi(struct ib_pd *pd, struct mlx5_ib_qp *mqp,
1473 int mlx5_ib_destroy_gsi(struct mlx5_ib_qp *mqp);
Dfs.c1280 struct mlx5_ib_qp *mqp = to_mqp(qp); in mlx5_ib_create_flow() local
1366 if (mqp->is_rss) in mlx5_ib_create_flow()
1367 dst->tir_num = mqp->rss_qp.tirn; in mlx5_ib_create_flow()
1369 dst->tir_num = mqp->raw_packet_qp.rq.tirn; in mlx5_ib_create_flow()
1374 underlay_qpn = (mqp->flags & IB_QP_CREATE_SOURCE_QPN) ? in mlx5_ib_create_flow()
1375 mqp->underlay_qpn : in mlx5_ib_create_flow()
1851 struct mlx5_ib_qp *mqp; in get_dests() local
1861 mqp = to_mqp(*qp); in get_dests()
1862 if (mqp->is_rss) in get_dests()
1863 *dest_id = mqp->rss_qp.tirn; in get_dests()
[all …]
Dmain.c2395 struct mlx5_ib_qp *mqp = to_mqp(ibqp); in mlx5_ib_mcg_attach() local
2402 if (mqp->flags & IB_QP_CREATE_SOURCE_QPN) { in mlx5_ib_mcg_attach()
2526 struct mlx5_ib_qp *mqp; in mlx5_ib_handle_internal_error() local
2538 list_for_each_entry(mqp, &ibdev->qp_list, qps_list) { in mlx5_ib_handle_internal_error()
2539 spin_lock_irqsave(&mqp->sq.lock, flags_qp); in mlx5_ib_handle_internal_error()
2540 if (mqp->sq.tail != mqp->sq.head) { in mlx5_ib_handle_internal_error()
2541 send_mcq = to_mcq(mqp->ibqp.send_cq); in mlx5_ib_handle_internal_error()
2544 mqp->ibqp.send_cq->comp_handler) { in mlx5_ib_handle_internal_error()
2553 spin_unlock_irqrestore(&mqp->sq.lock, flags_qp); in mlx5_ib_handle_internal_error()
2554 spin_lock_irqsave(&mqp->rq.lock, flags_qp); in mlx5_ib_handle_internal_error()
[all …]
Dmem.c126 (qp->trans_qp.base.mqp.qpn << 8)); in post_send_nop()
Dib_rep.c226 return mlx5_eswitch_add_send_to_vport_rule(esw, esw, rep, sq->base.mqp.qpn); in create_flow_rule_vport_sq()
Dcq.c454 struct mlx5_core_qp *mqp; in mlx5_poll_one() local
495 mqp = radix_tree_lookup(&dev->qp_table.tree, qpn); in mlx5_poll_one()
496 *cur_qp = to_mibqp(mqp); in mlx5_poll_one()
Dodp.c1062 u32 qpn = qp->trans_qp.base.mqp.qpn; in mlx5_ib_mr_initiator_pfault_handler()
1180 struct mlx5_core_qp *mqp = (struct mlx5_core_qp *)res; in res_to_qp() local
1182 return to_mibqp(mqp); in res_to_qp()
Ddevx.c642 rq->base.mqp.qpn) == obj_id || in devx_is_valid_obj_id()
644 sq->base.mqp.qpn) == obj_id || in devx_is_valid_obj_id()
653 qp->dct.mdct.mqp.qpn) == obj_id; in devx_is_valid_obj_id()
Dwr.c766 ctrl->qpn_ds = cpu_to_be32(size | (qp->trans_qp.base.mqp.qpn << 8)); in mlx5r_finish_wqe()
/linux-6.6.21/drivers/infiniband/sw/rdmavt/
Dmcast.c35 struct rvt_mcast_qp *mqp; in rvt_mcast_qp_alloc() local
37 mqp = kmalloc(sizeof(*mqp), GFP_KERNEL); in rvt_mcast_qp_alloc()
38 if (!mqp) in rvt_mcast_qp_alloc()
41 mqp->qp = qp; in rvt_mcast_qp_alloc()
45 return mqp; in rvt_mcast_qp_alloc()
48 static void rvt_mcast_qp_free(struct rvt_mcast_qp *mqp) in rvt_mcast_qp_free() argument
50 struct rvt_qp *qp = mqp->qp; in rvt_mcast_qp_free()
55 kfree(mqp); in rvt_mcast_qp_free()
152 struct rvt_mcast *mcast, struct rvt_mcast_qp *mqp) in rvt_mcast_add() argument
186 if (p->qp == mqp->qp) { in rvt_mcast_add()
[all …]
/linux-6.6.21/drivers/scsi/arm/
Dmsgqueue.c121 struct msgqueue_entry **mqp; in msgqueue_addmsg() local
133 mqp = &msgq->qe; in msgqueue_addmsg()
134 while (*mqp) in msgqueue_addmsg()
135 mqp = &(*mqp)->next; in msgqueue_addmsg()
137 *mqp = mq; in msgqueue_addmsg()
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dmain.c1267 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in add_gid_entry() local
1276 if (mlx4_ib_add_mc(mdev, mqp, gid)) { in add_gid_entry()
1277 ge->port = mqp->port; in add_gid_entry()
1281 mutex_lock(&mqp->mutex); in add_gid_entry()
1282 list_add_tail(&ge->list, &mqp->gid_list); in add_gid_entry()
1283 mutex_unlock(&mqp->mutex); in add_gid_entry()
1304 int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp, in mlx4_ib_add_mc() argument
1310 if (!mqp->port) in mlx4_ib_add_mc()
1314 ndev = mdev->iboe.netdevs[mqp->port - 1]; in mlx4_ib_add_mc()
1841 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in mlx4_ib_mcg_attach() local
[all …]
Dqp.c118 return qp->mqp.qpn >= dev->dev->phys_caps.base_tunnel_sqpn && in is_tunnel_qp()
119 qp->mqp.qpn < dev->dev->phys_caps.base_tunnel_sqpn + in is_tunnel_qp()
130 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_sqp()
131 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 3); in is_sqp()
137 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy || in is_sqp()
138 qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp1_proxy) { in is_sqp()
158 qp->mqp.qpn >= dev->dev->phys_caps.base_sqpn && in is_qp0()
159 qp->mqp.qpn <= dev->dev->phys_caps.base_sqpn + 1); in is_qp0()
165 if (qp->mqp.qpn == dev->dev->caps.spec_qps[i].qp0_proxy) { in is_qp0()
662 qp->mqp.usage = MLX4_RES_USAGE_USER_VERBS; in create_qp_rss()
[all …]
Dmlx4_ib.h328 struct mlx4_qp mqp; member
720 static inline struct mlx4_ib_qp *to_mibqp(struct mlx4_qp *mqp) in to_mibqp() argument
722 return container_of(mqp, struct mlx4_ib_qp, mqp); in to_mibqp()
852 int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
910 int mlx4_ib_steer_qp_reg(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
Dcq.c661 struct mlx4_qp *mqp; in mlx4_ib_poll_one() local
709 (be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK) != (*cur_qp)->mqp.qpn) { in mlx4_ib_poll_one()
715 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev, in mlx4_ib_poll_one()
717 *cur_qp = to_mibqp(mqp); in mlx4_ib_poll_one()
/linux-6.6.21/arch/sparc/kernel/
Dpci_msi.c337 } *mqp; in sparc64_pbm_msi_init() local
357 mqp = of_get_property(pbm->op->dev.of_node, in sparc64_pbm_msi_init()
359 if (!mqp) in sparc64_pbm_msi_init()
360 mqp = of_get_property(pbm->op->dev.of_node, in sparc64_pbm_msi_init()
362 if (!mqp || len != sizeof(struct msiq_prop)) in sparc64_pbm_msi_init()
365 pbm->msiq_first = mqp->first_msiq; in sparc64_pbm_msi_init()
366 pbm->msiq_first_devino = mqp->first_devino; in sparc64_pbm_msi_init()
/linux-6.6.21/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c72 struct mlx5_core_qp mqp; member
443 vqp->mqp.uid = ndev->mvdev.res.uid; in qp_create()
444 vqp->mqp.qpn = MLX5_GET(create_qp_out, out, qpn); in qp_create()
466 MLX5_SET(destroy_qp_in, in, qpn, vqp->mqp.qpn); in qp_destroy()
469 mlx5_vdpa_warn(&ndev->mvdev, "destroy qp 0x%x\n", vqp->mqp.qpn); in qp_destroy()
906 MLX5_SET(virtio_q, vq_ctx, event_qpn_or_msix, mvq->fwqp.mqp.qpn); in create_virtqueue()
965 return fw ? mvq->vqqp.mqp.qpn : mvq->fwqp.mqp.qpn; in get_rqpn()
970 return fw ? mvq->fwqp.mqp.qpn : mvq->vqqp.mqp.qpn; in get_qpn()
/linux-6.6.21/include/linux/mlx5/
Dqp.h522 struct mlx5_core_qp mqp; member