Lines Matching refs:umem

404 	vq->umem = NULL;  in vhost_vq_reset()
606 dev->umem = NULL; in vhost_dev_init()
1166 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *umem) in vhost_dev_reset_owner() argument
1173 dev->umem = umem; in vhost_dev_reset_owner()
1178 dev->vqs[i]->umem = umem; in vhost_dev_reset_owner()
1248 vhost_iotlb_free(dev->umem); in vhost_dev_cleanup()
1249 dev->umem = NULL; in vhost_dev_cleanup()
1285 static bool vq_memory_access_ok(void __user *log_base, struct vhost_iotlb *umem, in vq_memory_access_ok() argument
1290 if (!umem) in vq_memory_access_ok()
1293 list_for_each_entry(map, &umem->list, link) { in vq_memory_access_ok()
1324 static bool memory_access_ok(struct vhost_dev *d, struct vhost_iotlb *umem, in memory_access_ok() argument
1338 umem, log); in memory_access_ok()
1926 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok() local
1933 map = vhost_iotlb_itree_first(umem, addr, last); in iotlb_access_ok()
1984 return memory_access_ok(dev, dev->umem, 1); in vhost_log_access_ok()
2007 return vq_memory_access_ok(log_base, vq->umem, in vq_log_access_ok()
2071 oldumem = d->umem; in vhost_set_memory()
2072 d->umem = newumem; in vhost_set_memory()
2077 d->vqs[i]->umem = newumem; in vhost_set_memory()
2565 struct vhost_iotlb *umem = vq->umem; in log_write_hva() local
2576 list_for_each_entry(u, &umem->list, link) { in log_write_hva()
2749 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc() local
2761 map = vhost_iotlb_itree_first(umem, addr, last); in translate_desc()
2763 if (umem != dev->iotlb) { in translate_desc()