Lines Matching refs:cqp
34 enqueue_cop_bulk(struct cdev_qp *cqp, struct rte_crypto_op *cop[], uint32_t num) in enqueue_cop_bulk() argument
38 len = cqp->len; in enqueue_cop_bulk()
44 if (num >= RTE_DIM(cqp->buf) * 3 / 4 && len == 0) { in enqueue_cop_bulk()
45 n = rte_cryptodev_enqueue_burst(cqp->id, cqp->qp, cop, num); in enqueue_cop_bulk()
46 cqp->in_flight += n; in enqueue_cop_bulk()
54 n = RTE_DIM(cqp->buf) - len; in enqueue_cop_bulk()
59 cqp->buf[len + i] = cop[k + i]; in enqueue_cop_bulk()
65 if (len == RTE_DIM(cqp->buf)) { in enqueue_cop_bulk()
66 n = rte_cryptodev_enqueue_burst(cqp->id, cqp->qp, in enqueue_cop_bulk()
67 cqp->buf, len); in enqueue_cop_bulk()
68 cqp->in_flight += n; in enqueue_cop_bulk()
69 free_cops(cqp->buf + n, len - n); in enqueue_cop_bulk()
76 cqp->len = len; in enqueue_cop_bulk()
185 struct cdev_qp *cqp; in ipsec_prepare_crypto_group() local
190 cqp = &ctx->tbl[sa->cdev_id_qp]; in ipsec_prepare_crypto_group()
206 enqueue_cop_bulk(cqp, cop, k); in ipsec_prepare_crypto_group()
333 cqp_dequeue(struct cdev_qp *cqp, struct rte_crypto_op *cop[], uint32_t num) in cqp_dequeue() argument
337 if (cqp->in_flight == 0) in cqp_dequeue()
340 n = rte_cryptodev_dequeue_burst(cqp->id, cqp->qp, cop, num); in cqp_dequeue()
341 RTE_ASSERT(cqp->in_flight >= n); in cqp_dequeue()
342 cqp->in_flight -= n; in cqp_dequeue()