Lines Matching refs:iotlb
389 vq->iotlb = NULL; in vhost_vq_reset()
518 dev->iotlb = NULL; in vhost_dev_init()
991 vhost_iotlb_free(dev->iotlb); in vhost_dev_cleanup()
992 dev->iotlb = NULL; in vhost_dev_cleanup()
1097 if (!vq->iotlb) in vhost_copy_to_user()
1132 if (!vq->iotlb) in vhost_copy_from_user()
1213 if (!vq->iotlb) { \
1258 if (!vq->iotlb) { \
1338 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq()
1380 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1389 if (vhost_iotlb_add_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1398 if (!dev->iotlb) { in vhost_process_iotlb_msg()
1403 vhost_iotlb_del_range(dev->iotlb, msg->iova, in vhost_process_iotlb_msg()
1435 offset = offsetof(struct vhost_msg, iotlb) - sizeof(int); in vhost_chr_write_iter()
1523 if (!dev->iotlb) { in vhost_chr_read_iter()
1541 msg = &node->msg.iotlb; in vhost_chr_read_iter()
1545 msg = &node->msg_v2.iotlb; in vhost_chr_read_iter()
1577 msg = &node->msg_v2.iotlb; in vhost_iotlb_miss()
1579 msg = &node->msg.iotlb; in vhost_iotlb_miss()
1599 if (vq->iotlb) in vq_access_ok()
1622 struct vhost_iotlb *umem = vq->iotlb; in iotlb_access_ok()
1656 if (!vq->iotlb) in vq_meta_prefetch()
1684 if (vq->iotlb) in vq_log_used_access_ok()
2024 oiotlb = d->iotlb; in vhost_init_device_iotlb()
2025 d->iotlb = niotlb; in vhost_init_device_iotlb()
2031 vq->iotlb = niotlb; in vhost_init_device_iotlb()
2207 if (!vq->iotlb) in log_used()
2233 if (vq->iotlb) { in vhost_log_write()
2312 if (!vq->iotlb && in vhost_vq_init_access()
2337 struct vhost_iotlb *umem = dev->iotlb ? dev->iotlb : dev->umem; in translate_desc()
2351 if (umem != dev->iotlb) { in translate_desc()