Lines Matching refs:iotlb
394 vq->iotlb = NULL; in vhost_vq_reset()
599 dev->iotlb = NULL; in vhost_dev_init()
1222 vhost_iotlb_free(dev->iotlb); in vhost_dev_cleanup()
1223 dev->iotlb = NULL; in vhost_dev_cleanup()
1328 if (!vq->iotlb) in vhost_copy_to_user()
1363 if (!vq->iotlb) in vhost_copy_from_user()
1444 if (!vq->iotlb) { \
1489 if (!vq->iotlb) { \
1595 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq()
1637 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1646 if (vhost_iotlb_add_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1655 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1660 vhost_iotlb_del_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1692 offset = offsetof(struct vhost_msg, iotlb) - sizeof(int); in vhost_chr_write_iter()
1780 if (!dev->iotlb) { in vhost_chr_read_iter()
1798 msg = &node->msg.iotlb; in vhost_chr_read_iter()
1802 msg = &node->msg_v2.iotlb; in vhost_chr_read_iter()
1834 msg = &node->msg_v2.iotlb; in vhost_iotlb_miss()
1836 msg = &node->msg.iotlb; in vhost_iotlb_miss()
1856 if (vq->iotlb) in vq_access_ok()
1879 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1913 if (!vq->iotlb) in vq_meta_prefetch()
1941 if (vq->iotlb) in vq_log_used_access_ok()
2282 oiotlb = d->iotlb; in vhost_init_device_iotlb()
2283 d->iotlb = niotlb; in vhost_init_device_iotlb()
2289 vq->iotlb = niotlb; in vhost_init_device_iotlb()
2504 if (!vq->iotlb) in log_used()
2543 if (vq->iotlb) { in vhost_log_write()
2621 if (!vq->iotlb && in vhost_vq_init_access()
2646 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
2660 if (umem != dev->iotlb) { in translate_desc()