Home
last modified time | relevance | path

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

/linux/drivers/virtio/
A Dvirtio_balloon.c246 if (!virtio_has_feature(vb->vdev, in fill_balloon()
267 if (!virtio_has_feature(vb->vdev, in release_pages_balloon()
519 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
529 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) { in init_vqs()
541 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
566 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) in init_vqs()
926 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { in virtballoon_probe()
966 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) { in virtballoon_probe()
987 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_REPORTING)) { in virtballoon_probe()
1031 if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) in virtballoon_probe()
[all …]
A Dvirtio.c180 if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1)) { in virtio_finalize_features()
186 if (!virtio_has_feature(dev, VIRTIO_F_ACCESS_PLATFORM)) { in virtio_finalize_features()
193 if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1)) in virtio_finalize_features()
A Dvirtio_ring.c1719 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && in vring_create_virtqueue_packed()
1721 vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); in vring_create_virtqueue_packed()
1723 if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) in vring_create_virtqueue_packed()
2181 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in __vring_new_virtqueue()
2207 vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && in __vring_new_virtqueue()
2209 vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); in __vring_new_virtqueue()
2211 if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) in __vring_new_virtqueue()
2269 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in vring_create_virtqueue()
2294 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) in vring_new_virtqueue()
A Dvirtio_vdpa.c205 if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) { in virtio_vdpa_setup_vq()
A Dvirtio_input.c225 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtinput_probe()
A Dvirtio_mem.c799 if (virtio_has_feature(vm->vdev, VIRTIO_MEM_F_ACPI_PXM)) in virtio_mem_translate_node_id()
/linux/drivers/gpu/drm/virtio/
A Dvirtgpu_kms.c126 if (!virtio_has_feature(dev_to_virtio(dev->dev), VIRTIO_F_VERSION_1)) in virtio_gpu_init()
160 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_VIRGL)) in virtio_gpu_init()
163 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_EDID)) { in virtio_gpu_init()
166 if (virtio_has_feature(vgdev->vdev, VIRTIO_RING_F_INDIRECT_DESC)) { in virtio_gpu_init()
169 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_RESOURCE_UUID)) { in virtio_gpu_init()
172 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_RESOURCE_BLOB)) { in virtio_gpu_init()
194 if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_CONTEXT_INIT)) { in virtio_gpu_init()
/linux/tools/virtio/linux/
A Dvirtio_config.h41 #define virtio_has_feature(dev, feature) \ macro
54 return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM); in virtio_has_dma_quirk()
59 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian()
/linux/drivers/net/
A Dvirtio_net.c1851 !virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtnet_set_mac_address()
3050 if (!virtio_has_feature(vdev, fbit)) in virtnet_fail_on_feature()
3094 if (virtio_has_feature(vdev, VIRTIO_NET_F_MTU)) { in virtnet_validate()
3121 !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) in virtnet_probe()
3139 if (virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) { in virtnet_probe()
3145 if (virtio_has_feature(vdev, VIRTIO_NET_F_GSO)) { in virtnet_probe()
3178 if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) { in virtnet_probe()
3208 virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtnet_probe()
3214 virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtnet_probe()
3217 if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) in virtnet_probe()
[all …]
/linux/drivers/bluetooth/
A Dvirtio_bt.c259 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtbt_probe()
303 if (virtio_has_feature(vdev, VIRTIO_BT_F_VND_HCI)) { in virtbt_probe()
336 if (virtio_has_feature(vdev, VIRTIO_BT_F_MSFT_EXT)) { in virtbt_probe()
345 if (virtio_has_feature(vdev, VIRTIO_BT_F_AOSP_EXT)) in virtbt_probe()
/linux/include/linux/
A Dvirtio_config.h167 static inline bool virtio_has_feature(const struct virtio_device *vdev, in virtio_has_feature() function
186 return !virtio_has_feature(vdev, VIRTIO_F_ACCESS_PLATFORM); in virtio_has_dma_quirk()
279 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian()
549 if (!virtio_has_feature(vdev, fbit)) \
560 if (!virtio_has_feature(vdev, fbit)) \
/linux/drivers/block/
A Dvirtio_blk.c445 if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { in virtblk_getgeo()
653 writeback = virtio_has_feature(vdev, VIRTIO_BLK_F_FLUSH); in virtblk_get_cache_mode()
679 BUG_ON(!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_CONFIG_WCE)); in cache_type_store()
717 !virtio_has_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE)) in virtblk_attrs_are_visible()
811 if (!virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC)) in virtblk_probe()
853 if (virtio_has_feature(vdev, VIRTIO_BLK_F_RO)) in virtblk_probe()
916 if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { in virtblk_probe()
936 if (virtio_has_feature(vdev, VIRTIO_BLK_F_WRITE_ZEROES)) { in virtblk_probe()
/linux/drivers/scsi/
A Dvirtio_scsi.c577 if (virtio_has_feature(vscsi->vdev, VIRTIO_SCSI_F_T10_PI)) { in virtscsi_queuecommand()
894 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_T10_PI)) { in virtscsi_probe()
912 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_probe()
930 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_remove()
957 if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) in virtscsi_restore()
/linux/drivers/firmware/arm_scmi/
A Dvirtio.c81 return virtio_has_feature(vdev, VIRTIO_SCMI_F_P2A_CHANNELS); in scmi_vio_have_vq_rx()
463 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in scmi_vio_validate()
/linux/drivers/rpmsg/
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()
956 if (virtio_has_feature(vdev, VIRTIO_RPMSG_F_NS)) { in rpmsg_probe()
/linux/drivers/iommu/
A Dvirtio-iommu.c998 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in viommu_probe()
999 !virtio_has_feature(vdev, VIRTIO_IOMMU_F_MAP_UNMAP)) in viommu_probe()
1054 if (virtio_has_feature(vdev, VIRTIO_IOMMU_F_MMIO)) in viommu_probe()
/linux/drivers/i2c/busses/
A Di2c-virtio.c195 if (!virtio_has_feature(vdev, VIRTIO_I2C_F_ZERO_LENGTH_REQUEST)) { in virtio_i2c_probe()
/linux/sound/virtio/
A Dvirtio_card.c273 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { in virtsnd_validate()
/linux/drivers/crypto/virtio/
A Dvirtio_crypto_core.c302 if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) in virtcrypto_probe()
/linux/drivers/char/
A Dvirtio_console.c1178 virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) in resize_console()
2002 (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE) in virtcons_probe()
2003 || virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT))) { in virtcons_probe()
/linux/drivers/gpio/
A Dgpio-virtio.c589 if (virtio_has_feature(vdev, VIRTIO_GPIO_F_IRQ)) { in virtio_gpio_probe()
/linux/net/vmw_vsock/
A Dvirtio_transport.c637 if (virtio_has_feature(vdev, VIRTIO_VSOCK_F_SEQPACKET)) in virtio_vsock_probe()
/linux/net/9p/
A Dtrans_virtio.c591 if (virtio_has_feature(vdev, VIRTIO_9P_MOUNT_TAG)) { in p9_virtio_probe()

Completed in 74 milliseconds