/freebsd/contrib/ofed/libmlx4/ |
H A D | verbs.c | 405 struct ibv_cq_init_attr_ex *cq_attr, in mlx4_cmd_create_cq() argument 415 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() 428 struct ibv_cq_init_attr_ex *cq_attr, in mlx4_cmd_create_cq_ex() argument 438 ret = ibv_cmd_create_cq_ex(context, cq_attr, in mlx4_cmd_create_cq_ex() 452 struct ibv_cq_init_attr_ex *cq_attr, in create_cq() argument 460 if (cq_attr->cqe > 0x3fffff) { in create_cq() 465 if (cq_attr->comp_mask & ~CREATE_CQ_SUPPORTED_COMP_MASK) { in create_cq() 470 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS && in create_cq() 471 cq_attr->flags & ~CREATE_CQ_SUPPORTED_FLAGS) { in create_cq() [all …]
|
H A D | cq.c | 648 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 D | mlx4.h | 388 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/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_verbs.c | 143 struct ib_cq_init_attr cq_attr = {}; in ipoib_transport_dev_init() local 166 cq_attr.cqe = size; in ipoib_transport_dev_init() 167 priv->recv_cq = ib_create_cq(priv->ca, ipoib_ib_completion, NULL, priv, &cq_attr); in ipoib_transport_dev_init() 173 cq_attr.cqe = ipoib_sendq_size; in ipoib_transport_dev_init() 175 priv, &cq_attr); in ipoib_transport_dev_init()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | device.c | 177 struct ibv_cq_init_attr_ex *cq_attr) in __lib_ibv_create_cq_ex() argument 183 if (cq_attr->wc_flags & ~IBV_CREATE_CQ_SUP_WC_FLAGS) { in __lib_ibv_create_cq_ex() 188 cq = vctx->priv->create_cq_ex(context, cq_attr); in __lib_ibv_create_cq_ex() 193 cq_attr->channel, cq_attr->cq_context); in __lib_ibv_create_cq_ex()
|
H A D | cmd.c | 491 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 D | driver.h | 194 struct ibv_cq_init_attr_ex *cq_attr,
|
H A D | verbs.h | 1846 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/contrib/ofed/libmlx5/ |
H A D | verbs.c | 343 const struct ibv_cq_init_attr_ex *cq_attr, in create_cq() argument 356 if (!cq_attr->cqe) { in create_cq() 362 if (cq_attr->comp_mask & ~CREATE_CQ_SUPPORTED_COMP_MASK) { 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() 377 if (cq_attr->wc_flags & ~CREATE_CQ_SUPPORTED_WC_FLAGS) { in create_cq() 395 ncqe = align_queue_size(cq_attr->cqe + 1); in create_cq() 396 if ((ncqe > (1 << 24)) || (ncqe < (cq_attr->cqe + 1))) { in create_cq() 426 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS && in create_cq() 427 cq_attr in create_cq() 496 struct ibv_cq_init_attr_ex cq_attr = {.cqe = cqe, .channel = channel, mlx5_create_cq() local 510 mlx5_create_cq_ex(struct ibv_context * context,struct ibv_cq_init_attr_ex * cq_attr) mlx5_create_cq_ex() argument 516 mlx5dv_create_cq(struct ibv_context * context,struct ibv_cq_init_attr_ex * cq_attr,struct mlx5dv_cq_init_attr * mlx5_cq_attr) mlx5dv_create_cq() argument [all...] |
H A D | cq.c | 1243 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 D | mlx5.h | 598 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 D | mlx5dv.h | 97 struct ibv_cq_init_attr_ex *cq_attr,
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_cq.c | 92 struct ib_cq_init_attr cq_attr = { in __ib_alloc_cq_user() local 121 ret = dev->create_cq(cq, &cq_attr, NULL); in __ib_alloc_cq_user()
|
H A D | ib_verbs.c | 1530 const struct ib_cq_init_attr *cq_attr, in __ib_create_cq() argument 1547 ret = device->create_cq(cq, cq_attr, NULL); in __ib_create_cq()
|
/freebsd/sys/dev/iser/ |
H A D | iser_verbs.c | 228 struct ib_cq_init_attr cq_attr = { in iser_create_device_ib_res() local 238 &cq_attr); in iser_create_device_ib_res()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_verbs.h | 3373 const struct ib_cq_init_attr *cq_attr, 3375 #define ib_create_cq(device, cmp_hndlr, evt_hndlr, cq_ctxt, cq_attr) \ argument 3376 __ib_create_cq((device), (cmp_hndlr), (evt_hndlr), (cq_ctxt), (cq_attr), "ibcore")
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_mad.c | 1944 struct ib_cq_init_attr cq_attr = {}; in create_pv_resources() local 1973 cq_attr.cqe = cq_size; in create_pv_resources() 1975 NULL, ctx, &cq_attr); in create_pv_resources()
|
H A D | mlx4_ib_main.c | 1165 struct ib_cq_init_attr cq_attr = {}; in mlx4_ib_alloc_xrcd() local 1185 cq_attr.cqe = 1; in mlx4_ib_alloc_xrcd() 1186 xrcd->cq = ib_create_cq(ibdev, NULL, NULL, xrcd, &cq_attr); in mlx4_ib_alloc_xrcd()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 2910 struct ib_cq_init_attr cq_attr = {.cqe = 1}; in create_dev_resources() 2940 ret = mlx5_ib_create_cq(devr->c0, &cq_attr, NULL); in create_dev_resources() 2911 struct ib_cq_init_attr cq_attr = {.cqe = 1}; create_dev_resources() local
|