Home
last modified time | relevance | path

Searched refs:cq_obj (Results 1 – 16 of 16) sorted by relevance

/dpdk/drivers/net/mlx5/
H A Dmlx5_devx.c177 memset(&rxq_obj->cq_obj, 0, sizeof(rxq_obj->cq_obj)); in mlx5_rxq_devx_obj_release()
301 struct mlx5_devx_cq *cq_obj = 0; in mlx5_rxq_create_devx_cq_resources() local
373 cq_obj = &rxq_ctrl->obj->cq_obj; in mlx5_rxq_create_devx_cq_resources()
375 (uintptr_t)cq_obj->cqes; in mlx5_rxq_create_devx_cq_resources()
376 rxq_data->cq_db = cq_obj->db_rec; in mlx5_rxq_create_devx_cq_resources()
379 rxq_data->cqn = cq_obj->cq->id; in mlx5_rxq_create_devx_cq_resources()
384 cq_obj->cq->obj, in mlx5_rxq_create_devx_cq_resources()
391 mlx5_devx_cq_destroy(cq_obj); in mlx5_rxq_create_devx_cq_resources()
392 memset(cq_obj, 0, sizeof(*cq_obj)); in mlx5_rxq_create_devx_cq_resources()
1190 memset(&txq_obj->cq_obj, 0, sizeof(txq_obj->cq_obj)); in mlx5_txq_release_devx_resources()
[all …]
H A Dmlx5_txpp.c134 mlx5_devx_cq_destroy(&wq->cq_obj); in mlx5_txpp_destroy_send_queue()
214 rte_cpu_to_be_32(sh->txpp.clock_queue.cq_obj.cq->id); in mlx5_txpp_fill_wqe_rearm_queue()
243 ret = mlx5_devx_cq_create(sh->cdev->ctx, &wq->cq_obj, in mlx5_txpp_create_rearm_queue()
255 sq_attr.cqn = wq->cq_obj.cq->id; in mlx5_txpp_create_rearm_queue()
407 ret = mlx5_devx_cq_create(sh->cdev->ctx, &wq->cq_obj, in mlx5_txpp_create_clock_queue()
438 sq_attr.cqn = wq->cq_obj.cq->id; in mlx5_txpp_create_clock_queue()
480 rte_cpu_to_be_64(((uint64_t)db_hi << 32) | aq->cq_obj.cq->id); in mlx5_txpp_cq_arm()
483 &aq->cq_obj.db_rec[MLX5_CQ_ARM_DB], 0); in mlx5_txpp_cq_arm()
689 *wq->cq_obj.db_rec = rte_cpu_to_be_32(cq_ci); in mlx5_txpp_handle_rearm_queue()
793 sh->txpp.rearm_queue.cq_obj.cq->obj, in mlx5_txpp_start_service()
[all …]
H A Dmlx5_flow_aso.c78 mlx5_devx_cq_destroy(&sq->cq.cq_obj); in mlx5_aso_destroy_sq()
214 if (mlx5_devx_cq_create(cdev->ctx, &sq->cq.cq_obj, in mlx5_aso_sq_create()
221 sq_attr.cqn = sq->cq.cq_obj.cq->id; in mlx5_aso_sq_create()
543 rte_prefetch0(&cq->cq_obj.cqes[next_idx]); in mlx5_aso_completion_handle()
544 cqe = &cq->cq_obj.cqes[idx]; in mlx5_aso_completion_handle()
564 cq->cq_obj.db_rec[0] = rte_cpu_to_be_32(cq->cq_ci); in mlx5_aso_completion_handle()
770 rte_prefetch0(&cq->cq_obj.cqes[next_idx]); in mlx5_aso_mtr_completion_handle()
771 cqe = &cq->cq_obj.cqes[idx]; in mlx5_aso_mtr_completion_handle()
791 cq->cq_obj.db_rec[0] = rte_cpu_to_be_32(cq->cq_ci); in mlx5_aso_mtr_completion_handle()
1137 rte_prefetch0(&cq->cq_obj.cqes[next_idx]); in mlx5_aso_ct_completion_handle()
[all …]
H A Dmlx5.h543 struct mlx5_devx_cq cq_obj; member
1025 struct mlx5_devx_cq cq_obj; member
1324 struct mlx5_devx_cq cq_obj; /* DevX CQ object. */ member
1381 struct mlx5_devx_cq cq_obj; member
H A Dmlx5_tx.h789 qs->qpn_cqn = rte_cpu_to_be_32(txq->sh->txpp.clock_queue.cq_obj.cq->id); in mlx5_tx_qseg_init()
/dpdk/drivers/vdpa/mlx5/
H A Dmlx5_vdpa_event.c67 mlx5_devx_cq_destroy(&cq->cq_obj); in mlx5_vdpa_cq_destroy()
81 &cq->cq_obj.db_rec[MLX5_CQ_ARM_DB], 0); in mlx5_vdpa_cq_arm()
97 ret = mlx5_devx_cq_create(priv->cdev->ctx, &cq->cq_obj, log_desc_n, in mlx5_vdpa_cq_create()
106 cq->cq_obj.cq->obj, in mlx5_vdpa_cq_create()
116 cq->cq_obj.cqes[0].op_own = MLX5_CQE_OWNER_MASK; in mlx5_vdpa_cq_create()
117 cq->cq_obj.cqes[0].wqe_counter = rte_cpu_to_be_16(UINT16_MAX); in mlx5_vdpa_cq_create()
144 last_word.word = rte_read32(&cq->cq_obj.cqes[0].wqe_counter); in mlx5_vdpa_cq_poll()
158 cq->cq_obj.db_rec[0] = rte_cpu_to_be_32(cq->cq_ci); in mlx5_vdpa_cq_poll()
174 if (cq->cq_obj.cq && !cq->armed) in mlx5_vdpa_arm_all_cqs()
207 if (cq->cq_obj.cq) { in mlx5_vdpa_queue_complete()
[all …]
H A Dmlx5_vdpa.h50 struct mlx5_devx_cq cq_obj; member
H A Dmlx5_vdpa_virtq.c523 if (virtq->eqp.cq.cq_obj.cq) { in mlx5_vdpa_virtq_is_modified()
/dpdk/drivers/common/mlx5/
H A Dmlx5_common_devx.c39 mlx5_cq_init(struct mlx5_devx_cq *cq_obj, uint16_t cq_size) in mlx5_cq_init() argument
41 volatile struct mlx5_cqe *cqe = cq_obj->cqes; in mlx5_cq_init()
79 mlx5_devx_cq_create(void *ctx, struct mlx5_devx_cq *cq_obj, uint16_t log_desc_n, in mlx5_devx_cq_create() argument
140 cq_obj->umem_buf = umem_buf; in mlx5_devx_cq_create()
141 cq_obj->umem_obj = umem_obj; in mlx5_devx_cq_create()
142 cq_obj->cq = cq; in mlx5_devx_cq_create()
143 cq_obj->db_rec = RTE_PTR_ADD(cq_obj->umem_buf, umem_dbrec); in mlx5_devx_cq_create()
145 mlx5_cq_init(cq_obj, num_of_cqes); in mlx5_devx_cq_create()
H A Dmlx5_common_devx.h75 int mlx5_devx_cq_create(void *ctx, struct mlx5_devx_cq *cq_obj,
H A Dmlx5_devx_cmds.c1914 struct mlx5_devx_obj *cq_obj = mlx5_malloc(MLX5_MEM_ZERO, in mlx5_devx_cmd_create_cq() local
1915 sizeof(*cq_obj), in mlx5_devx_cmd_create_cq()
1919 if (!cq_obj) { in mlx5_devx_cmd_create_cq()
1952 cq_obj->obj = mlx5_glue->devx_obj_create(ctx, in, sizeof(in), out, in mlx5_devx_cmd_create_cq()
1954 if (!cq_obj->obj) { in mlx5_devx_cmd_create_cq()
1957 mlx5_free(cq_obj); in mlx5_devx_cmd_create_cq()
1960 cq_obj->id = MLX5_GET(create_cq_out, out, cqn); in mlx5_devx_cmd_create_cq()
1961 return cq_obj; in mlx5_devx_cmd_create_cq()
/dpdk/drivers/regex/mlx5/
H A Dmlx5_regex_control.c60 mlx5_devx_cq_destroy(&cq->cq_obj); in regex_ctrl_destroy_cq()
85 ret = mlx5_devx_cq_create(priv->cdev->ctx, &cq->cq_obj, cq->log_nb_desc, in regex_ctrl_create_cq()
138 .cqn = qp->cq.cq_obj.cq->id, in regex_ctrl_create_hw_qp()
H A Dmlx5_regex.h30 struct mlx5_devx_cq cq_obj; /* The CQ DevX object. */ member
H A Dmlx5_regex_fastpath.c491 cqe = (volatile struct mlx5_cqe *)(cq->cq_obj.cqes + next_cqe_offset); in poll_one()
558 cq->cq_obj.db_rec[0] = rte_cpu_to_be_32(cq->ci); in mlx5_regexdev_dequeue()
/dpdk/drivers/crypto/mlx5/
H A Dmlx5_crypto.h45 struct mlx5_devx_cq cq_obj; member
H A Dmlx5_crypto.c280 mlx5_devx_cq_destroy(&qp->cq_obj); in mlx5_crypto_qp_release()
476 &qp->cq_obj.cqes[idx]; in mlx5_crypto_cqe_err_handle()
504 cqe = &qp->cq_obj.cqes[idx]; in mlx5_crypto_dequeue_burst()
518 qp->cq_obj.db_rec[0] = rte_cpu_to_be_32(qp->ci); in mlx5_crypto_dequeue_burst()
618 if (mlx5_devx_cq_create(priv->cdev->ctx, &qp->cq_obj, log_nb_desc, in mlx5_crypto_queue_pair_setup()
627 attr.cqn = qp->cq_obj.cq->id; in mlx5_crypto_queue_pair_setup()