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()
816 if (!vq->iotlb) in vhost_copy_to_user()
851 if (!vq->iotlb) in vhost_copy_from_user()
932 if (!vq->iotlb) { \
977 if (!vq->iotlb) { \
1057 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq()
1096 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1105 if (vhost_iotlb_add_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1114 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1119 vhost_iotlb_del_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1150 offset = offsetof(struct vhost_msg, iotlb) - sizeof(int); in vhost_chr_write_iter()
1224 if (!dev->iotlb) { in vhost_chr_read_iter()
1242 msg = &node->msg.iotlb; in vhost_chr_read_iter()
1246 msg = &node->msg_v2.iotlb; in vhost_chr_read_iter()
1278 msg = &node->msg_v2.iotlb; in vhost_iotlb_miss()
1280 msg = &node->msg.iotlb; in vhost_iotlb_miss()
1300 if (vq->iotlb) in vq_access_ok()
1323 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1357 if (!vq->iotlb) in vq_meta_prefetch()
1385 if (vq->iotlb) in vq_log_used_access_ok()
1723 oiotlb = d->iotlb; in vhost_init_device_iotlb()
1724 d->iotlb = niotlb; in vhost_init_device_iotlb()
1730 vq->iotlb = niotlb; in vhost_init_device_iotlb()
1906 if (!vq->iotlb) in log_used()
1932 if (vq->iotlb) { in vhost_log_write()
2011 if (!vq->iotlb && in vhost_vq_init_access()
2036 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
2050 if (umem != dev->iotlb) { in translate_desc()