Searched refs:ring_index (Results 1 – 2 of 2) sorted by relevance
/lk-master/dev/virtio/ |
A D | virtio.c | 227 …RACEF("dev %p ring %u index %u free_count %u\n", dev, ring_index, desc_index, dev->ring[ring_index… 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() 230 dev->ring[ring_index].free_count++; in virtio_free_desc() 234 if (dev->ring[ring_index].free_count == 0) in virtio_alloc_desc() 239 uint16_t i = dev->ring[ring_index].free_list; in virtio_alloc_desc() 241 dev->ring[ring_index].free_list = desc->next; in virtio_alloc_desc() 243 dev->ring[ring_index].free_count--; in virtio_alloc_desc() 249 if (dev->ring[ring_index].free_count < count) in virtio_alloc_desc_chain() 260 dev->ring[ring_index].free_count--; in virtio_alloc_desc_chain() [all …]
|
/lk-master/dev/virtio/include/dev/ |
A D | virtio.h | 51 void virtio_free_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_index); 54 uint16_t virtio_alloc_desc(struct virtio_device *dev, uint ring_index); 57 struct vring_desc *virtio_alloc_desc_chain(struct virtio_device *dev, uint ring_index, size_t count… 59 … vring_desc *virtio_desc_index_to_desc(struct virtio_device *dev, uint ring_index, uint16_t desc_i… in virtio_desc_index_to_desc() argument 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);
|
Completed in 5 milliseconds