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()
429 if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) in virtio_balloon_queue_free_page_work()
516 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
521 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { 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()
560 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) in init_vqs()
563 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) in init_vqs()
775 if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM) && in virtballoon_migratepage()
[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/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/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/net/
H A Dvirtio_net.c2504 BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ)); in virtnet_send_command()
2549 if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_STANDBY)) in virtnet_set_mac_address()
2560 if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_MAC_ADDR)) { in virtnet_set_mac_address()
2569 } else if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC) && in virtnet_set_mac_address()
2570 !virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtnet_set_mac_address()
2642 if (!vi->has_cvq || !virtio_has_feature(vi->vdev, VIRTIO_NET_F_MQ)) in _virtnet_set_queues()
2701 if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_RX)) in virtnet_set_rx_mode()
3449 if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_NOTF_COAL)) in virtnet_set_coalesce()
3472 if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_NOTF_COAL)) { in virtnet_get_coalesce()
3506 if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_VQ_NOTF_COAL)) in virtnet_set_per_queue_coalesce()
[all …]
/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/qemu/hw/virtio/
H A Dvhost-user.c438 bool shmfd = virtio_has_feature(dev->protocol_features, in vhost_user_set_log_base()
1011 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_user_set_mem_table()
1014 virtio_has_feature(dev->protocol_features, in vhost_user_set_mem_table()
1063 bool cross_endian = virtio_has_feature(dev->protocol_features, in vhost_user_set_vring_endian()
1134 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_user_write_sync()
1239 if (!virtio_has_feature(dev->features, VHOST_USER_F_PROTOCOL_FEATURES)) { in vhost_user_set_vring_enable()
1457 if (virtio_has_feature(dev->protocol_features, in vhost_user_set_features()
1512 if (!virtio_has_feature(dev->protocol_features, in vhost_user_reset_device()
1570 if (!virtio_has_feature(dev->protocol_features, in vhost_user_backend_handle_vring_host_notifier()
1883 bool reply_supported = virtio_has_feature(dev->protocol_features, in vhost_setup_backend_channel()
[all …]
H A Dvirtio-balloon.c713 if (virtio_has_feature(features, VIRTIO_BALLOON_F_PAGE_POISON)) { in virtio_balloon_config_size()
716 if (virtio_has_feature(features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_config_size()
885 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT) && in virtio_balloon_device_realize()
896 if (virtio_has_feature(s->host_features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtio_balloon_device_realize()
907 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/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.c807 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { in virtblk_probe_zoned_device()
904 if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { in virtblk_getgeo()
1141 writeback = virtio_has_feature(vdev, VIRTIO_BLK_F_FLUSH); in virtblk_get_cache_mode()
1167 BUG_ON(!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_CONFIG_WCE)); in cache_type_store()
1205 !virtio_has_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE)) in virtblk_attrs_are_visible()
1358 if (!virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC)) in virtblk_probe()
1402 if (virtio_has_feature(vdev, VIRTIO_BLK_F_RO)) in virtblk_probe()
1466 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { in virtblk_probe()
1478 if (virtio_has_feature(vdev, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtblk_probe()
1496 if (virtio_has_feature(vdev, VIRTIO_BLK_F_SECURE_ERASE)) { in virtblk_probe()
[all …]
/openbmc/qemu/hw/net/
H A Dvirtio-net.c300 if (virtio_has_feature(vdev->guest_features, VIRTIO_NET_F_MTU)) { in virtio_net_vhost_status()
820 if (!virtio_has_feature(vdev->backend_features, VIRTIO_NET_F_CTRL_VQ)) { in virtio_net_get_features()
957 !virtio_has_feature(vdev->backend_features, VIRTIO_NET_F_MTU)) { in virtio_net_set_features()
962 virtio_has_feature(features, VIRTIO_NET_F_RSS) || in virtio_net_set_features()
963 virtio_has_feature(features, VIRTIO_NET_F_MQ)); in virtio_net_set_features()
966 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()
973 n->rsc4_enabled = virtio_has_feature(features, VIRTIO_NET_F_RSC_EXT) && in virtio_net_set_features()
974 virtio_has_feature(features, VIRTIO_NET_F_GUEST_TSO4); in virtio_net_set_features()
[all …]
/openbmc/qemu/include/hw/virtio/
H A Dvirtio.h443 static inline bool virtio_has_feature(uint64_t features, unsigned int fbit) in virtio_has_feature() function
452 return virtio_has_feature(vdev->guest_features, fbit); in virtio_vdev_has_feature()
458 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/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/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/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/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/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/sound/virtio/
H A Dvirtio_card.c273 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtsnd_validate()

12