Return pointer to device structure, with validity check */
| 102 | |
| 103 | /* Return pointer to device structure, with validity check */ |
| 104 | static struct rte_bbdev * |
| 105 | get_dev(uint16_t dev_id) |
| 106 | { |
| 107 | if (rte_bbdev_is_valid(dev_id)) |
| 108 | return &rte_bbdev_devices[dev_id]; |
| 109 | return NULL; |
| 110 | } |
| 111 | |
| 112 | /* Allocate global data array */ |
| 113 | static int |
no test coverage detected