Home
last modified time | relevance | path

Searched refs:cqn (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_cq.c54 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion() argument
59 cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_completion()
61 mlx4_dbg(dev, "Completion event for bogus CQ %08x\n", cqn); in mlx4_cq_completion()
70 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event() argument
77 cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_event()
84 mlx4_warn(dev, "Async event for bogus CQ %08x\n", cqn); in mlx4_cq_event()
132 err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 1); in mlx4_cq_modify()
158 err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 0); in mlx4_cq_resize()
165 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm() argument
171 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm()
[all …]
H A Dmlx4_resource_tracker.c1618 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, in cq_res_start_move_to() argument
1627 r = res_tracker_lookup(&tracker->res_tree[RES_CQ], cqn); in cq_res_start_move_to()
1885 int cqn; in cq_alloc_res() local
1894 err = __mlx4_cq_alloc_icm(dev, &cqn); in cq_alloc_res()
1900 err = add_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_alloc_res()
1903 __mlx4_cq_free_icm(dev, cqn); in cq_alloc_res()
1907 set_param_l(out_param, cqn); in cq_alloc_res()
2411 int cqn; in cq_free_res() local
2416 cqn = get_param_l(&in_param); in cq_free_res()
2417 err = rem_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_free_res()
[all …]
H A Dmlx4_srq.c162 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc() argument
192 srq_context->pg_offset_cqn = cpu_to_be32(cqn & 0xffffff); in mlx4_srq_alloc()
H A Dmlx4_eq.c493 int cqn = -1; in mlx4_eq_int() local
515 cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff; in mlx4_eq_int()
516 mlx4_cq_completion(dev, cqn); in mlx4_eq_int()
674 be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); in mlx4_eq_int()
678 be32_to_cpu(eqe->event.cq_err.cqn) in mlx4_eq_int()
693 be32_to_cpu(eqe->event.cq_err.cqn) in mlx4_eq_int()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cq.c64 u32 cqn; in mlx5_cq_completion() local
67 cqn = be32_to_cpu(eqe->data.comp.cqn) & 0xffffff; in mlx5_cq_completion()
75 if (likely(cqn < MLX5_CQ_LINEAR_ARRAY_SIZE)) in mlx5_cq_completion()
76 cq = table->linear_array[cqn].cq; in mlx5_cq_completion()
78 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_completion()
88 "Completion event for bogus CQ 0x%x\n", cqn); in mlx5_cq_completion()
94 void mlx5_cq_event(struct mlx5_core_dev *dev, u32 cqn, int event_type) in mlx5_cq_event() argument
107 if (likely(cqn < MLX5_CQ_LINEAR_ARRAY_SIZE)) in mlx5_cq_event()
108 cq = table->linear_array[cqn].cq; in mlx5_cq_event()
110 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_cq_event()
[all …]
H A Dmlx5_eq.c236 u32 cqn; in mlx5_eq_int() local
331 cqn = be32_to_cpu(eqe->data.cq_err.cqn) & 0xffffff; in mlx5_eq_int()
333 cqn, eqe->data.cq_err.syndrome); in mlx5_eq_int()
334 mlx5_cq_event(dev, cqn, eqe->type); in mlx5_eq_int()
/freebsd/sys/dev/mthca/
H A Dmthca_cq.c76 __be32 cqn; member
211 mthca_write64(MTHCA_TAVOR_CQ_DB_INC_CI | cq->cqn, incr - 1, in update_cons_index()
222 void mthca_cq_completion(struct mthca_dev *dev, u32 cqn) in mthca_cq_completion() argument
226 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_completion()
229 mthca_warn(dev, "Completion event for bogus CQ %08x\n", cqn); in mthca_cq_completion()
238 void mthca_cq_event(struct mthca_dev *dev, u32 cqn, in mthca_cq_event() argument
246 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
253 mthca_warn(dev, "Async event for bogus CQ %08x\n", cqn); in mthca_cq_event()
302 qpn, cq->cqn, cq->cons_index, prod_index); in mthca_cq_clean()
389 cq->cqn, cq->cons_index); in handle_error_cqe()
[all …]
H A Dmthca_eq.c132 __be32 cqn; member
149 __be32 cqn; member
219 static inline void disarm_cq(struct mthca_dev *dev, int eqn, int cqn) in disarm_cq() argument
222 mthca_write64(MTHCA_EQ_DB_DISARM_CQ | eqn, cqn, in disarm_cq()
276 disarm_cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff; in mthca_eq_int()
343 be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); in mthca_eq_int()
344 mthca_cq_event(dev, be32_to_cpu(eqe->event.cq_err.cqn), in mthca_eq_int()
H A Dmthca_user.h83 __u32 cqn; member
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c42 int is_tx, int rss, int qpn, int cqn, in mlx4_en_fill_qp_context() argument
76 context->cqn_send = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
77 context->cqn_recv = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
H A Den.h284 u16 cqn; /* index of port CQ associated with this ring */ member
341 u16 cqn; /* index of port CQ associated with this ring */ member
841 int is_tx, int rss, int qpn, int cqn, int user_prio,
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_txrx.c55 mcq->cqn, event); in mlx5e_cq_error_event()
74 cq->mcq.cqn, ci, qn, err_cqe->op_own >> 4, in mlx5e_dump_err_cqe()
/freebsd/contrib/ofed/libmlx4/
H A Dmlx4-abi.h81 __u32 cqn; member
93 __u32 cqn; member
H A Dverbs.c421 cq->cqn = resp.cqn; in mlx4_cmd_create_cq()
446 cq->cqn = resp.cqn; in mlx4_cmd_create_cq_ex()
1067 } else if (send_cq->cqn < recv_cq->cqn) { in mlx4_lock_cqs()
1089 } else if (send_cq->cqn < recv_cq->cqn) { in mlx4_unlock_cqs()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_srq.c82 u32 cqn; in mlx4_ib_create_srq() local
180 cqn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq()
181 to_mcq(init_attr->ext.cq)->mcq.cqn : 0; in mlx4_ib_create_srq()
185 err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, in mlx4_ib_create_srq()
/freebsd/sys/dev/mlx5/
H A Dcq.h35 u32 cqn; member
155 doorbell[1] = cpu_to_be32(cq->cqn);
H A Dsrq.h46 u32 cqn; member
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_cq.c52 type, mcq->cqn); in mlx5_ib_cq_event()
595 mlx5_ib_dbg(dev, "%s error cqe on cqn 0x%x:\n", in mlx5_poll_one()
597 "Requestor" : "Responder", cq->mcq.cqn); in mlx5_poll_one()
633 cq->mcq.cqn, mr->sig->err_item.key, in mlx5_poll_one()
658 cq->mcq.cqn); in poll_soft_wc()
988 mlx5_ib_dbg(dev, "cqn 0x%x\n", cq->mcq.cqn); in mlx5_ib_create_cq()
996 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof(__u32))) { in mlx5_ib_create_cq()
1107 mlx5_ib_warn(dev, "modify cq 0x%x failed\n", mcq->mcq.cqn); in mlx5_ib_modify_cq()
1231 cq->mcq.cqn); in copy_resize_cqes()
[all...]
H A Dmlx5_ib_srq.c304 in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; in mlx5_ib_create_srq()
306 in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; in mlx5_ib_create_srq()
H A Dmlx5_ib_qp.c1118 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); in create_raw_packet_qp_sq()
1204 MLX5_SET(rqc, rqc, cqn, MLX5_GET(qpc, qpc, cqn_rcv)); in create_raw_packet_qp_rq()
1802 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1803 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1808 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_qp_common()
1823 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_qp_common()
1826 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_qp_common()
1893 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
1897 } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
1923 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_unlock_cqs()
[all …]
/freebsd/sys/ofed/include/uapi/rdma/
H A Dmlx4-abi.h86 __u32 cqn; member
H A Dmthca-abi.h85 __u32 cqn; member
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_conn.c369 mlx5_fpga_warn(conn->fdev, "CQ event %u on CQ #%u\n", event, mcq->cqn); in mlx5_fpga_conn_cq_event()
496 mlx5_fpga_dbg(fdev, "Created CQ #0x%x\n", conn->cq.mcq.cqn); in mlx5_fpga_conn_create_cq()
586 MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); in mlx5_fpga_conn_create_qp()
587 MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); in mlx5_fpga_conn_create_qp()
691 MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); in mlx5_fpga_conn_init_qp()
692 MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); in mlx5_fpga_conn_init_qp()
/freebsd/contrib/ofed/libmlx5/
H A Dwqe.h45 uint32_t cqn; member
/freebsd/sys/dev/mlx4/
H A Dcq.h157 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm()

123