Lines Matching refs:dma_id

1815 rte_vhost_async_dma_configure(int16_t dma_id, uint16_t vchan_id)  in rte_vhost_async_dma_configure()  argument
1821 if (!rte_dma_is_valid(dma_id)) { in rte_vhost_async_dma_configure()
1822 VHOST_LOG_CONFIG(ERR, "DMA %d is not found.\n", dma_id); in rte_vhost_async_dma_configure()
1826 rte_dma_info_get(dma_id, &info); in rte_vhost_async_dma_configure()
1828 VHOST_LOG_CONFIG(ERR, "Invalid DMA %d vChannel %u.\n", dma_id, vchan_id); in rte_vhost_async_dma_configure()
1832 if (!dma_copy_track[dma_id].vchans) { in rte_vhost_async_dma_configure()
1839 dma_id, vchan_id); in rte_vhost_async_dma_configure()
1843 dma_copy_track[dma_id].vchans = vchans; in rte_vhost_async_dma_configure()
1846 if (dma_copy_track[dma_id].vchans[vchan_id].pkts_cmpl_flag_addr) { in rte_vhost_async_dma_configure()
1847 VHOST_LOG_CONFIG(INFO, "DMA %d vChannel %u already registered.\n", dma_id, in rte_vhost_async_dma_configure()
1859 "vChannel %u.\n", dma_id, vchan_id); in rte_vhost_async_dma_configure()
1861 if (dma_copy_track[dma_id].nr_vchans == 0) { in rte_vhost_async_dma_configure()
1862 rte_free(dma_copy_track[dma_id].vchans); in rte_vhost_async_dma_configure()
1863 dma_copy_track[dma_id].vchans = NULL; in rte_vhost_async_dma_configure()
1868 dma_copy_track[dma_id].vchans[vchan_id].pkts_cmpl_flag_addr = pkts_cmpl_flag_addr; in rte_vhost_async_dma_configure()
1869 dma_copy_track[dma_id].vchans[vchan_id].ring_size = max_desc; in rte_vhost_async_dma_configure()
1870 dma_copy_track[dma_id].vchans[vchan_id].ring_mask = max_desc - 1; in rte_vhost_async_dma_configure()
1871 dma_copy_track[dma_id].nr_vchans++; in rte_vhost_async_dma_configure()