Defined in 2 files as a function:
- include/linux/virtio_features.h, line 36 (as a function)
- tools/virtio/linux/virtio_features.h, line 26 (as a function)
Referenced in 5 files:
- drivers/vhost/net.c
- drivers/vhost/vhost.h, line 354
- drivers/virtio/virtio.c
- drivers/virtio/virtio_debug.c
- include/linux/virtio_config.h, line 228
Smatch caller information:
net/9p/trans_virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/vhost/vhost.c vhost_has_feature() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 24,26,29,32,34-35 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex |
drivers/virtio/virtio_pci_common.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pci_dev->dev.mutex | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock |
drivers/virtio/virtio_ring.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/vhost/vdpa.c vhost_has_feature() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 34 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 1 | bit | $1 |
| LOCK2 | &d->mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/net/can/virtio_can.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/iommu/virtio-iommu.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/nvdimm/virtio_pmem.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_mem.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/firmware/arm_scmi/transports/virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_pci_admin_legacy_io.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/vhost/net.c vhost_has_feature() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 15,26,32,35 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | &vq->mutex |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 15 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 32 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 67 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 65 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 27 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 26 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features | |
| LOCK2 | &n->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/vhost/net.c vhost_net_set_features() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 7569705068722741248 |
| PARAM_VALUE | 1 | bit | 33 |
| BUF_SIZE | 0 | features | 16 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 0 | features | $1 |
| USER_DATA | 0 | *features | 0-u64max |
| USER_PTR | 0 | features | |
| LOCK2 | &n->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/gpio/gpio-virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/scsi/virtio_scsi.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/gpu/drm/virtio/virtgpu_vq.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_rtc_driver.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_debug.c virtio_debug_device_features_show() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 2225163803325947904 |
| PARAM_VALUE | 1 | bit | 0-127 |
| BUF_SIZE | 0 | features | 16 |
| FUZZY_MAX | 1 | bit | 127 |
| HARD_MAX | 1 | bit | 127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/virtio/virtio_debug.c virtio_debug_filter_features_show() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 0-127 |
| BUF_SIZE | 0 | features | 16 |
| FUZZY_MAX | 1 | bit | 127 |
| HARD_MAX | 1 | bit | 127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &s->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
net/vmw_vsock/virtio_transport.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/crypto/virtio/virtio_crypto_core.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_balloon.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/bluetooth/virtio_bt.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_mmio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 32,38 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 1 | bit | $1 |
| HARD_MAX | 1 | bit | 38 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/virtio/virtio_pci_modern.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/virtio/virtgpu_kms.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/char/virtio_console.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/rpmsg/virtio_rpmsg_bus.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
sound/virtio/virtio_card.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/block/virtio_blk.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/gpu/drm/virtio/virtgpu_object.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/virtio/virtio.c virtio_dev_probe() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 4534496434731745280 |
| PARAM_VALUE | 1 | bit | 32 |
| BUF_SIZE | 0 | features | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/virtio/virtio.c virtio_dev_probe() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | features | 4534496434731745280 |
| PARAM_VALUE | 1 | bit | 28-41 |
| BUF_SIZE | 0 | features | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/i2c/busses/i2c-virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_vdpa.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/net/virtio_net.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/vhost/scsi.c vhost_has_feature() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bit | 1,3,26 |
| BUF_SIZE | 0 | features | 16 |
| DATA_SOURCE | 1 | bit | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tpg->tv_tpg_mutex | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | &vs->dev.mutex |
drivers/spi/spi-virtio.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |
drivers/virtio/virtio_input.c __virtio_test_bit() -> virtio_features_test_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | features | 16 |
| CAPPED_DATA | 1 | bit | 1 |
| DATA_SOURCE | 1 | bit | $1 |