Home
last modified time | relevance | path

Searched refs:virtio_has_feature (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/virtio/
H A Dvirtio_balloon.c239 if (!virtio_has_feature(vb->vdev, in fill_balloon()
260 if (!virtio_has_feature(vb->vdev, in release_pages_balloon()
516 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
526 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) { in init_vqs()
538 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
563 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) in init_vqs()
899 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtballoon_probe()
939 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) { in virtballoon_probe()
960 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) { in virtballoon_probe()
1004 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) in virtballoon_probe()
[all …]
H A Dvirtio.c178 if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1)) { in virtio_features_ok()
184 if (!virtio_has_feature(dev, VIRTIO_F_ACCESS_PLATFORM)) { in virtio_features_ok()
191 if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1)) in virtio_features_ok()
H A Dvirtio_ring.c2096 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && in vring_create_virtqueue_packed()
2098 vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); in vring_create_virtqueue_packed()
2100 if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) in vring_create_virtqueue_packed()
2615 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in __vring_new_virtqueue()
2641 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && in __vring_new_virtqueue()
2643 vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); in __vring_new_virtqueue()
2645 if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) in __vring_new_virtqueue()
2678 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in vring_create_virtqueue()
2703 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in vring_create_virtqueue_dma()
2862 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in vring_new_virtqueue()
/openbmc/linux/tools/virtio/linux/
H A Dvirtio_config.h46 #define virtio_has_feature(dev, feature) \ macro
59 return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM); in virtio_has_dma_quirk()
64 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian()
/openbmc/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_kms.c130 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtio_gpu_init()
163 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_VIRGL)) in virtio_gpu_init()
166 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_EDID)) { in virtio_gpu_init()
169 if (virtio_has_feature(vgdev->vdev, VIRTIO_RING_F_INDIRECT_DESC)) { in virtio_gpu_init()
172 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_RESOURCE_UUID)) { in virtio_gpu_init()
175 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_RESOURCE_BLOB)) { in virtio_gpu_init()
197 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_CONTEXT_INIT)) { in virtio_gpu_init()
/openbmc/qemu/hw/virtio/
H A Dvhost-user.c1014 virtio_has_feature(dev->protocol_features, in vhost_user_set_mem_table()
1441 if (virtio_has_feature(dev->protocol_features, in vhost_user_set_features()
1496 if (!virtio_has_feature(dev->protocol_features, in vhost_user_reset_device()
1554 if (!virtio_has_feature(dev->protocol_features, in vhost_user_backend_handle_vring_host_notifier()
1867 if (!virtio_has_feature(dev->protocol_features, in vhost_setup_backend_channel()
2258 !virtio_has_feature(dev->protocol_features, in vhost_user_backend_init()
2344 if (virtio_has_feature(dev->protocol_features, in vhost_user_migration_done()
2423 if (!virtio_has_feature(dev->protocol_features, in vhost_user_get_config()
2476 if (!virtio_has_feature(dev->protocol_features, in vhost_user_set_config()
2660 if (!virtio_has_feature(dev->protocol_features, in vhost_user_get_inflight_fd()
[all …]
H A Dvirtio-balloon.c699 if (virtio_has_feature(features, VIRTIO_BALLOON_F_PAGE_POISON)) { in virtio_balloon_config_size()
702 if (virtio_has_feature(features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_config_size()
871 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT) && in virtio_balloon_device_realize()
882 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_device_realize()
893 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_REPORTING)) { in virtio_balloon_device_realize()
H A Dvhost-vsock-common.c41 !virtio_has_feature(features, VIRTIO_VSOCK_F_SEQPACKET)) { in vhost_vsock_common_get_features()
H A Dvdpa-dev.c230 if (!virtio_has_feature(features, VIRTIO_F_IOMMU_PLATFORM)) { in vhost_vdpa_device_get_features()
/openbmc/linux/drivers/bluetooth/
H A Dvirtio_bt.c270 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtbt_probe()
312 if (virtio_has_feature(vdev, VIRTIO_BT_F_VND_HCI)) { in virtbt_probe()
315 if (virtio_has_feature(vdev, VIRTIO_BT_F_CONFIG_V2)) in virtbt_probe()
350 if (virtio_has_feature(vdev, VIRTIO_BT_F_MSFT_EXT)) { in virtbt_probe()
353 if (virtio_has_feature(vdev, VIRTIO_BT_F_CONFIG_V2)) in virtbt_probe()
363 if (virtio_has_feature(vdev, VIRTIO_BT_F_AOSP_EXT)) in virtbt_probe()
/openbmc/linux/drivers/net/
H A Dvirtio_net.c4326 if (!virtio_has_feature(vdev, fbit)) in virtnet_fail_on_feature()
4378 if (virtio_has_feature(vdev, VIRTIO_NET_F_MTU)) { in virtnet_validate()
4387 !virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) { in virtnet_validate()
4429 if (virtio_has_feature(vdev, VIRTIO_NET_F_MQ) || virtio_has_feature(vdev, VIRTIO_NET_F_RSS)) in virtnet_probe()
4454 if (virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) { in virtnet_probe()
4460 if (virtio_has_feature(vdev, VIRTIO_NET_F_GSO)) { in virtnet_probe()
4504 if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) { in virtnet_probe()
4541 if (virtio_has_feature(vdev, VIRTIO_NET_F_RSS)) { in virtnet_probe()
4572 virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtnet_probe()
4578 virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtnet_probe()
[all …]
/openbmc/linux/include/linux/
H A Dvirtio_config.h187 static inline bool virtio_has_feature(const struct virtio_device *vdev, in virtio_has_feature() function
206 return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM); in virtio_has_dma_quirk()
337 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian()
607 if (!virtio_has_feature(vdev, fbit)) \
618 if (!virtio_has_feature(vdev, fbit)) \
/openbmc/linux/drivers/block/
H A Dvirtio_blk.c811 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { in virtblk_probe_zoned_device()
908 if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { in virtblk_getgeo()
1145 writeback = virtio_has_feature(vdev, VIRTIO_BLK_F_FLUSH); in virtblk_get_cache_mode()
1209 !virtio_has_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE)) in virtblk_attrs_are_visible()
1406 if (virtio_has_feature(vdev, VIRTIO_BLK_F_RO)) in virtblk_probe()
1470 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { in virtblk_probe()
1482 if (virtio_has_feature(vdev, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtblk_probe()
1500 if (virtio_has_feature(vdev, VIRTIO_BLK_F_SECURE_ERASE)) { in virtblk_probe()
1548 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD) || in virtblk_probe()
1549 virtio_has_feature(vdev, VIRTIO_BLK_F_SECURE_ERASE)) { in virtblk_probe()
[all …]
/openbmc/qemu/hw/net/
H A Dvirtio-net.c966 virtio_has_feature(features, in virtio_net_set_features()
968 virtio_has_feature(features, in virtio_net_set_features()
970 virtio_has_feature(features, in virtio_net_set_features()
974 virtio_has_feature(features, VIRTIO_NET_F_GUEST_TSO4); in virtio_net_set_features()
976 virtio_has_feature(features, VIRTIO_NET_F_GUEST_TSO6); in virtio_net_set_features()
1000 if (!virtio_has_feature(features, VIRTIO_NET_F_CTRL_VLAN)) { in virtio_net_set_features()
1004 if (virtio_has_feature(features, VIRTIO_NET_F_STANDBY)) { in virtio_net_set_features()
1077 virtio_has_feature(offloads, VIRTIO_NET_F_GUEST_TSO4); in virtio_net_handle_offloads()
1079 virtio_has_feature(offloads, VIRTIO_NET_F_GUEST_TSO6); in virtio_net_handle_offloads()
3762 if (virtio_has_feature(n->host_features, VIRTIO_NET_F_RSS)) { in virtio_net_device_realize()
[all …]
/openbmc/qemu/include/hw/virtio/
H A Dvirtio.h440 static inline bool virtio_has_feature(uint64_t features, unsigned int fbit) in virtio_has_feature() function
449 return virtio_has_feature(vdev->guest_features, fbit); in virtio_vdev_has_feature()
455 return virtio_has_feature(vdev->host_features, fbit); in virtio_host_has_feature()
/openbmc/linux/drivers/scsi/
H A Dvirtio_scsi.c585 if (virtio_has_feature(vscsi->vdev, VIRTIO_SCSI_F_T10_PI)) { in virtscsi_queuecommand()
902 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_T10_PI)) { in virtscsi_probe()
920 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_probe()
938 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_remove()
965 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_restore()
/openbmc/u-boot/include/
H A Dvirtio.h489 static inline bool virtio_has_feature(struct udevice *vdev, unsigned int fbit) in virtio_has_feature() function
700 if (!virtio_has_feature(vdev, fbit)) \
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_net.c174 if (virtio_has_feature(dev, VIRTIO_NET_F_MAC)) { in virtio_net_read_rom_hwaddr()
/openbmc/qemu/hw/block/
H A Dvirtio-blk.c483 if (!virtio_has_feature(s->host_features, VIRTIO_BLK_F_ZONED)) { in check_zoned_request()
1175 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD)) { in virtio_blk_update_config()
1191 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtio_blk_update_config()
1246 if (!virtio_has_feature(features, VIRTIO_F_VERSION_1)) { in virtio_blk_get_features()
1254 virtio_has_feature(features, VIRTIO_BLK_F_CONFIG_WCE))) { in virtio_blk_get_features()
1881 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_DISCARD) && in virtio_blk_device_realize()
1890 if (virtio_has_feature(s->host_features, VIRTIO_BLK_F_WRITE_ZEROES) && in virtio_blk_device_realize()
/openbmc/linux/drivers/iommu/
H A Dvirtio-iommu.c690 if (virtio_has_feature(viommu->vdev, in viommu_domain_finalise()
1110 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in viommu_probe()
1111 !virtio_has_feature(vdev, VIRTIO_IOMMU_F_MAP_UNMAP)) in viommu_probe()
1166 if (virtio_has_feature(vdev, VIRTIO_IOMMU_F_MMIO)) in viommu_probe()
/openbmc/linux/drivers/rpmsg/
H A Dvirtio_rpmsg_bus.c329 virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS)) { in virtio_rpmsg_announce_create()
353 virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS)) { in virtio_rpmsg_announce_destroy()
957 if (virtio_has_feature(vdev, VIRTIO_RPMSG_F_NS)) { in rpmsg_probe()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-virtio.c195 if (!virtio_has_feature(vdev, VIRTIO_I2C_F_ZERO_LENGTH_REQUEST)) { in virtio_i2c_probe()
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dvirtio.c223 return virtio_has_feature(vdev, VIRTIO_SCMI_F_P2A_CHANNELS); in scmi_vio_have_vq_rx()
891 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in scmi_vio_validate()
/openbmc/qemu/hw/display/
H A Dvhost-user-gpu.c625 if (virtio_has_feature(g->vhost->dev.features, VIRTIO_GPU_F_VIRGL)) { in vhost_user_gpu_device_realize()
628 if (virtio_has_feature(g->vhost->dev.features, VIRTIO_GPU_F_EDID)) { in vhost_user_gpu_device_realize()
/openbmc/linux/sound/virtio/
H A Dvirtio_card.c273 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtsnd_validate()

12