| 1655 | } |
| 1656 | |
| 1657 | static void |
| 1658 | crypto_task_invoke(void *ctx, int pending) |
| 1659 | { |
| 1660 | struct cryptocap *cap; |
| 1661 | struct cryptop *crp; |
| 1662 | int result; |
| 1663 | |
| 1664 | crp = (struct cryptop *)ctx; |
| 1665 | cap = crp->crp_session->cap; |
| 1666 | result = crypto_invoke(cap, crp, 0); |
| 1667 | if (result == ERESTART) |
| 1668 | crypto_batch_enqueue(crp); |
| 1669 | } |
| 1670 | |
| 1671 | /* |
| 1672 | * Dispatch a crypto request to the appropriate crypto devices. |
nothing calls this directly
no test coverage detected