static inline void vring_set_avail_event(VirtQueue *vq, uint16_t val)

{

    VRingMemoryRegionCaches *caches;

    hwaddr pa;

    if (!vq->notification) {

        return;

    }



    caches = atomic_rcu_read(&vq->vring.caches);

    pa = offsetof(VRingUsed, ring[vq->vring.num]);

    virtio_stw_phys_cached(vq->vdev, &caches->used, pa, val);

    address_space_cache_invalidate(&caches->used, pa, sizeof(val));

}

static inline void vring_set_avail_event(VirtQueue *vq, uint16_t val)

{

    VRingMemoryRegionCaches *caches;

    hwaddr pa;

    if (!vq->notification) {

        return;

    }



    caches = atomic_rcu_read(&vq->vring.caches);

    pa = offsetof(VRingUsed, ring[vq->vring.num]);

    virtio_stw_phys_cached(vq->vdev, &caches->used, pa, val);

    address_space_cache_invalidate(&caches->used, pa, sizeof(val));

}

    caches = atomic_rcu_read(&vq->vring.caches);     caches = atomic_rcu_read(&vq->vring.caches);     caches = atomic_rcu_read(&vq->vring.caches);
static inline void FUNC_0(VirtQueue *VAR_0, uint16_t VAR_1)

{

    VRingMemoryRegionCaches *caches;

    hwaddr pa;

    if (!VAR_0->notification) {

        return;

    }



    caches = atomic_rcu_read(&VAR_0->vring.caches);

    pa = offsetof(VRingUsed, ring[VAR_0->vring.num]);

    virtio_stw_phys_cached(VAR_0->vdev, &caches->used, pa, VAR_1);

    address_space_cache_invalidate(&caches->used, pa, sizeof(VAR_1));

}

static inline void FUNC_0(VirtQueue *VAR_0, uint16_t VAR_1)
{ VRingMemoryRegionCaches *caches; hwaddr pa; if (!VAR_0->notification) { return; } caches = atomic_rcu_read(&VAR_0->vring.caches); pa = offsetof(VRingUsed, ring[VAR_0->vring.num]); virtio_stw_phys_cached(VAR_0->vdev, &caches->used, pa, VAR_1); address_space_cache_invalidate(&caches->used, pa, sizeof(VAR_1)); }