Lines Matching refs:dev_info
212 check_port_type(struct rte_dma_info *dev_info) in check_port_type() argument
220 vchan_conf.nb_desc = dev_info->min_desc; in check_port_type()
228 vchan_conf.nb_desc = dev_info->min_desc; in check_port_type()
241 struct rte_dma_info dev_info = { 0 }; in test_dma_vchan_setup() local
253 ret = rte_dma_info_get(test_dev_id, &dev_info); in test_dma_vchan_setup()
255 dev_conf.nb_vchans = dev_info.max_vchans; in test_dma_vchan_setup()
270 vchan_conf.nb_desc = dev_info.min_desc - 1; in test_dma_vchan_setup()
273 vchan_conf.nb_desc = dev_info.max_desc + 1; in test_dma_vchan_setup()
278 ret = check_port_type(&dev_info); in test_dma_vchan_setup()
284 vchan_conf.nb_desc = dev_info.min_desc; in test_dma_vchan_setup()
295 struct rte_dma_info dev_info = { 0 }; in setup_vchan() local
299 ret = rte_dma_info_get(test_dev_id, &dev_info); in setup_vchan()
305 vchan_conf.nb_desc = dev_info.min_desc; in setup_vchan()
350 struct rte_dma_info dev_info = { 0 }; in test_dma_reconfigure() local
354 ret = rte_dma_info_get(test_dev_id, &dev_info); in test_dma_reconfigure()
358 if (dev_info.max_vchans < 2) in test_dma_reconfigure()
372 cfg_vchans = dev_conf.nb_vchans = (dev_info.max_vchans - 1); in test_dma_reconfigure()
380 ret = rte_dma_info_get(test_dev_id, &dev_info); in test_dma_reconfigure()
382 RTE_TEST_ASSERT_EQUAL(dev_info.nb_vchans, cfg_vchans, "incorrect reconfiguration"); in test_dma_reconfigure()
393 struct rte_dma_info dev_info = { 0 }; in test_dma_stats() local
410 ret = rte_dma_info_get(test_dev_id, &dev_info); in test_dma_stats()
412 ret = rte_dma_stats_get(test_dev_id, dev_info.max_vchans, &stats); in test_dma_stats()
414 ret = rte_dma_stats_reset(test_dev_id, dev_info.max_vchans); in test_dma_stats()
618 struct rte_dma_info dev_info = { 0 }; in test_dma_sg() local
624 ret = rte_dma_info_get(test_dev_id, &dev_info); in test_dma_sg()
627 if ((dev_info.dev_capa & RTE_DMA_CAPA_OPS_COPY_SG) == 0) in test_dma_sg()
630 n_sge = RTE_MIN(dev_info.max_sges, TEST_SG_MAX); in test_dma_sg()
719 struct rte_dma_info dev_info; in test_dma_api() local
721 if (rte_dma_info_get(dev_id, &dev_info) < 0) in test_dma_api()
724 printf("\n### Test dmadev infrastructure using %u [%s]\n", dev_id, dev_info.dev_name); in test_dma_api()