Home
last modified time | relevance | path

Searched refs:mcq (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dim.c38 struct mlx5_core_dev *mdev, struct mlx5_core_cq *mcq) in mlx5e_complete_dim_work() argument
40 mlx5e_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts, in mlx5e_complete_dim_work()
52 mlx5e_complete_dim_work(dim, cur_moder, rq->mdev, &rq->cq.mcq); in mlx5e_rx_dim_work()
62 mlx5e_complete_dim_work(dim, cur_moder, sq->cq.mdev, &sq->cq.mcq); in mlx5e_tx_dim_work()
67 u8 cq_period_mode, struct mlx5_core_cq *mcq, in mlx5e_dim_enable() argument
82 err = mlx5e_modify_cq_period_mode(mdev, mcq, dim->mode); in mlx5e_dim_enable()
107 c->rx_cq_moder.cq_period_mode, &rq->cq.mcq, rq); in mlx5e_dim_rx_change()
134 c->tx_cq_moder.cq_period_mode, &sq->cq.mcq, sq); in mlx5e_dim_tx_change()
H A Dwc.c26 struct mlx5_core_cq mcq; member
52 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5_wc_create_cqwq() local
61 mcq->cqe_sz = 64; in mlx5_wc_create_cqwq()
62 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5_wc_create_cqwq()
63 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5_wc_create_cqwq()
80 struct mlx5_core_cq *mcq = &cq->mcq; in create_wc_cq() local
108 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out)); in create_wc_cq()
153 mlx5_core_destroy_cq(cq->mdev, &cq->mcq); in mlx5_wc_destroy_cq()
174 MLX5_SET(sqc, sqc, cqn, sq->cq.mcq.cqn); in create_wc_sq()
H A Den_txrx.c265 void mlx5e_completion_event(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe) in mlx5e_completion_event() argument
267 struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq); in mlx5e_completion_event()
274 void mlx5e_cq_error_event(struct mlx5_core_cq *mcq, enum mlx5_event event) in mlx5e_cq_error_event() argument
276 struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq); in mlx5e_cq_error_event()
280 __func__, mcq->cqn, event); in mlx5e_cq_error_event()
H A Dcq.c49 struct mlx5_core_cq *mcq; in mlx5_cq_tasklet_cb() local
56 list_for_each_entry_safe(mcq, temp, &ctx->process_list, in mlx5_cq_tasklet_cb()
58 list_del_init(&mcq->tasklet_ctx.list); in mlx5_cq_tasklet_cb()
59 mcq->tasklet_ctx.comp(mcq, NULL); in mlx5_cq_tasklet_cb()
60 mlx5_cq_put(mcq); in mlx5_cq_tasklet_cb()
H A Den_main.c1168 MLX5_SET(rqc, rqc, cqn, rq->cq.mcq.cqn); in mlx5e_create_rq()
1900 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_txqsq()
2058 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_icosq()
2121 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_xdpsq()
2199 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5e_alloc_cq_common() local
2208 mcq->cqe_sz = 64; in mlx5e_alloc_cq_common()
2209 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5e_alloc_cq_common()
2210 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5e_alloc_cq_common()
2211 *mcq->set_ci_db = 0; in mlx5e_alloc_cq_common()
2212 mcq->vector = param->eq_ix; in mlx5e_alloc_cq_common()
[all …]
H A Den_ethtool.c715 mlx5e_modify_cq_moderation(mdev, &c->sq[tc].cq.mcq, in mlx5e_set_priv_channels_tx_coalesce()
735 mlx5e_modify_cq_moderation(mdev, &c->rq.cq.mcq, moder->usec, moder->pkts, in mlx5e_set_priv_channels_rx_coalesce()
917 mlx5_core_modify_cq_moderation(mdev, &c->rq.cq.mcq, in mlx5e_ethtool_set_per_queue_coalesce()
927 mlx5_core_modify_cq_moderation(mdev, &c->sq[tc].cq.mcq, in mlx5e_ethtool_set_per_queue_coalesce()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c15 struct mlx5_core_cq mcq; member
48 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5_aso_alloc_cq() local
60 mcq->cqe_sz = 64; in mlx5_aso_alloc_cq()
61 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5_aso_alloc_cq()
62 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5_aso_alloc_cq()
79 struct mlx5_core_cq *mcq = &cq->mcq; in create_aso_cq() local
108 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out)); in create_aso_cq()
117 mlx5_core_destroy_cq(cq->mdev, &cq->mcq); in mlx5_aso_destroy_cq()
195 MLX5_SET(sqc, sqc, cqn, sq->cq.mcq.cqn); in create_aso_sq()
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c361 mlx5_cq_arm(&conn->cq.mcq, MLX5_CQ_DB_REQ_NOT, in mlx5_fpga_conn_arm_cq()
400 static void mlx5_fpga_conn_cq_complete(struct mlx5_core_cq *mcq, in mlx5_fpga_conn_cq_complete() argument
405 conn = container_of(mcq, struct mlx5_fpga_conn, cq.mcq); in mlx5_fpga_conn_cq_complete()
424 conn->cq.mcq.cqe_sz = 64; in mlx5_fpga_conn_create_cq()
425 conn->cq.mcq.set_ci_db = conn->cq.wq_ctrl.db.db; in mlx5_fpga_conn_create_cq()
426 conn->cq.mcq.arm_db = conn->cq.wq_ctrl.db.db + 1; in mlx5_fpga_conn_create_cq()
427 *conn->cq.mcq.set_ci_db = 0; in mlx5_fpga_conn_create_cq()
428 conn->cq.mcq.vector = 0; in mlx5_fpga_conn_create_cq()
429 conn->cq.mcq.comp = mlx5_fpga_conn_cq_complete; in mlx5_fpga_conn_create_cq()
472 err = mlx5_core_create_cq(mdev, &conn->cq.mcq, in, inlen, out, sizeof(out)); in mlx5_fpga_conn_create_cq()
[all …]
H A Dconn.h58 struct mlx5_core_cq mcq; member
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcq.c63 struct mlx4_cq *mcq, *temp; in mlx4_cq_tasklet_cb() local
69 list_for_each_entry_safe(mcq, temp, &ctx->process_list, tasklet_ctx.list) { in mlx4_cq_tasklet_cb()
70 list_del_init(&mcq->tasklet_ctx.list); in mlx4_cq_tasklet_cb()
71 mcq->tasklet_ctx.comp(mcq); in mlx4_cq_tasklet_cb()
72 if (refcount_dec_and_test(&mcq->refcount)) in mlx4_cq_tasklet_cb()
73 complete(&mcq->free); in mlx4_cq_tasklet_cb()
H A Den_rx.c337 ring->cqn = priv->rx_cq[ring_ind]->mcq.cqn; in mlx4_en_activate_rx_rings()
711 index = cq->mcq.cons_index & ring->size_mask; in mlx4_en_process_rx_cq()
716 cq->mcq.cons_index & cq->size)) { in mlx4_en_process_rx_cq()
932 ++cq->mcq.cons_index; in mlx4_en_process_rx_cq()
933 index = (cq->mcq.cons_index) & ring->size_mask; in mlx4_en_process_rx_cq()
948 mlx4_cq_set_ci(&cq->mcq); in mlx4_en_process_rx_cq()
950 ring->cons = cq->mcq.cons_index; in mlx4_en_process_rx_cq()
959 void mlx4_en_rx_irq(struct mlx4_cq *mcq) in mlx4_en_rx_irq() argument
961 struct mlx4_en_cq *cq = container_of(mcq, struct mlx4_en_cq, mcq); in mlx4_en_rx_irq()
H A Den_netdev.c1695 priv->rx_ring[i]->cqn = cq->mcq.cqn; in mlx4_en_start_port()
1747 cq->mcq.cqn, in mlx4_en_start_port()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dsend.c756 MLX5_SET(sqc, sqc, cqn, cq->mcq.cqn); in hws_send_ring_create_sq()
882 struct mlx5_core_cq *mcq = &cq->mcq; in hws_send_ring_alloc_cq() local
895 mcq->cqe_sz = 64; in hws_send_ring_alloc_cq()
896 mcq->set_ci_db = cq->wq_ctrl.db.db; in hws_send_ring_alloc_cq()
897 mcq->arm_db = cq->wq_ctrl.db.db + 1; in hws_send_ring_alloc_cq()
915 struct mlx5_core_cq *mcq = &cq->mcq; in hws_send_ring_create_cq() local
940 err = mlx5_core_create_cq(mdev, mcq, in, inlen, out, sizeof(out)); in hws_send_ring_create_cq()
983 mlx5_core_destroy_cq(cq->mdev, &cq->mcq); in hws_send_ring_close_cq()
H A Ddebug.c253 cq->mcq.cqn, in hws_debug_dump_context_send_engine()
260 cq->mcq.cqe_sz, in hws_debug_dump_context_send_engine()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_send.c1086 cq->mcq.cqe_sz = 64; in dr_create_cq()
1087 cq->mcq.set_ci_db = cq->wq_ctrl.db.db; in dr_create_cq()
1088 cq->mcq.arm_db = cq->wq_ctrl.db.db + 1; in dr_create_cq()
1089 *cq->mcq.set_ci_db = 0; in dr_create_cq()
1090 cq->mcq.vector = 0; in dr_create_cq()
1116 err = mlx5_core_create_cq(mdev, &cq->mcq, in, inlen, out, sizeof(out)); in dr_create_cq()
1133 mlx5_core_destroy_cq(mdev, &cq->mcq); in dr_destroy_cq()
1222 init_attr.cqn = dmn->send_ring->cq->mcq.cqn; in mlx5dr_send_ring_alloc()
H A Ddr_dbg.c894 ring->cq->mcq.cqn, ring->qp->qpn); in dr_dump_send_ring()
H A Ddr_types.h1441 struct mlx5_core_cq mcq; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dreporter_tx.c153 eq = sq->cq.mcq.eq; in mlx5e_tx_reporter_timeout_recover()
283 mlx5e_health_eq_diag_fmsg(sq->cq.mcq.eq, fmsg); in mlx5e_tx_reporter_build_diagnose_output_sq_common()
560 sq->ch_ix, sq->sqn, sq->cq.mcq.cqn, sq->cc, sq->pc, in mlx5e_reporter_tx_timeout()
581 txqsq->ch_ix, txqsq->sqn, ts_cq->mcq.cqn, map->undelivered_counter, map->capacity); in mlx5e_reporter_tx_ptpsq_unhealthy()
H A Dreporter_rx.c194 eq = rq->cq.mcq.eq; in mlx5e_rx_reporter_timeout_recover()
233 devlink_fmsg_u32_pair_put(fmsg, "cqn", icosq->cq.mcq.cqn); in mlx5e_reporter_icosq_diagnose()
281 mlx5e_health_eq_diag_fmsg(rq->cq.mcq.eq, fmsg); in mlx5e_rx_reporter_build_diagnose_output_rq_common()
625 rq->ix, icosq_str, rq->rqn, rq->cq.mcq.cqn); in mlx5e_reporter_rx_timeout()
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c71 struct mlx5_core_cq mcq; member
400 MLX5_SET(qpc, qpc, cqn_rcv, mvq->cq.mcq.cqn); in qp_prepare()
496 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
507 vcq->mcq.cons_index++; in mlx5_vdpa_poll_one()
517 mlx5_cq_set_ci(&mvq->cq.mcq); in mlx5_vdpa_handle_completions()
528 static void mlx5_vdpa_cq_comp(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe) in mlx5_vdpa_cq_comp() argument
530 struct mlx5_vdpa_virtqueue *mvq = container_of(mcq, struct mlx5_vdpa_virtqueue, cq.mcq); in mlx5_vdpa_cq_comp()
552 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in mlx5_vdpa_cq_comp()
573 vcq->mcq.set_ci_db = vcq->db.db; in cq_create()
574 vcq->mcq.arm_db = vcq->db.db + 1; in cq_create()
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Deliza.dtsi749 "mcq";
/linux/drivers/scsi/lpfc/
H A Dlpfc_sli.c9188 struct lpfc_queue *mcq; in lpfc_sli4_mbox_completions_pending() local
9198 mcq = phba->sli4_hba.mbx_cq; in lpfc_sli4_mbox_completions_pending()
9199 idx = mcq->hba_index; in lpfc_sli4_mbox_completions_pending()
9200 qe_valid = mcq->qe_valid; in lpfc_sli4_mbox_completions_pending()
9202 (struct lpfc_cqe *)lpfc_sli4_qe(mcq, idx)) == qe_valid) { in lpfc_sli4_mbox_completions_pending()
9203 mcqe = (struct lpfc_mcqe *)(lpfc_sli4_qe(mcq, idx)); in lpfc_sli4_mbox_completions_pending()
9209 idx = (idx + 1) % mcq->entry_count; in lpfc_sli4_mbox_completions_pending()
9210 if (mcq->hba_index == idx) in lpfc_sli4_mbox_completions_pending()