/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | cq.c | 104 void mlx4_cq_completion(struct mlx4_dev *dev, u32 cqn) in mlx4_cq_completion() argument 110 cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_completion() 114 mlx4_dbg(dev, "Completion event for bogus CQ %08x\n", cqn); in mlx4_cq_completion() 126 void mlx4_cq_event(struct mlx4_dev *dev, u32 cqn, int event_type) in mlx4_cq_event() argument 132 cq = radix_tree_lookup(&cq_table->tree, cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_event() 136 mlx4_dbg(dev, "Async event for bogus CQ %08x\n", cqn); in mlx4_cq_event() 184 err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 1); in mlx4_cq_modify() 210 err = mlx4_MODIFY_CQ(dev, mailbox, cq->cqn, 0); in mlx4_cq_resize() 217 int __mlx4_cq_alloc_icm(struct mlx4_dev *dev, int *cqn) in __mlx4_cq_alloc_icm() argument 223 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm() [all …]
|
D | en_resources.c | 41 int is_tx, int rss, int qpn, int cqn, in mlx4_en_fill_qp_context() argument 72 context->cqn_send = cpu_to_be32(cqn); in mlx4_en_fill_qp_context() 73 context->cqn_recv = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
|
D | resource_tracker.c | 1661 static int cq_res_start_move_to(struct mlx4_dev *dev, int slave, int cqn, in cq_res_start_move_to() argument 1670 r = res_tracker_lookup(&tracker->res_tree[RES_CQ], cqn); in cq_res_start_move_to() 1928 int cqn; in cq_alloc_res() local 1937 err = __mlx4_cq_alloc_icm(dev, &cqn); in cq_alloc_res() 1943 err = add_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_alloc_res() 1946 __mlx4_cq_free_icm(dev, cqn); in cq_alloc_res() 1950 set_param_l(out_param, cqn); in cq_alloc_res() 2454 int cqn; in cq_free_res() local 2459 cqn = get_param_l(&in_param); in cq_free_res() 2460 err = rem_res_range(dev, slave, cqn, 1, RES_CQ, 0); in cq_free_res() [all …]
|
D | srq.c | 162 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()
|
D | eq.c | 498 int cqn; in mlx4_eq_int() local 521 cqn = be32_to_cpu(eqe->event.comp.cqn) & 0xffffff; in mlx4_eq_int() 522 mlx4_cq_completion(dev, cqn); in mlx4_eq_int() 687 be32_to_cpu(eqe->event.cq_err.cqn) & 0xffffff); in mlx4_eq_int() 691 be32_to_cpu(eqe->event.cq_err.cqn) in mlx4_eq_int() 706 be32_to_cpu(eqe->event.cq_err.cqn) in mlx4_eq_int()
|
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 63 event_type, hr_cq->cqn); in hns_roce_ib_cq_event() 117 ret = hns_roce_bitmap_alloc(&cq_table->bitmap, &hr_cq->cqn); in hns_roce_cq_alloc() 124 ret = hns_roce_table_get(hr_dev, &cq_table->table, hr_cq->cqn); in hns_roce_cq_alloc() 133 ret = radix_tree_insert(&cq_table->tree, hr_cq->cqn, hr_cq); in hns_roce_cq_alloc() 151 ret = hns_roce_sw2hw_cq(hr_dev, mailbox, hr_cq->cqn); in hns_roce_cq_alloc() 169 radix_tree_delete(&cq_table->tree, hr_cq->cqn); in hns_roce_cq_alloc() 173 hns_roce_table_put(hr_dev, &cq_table->table, hr_cq->cqn); in hns_roce_cq_alloc() 176 hns_roce_bitmap_free(&cq_table->bitmap, hr_cq->cqn, BITMAP_NO_RR); in hns_roce_cq_alloc() 195 ret = hns_roce_hw2sw_cq(hr_dev, NULL, hr_cq->cqn); in hns_roce_free_cq() 198 hr_cq->cqn); in hns_roce_free_cq() [all …]
|
D | hns_roce_hw_v1.c | 2045 ROCEE_DB_OTHERS_H_ROCEE_DB_OTH_INP_H_S, hr_cq->cqn); in hns_roce_v1_cq_set_ci() 2124 offset = hr_cq->cqn * HNS_ROCE_V1_TPTR_ENTRY_SIZE; in hns_roce_v1_write_cqc() 2133 CQ_CONTEXT_CQC_BYTE_4_CQN_S, hr_cq->cqn); in hns_roce_v1_write_cqc() 2214 hr_cq->cqn | notification_flag); in hns_roce_v1_req_notify_cq() 2264 hr_cq->cqn, (qpn & HNS_ROCE_CQE_QPN_MASK)); in hns_roce_v1_poll_one() 2686 to_hr_cq(ibqp->recv_cq)->cqn); in hns_roce_v1_m_sqp() 2690 to_hr_cq(ibqp->send_cq)->cqn); in hns_roce_v1_m_sqp() 2836 to_hr_cq(ibqp->send_cq)->cqn); in hns_roce_v1_m_qp() 2840 to_hr_cq(ibqp->recv_cq)->cqn); in hns_roce_v1_m_qp() 2902 to_hr_cq(ibqp->send_cq)->cqn); in hns_roce_v1_m_qp() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cq.c | 108 cq->cqn = MLX5_GET(create_cq_out, out, cqn); in mlx5_core_create_cq() 134 cq->cqn); in mlx5_core_create_cq() 146 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_core_create_cq() 167 MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); in mlx5_core_destroy_cq() 188 MLX5_SET(query_cq_in, in, cqn, cq->cqn); in mlx5_core_query_cq() 211 MLX5_SET(modify_cq_in, in, cqn, cq->cqn); in mlx5_core_modify_cq_moderation()
|
D | eq.c | 422 static struct mlx5_core_cq *mlx5_eq_cq_get(struct mlx5_eq *eq, u32 cqn) in mlx5_eq_cq_get() argument 428 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_eq_cq_get() 436 static void mlx5_eq_cq_completion(struct mlx5_eq *eq, u32 cqn) in mlx5_eq_cq_completion() argument 438 struct mlx5_core_cq *cq = mlx5_eq_cq_get(eq, cqn); in mlx5_eq_cq_completion() 441 mlx5_core_warn(eq->dev, "Completion event for bogus CQ 0x%x\n", cqn); in mlx5_eq_cq_completion() 452 static void mlx5_eq_cq_event(struct mlx5_eq *eq, u32 cqn, int event_type) in mlx5_eq_cq_event() argument 454 struct mlx5_core_cq *cq = mlx5_eq_cq_get(eq, cqn); in mlx5_eq_cq_event() 457 mlx5_core_warn(eq->dev, "Async event for bogus CQ 0x%x\n", cqn); in mlx5_eq_cq_event() 472 u32 cqn = -1; in mlx5_eq_int() local 487 cqn = be32_to_cpu(eqe->data.comp.cqn) & 0xffffff; in mlx5_eq_int() [all …]
|
D | srq.c | 106 MLX5_SET(srqc, srqc, cqn, in->cqn); in set_srqc() 470 MLX5_SET(xrqc, xrqc, cqn, in->cqn); in create_xrq_cmd()
|
D | en_txrx.c | 143 __func__, mcq->cqn, event); in mlx5e_cq_error_event()
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_cq.c | 76 __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 …]
|
D | mthca_eq.c | 132 __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()
|
D | mthca_provider.h | 205 int cqn; member
|
/Linux-v4.19/include/linux/mlx5/ |
D | cq.h | 41 u32 cqn; member 170 doorbell[1] = cpu_to_be32(cq->cqn); in mlx5_cq_arm()
|
D | srq.h | 54 u32 cqn; member
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | srq.c | 79 u32 cqn; in mlx4_ib_create_srq() local 181 cqn = ib_srq_has_cq(init_attr->srq_type) ? in mlx4_ib_create_srq() 182 to_mcq(init_attr->ext.cq)->mcq.cqn : 0; in mlx4_ib_create_srq() 186 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, cqn, xrcdn, &srq->mtt, in mlx4_ib_create_srq()
|
/Linux-v4.19/include/uapi/rdma/ |
D | hns-abi.h | 45 __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */ member
|
D | mthca-abi.h | 84 __u32 cqn; member
|
D | mlx4-abi.h | 85 __u32 cqn; member
|
/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | cq.c | 55 type, mcq->cqn); in mlx5_ib_cq_event() 590 "Requestor" : "Responder", cq->mcq.cqn); in mlx5_poll_one() 626 cq->mcq.cqn, mr->sig->err_item.key, in mlx5_poll_one() 651 cq->mcq.cqn); in poll_soft_wc() 1057 mlx5_ib_dbg(dev, "cqn 0x%x\n", cq->mcq.cqn); in mlx5_ib_create_cq() 1068 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof(__u32))) { in mlx5_ib_create_cq() 1195 mlx5_ib_warn(dev, "modify cq 0x%x failed\n", mcq->mcq.cqn); in mlx5_ib_modify_cq() 1318 cq->mcq.cqn); in copy_resize_cqes() 1413 MLX5_SET(modify_cq_in, in, cqn, cq->mcq.cqn); in mlx5_ib_resize_cq()
|
D | srq.c | 323 in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; in mlx5_ib_create_srq() 325 in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; in mlx5_ib_create_srq()
|
/Linux-v4.19/include/linux/mlx4/ |
D | cq.h | 161 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 371 mlx5_fpga_warn(conn->fdev, "CQ event %u on CQ #%u\n", event, mcq->cqn); in mlx5_fpga_conn_cq_event() 498 mlx5_fpga_dbg(fdev, "Created CQ #0x%x\n", conn->cq.mcq.cqn); in mlx5_fpga_conn_create_cq() 590 MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); in mlx5_fpga_conn_create_qp() 591 MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); in mlx5_fpga_conn_create_qp() 695 MLX5_SET(qpc, qpc, cqn_snd, conn->cq.mcq.cqn); in mlx5_fpga_conn_init_qp() 696 MLX5_SET(qpc, qpc, cqn_rcv, conn->cq.mcq.cqn); in mlx5_fpga_conn_init_qp()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | pci_hw.h | 226 MLXSW_ITEM32(pci, eqe, cqn, 0x0C, 8, 7);
|