| 472 | } |
| 473 | |
| 474 | static __rte_always_inline struct vhost_crypto_desc * |
| 475 | find_write_desc(struct vhost_crypto_desc *head, struct vhost_crypto_desc *desc, |
| 476 | uint32_t max_n_descs) |
| 477 | { |
| 478 | if (desc < head) |
| 479 | return NULL; |
| 480 | |
| 481 | while (desc - head < (int)max_n_descs) { |
| 482 | if (desc->flags & VRING_DESC_F_WRITE) |
| 483 | return desc; |
| 484 | desc++; |
| 485 | } |
| 486 | |
| 487 | return NULL; |
| 488 | } |
| 489 | |
| 490 | static __rte_always_inline struct virtio_crypto_inhdr * |
| 491 | reach_inhdr(struct vhost_crypto_data_req *vc_req, |
no outgoing calls
no test coverage detected