| 23 | } |
| 24 | |
| 25 | struct cryptodev * |
| 26 | cryptodev_find(const char *name) |
| 27 | { |
| 28 | struct cryptodev *cryptodev; |
| 29 | |
| 30 | if (name == NULL) |
| 31 | return NULL; |
| 32 | |
| 33 | TAILQ_FOREACH(cryptodev, &cryptodev_list, node) |
| 34 | if (strcmp(cryptodev->name, name) == 0) |
| 35 | return cryptodev; |
| 36 | |
| 37 | return NULL; |
| 38 | } |
| 39 | |
| 40 | struct cryptodev * |
| 41 | cryptodev_next(struct cryptodev *cryptodev) |
no test coverage detected