Lines Matching refs:cq_attr
343 const struct ibv_cq_init_attr_ex *cq_attr,
356 if (!cq_attr->cqe) {
362 if (cq_attr->comp_mask & ~CREATE_CQ_SUPPORTED_COMP_MASK) {
369 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS &&
370 cq_attr->flags & ~CREATE_CQ_SUPPORTED_FLAGS) {
377 if (cq_attr->wc_flags & ~CREATE_CQ_SUPPORTED_WC_FLAGS) {
395 ncqe = align_queue_size(cq_attr->cqe + 1);
396 if ((ncqe > (1 << 24)) || (ncqe < (cq_attr->cqe + 1))) {
426 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS &&
427 cq_attr->flags & IBV_CREATE_CQ_ATTR_SINGLE_THREADED)
455 ret = ibv_cmd_create_cq(context, ncqe - 1, cq_attr->channel,
456 cq_attr->comp_vector,
472 mlx5_cq_fill_pfns(cq, cq_attr);
496 struct ibv_cq_init_attr_ex cq_attr = {.cqe = cqe, .channel = channel,
505 cq = create_cq(context, &cq_attr, 0, NULL);
510 struct ibv_cq_init_attr_ex *cq_attr)
512 return create_cq(context, cq_attr, MLX5_CQ_FLAGS_EXTENDED, NULL);
516 struct ibv_cq_init_attr_ex *cq_attr,
521 cq = create_cq(context, cq_attr, MLX5_CQ_FLAGS_EXTENDED, mlx5_cq_attr);
526 cq_attr->channel, cq_attr->cq_context);