Lines Matching defs:virtio_dev_ops
68 struct virtio_dev_ops { struct
69 int (*read_dev_cfg)(struct virtio_dev *hw, size_t offset,
71 int (*write_dev_cfg)(struct virtio_dev *hw, size_t offset,
73 uint8_t (*get_status)(struct virtio_dev *hw);
74 void (*set_status)(struct virtio_dev *hw, uint8_t status);
80 uint64_t (*get_features)(struct virtio_dev *vdev);
87 int (*set_features)(struct virtio_dev *vdev, uint64_t features);
90 void (*destruct_dev)(struct virtio_dev *vdev);
92 uint16_t (*get_queue_size)(struct virtio_dev *vdev, uint16_t queue_id);
93 int (*setup_queue)(struct virtio_dev *hw, struct virtqueue *vq);
94 void (*del_queue)(struct virtio_dev *hw, struct virtqueue *vq);
95 void (*notify_queue)(struct virtio_dev *hw, struct virtqueue *vq);
97 void (*dump_json_info)(struct virtio_dev *hw, struct spdk_json_write_ctx *w);
98 void (*write_json_config)(struct virtio_dev *hw, struct spdk_json_write_ctx *w);