1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (C) 2019 Marvell International Ltd.
4 #include <rte_cryptodev.h>
6 #include "otx2_cryptodev.h"
7 #include "otx2_cryptodev_mbox.h"
12 otx2_cpt_available_queues_get(const struct rte_cryptodev *dev,
15 struct otx2_cpt_vf *vf = dev->data->dev_private;
16 struct otx2_dev *otx2_dev = &vf->otx2_dev;
17 struct free_rsrcs_rsp *rsp;
20 otx2_mbox_alloc_msg_free_rsrc_cnt(otx2_dev->mbox);
22 ret = otx2_mbox_process_msg(otx2_dev->mbox, (void *)&rsp);
26 *nb_queues = rsp->cpt;