Lines Matching refs:vchan_conf
187 struct rte_dma_vchan_conf vchan_conf; in check_direction() local
191 memset(&vchan_conf, 0, sizeof(vchan_conf)); in check_direction()
192 vchan_conf.direction = RTE_DMA_DIR_DEV_TO_DEV + 1; in check_direction()
193 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_direction()
195 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM - 1; in check_direction()
196 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_direction()
200 memset(&vchan_conf, 0, sizeof(vchan_conf)); in check_direction()
201 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_DEV; in check_direction()
202 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_direction()
204 vchan_conf.direction = RTE_DMA_DIR_DEV_TO_MEM; in check_direction()
205 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_direction()
207 vchan_conf.direction = RTE_DMA_DIR_DEV_TO_DEV; in check_direction()
208 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_direction()
217 struct rte_dma_vchan_conf vchan_conf; in check_port_type() local
221 memset(&vchan_conf, 0, sizeof(vchan_conf)); in check_port_type()
222 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM; in check_port_type()
223 vchan_conf.nb_desc = dev_info->min_desc; in check_port_type()
224 vchan_conf.src_port.port_type = RTE_DMA_PORT_PCIE; in check_port_type()
225 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_port_type()
229 memset(&vchan_conf, 0, sizeof(vchan_conf)); in check_port_type()
230 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM; in check_port_type()
231 vchan_conf.nb_desc = dev_info->min_desc; in check_port_type()
232 vchan_conf.dst_port.port_type = RTE_DMA_PORT_PCIE; in check_port_type()
233 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in check_port_type()
242 struct rte_dma_vchan_conf vchan_conf = { 0 }; in test_dma_vchan_setup() local
248 ret = rte_dma_vchan_setup(invalid_dev_id, 0, &vchan_conf); in test_dma_vchan_setup()
252 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in test_dma_vchan_setup()
263 ret = rte_dma_vchan_setup(test_dev_id, dev_conf.nb_vchans, &vchan_conf); in test_dma_vchan_setup()
271 memset(&vchan_conf, 0, sizeof(vchan_conf)); in test_dma_vchan_setup()
272 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM; in test_dma_vchan_setup()
273 vchan_conf.nb_desc = dev_info.min_desc - 1; in test_dma_vchan_setup()
274 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in test_dma_vchan_setup()
276 vchan_conf.nb_desc = dev_info.max_desc + 1; in test_dma_vchan_setup()
277 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in test_dma_vchan_setup()
285 memset(&vchan_conf, 0, sizeof(vchan_conf)); in test_dma_vchan_setup()
286 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM; in test_dma_vchan_setup()
287 vchan_conf.nb_desc = dev_info.min_desc; in test_dma_vchan_setup()
288 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in test_dma_vchan_setup()
297 struct rte_dma_vchan_conf vchan_conf = { 0 }; in setup_one_vchan() local
307 vchan_conf.direction = RTE_DMA_DIR_MEM_TO_MEM; in setup_one_vchan()
308 vchan_conf.nb_desc = dev_info.min_desc; in setup_one_vchan()
309 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in setup_one_vchan()
318 struct rte_dma_vchan_conf vchan_conf = { 0 }; in test_dma_start_stop() local
338 ret = rte_dma_vchan_setup(test_dev_id, 0, &vchan_conf); in test_dma_start_stop()