Lines Matching refs:qp_id
87 int qp_id; in null_crypto_pmd_stats_get() local
89 for (qp_id = 0; qp_id < dev->data->nb_queue_pairs; qp_id++) { in null_crypto_pmd_stats_get()
90 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_stats_get()
104 int qp_id; in null_crypto_pmd_stats_reset() local
106 for (qp_id = 0; qp_id < dev->data->nb_queue_pairs; qp_id++) { in null_crypto_pmd_stats_reset()
107 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_stats_reset()
133 null_crypto_pmd_qp_release(struct rte_cryptodev *dev, uint16_t qp_id) in null_crypto_pmd_qp_release() argument
135 if (dev->data->queue_pairs[qp_id] != NULL) { in null_crypto_pmd_qp_release()
136 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_qp_release()
140 rte_free(dev->data->queue_pairs[qp_id]); in null_crypto_pmd_qp_release()
141 dev->data->queue_pairs[qp_id] = NULL; in null_crypto_pmd_qp_release()
189 null_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id, in null_crypto_pmd_qp_setup() argument
197 if (qp_id >= internals->max_nb_qpairs) { in null_crypto_pmd_qp_setup()
200 qp_id, internals->max_nb_qpairs); in null_crypto_pmd_qp_setup()
205 if (dev->data->queue_pairs[qp_id] != NULL) in null_crypto_pmd_qp_setup()
206 null_crypto_pmd_qp_release(dev, qp_id); in null_crypto_pmd_qp_setup()
216 qp->id = qp_id; in null_crypto_pmd_qp_setup()
217 dev->data->queue_pairs[qp_id] = qp; in null_crypto_pmd_qp_setup()