Lines Matching defs:vdev

120 	struct spdk_vhost_dev *vdev;
174 struct spdk_vhost_dev *vdev;
219 to_user_dev(struct spdk_vhost_dev *vdev)
221 assert(vdev != NULL);
222 return vdev->ctxt;
226 * \param vdev vhost device.
234 typedef int (*spdk_vhost_session_fn)(struct spdk_vhost_dev *vdev,
239 * \param vdev vhost device.
242 typedef void (*spdk_vhost_dev_fn)(struct spdk_vhost_dev *vdev, void *arg);
265 int (*vhost_get_config)(struct spdk_vhost_dev *vdev, uint8_t *config, uint32_t len);
266 int (*vhost_set_config)(struct spdk_vhost_dev *vdev, uint8_t *config,
269 void (*dump_info_json)(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w);
270 void (*write_config_json)(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w);
271 int (*remove_device)(struct spdk_vhost_dev *vdev);
272 int (*set_coalescing)(struct spdk_vhost_dev *vdev, uint32_t delay_base_us,
274 void (*get_coalescing)(struct spdk_vhost_dev *vdev, uint32_t *delay_base_us,
431 int vhost_dev_register(struct spdk_vhost_dev *vdev, const char *name, const char *mask_str,
435 int vhost_dev_unregister(struct spdk_vhost_dev *vdev);
437 void vhost_dump_info_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w);
455 * \param vdev vhost device
489 int remove_vhost_controller(struct spdk_vhost_dev *vdev);
491 struct spdk_io_channel *vhost_blk_get_io_channel(struct spdk_vhost_dev *vdev);
496 struct spdk_bdev *vhost_blk_get_bdev(struct spdk_vhost_dev *vdev);
504 int vhost_user_dev_create(struct spdk_vhost_dev *vdev, const char *name,
507 int vhost_user_dev_init(struct spdk_vhost_dev *vdev, const char *name,
509 int vhost_user_dev_start(struct spdk_vhost_dev *vdev);
510 bool vhost_user_dev_busy(struct spdk_vhost_dev *vdev);
511 int vhost_user_dev_unregister(struct spdk_vhost_dev *vdev);
514 int vhost_user_set_coalescing(struct spdk_vhost_dev *vdev, uint32_t delay_base_us,
516 void vhost_user_get_coalescing(struct spdk_vhost_dev *vdev, uint32_t *delay_base_us,
519 int virtio_blk_construct_ctrlr(struct spdk_vhost_dev *vdev, const char *address,
522 int virtio_blk_destroy_ctrlr(struct spdk_vhost_dev *vdev);
550 int virtio_blk_process_request(struct spdk_vhost_dev *vdev, struct spdk_io_channel *ch,
553 typedef void (*bdev_event_cb_complete)(struct spdk_vhost_dev *vdev, void *ctx);
582 int (*create_ctrlr)(struct spdk_vhost_dev *vdev, struct spdk_cpuset *cpumask,
589 int (*destroy_ctrlr)(struct spdk_vhost_dev *vdev);
594 void (*bdev_event)(enum spdk_bdev_event_type type, struct spdk_vhost_dev *vdev,
600 int (*set_coalescing)(struct spdk_vhost_dev *vdev, uint32_t delay_base_us,
606 void (*get_coalescing)(struct spdk_vhost_dev *vdev, uint32_t *delay_base_us,
633 void vhost_session_info_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w);