Lines Matching refs:cq_attr

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()
476 if (cq_attr->wc_flags & ~CREATE_CQ_SUPPORTED_WC_FLAGS) in create_cq()
482 if ((cq_attr->wc_flags & (IBV_WC_EX_WITH_SLID | IBV_WC_EX_WITH_SL)) && in create_cq()
483 (cq_attr->wc_flags & IBV_WC_EX_WITH_COMPLETION_TIMESTAMP)) { in create_cq()
497 cq_attr->cqe = align_queue_size(cq_attr->cqe + 1); in create_cq()
499 if (mlx4_alloc_cq_buf(to_mdev(context->device), &cq->buf, cq_attr->cqe, mctx->cqe_size)) in create_cq()
513 if (cq_attr->comp_mask & IBV_CQ_INIT_ATTR_MASK_FLAGS && in create_cq()
514 cq_attr->flags & IBV_CREATE_CQ_ATTR_SINGLE_THREADED) in create_cq()
517 --cq_attr->cqe; in create_cq()
519 ret = mlx4_cmd_create_cq_ex(context, cq_attr, cq); in create_cq()
521 ret = mlx4_cmd_create_cq(context, cq_attr, cq); in create_cq()
528 mlx4_cq_fill_pfns(cq, cq_attr); in create_cq()
552 struct ibv_cq_init_attr_ex cq_attr = {.cqe = cqe, .channel = channel, in mlx4_create_cq() local
556 cq = create_cq(context, &cq_attr, 0); in mlx4_create_cq()
561 struct ibv_cq_init_attr_ex *cq_attr) in mlx4_create_cq_ex() argument
567 struct ibv_cq_init_attr_ex cq_attr_c = {.cqe = cq_attr->cqe, in mlx4_create_cq_ex()
568 .channel = cq_attr->channel, in mlx4_create_cq_ex()
569 .comp_vector = cq_attr->comp_vector, in mlx4_create_cq_ex()
570 .wc_flags = cq_attr->wc_flags, in mlx4_create_cq_ex()
571 .comp_mask = cq_attr->comp_mask, in mlx4_create_cq_ex()
572 .flags = cq_attr->flags}; in mlx4_create_cq_ex()