Lines Matching refs:iotlb
339 vq->iotlb = NULL; in vhost_vq_reset()
482 dev->iotlb = NULL; in vhost_dev_init()
711 vhost_iotlb_free(dev->iotlb); in vhost_dev_cleanup()
712 dev->iotlb = NULL; in vhost_dev_cleanup()
822 if (!vq->iotlb) in vhost_copy_to_user()
857 if (!vq->iotlb) in vhost_copy_from_user()
938 if (!vq->iotlb) { \
983 if (!vq->iotlb) { \
1063 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq()
1102 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1111 if (vhost_iotlb_add_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1120 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1125 vhost_iotlb_del_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1156 offset = offsetof(struct vhost_msg, iotlb) - sizeof(int); in vhost_chr_write_iter()
1230 if (!dev->iotlb) { in vhost_chr_read_iter()
1248 msg = &node->msg.iotlb; in vhost_chr_read_iter()
1252 msg = &node->msg_v2.iotlb; in vhost_chr_read_iter()
1284 msg = &node->msg_v2.iotlb; in vhost_iotlb_miss()
1286 msg = &node->msg.iotlb; in vhost_iotlb_miss()
1306 if (vq->iotlb) in vq_access_ok()
1329 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1363 if (!vq->iotlb) in vq_meta_prefetch()
1391 if (vq->iotlb) in vq_log_used_access_ok()
1729 oiotlb = d->iotlb; in vhost_init_device_iotlb()
1730 d->iotlb = niotlb; in vhost_init_device_iotlb()
1736 vq->iotlb = niotlb; in vhost_init_device_iotlb()
1912 if (!vq->iotlb) in log_used()
1938 if (vq->iotlb) { in vhost_log_write()
2017 if (!vq->iotlb && in vhost_vq_init_access()
2042 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
2056 if (umem != dev->iotlb) { in translate_desc()