Home
last modified time | relevance | path

Searched refs:desc_index (Results 1 – 2 of 2) sorted by relevance

/lk-master/dev/virtio/include/dev/
A Dvirtio.h51 void virtio_free_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_index);
59 …_desc *virtio_desc_index_to_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_index) { in virtio_desc_index_to_desc() argument
60 DEBUG_ASSERT(desc_index != 0xffff); in virtio_desc_index_to_desc()
61 return &dev->ring[ring_index].desc[desc_index]; in virtio_desc_index_to_desc()
67 void virtio_submit_chain(struct virtio_device *dev, uint ring_index, uint16_t desc_index);
/lk-master/dev/virtio/
A Dvirtio.c226 void virtio_free_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_index) { in virtio_free_desc() argument
227 …LTRACEF("dev %p ring %u index %u free_count %u\n", dev, ring_index, desc_index, dev->ring[ring_ind… in virtio_free_desc()
228 dev->ring[ring_index].desc[desc_index].next = dev->ring[ring_index].free_list; in virtio_free_desc()
229 dev->ring[ring_index].free_list = desc_index; in virtio_free_desc()
281 void virtio_submit_chain(struct virtio_device *dev, uint ring_index, uint16_t desc_index) { in virtio_submit_chain() argument
282 LTRACEF("dev %p, ring %u, desc %u\n", dev, ring_index, desc_index); in virtio_submit_chain()
287 avail->ring[avail->idx & dev->ring[ring_index].num_mask] = desc_index; in virtio_submit_chain()

Completed in 19 milliseconds