| 54 | } |
| 55 | |
| 56 | int16_t |
| 57 | rte_dma_next_dev(int16_t start_dev_id) |
| 58 | { |
| 59 | int16_t dev_id = start_dev_id; |
| 60 | while (dev_id < dma_devices_max && rte_dma_devices[dev_id].state == RTE_DMA_DEV_UNUSED) |
| 61 | dev_id++; |
| 62 | |
| 63 | if (dev_id < dma_devices_max) |
| 64 | return dev_id; |
| 65 | |
| 66 | return -1; |
| 67 | } |
| 68 | |
| 69 | static int |
| 70 | dma_check_name(const char *name) |