Lines Matching refs:iotlb
328 vq->iotlb = NULL; in vhost_vq_reset()
426 dev->iotlb = NULL; in vhost_dev_init()
633 vhost_umem_clean(dev->iotlb); in vhost_dev_cleanup()
634 dev->iotlb = NULL; in vhost_dev_cleanup()
740 if (!vq->iotlb) in vhost_copy_to_user()
775 if (!vq->iotlb) in vhost_copy_from_user()
856 if (!vq->iotlb) { \
873 if (!vq->iotlb) { \
953 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq()
992 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1001 if (vhost_new_umem_range(dev->iotlb, msg->iova, msg->size, in vhost_process_iotlb_msg()
1010 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1015 vhost_del_umem_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1044 offset = offsetof(struct vhost_msg, iotlb) - sizeof(int); in vhost_chr_write_iter()
1111 if (!dev->iotlb) { in vhost_chr_read_iter()
1129 msg = &node->msg.iotlb; in vhost_chr_read_iter()
1133 msg = &node->msg_v2.iotlb; in vhost_chr_read_iter()
1165 msg = &node->msg_v2.iotlb; in vhost_iotlb_miss()
1167 msg = &node->msg.iotlb; in vhost_iotlb_miss()
1209 struct vhost_umem *umem = vq->iotlb; in iotlb_access_ok()
1246 if (!vq->iotlb) in vq_iotlb_prefetch()
1292 if (vq->iotlb) in vhost_vq_access_ok()
1594 oiotlb = d->iotlb; in vhost_init_device_iotlb()
1595 d->iotlb = niotlb; in vhost_init_device_iotlb()
1601 vq->iotlb = niotlb; in vhost_init_device_iotlb()
1814 if (!vq->iotlb && in vhost_vq_init_access()
1839 struct vhost_umem *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
1854 if (umem != dev->iotlb) { in translate_desc()