MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dpaa2_qdma_dequeue

Function dpaa2_qdma_dequeue

dpdk/drivers/dma/dpaa2/dpaa2_qdma.c:1074–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074static uint16_t
1075dpaa2_qdma_dequeue(void *dev_private,
1076 uint16_t vchan, const uint16_t nb_cpls,
1077 uint16_t *last_idx, bool *has_error)
1078{
1079 struct dpaa2_dpdmai_dev *dpdmai_dev = dev_private;
1080 struct qdma_device *qdma_dev = dpdmai_dev->qdma_dev;
1081 struct qdma_virt_queue *qdma_vq = &qdma_dev->vqs[vchan];
1082 struct rte_dpaa2_qdma_job *jobs[DPAA2_QDMA_MAX_DESC];
1083 int ret;
1084
1085 RTE_SET_USED(has_error);
1086
1087 ret = dpaa2_qdma_dequeue_multi(qdma_dev, qdma_vq,
1088 jobs, nb_cpls);
1089
1090 rte_mempool_put_bulk(qdma_vq->job_pool, (void **)jobs, ret);
1091
1092 if (last_idx != NULL)
1093 *last_idx = (uint16_t)(qdma_vq->num_dequeues - 1);
1094
1095 return ret;
1096}
1097
1098uint16_t
1099rte_dpaa2_qdma_completed_multi(int16_t dev_id, uint16_t vchan,

Callers

nothing calls this directly

Calls 2

dpaa2_qdma_dequeue_multiFunction · 0.85
rte_mempool_put_bulkFunction · 0.85

Tested by

no test coverage detected