Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_cq.c98 cq->mcq.set_ci_db = cq->wqres.db.db; in mlx4_en_activate_cq()
99 cq->mcq.arm_db = cq->wqres.db.db + 1; in mlx4_en_activate_cq()
100 *cq->mcq.set_ci_db = 0; in mlx4_en_activate_cq()
101 *cq->mcq.arm_db = 0; in mlx4_en_activate_cq()
140 cq->mcq.usage = MLX4_RES_USAGE_DRIVER; in mlx4_en_activate_cq()
142 &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, in mlx4_en_activate_cq()
147 cq->mcq.event = mlx4_en_cq_event; in mlx4_en_activate_cq()
151 cq->mcq.comp = mlx4_en_tx_irq; in mlx4_en_activate_cq()
157 cq->mcq.comp = mlx4_en_rx_irq; in mlx4_en_activate_cq()
199 mlx4_cq_free(priv->mdev->dev, &cq->mcq); in mlx4_en_deactivate_cq()
[all …]
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()
Den_rx.c341 ring->cqn = priv->rx_cq[ring_ind]->mcq.cqn; in mlx4_en_activate_rx_rings()
692 index = cq->mcq.cons_index & ring->size_mask; in mlx4_en_process_rx_cq()
697 cq->mcq.cons_index & cq->size)) { in mlx4_en_process_rx_cq()
898 ++cq->mcq.cons_index; in mlx4_en_process_rx_cq()
899 index = (cq->mcq.cons_index) & ring->size_mask; in mlx4_en_process_rx_cq()
913 mlx4_cq_set_ci(&cq->mcq); in mlx4_en_process_rx_cq()
915 ring->cons = cq->mcq.cons_index; in mlx4_en_process_rx_cq()
925 void mlx4_en_rx_irq(struct mlx4_cq *mcq) in mlx4_en_rx_irq() argument
927 struct mlx4_en_cq *cq = container_of(mcq, struct mlx4_en_cq, mcq); in mlx4_en_rx_irq()
Den_tx.c428 struct mlx4_cq *mcq = &cq->mcq; in mlx4_en_process_tx_cq() local
434 u32 cons_index = mcq->cons_index; in mlx4_en_process_tx_cq()
512 mcq->cons_index = cons_index; in mlx4_en_process_tx_cq()
513 mlx4_cq_set_ci(mcq); in mlx4_en_process_tx_cq()
536 void mlx4_en_tx_irq(struct mlx4_cq *mcq) in mlx4_en_tx_irq() argument
538 struct mlx4_en_cq *cq = container_of(mcq, struct mlx4_en_cq, mcq); in mlx4_en_tx_irq()
Dmlx4_en.h371 struct mlx4_cq mcq; member
707 void mlx4_en_tx_irq(struct mlx4_cq *mcq);
770 void mlx4_en_rx_irq(struct mlx4_cq *mcq);
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dcq.c90 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
95 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_modify_cq() local
98 return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period); in mlx4_ib_modify_cq()
223 cq->mcq.usage = MLX4_RES_USAGE_USER_VERBS; in mlx4_ib_create_cq()
229 cq->mcq.set_ci_db = cq->db.db; in mlx4_ib_create_cq()
230 cq->mcq.arm_db = cq->db.db + 1; in mlx4_ib_create_cq()
231 *cq->mcq.set_ci_db = 0; in mlx4_ib_create_cq()
232 *cq->mcq.arm_db = 0; in mlx4_ib_create_cq()
241 cq->mcq.usage = MLX4_RES_USAGE_DRIVER; in mlx4_ib_create_cq()
248 &cq->mcq, vector, 0, in mlx4_ib_create_cq()
[all …]
Dqp.c830 struct mlx4_ib_cq *mcq; in create_rq() local
930 mcq = to_mcq(init_attr->send_cq); in create_rq()
931 list_add_tail(&qp->cq_send_list, &mcq->send_qp_list); in create_rq()
932 mcq = to_mcq(init_attr->recv_cq); in create_rq()
933 list_add_tail(&qp->cq_recv_list, &mcq->recv_qp_list); in create_rq()
962 struct mlx4_ib_cq *mcq; in create_qp_common() local
1204 mcq = to_mcq(init_attr->send_cq); in create_qp_common()
1205 list_add_tail(&qp->cq_send_list, &mcq->send_qp_list); in create_qp_common()
1206 mcq = to_mcq(init_attr->recv_cq); in create_qp_common()
1207 list_add_tail(&qp->cq_recv_list, &mcq->recv_qp_list); in create_qp_common()
[all …]
Dmlx4_ib.h117 struct mlx4_cq mcq; member
693 static inline struct mlx4_ib_cq *to_mibcq(struct mlx4_cq *mcq) in to_mibcq() argument
695 return container_of(mcq, struct mlx4_ib_cq, mcq); in to_mibcq()
Dmain.c3090 struct mlx4_cq *mcq; in mlx4_ib_handle_catas_error() local
3104 if (send_mcq->mcq.comp && in mlx4_ib_handle_catas_error()
3106 if (!send_mcq->mcq.reset_notify_added) { in mlx4_ib_handle_catas_error()
3107 send_mcq->mcq.reset_notify_added = 1; in mlx4_ib_handle_catas_error()
3108 list_add_tail(&send_mcq->mcq.reset_notify, in mlx4_ib_handle_catas_error()
3122 if (recv_mcq->mcq.comp && in mlx4_ib_handle_catas_error()
3124 if (!recv_mcq->mcq.reset_notify_added) { in mlx4_ib_handle_catas_error()
3125 recv_mcq->mcq.reset_notify_added = 1; in mlx4_ib_handle_catas_error()
3126 list_add_tail(&recv_mcq->mcq.reset_notify, in mlx4_ib_handle_catas_error()
3137 list_for_each_entry(mcq, &cq_notify_list, reset_notify) { in mlx4_ib_handle_catas_error()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dcq.c48 static void mlx5_ib_cq_event(struct mlx5_core_cq *mcq, enum mlx5_event type) in mlx5_ib_cq_event() argument
50 struct mlx5_ib_cq *cq = container_of(mcq, struct mlx5_ib_cq, mcq); in mlx5_ib_cq_event()
57 type, mcq->cqn); in mlx5_ib_cq_event()
84 cqe64 = (cq->mcq.cqe_sz == 64) ? cqe : cqe + 64; in get_sw_cqe()
96 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
461 cqe64 = (cq->mcq.cqe_sz == 64) ? cqe : cqe + 64; in mlx5_poll_one()
463 ++cq->mcq.cons_index; in mlx5_poll_one()
520 "Requestor" : "Responder", cq->mcq.cqn); in mlx5_poll_one()
557 cq->mcq.cqn, sig->err_item.key, in mlx5_poll_one()
583 cq->mcq.cqn); in poll_soft_wc()
[all …]
Dqp.c1881 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1882 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
2033 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_user_qp()
2048 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2051 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2191 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(attr->send_cq)->mcq.cqn); in create_kernel_qp()
2194 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(attr->recv_cq)->mcq.cqn); in create_kernel_qp()
2243 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
2247 } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
2273 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_unlock_cqs()
[all …]
Drestrack.c156 return fill_res_raw(msg, dev, MLX5_SGMT_TYPE_PRM_QUERY_CQ, cq->mcq.cqn); in fill_res_cq_entry_raw()
Dmlx5_ib.h494 struct mlx5_core_cq mcq; member
1030 static inline struct mlx5_ib_cq *to_mibcq(struct mlx5_core_cq *mcq) in to_mibcq() argument
1032 return container_of(mcq, struct mlx5_ib_cq, mcq); in to_mibcq()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_dim.c38 struct mlx5_core_dev *mdev, struct mlx5_core_cq *mcq) in mlx5e_complete_dim_work() argument
40 mlx5_core_modify_cq_moderation(mdev, mcq, moder.usec, moder.pkts); in mlx5e_complete_dim_work()
51 mlx5e_complete_dim_work(dim, cur_moder, rq->mdev, &rq->cq.mcq); in mlx5e_rx_dim_work()
61 mlx5e_complete_dim_work(dim, cur_moder, sq->cq.mdev, &sq->cq.mcq); in mlx5e_tx_dim_work()
Den_txrx.c218 void mlx5e_completion_event(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe) in mlx5e_completion_event() argument
220 struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq); in mlx5e_completion_event()
227 void mlx5e_cq_error_event(struct mlx5_core_cq *mcq, enum mlx5_event event) in mlx5e_cq_error_event() argument
229 struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq); in mlx5e_cq_error_event()
234 __func__, mcq->cqn, event); in mlx5e_cq_error_event()
Dcq.c50 struct mlx5_core_cq *mcq; in mlx5_cq_tasklet_cb() local
57 list_for_each_entry_safe(mcq, temp, &ctx->process_list, in mlx5_cq_tasklet_cb()
59 list_del_init(&mcq->tasklet_ctx.list); in mlx5_cq_tasklet_cb()
60 mcq->tasklet_ctx.comp(mcq, NULL); in mlx5_cq_tasklet_cb()
61 mlx5_cq_put(mcq); in mlx5_cq_tasklet_cb()
Den_main.c676 MLX5_SET(rqc, rqc, cqn, rq->cq.mcq.cqn); in mlx5e_create_rq()
1352 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_txqsq()
1448 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_icosq()
1496 csp.cqn = sq->cq.mcq.cqn; in mlx5e_open_xdpsq()
1561 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5e_alloc_cq_common() local
1570 mcq->cqe_sz = 64; in mlx5e_alloc_cq_common()
1571 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5e_alloc_cq_common()
1572 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5e_alloc_cq_common()
1573 *mcq->set_ci_db = 0; in mlx5e_alloc_cq_common()
1574 *mcq->arm_db = 0; in mlx5e_alloc_cq_common()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h44 void mlx5e_completion_event(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe);
45 void mlx5e_cq_error_event(struct mlx5_core_cq *mcq, enum mlx5_event event);
230 struct mlx5_core_cq *mcq; in mlx5e_cq_arm() local
232 mcq = &cq->mcq; in mlx5e_cq_arm()
233 mlx5_cq_arm(mcq, MLX5_CQ_DB_REQ_NOT, mcq->uar->map, cq->wq.cc); in mlx5e_cq_arm()
313 cq->mcq.cqn, ci, qn, in mlx5e_dump_error_cqe()
Dreporter_tx.c101 eq = sq->cq.mcq.eq; in mlx5e_tx_reporter_timeout_recover()
196 err = mlx5e_health_eq_diag_fmsg(sq->cq.mcq.eq, fmsg); in mlx5e_tx_reporter_build_diagnose_output()
432 sq->channel->ix, sq->sqn, sq->cq.mcq.cqn, sq->cc, sq->pc, in mlx5e_reporter_tx_timeout()
Dreporter_rx.c156 eq = rq->cq.mcq.eq; in mlx5e_rx_reporter_timeout_recover()
214 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", icosq->cq.mcq.cqn); in mlx5e_reporter_icosq_diagnose()
294 err = mlx5e_health_eq_diag_fmsg(rq->cq.mcq.eq, fmsg); in mlx5e_rx_reporter_build_diagnose_output()
570 icosq->channel->ix, icosq->sqn, rq->rqn, rq->cq.mcq.cqn); in mlx5e_reporter_rx_timeout()
Dhealth.c46 err = mlx5_core_query_cq(priv->mdev, &cq->mcq, out); in mlx5e_health_cq_diag_fmsg()
57 err = devlink_fmsg_u32_pair_put(fmsg, "cqn", cq->mcq.cqn); in mlx5e_health_cq_diag_fmsg()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
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()
465 err = mlx5_core_create_cq(mdev, &conn->cq.mcq, in, inlen, out, sizeof(out)); in mlx5_fpga_conn_create_cq()
471 conn->cq.mcq.cqe_sz = 64; in mlx5_fpga_conn_create_cq()
472 conn->cq.mcq.set_ci_db = conn->cq.wq_ctrl.db.db; in mlx5_fpga_conn_create_cq()
473 conn->cq.mcq.arm_db = conn->cq.wq_ctrl.db.db + 1; in mlx5_fpga_conn_create_cq()
474 *conn->cq.mcq.set_ci_db = 0; in mlx5_fpga_conn_create_cq()
475 *conn->cq.mcq.arm_db = 0; in mlx5_fpga_conn_create_cq()
476 conn->cq.mcq.vector = 0; in mlx5_fpga_conn_create_cq()
[all …]
Dconn.h58 struct mlx5_core_cq mcq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_send.c699 static void dr_cq_complete(struct mlx5_core_cq *mcq, in dr_cq_complete() argument
702 pr_err("CQ completion CQ: #%u\n", mcq->cqn); in dr_cq_complete()
764 cq->mcq.comp = dr_cq_complete; in dr_create_cq()
766 err = mlx5_core_create_cq(mdev, &cq->mcq, in, inlen, out, sizeof(out)); in dr_create_cq()
772 cq->mcq.cqe_sz = 64; in dr_create_cq()
773 cq->mcq.set_ci_db = cq->wq_ctrl.db.db; in dr_create_cq()
774 cq->mcq.arm_db = cq->wq_ctrl.db.db + 1; in dr_create_cq()
775 *cq->mcq.set_ci_db = 0; in dr_create_cq()
780 *cq->mcq.arm_db = cpu_to_be32(2 << 28); in dr_create_cq()
782 cq->mcq.vector = 0; in dr_create_cq()
[all …]
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c54 struct mlx5_core_cq mcq; member
356 MLX5_SET(qpc, qpc, cqn_rcv, mvq->cq.mcq.cqn); in qp_prepare()
452 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
463 vcq->mcq.cons_index++; in mlx5_vdpa_poll_one()
469 mlx5_cq_set_ci(&mvq->cq.mcq); in mlx5_vdpa_handle_completions()
480 static void mlx5_vdpa_cq_comp(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe) in mlx5_vdpa_cq_comp() argument
482 struct mlx5_vdpa_virtqueue *mvq = container_of(mcq, struct mlx5_vdpa_virtqueue, cq.mcq); in mlx5_vdpa_cq_comp()
504 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in mlx5_vdpa_cq_comp()
525 vcq->mcq.set_ci_db = vcq->db.db; in cq_create()
526 vcq->mcq.arm_db = vcq->db.db + 1; in cq_create()
[all …]

12