Lines Matching defs:cq_attr
405 struct ibv_cq_init_attr_ex *cq_attr,
415 ret = ibv_cmd_create_cq(context, cq_attr->cqe, cq_attr->channel,
416 cq_attr->comp_vector,
428 struct ibv_cq_init_attr_ex *cq_attr,
438 ret = ibv_cmd_create_cq_ex(context, cq_attr,
452 struct ibv_cq_init_attr_ex *cq_attr,
460 if (cq_attr->cqe > 0x3fffff) {
465 if (cq_attr->comp_mask & ~CREATE_CQ_SUPPORTED_COMP_MASK) {
470 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS &&
471 cq_attr->flags & ~CREATE_CQ_SUPPORTED_FLAGS) {
476 if (cq_attr->wc_flags & ~CREATE_CQ_SUPPORTED_WC_FLAGS)
482 if ((cq_attr->wc_flags & (IBV_WC_EX_WITH_SLID | IBV_WC_EX_WITH_SL)) &&
483 (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP)) {
497 cq_attr->cqe = align_queue_size(cq_attr->cqe + 1);
499 if (mlx4_alloc_cq_buf(to_mdev(context->device), &cq->buf, cq_attr->cqe, mctx->cqe_size))
513 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS &&
514 cq_attr->flags & IBV_CREATE_CQ_ATTR_SINGLE_THREADED)
517 --cq_attr->cqe;
519 ret = mlx4_cmd_create_cq_ex(context, cq_attr, cq);
521 ret = mlx4_cmd_create_cq(context, cq_attr, cq);
528 mlx4_cq_fill_pfns(cq, cq_attr);
549 struct ibv_cq_init_attr_ex cq_attr = {.cqe = cqe, .channel = channel,
553 cq = create_cq(context, &cq_attr, 0);
558 struct ibv_cq_init_attr_ex *cq_attr)
564 struct ibv_cq_init_attr_ex cq_attr_c = {.cqe = cq_attr->cqe,
565 .channel = cq_attr->channel,
566 .comp_vector = cq_attr->comp_vector,
567 .wc_flags = cq_attr->wc_flags,
568 .comp_mask = cq_attr->comp_mask,
569 .flags = cq_attr->flags};