| 281 | } |
| 282 | |
| 283 | static inline void |
| 284 | vring_desc_init_packed(struct virtqueue *vq, int n) |
| 285 | { |
| 286 | int i; |
| 287 | for (i = 0; i < n - 1; i++) { |
| 288 | vq->vq_packed.ring.desc[i].id = i; |
| 289 | vq->vq_descx[i].next = i + 1; |
| 290 | } |
| 291 | vq->vq_packed.ring.desc[i].id = i; |
| 292 | vq->vq_descx[i].next = VQ_RING_DESC_CHAIN_END; |
| 293 | } |
| 294 | |
| 295 | /* Chain all the descriptors in the ring with an END */ |
| 296 | static inline void |
no outgoing calls
no test coverage detected