Lines Matching refs:cqe
415 ret = ibv_cmd_create_cq(context, cq_attr->cqe, cq_attr->channel, 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()
499 if (mlx4_alloc_cq_buf(to_mdev(context->device), &cq->buf, cq_attr->cqe, mctx->cqe_size)) in create_cq()
517 --cq_attr->cqe; in create_cq()
547 struct ibv_cq *mlx4_create_cq(struct ibv_context *context, int cqe, in mlx4_create_cq() argument
552 struct ibv_cq_init_attr_ex cq_attr = {.cqe = cqe, .channel = channel, in mlx4_create_cq()
567 struct ibv_cq_init_attr_ex cq_attr_c = {.cqe = cq_attr->cqe, in mlx4_create_cq_ex()
577 int mlx4_resize_cq(struct ibv_cq *ibcq, int cqe) in mlx4_resize_cq() argument
586 if (cqe > 0x3fffff) in mlx4_resize_cq()
591 cqe = align_queue_size(cqe + 1); in mlx4_resize_cq()
592 if (cqe == ibcq->cqe + 1) { in mlx4_resize_cq()
599 if (cqe < outst_cqe + 1) { in mlx4_resize_cq()
604 ret = mlx4_alloc_cq_buf(to_mdev(ibcq->context->device), &buf, cqe, cq->cqe_size); in mlx4_resize_cq()
608 old_cqe = ibcq->cqe; in mlx4_resize_cq()
611 ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd, in mlx4_resize_cq()