Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcq.c110 cqn & (dev->caps.num_cqs - 1)); in mlx4_cq_completion()
223 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm()
224 if (*cqn == -1) in __mlx4_cq_alloc_icm()
257 *cqn = get_param_l(&out_param); in mlx4_cq_alloc_icm()
261 return __mlx4_cq_alloc_icm(dev, cqn); in mlx4_cq_alloc_icm()
270 mlx4_table_put(dev, &cq_table->table, cqn); in __mlx4_cq_free_icm()
280 set_param_l(&in_param, cqn); in mlx4_cq_free_icm()
287 __mlx4_cq_free_icm(dev, cqn); in mlx4_cq_free_icm()
430 mlx4_cq_free_icm(dev, cq->cqn); in mlx4_cq_alloc()
442 err = mlx4_HW2SW_CQ(dev, NULL, cq->cqn); in mlx4_cq_free()
[all …]
H A Den_resources.c41 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()
H A Dresource_tracker.c1938 int cqn; in cq_alloc_res() local
1960 set_param_l(out_param, cqn); in cq_alloc_res()
2464 int cqn; in cq_free_res() local
2469 cqn = get_param_l(&in_param); in cq_free_res()
3441 int cqn = vhcr->in_modifier; in mlx4_SW2HW_CQ_wrapper() local
3479 int cqn = vhcr->in_modifier; in mlx4_HW2SW_CQ_wrapper() local
3503 int cqn = vhcr->in_modifier; in mlx4_QUERY_CQ_wrapper() local
3575 int cqn = vhcr->in_modifier; in mlx4_MODIFY_CQ_wrapper() local
4808 int cqn; in rem_slave_cqs() local
4820 cqn = cq->com.res_id; in rem_slave_cqs()
[all …]
H A Dsrq.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()
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cq.c86 return (u8)(cqn & GENMASK(1, 0)); in get_cq_bankid()
120 hr_cq->cqn); in hns_roce_create_cqc()
124 hr_cq->cqn, ret); in hns_roce_create_cqc()
150 hr_cq->cqn, ret); in alloc_cqc()
181 hr_cq->cqn); in free_cqc()
184 hr_cq->cqn); in free_cqc()
411 resp.cqn = hr_cq->cqn; in hns_roce_create_cq()
428 free_cqn(hr_dev, hr_cq->cqn); in hns_roce_create_cq()
442 free_cqn(hr_dev, hr_cq->cqn); in hns_roce_destroy_cq()
458 cqn); in hns_roce_cq_completion()
[all …]
H A Dhns_roce_qp.c184 unsigned long cqn = 0; in get_least_load_bankid_for_qp() local
190 cqn = to_hr_cq(scq)->cqn; in get_least_load_bankid_for_qp()
193 if (scq && (get_affinity_cq_bank(i) != (cqn & CQ_BANKID_MASK))) in get_least_load_bankid_for_qp()
1390 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_lock_cqs()
1415 } else if (send_cq->cqn < recv_cq->cqn) { in hns_roce_unlock_cqs()
H A Dhns_roce_device.h423 unsigned long cqn; member
448 u32 cqn; member
915 int (*query_cqc)(struct hns_roce_dev *hr_dev, u32 cqn, void *buffer);
1235 void hns_roce_cq_completion(struct hns_roce_dev *hr_dev, u32 cqn);
1236 void hns_roce_cq_event(struct hns_roce_dev *hr_dev, u32 cqn, int event_type);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcq.c108 cq->cqn = MLX5_GET(create_cq_out, out, cqn); in mlx5_create_cq()
135 cq->cqn); in mlx5_create_cq()
146 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_create_cq()
174 MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); in mlx5_core_destroy_cq()
194 MLX5_SET(query_cq_in, in, cqn, cq->cqn); in mlx5_core_query_cq()
218 MLX5_SET(modify_cq_in, in, cqn, cq->cqn); in mlx5_core_modify_cq_moderation()
H A Deq.c100 cq = radix_tree_lookup(&table->tree, cqn); in mlx5_eq_cq_get()
117 u32 cqn = -1; in mlx5_eq_comp_int() local
131 cqn = be32_to_cpu(eqe->data.comp.cqn) & 0xffffff; in mlx5_eq_comp_int()
133 cq = mlx5_eq_cq_get(eq, cqn); in mlx5_eq_comp_int()
150 if (cqn != -1) in mlx5_eq_comp_int()
430 eq->eqn, cq->cqn); in mlx5_eq_del_cq()
436 eq->eqn, cq->cqn); in mlx5_eq_del_cq()
508 u32 cqn; in cq_err_event_notifier() local
516 cqn = be32_to_cpu(eqe->data.cq_err.cqn) & 0xffffff; in cq_err_event_notifier()
518 cqn, eqe->data.cq_err.syndrome); in cq_err_event_notifier()
[all …]
/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c76 __be32 cqn; member
384 cq->cqn, cq->cons_index); in handle_error_cqe()
728 to_mcq(cq)->cqn; in mthca_tavor_arm_cq()
759 MTHCA_ARBEL_CQ_DB_REQ_NOT) | cq->cqn; in mthca_arbel_arm_cq()
780 if (cq->cqn == -1) in mthca_init_cq()
794 cq->cqn, &cq->set_ci_db); in mthca_init_cq()
799 cq->cqn, &cq->arm_db); in mthca_init_cq()
837 cq_context->cqn = cpu_to_be32(cq->cqn); in mthca_init_cq()
884 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
921 cq->cqn, cq->cons_index, in mthca_free_cq()
[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()
/openbmc/linux/drivers/infiniband/hw/erdma/
H A Derdma_eq.c33 u32 cqn, qpn; in erdma_aeq_event_handler() local
54 cqn = le32_to_cpu(aeqe->event_data0); in erdma_aeq_event_handler()
55 cq = find_cq_by_cqn(dev, cqn); in erdma_aeq_event_handler()
130 int cqn; in erdma_ceq_completion_handler() local
143 cqn = FIELD_GET(ERDMA_CEQE_HDR_CQN_MASK, READ_ONCE(*ceqe)); in erdma_ceq_completion_handler()
145 cq = find_cq_by_cqn(dev, cqn); in erdma_ceq_completion_handler()
H A Derdma_verbs.c64 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->scq->cqn); in create_qp_cmd()
68 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->rcq->cqn); in create_qp_cmd()
89 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->scq->cqn); in create_qp_cmd()
95 FIELD_PREP(ERDMA_CMD_CREATE_QP_CQN_MASK, qp->rcq->cqn); in create_qp_cmd()
196 req.cfg0 = FIELD_PREP(ERDMA_CMD_CREATE_CQ_CQN_MASK, cq->cqn) | in create_cq_cmd()
1233 req.cqn = cq->cqn; in erdma_destroy_cq()
1248 xa_erase(&dev->cq_xa, cq->cqn); in erdma_destroy_cq()
1659 ret = xa_alloc_cyclic(&dev->cq_xa, &cq->cqn, cq, in erdma_create_cq()
1678 uresp.cq_id = cq->cqn; in erdma_create_cq()
1708 xa_erase(&dev->cq_xa, cq->cqn); in erdma_create_cq()
/openbmc/linux/include/linux/mlx5/
H A Dcq.h40 u32 cqn; member
170 doorbell[1] = cpu_to_be32(cq->cqn); in mlx5_cq_arm()
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dsrq.c82 u32 cqn; in mlx4_ib_create_srq() local
180 cqn = ib_srq_has_cq(init_attr->srq_type) ? 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()
/openbmc/linux/include/uapi/rdma/
H A Dmthca-abi.h84 __u32 cqn; member
H A Dhns-abi.h51 __aligned_u64 cqn; /* Only 32 bits used, 64 for compat */ member
H A Dmlx4-abi.h85 __u32 cqn; member
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dcq.c57 type, mcq->cqn); in mlx5_ib_cq_event()
526 "Requestor" : "Responder", cq->mcq.cqn); in mlx5_poll_one()
567 cq->mcq.cqn, sig->err_item.key, in mlx5_poll_one()
593 cq->mcq.cqn); in poll_soft_wc()
1018 mlx5_ib_dbg(dev, "cqn 0x%x\n", cq->mcq.cqn); in mlx5_ib_create_cq()
1028 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof(__u32))) { in mlx5_ib_create_cq()
1147 mlx5_ib_warn(dev, "modify cq 0x%x failed\n", mcq->mcq.cqn); in mlx5_ib_modify_cq()
1254 cq->mcq.cqn); in copy_resize_cqes()
1361 MLX5_SET(modify_cq_in, in, cqn, cq->mcq.cqn); in mlx5_ib_resize_cq()
H A Dsrq.c277 in.cqn = to_mcq(init_attr->ext.cq)->mcq.cqn; in mlx5_ib_create_srq()
279 in.cqn = to_mcq(dev->devr.c0)->mcq.cqn; in mlx5_ib_create_srq()
H A Dsrq.h25 u32 cqn; member
H A Dqp.c1387 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); in create_raw_packet_qp_sq()
2175 to_mcq(init_attr->send_cq)->mcq.cqn); in create_dci()
2179 to_mcq(init_attr->recv_cq)->mcq.cqn); in create_dci()
2570 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
2574 } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { in mlx5_ib_lock_cqs()
2600 if (send_cq->mcq.cqn < recv_cq->mcq.cqn) { in mlx5_ib_unlock_cqs()
2603 } else if (send_cq->mcq.cqn == recv_cq->mcq.cqn) { in mlx5_ib_unlock_cqs()
2749 MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); in create_dct()
4262 MLX5_SET(qpc, qpc, cqn_snd, send_cq->mcq.cqn); in __mlx5_ib_modify_qp()
4264 MLX5_SET(qpc, qpc, cqn_rcv, recv_cq->mcq.cqn); in __mlx5_ib_modify_qp()
[all …]
/openbmc/linux/drivers/infiniband/hw/efa/
H A Defa_admin_defs.h128 u16 cqn; member
H A Defa_main.c74 u16 cqn = eqe->u.comp_event.cqn; in efa_process_comp_eqe() local
78 cq = xa_load(&dev->cqs_xa, cqn); in efa_process_comp_eqe()
82 cqn); in efa_process_comp_eqe()
/openbmc/linux/include/linux/mlx4/
H A Dcq.h166 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm()

123