Home
last modified time | relevance | path

Searched refs:cq_attr (Results 1 – 19 of 19) sorted by relevance

/freebsd-12.1/contrib/ofed/libmlx4/
H A Dverbs.c415 ret = ibv_cmd_create_cq(context, cq_attr->cqe, cq_attr->channel, in mlx4_cmd_create_cq()
416 cq_attr->comp_vector, in mlx4_cmd_create_cq()
460 if (cq_attr->cqe > 0x3fffff) { in create_cq()
497 cq_attr->cqe = align_queue_size(cq_attr->cqe + 1); in create_cq()
517 --cq_attr->cqe; in create_cq()
528 mlx4_cq_fill_pfns(cq, cq_attr); in create_cq()
553 cq = create_cq(context, &cq_attr, 0); in mlx4_create_cq()
565 .channel = cq_attr->channel, in mlx4_create_cq_ex()
567 .wc_flags = cq_attr->wc_flags, in mlx4_create_cq_ex()
568 .comp_mask = cq_attr->comp_mask, in mlx4_create_cq_ex()
[all …]
H A Dcq.c648 void mlx4_cq_fill_pfns(struct mlx4_cq *cq, const struct ibv_cq_init_attr_ex *cq_attr) in mlx4_cq_fill_pfns() argument
663 if (cq_attr->wc_flags & IBV_WC_EX_WITH_BYTE_LEN) in mlx4_cq_fill_pfns()
665 if (cq_attr->wc_flags & IBV_WC_EX_WITH_IMM) in mlx4_cq_fill_pfns()
667 if (cq_attr->wc_flags & IBV_WC_EX_WITH_QP_NUM) in mlx4_cq_fill_pfns()
669 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SRC_QP) in mlx4_cq_fill_pfns()
671 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SLID) in mlx4_cq_fill_pfns()
673 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SL) in mlx4_cq_fill_pfns()
675 if (cq_attr->wc_flags & IBV_WC_EX_WITH_DLID_PATH_BITS) in mlx4_cq_fill_pfns()
677 if (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP) in mlx4_cq_fill_pfns()
H A Dmlx4.h388 struct ibv_cq_init_attr_ex *cq_attr);
389 void mlx4_cq_fill_pfns(struct mlx4_cq *cq, const struct ibv_cq_init_attr_ex *cq_attr);
/freebsd-12.1/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_verbs.c145 struct ib_cq_init_attr cq_attr = {}; in ipoib_transport_dev_init() local
167 cq_attr.cqe = size; in ipoib_transport_dev_init()
168 priv->recv_cq = ib_create_cq(priv->ca, ipoib_ib_completion, NULL, priv, &cq_attr); in ipoib_transport_dev_init()
174 cq_attr.cqe = ipoib_sendq_size; in ipoib_transport_dev_init()
176 priv, &cq_attr); in ipoib_transport_dev_init()
/freebsd-12.1/contrib/ofed/libibverbs/
H A Ddevice.c157 struct ibv_cq_init_attr_ex *cq_attr) in __lib_ibv_create_cq_ex() argument
162 if (cq_attr->wc_flags & ~IBV_CREATE_CQ_SUP_WC_FLAGS) { in __lib_ibv_create_cq_ex()
167 cq = vctx->priv->create_cq_ex(context, cq_attr); in __lib_ibv_create_cq_ex()
171 cq_attr->channel, cq_attr->cq_context); in __lib_ibv_create_cq_ex()
H A Dcmd.c491 struct ibv_cq_init_attr_ex *cq_attr, in ibv_cmd_create_cq_ex() argument
506 if (cq_attr->comp_mask & ~(IBV_CQ_INIT_ATTR_MASK_RESERVED - 1)) in ibv_cmd_create_cq_ex()
510 cmd->cqe = cq_attr->cqe; in ibv_cmd_create_cq_ex()
511 cmd->comp_vector = cq_attr->comp_vector; in ibv_cmd_create_cq_ex()
512 cmd->comp_channel = cq_attr->channel ? cq_attr->channel->fd : -1; in ibv_cmd_create_cq_ex()
517 if ((cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS) && in ibv_cmd_create_cq_ex()
518 (cq_attr->flags & ~(IBV_CREATE_CQ_ATTR_RESERVED - 1))) in ibv_cmd_create_cq_ex()
521 if (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP) in ibv_cmd_create_cq_ex()
H A Ddriver.h191 struct ibv_cq_init_attr_ex *cq_attr,
H A Dverbs.h1846 struct ibv_cq_init_attr_ex *cq_attr) in ibv_create_cq_ex() argument
1855 if (cq_attr->comp_mask & ~(IBV_CQ_INIT_ATTR_MASK_RESERVED - 1)) { in ibv_create_cq_ex()
1860 return vctx->create_cq_ex(context, cq_attr); in ibv_create_cq_ex()
/freebsd-12.1/contrib/ofed/libmlx5/
H A Dverbs.c343 const struct ibv_cq_init_attr_ex *cq_attr, in create_cq() argument
356 if (!cq_attr->cqe) { in create_cq()
369 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS && in create_cq()
370 cq_attr->flags & ~CREATE_CQ_SUPPORTED_FLAGS) { in create_cq()
395 ncqe = align_queue_size(cq_attr->cqe + 1); in create_cq()
456 cq_attr->comp_vector, in create_cq()
472 mlx5_cq_fill_pfns(cq, cq_attr); in create_cq()
505 cq = create_cq(context, &cq_attr, 0, NULL); in mlx5_create_cq()
510 struct ibv_cq_init_attr_ex *cq_attr) in mlx5_create_cq_ex() argument
516 struct ibv_cq_init_attr_ex *cq_attr, in mlx5dv_create_cq() argument
[all …]
H A Dcq.c1243 void mlx5_cq_fill_pfns(struct mlx5_cq *cq, const struct ibv_cq_init_attr_ex *cq_attr) in mlx5_cq_fill_pfns() argument
1259 if (cq_attr->wc_flags & IBV_WC_EX_WITH_BYTE_LEN) in mlx5_cq_fill_pfns()
1261 if (cq_attr->wc_flags & IBV_WC_EX_WITH_IMM) in mlx5_cq_fill_pfns()
1263 if (cq_attr->wc_flags & IBV_WC_EX_WITH_QP_NUM) in mlx5_cq_fill_pfns()
1265 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SRC_QP) in mlx5_cq_fill_pfns()
1267 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SLID) in mlx5_cq_fill_pfns()
1269 if (cq_attr->wc_flags & IBV_WC_EX_WITH_SL) in mlx5_cq_fill_pfns()
1271 if (cq_attr->wc_flags & IBV_WC_EX_WITH_DLID_PATH_BITS) in mlx5_cq_fill_pfns()
1273 if (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP) in mlx5_cq_fill_pfns()
1275 if (cq_attr->wc_flags & IBV_WC_EX_WITH_CVLAN) in mlx5_cq_fill_pfns()
[all …]
H A Dmlx5.h598 struct ibv_cq_init_attr_ex *cq_attr);
599 void mlx5_cq_fill_pfns(struct mlx5_cq *cq, const struct ibv_cq_init_attr_ex *cq_attr);
H A Dmlx5dv.h97 struct ibv_cq_init_attr_ex *cq_attr,
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_cq.c92 struct ib_cq_init_attr cq_attr = { in ib_alloc_cq() local
111 cq = dev->create_cq(dev, &cq_attr, NULL, NULL); in ib_alloc_cq()
H A Dib_verbs.c1361 const struct ib_cq_init_attr *cq_attr) in ib_create_cq() argument
1365 cq = device->create_cq(device, cq_attr, NULL, NULL); in ib_create_cq()
/freebsd-12.1/sys/dev/iser/
H A Diser_verbs.c231 struct ib_cq_init_attr cq_attr = { in iser_create_device_ib_res() local
241 &cq_attr); in iser_create_device_ib_res()
/freebsd-12.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mad.c1948 struct ib_cq_init_attr cq_attr = {}; in create_pv_resources() local
1977 cq_attr.cqe = cq_size; in create_pv_resources()
1979 NULL, ctx, &cq_attr); in create_pv_resources()
H A Dmlx4_ib_main.c1256 struct ib_cq_init_attr cq_attr = {}; in mlx4_ib_alloc_xrcd() local
1276 cq_attr.cqe = 1; in mlx4_ib_alloc_xrcd()
1277 xrcd->cq = ib_create_cq(ibdev, NULL, NULL, xrcd, &cq_attr); in mlx4_ib_alloc_xrcd()
/freebsd-12.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_main.c2712 struct ib_cq_init_attr cq_attr = {.cqe = 1}; in create_dev_resources() local
2729 devr->c0 = mlx5_ib_create_cq(&dev->ib_dev, &cq_attr, NULL, NULL); in create_dev_resources()
/freebsd-12.1/sys/ofed/include/rdma/
H A Dib_verbs.h2838 const struct ib_cq_init_attr *cq_attr);