Home
last modified time | relevance | path

Searched refs:cqc (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c80 void *in, *cqc; in create_aso_cq() local
94 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in create_aso_cq()
96 memcpy(cqc, cqc_data, MLX5_ST_SZ_BYTES(cqc)); in create_aso_cq()
101 MLX5_SET(cqc, cqc, cq_period_mode, MLX5_CQ_PERIOD_MODE_START_FROM_EQE); in create_aso_cq()
102 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in create_aso_cq()
103 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in create_aso_cq()
104 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in create_aso_cq()
106 MLX5_SET64(cqc, cqc, dbr_addr, cq->wq_ctrl.db.dma); in create_aso_cq()
127 cqc_data = kvzalloc(MLX5_ST_SZ_BYTES(cqc), GFP_KERNEL); in mlx5_aso_create_cq()
131 MLX5_SET(cqc, cqc_data, log_cq_size, 1); in mlx5_aso_create_cq()
[all …]
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dcq.c787 MLX5_SET(cqc, cqc, log_page_size, in create_cq_user()
823 MLX5_SET(cqc, cqc, cqe_comp_en, 1); in create_cq_user()
914 MLX5_SET(cqc, cqc, log_page_size, in create_cq_kernel()
1003 MLX5_SET(cqc, cqc, cqe_sz, in mlx5_ib_create_cq()
1007 MLX5_SET(cqc, cqc, log_cq_size, ilog2(entries)); in mlx5_ib_create_cq()
1008 MLX5_SET(cqc, cqc, uar_page, index); in mlx5_ib_create_cq()
1009 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5_ib_create_cq()
1010 MLX5_SET64(cqc, cqc, dbr_addr, cq->db.dma); in mlx5_ib_create_cq()
1012 MLX5_SET(cqc, cqc, oi, 1); in mlx5_ib_create_cq()
1351 MLX5_SET(cqc, cqc, log_page_size, in mlx5_ib_resize_cq()
[all …]
H A Ddevx.c700 void *cqc; in devx_set_umem_valid() local
703 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in devx_set_umem_valid()
704 MLX5_SET(cqc, cqc, dbr_umem_valid, 1); in devx_set_umem_valid()
1455 !MLX5_GET(cqc, MLX5_ADDR_OF(create_cq_in, in, cq_context), apu_cq)) in is_apu_cq()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcq.c92 int eqn = MLX5_GET(cqc, MLX5_ADDR_OF(create_cq_in, in, cq_context), in mlx5_create_cq()
216 void *cqc; in mlx5_core_modify_cq_moderation() local
219 cqc = MLX5_ADDR_OF(modify_cq_in, in, cq_context); in mlx5_core_modify_cq_moderation()
220 MLX5_SET(cqc, cqc, cq_period, cq_period); in mlx5_core_modify_cq_moderation()
221 MLX5_SET(cqc, cqc, cq_max_count, cq_max_count); in mlx5_core_modify_cq_moderation()
H A Dwq.c160 void *cqc, struct mlx5_cqwq *wq, in mlx5_cqwq_create() argument
164 u8 log_wq_stride = MLX5_GET(cqc, cqc, cqe_sz) == CQE_STRIDE_64 ? 6 : 7; in mlx5_cqwq_create()
165 u8 log_wq_sz = MLX5_GET(cqc, cqc, log_cq_size); in mlx5_cqwq_create()
H A Ddebugfs.c436 param = 1 << MLX5_GET(cqc, ctx, log_cq_size); in cq_read_field()
439 param = MLX5_GET(cqc, ctx, log_page_size); in cq_read_field()
H A Dwq.h90 void *cqc, struct mlx5_cqwq *wq,
H A Den_main.c1930 err = mlx5_cqwq_create(mdev, &param->wq, param->cqc, &cq->wq, in mlx5e_alloc_cq_common()
1989 void *cqc; in mlx5e_create_cq() local
2004 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in mlx5e_create_cq()
2006 memcpy(cqc, param->cqc, sizeof(param->cqc)); in mlx5e_create_cq()
2011 MLX5_SET(cqc, cqc, cq_period_mode, param->cq_period_mode); in mlx5e_create_cq()
2012 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5e_create_cq()
2013 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in mlx5e_create_cq()
2014 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in mlx5e_create_cq()
2016 MLX5_SET64(cqc, cqc, dbr_addr, cq->wq_ctrl.db.dma); in mlx5e_create_cq()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c873 void *cqc = param->cqc; in mlx5e_build_common_cq_param() local
875 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in mlx5e_build_common_cq_param()
877 MLX5_SET(cqc, cqc, cqe_sz, CQE_STRIDE_128_PAD); in mlx5e_build_common_cq_param()
903 void *cqc = param->cqc; in mlx5e_build_rx_cq_param() local
919 MLX5_SET(cqc, cqc, log_cq_size, log_cq_size); in mlx5e_build_rx_cq_param()
921 MLX5_SET(cqc, cqc, mini_cqe_res_format, hw_stridx ? in mlx5e_build_rx_cq_param()
923 MLX5_SET(cqc, cqc, cqe_compression_layout, in mlx5e_build_rx_cq_param()
927 MLX5_SET(cqc, cqc, cqe_comp_en, 1); in mlx5e_build_rx_cq_param()
1037 void *cqc = param->cqc; in mlx5e_build_tx_cq_param() local
1079 void *cqc = param->cqc; in mlx5e_build_ico_cq_param() local
[all …]
H A Dhealth.c42 void *cqc; in mlx5e_health_cq_diag_fmsg() local
49 cqc = MLX5_ADDR_OF(query_cq_out, out, cq_context); in mlx5e_health_cq_diag_fmsg()
50 hw_status = MLX5_GET(cqc, cqc, status); in mlx5e_health_cq_diag_fmsg()
H A Dparams.h16 u32 cqc[MLX5_ST_SZ_DW(cqc)]; member
/openbmc/linux/drivers/crypto/hisilicon/
H A Ddebugfs.c181 struct qm_cqc *cqc, *cqc_curr; in qm_cqc_dump() local
195 cqc = hisi_qm_ctx_alloc(qm, sizeof(*cqc), &cqc_dma); in qm_cqc_dump()
196 if (IS_ERR(cqc)) in qm_cqc_dump()
197 return PTR_ERR(cqc); in qm_cqc_dump()
202 if (qm->cqc) { in qm_cqc_dump()
203 cqc_curr = qm->cqc + qp_id; in qm_cqc_dump()
205 dump_show(qm, cqc_curr, sizeof(*cqc), "SOFT CQC"); in qm_cqc_dump()
212 dump_show(qm, cqc, sizeof(*cqc), name); in qm_cqc_dump()
215 hisi_qm_ctx_free(qm, sizeof(*cqc), cqc, &cqc_dma); in qm_cqc_dump()
H A Dqm.c61 #define QM_CQ_TAIL_IDX(cqc) ((le16_to_cpu((cqc)->w11) >> 6) & 0x1) argument
2025 struct qm_cqc *cqc; in qm_cq_ctx_cfg() local
2030 if (!cqc) in qm_cq_ctx_cfg()
2033 INIT_QC_COMMON(cqc, qp->cqe_dma, pasid); in qm_cq_ctx_cfg()
2040 cqc->w8 = 0; /* rand_qc */ in qm_cq_ctx_cfg()
2050 kfree(cqc); in qm_cq_ctx_cfg()
2056 kfree(cqc); in qm_cq_ctx_cfg()
2152 struct qm_cqc *cqc; in qm_drain_qp() local
2189 cqc = addr + sizeof(struct qm_sqc); in qm_drain_qp()
2191 if ((sqc->tail == cqc->tail) && in qm_drain_qp()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c415 u32 temp_cqc[MLX5_ST_SZ_DW(cqc)] = {0}; in mlx5_fpga_conn_create_cq()
420 void *cqc, *in; in mlx5_fpga_conn_create_cq() local
425 MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
454 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in mlx5_fpga_conn_create_cq()
455 MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
456 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5_fpga_conn_create_cq()
457 MLX5_SET(cqc, cqc, uar_page, fdev->conn_res.uar->index); in mlx5_fpga_conn_create_cq()
458 MLX5_SET(cqc, cqc, log_page_size, conn->cq.wq_ctrl.buf.page_shift - in mlx5_fpga_conn_create_cq()
460 MLX5_SET64(cqc, cqc, dbr_addr, conn->cq.wq_ctrl.db.dma); in mlx5_fpga_conn_create_cq()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_send.c1062 u32 temp_cqc[MLX5_ST_SZ_DW(cqc)] = {}; in dr_create_cq()
1068 void *cqc, *in; in dr_create_cq() local
1078 MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(ncqe)); in dr_create_cq()
1106 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in dr_create_cq()
1107 MLX5_SET(cqc, cqc, log_cq_size, ilog2(ncqe)); in dr_create_cq()
1108 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in dr_create_cq()
1109 MLX5_SET(cqc, cqc, uar_page, uar->index); in dr_create_cq()
1110 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in dr_create_cq()
1112 MLX5_SET64(cqc, cqc, dbr_addr, cq->wq_ctrl.db.dma); in dr_create_cq()
/openbmc/linux/include/linux/mlx5/
H A Dcq.h132 #define MLX5_MAX_CQ_PERIOD (BIT(__mlx5_bit_sz(cqc, cq_period)) - 1)
133 #define MLX5_MAX_CQ_COUNT (BIT(__mlx5_bit_sz(cqc, cq_max_count)) - 1)
/openbmc/linux/drivers/vfio/pci/mlx5/
H A Dcmd.c954 void *cqc, *in; in mlx5vf_create_cq() local
987 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in mlx5vf_create_cq()
988 MLX5_SET(cqc, cqc, log_cq_size, ilog2(ncqe)); in mlx5vf_create_cq()
989 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5vf_create_cq()
990 MLX5_SET(cqc, cqc, uar_page, tracker->uar->index); in mlx5vf_create_cq()
991 MLX5_SET(cqc, cqc, log_page_size, cq->buf.frag_buf.page_shift - in mlx5vf_create_cq()
993 MLX5_SET64(cqc, cqc, dbr_addr, cq->db.dma); in mlx5vf_create_cq()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c544 void *cqc; in cq_create() local
575 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in cq_create()
576 MLX5_SET(cqc, cqc, log_page_size, vcq->buf.frag_buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in cq_create()
585 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in cq_create()
586 MLX5_SET(cqc, cqc, log_cq_size, ilog2(num_ent)); in cq_create()
587 MLX5_SET(cqc, cqc, uar_page, ndev->mvdev.res.uar->index); in cq_create()
588 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in cq_create()
589 MLX5_SET64(cqc, cqc, dbr_addr, vcq->db.dma); in cq_create()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c3077 static int cq_get_mtt_addr(struct mlx4_cq_context *cqc) in cq_get_mtt_addr() argument
3079 return be32_to_cpu(cqc->mtt_base_addr_l) & 0xfffffff8; in cq_get_mtt_addr()
3082 static int cq_get_mtt_size(struct mlx4_cq_context *cqc) in cq_get_mtt_size() argument
3084 int log_cq_size = (be32_to_cpu(cqc->logsize_usrpage) >> 24) & 0x1f; in cq_get_mtt_size()
3085 int page_shift = (cqc->log_page_size & 0x3f) + 12; in cq_get_mtt_size()
3442 struct mlx4_cq_context *cqc = inbox->buf; in mlx4_SW2HW_CQ_wrapper() local
3443 int mtt_base = cq_get_mtt_addr(cqc) / dev->caps.mtt_entry_sz; in mlx4_SW2HW_CQ_wrapper()
3453 err = check_mtt_range(dev, slave, mtt_base, cq_get_mtt_size(cqc), mtt); in mlx4_SW2HW_CQ_wrapper()
3531 struct mlx4_cq_context *cqc = inbox->buf; in handle_resize() local
3532 int mtt_base = cq_get_mtt_addr(cqc) / dev->caps.mtt_entry_sz; in handle_resize()
[all …]
/openbmc/linux/include/linux/
H A Dhisi_acc_qm.h336 struct qm_cqc *cqc; member