Searched refs:vhost_has_feature (Results 1 – 4 of 4) sorted by relevance
/linux-4.1.27/drivers/vhost/ |
D | vhost.h | 171 static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) in vhost_has_feature() function 179 return __virtio16_to_cpu(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in vhost16_to_cpu() 184 return __cpu_to_virtio16(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in cpu_to_vhost16() 189 return __virtio32_to_cpu(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in vhost32_to_cpu() 194 return __cpu_to_virtio32(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in cpu_to_vhost32() 199 return __virtio64_to_cpu(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in vhost64_to_cpu() 204 return __cpu_to_virtio64(vhost_has_feature(vq, VIRTIO_F_VERSION_1), val); in cpu_to_vhost64()
|
D | vhost.c | 536 log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); in memory_access_ok() 554 size_t s = vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0; in vq_access_ok() 575 size_t s = vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0; in vq_log_access_ok() 578 vhost_has_feature(vq, VHOST_F_LOG_ALL)) && in vq_log_access_ok() 1458 if (vhost_has_feature(vq, VIRTIO_F_NOTIFY_ON_EMPTY) && in vhost_notify() 1462 if (!vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX)) { in vhost_notify() 1523 if (!vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX)) { in vhost_enable_notify() 1560 if (!vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX)) { in vhost_disable_notify()
|
D | net.c | 553 vq_log = unlikely(vhost_has_feature(vq, VHOST_F_LOG_ALL)) ? in handle_rx() 555 mergeable = vhost_has_feature(vq, VIRTIO_NET_F_MRG_RXBUF); in handle_rx()
|
D | scsi.c | 1020 bool t10_pi = vhost_has_feature(vq, VIRTIO_SCSI_F_T10_PI); in vhost_scsi_handle_vq() 1772 if (vhost_has_feature(vq, VIRTIO_SCSI_F_HOTPLUG)) in vhost_scsi_do_plug()
|