Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 16 of 16) sorted by relevance

/spdk/lib/vhost/
H A Dvhost.c39 spdk_vhost_dev_next(struct spdk_vhost_dev *vdev)
41 if (vdev == NULL) { in spdk_vhost_dev_find()
45 return RB_NEXT(vhost_dev_name_tree, &g_vhost_devices, vdev); in spdk_vhost_dev_find()
116 vhost_dev_register(struct spdk_vhost_dev *vdev, const char *name, const char *mask_str, in vhost_dev_register()
123 assert(vdev); in vhost_dev_register()
134 vdev->use_default_cpumask = false; in vhost_dev_register()
136 vdev->use_default_cpumask = true; in vhost_dev_register()
146 vdev->name = strdup(name); in vhost_dev_register()
147 if (vdev->name == NULL) { in vhost_dev_register()
152 vdev in vhost_dev_register()
31 spdk_vhost_dev_next(struct spdk_vhost_dev * vdev) spdk_vhost_dev_next() argument
43 struct spdk_vhost_dev *vdev; spdk_vhost_dev_find() local
112 vhost_dev_register(struct spdk_vhost_dev * vdev,const char * name,const char * mask_str,const struct spdk_json_val * params,const struct spdk_vhost_dev_backend * backend,const struct spdk_vhost_user_dev_backend * user_backend,bool delay) vhost_dev_register() argument
170 vhost_dev_unregister(struct spdk_vhost_dev * vdev) vhost_dev_unregister() argument
199 spdk_vhost_dev_get_name(struct spdk_vhost_dev * vdev) spdk_vhost_dev_get_name() argument
206 spdk_vhost_dev_get_cpumask(struct spdk_vhost_dev * vdev) spdk_vhost_dev_get_cpumask() argument
213 vhost_dump_info_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_dump_info_json() argument
220 spdk_vhost_dev_remove(struct spdk_vhost_dev * vdev) spdk_vhost_dev_remove() argument
226 spdk_vhost_set_coalescing(struct spdk_vhost_dev * vdev,uint32_t delay_base_us,uint32_t iops_threshold) spdk_vhost_set_coalescing() argument
234 spdk_vhost_get_coalescing(struct spdk_vhost_dev * vdev,uint32_t * delay_base_us,uint32_t * iops_threshold) spdk_vhost_get_coalescing() argument
281 struct spdk_vhost_dev *vdev, *tmp; vhost_fini() local
348 vhost_user_config_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_user_config_json() argument
373 struct spdk_vhost_dev *vdev; spdk_vhost_scsi_config_json() local
412 struct spdk_vhost_dev *vdev; spdk_vhost_blk_config_json() local
[all...]
H A Dvhost_internal.h120 struct spdk_vhost_dev *vdev;
174 struct spdk_vhost_dev *vdev;
219 to_user_dev(struct spdk_vhost_dev *vdev)
221 assert(vdev != NULL); in to_user_dev()
222 return vdev->ctxt; in to_user_dev()
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_
121 struct spdk_vhost_dev *vdev; global() member
175 struct spdk_vhost_dev *vdev; global() member
220 to_user_dev(struct spdk_vhost_dev * vdev) to_user_dev() argument
[all...]
H A Drte_vhost_user.c28 struct spdk_vhost_dev *vdev; member
884 struct spdk_vhost_dev *vdev; local
903 vdev = spdk_vhost_dev_find(ctrlr_name);
904 if (vdev == NULL) {
911 user_dev = to_user_dev(vdev);
938 vsession->vdev = vdev;
941 vsession->name = spdk_sprintf_alloc("%ss%u", vdev->name, vsession->vid);
973 struct spdk_vhost_dev *vdev = vsession->vdev; local
1131 struct spdk_vhost_dev *vdev; global() local
1231 vhost_session_find_by_id(struct spdk_vhost_dev * vdev,unsigned id) global() argument
1247 struct spdk_vhost_dev *vdev; global() local
1302 struct spdk_vhost_dev *vdev = ctx->vdev; global() local
1321 struct spdk_vhost_dev *vdev = vsession->vdev; global() local
1340 struct spdk_vhost_dev *vdev = ev_ctx->vdev; global() local
1363 struct spdk_vhost_dev *vdev = ev_ctx->vdev; global() local
1386 vhost_user_dev_foreach_session(struct spdk_vhost_dev * vdev,spdk_vhost_session_fn fn,spdk_vhost_dev_fn cpl_fn,void * arg) global() argument
1700 vhost_user_session_set_coalescing(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) global() argument
1711 vhost_user_set_coalescing(struct spdk_vhost_dev * vdev,uint32_t delay_base_us,uint32_t iops_threshold) global() argument
1727 vhost_user_get_coalescing(struct spdk_vhost_dev * vdev,uint32_t * delay_base_us,uint32_t * iops_threshold) global() argument
1774 vhost_user_dev_init(struct spdk_vhost_dev * vdev,const char * name,struct spdk_cpuset * cpumask,const struct spdk_vhost_user_dev_backend * user_backend) global() argument
1819 vhost_user_dev_start(struct spdk_vhost_dev * vdev) global() argument
1827 vhost_user_dev_create(struct spdk_vhost_dev * vdev,const char * name,struct spdk_cpuset * cpumask,const struct spdk_vhost_user_dev_backend * user_backend,bool delay) global() argument
1853 vhost_user_dev_unregister(struct spdk_vhost_dev * vdev) global() argument
1946 struct spdk_vhost_dev *vdev = NULL; global() local
1998 vhost_session_info_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) global() argument
[all...]
H A Dvhost_rpc.c146 struct spdk_vhost_dev *vdev; in rpc_vhost_scsi_controller_add_target() local
158 vdev = spdk_vhost_dev_find(req.ctrlr); in rpc_vhost_scsi_controller_add_target()
159 if (vdev == NULL) { in rpc_vhost_scsi_controller_add_target()
165 rc = spdk_vhost_scsi_dev_add_tgt(vdev, req.scsi_target_num, req.bdev_name); in rpc_vhost_scsi_controller_add_target()
203 rpc_vhost_scsi_controller_remove_target_finish_cb(struct spdk_vhost_dev *vdev, void *arg) in rpc_vhost_scsi_controller_remove_target_finish_cb() argument
216 struct spdk_vhost_dev *vdev; in rpc_vhost_scsi_controller_remove_target() local
228 vdev = spdk_vhost_dev_find(req.ctrlr); in rpc_vhost_scsi_controller_remove_target()
229 if (vdev == NULL) { in rpc_vhost_scsi_controller_remove_target()
235 rc = spdk_vhost_scsi_dev_remove_tgt(vdev, req.scsi_target_num, in rpc_vhost_scsi_controller_remove_target()
338 struct spdk_vhost_dev *vdev; in rpc_vhost_delete_controller()
331 struct spdk_vhost_dev *vdev; rpc_vhost_delete_controller() local
373 _rpc_get_vhost_controller(struct spdk_json_write_ctx * w,struct spdk_vhost_dev * vdev) _rpc_get_vhost_controller() argument
414 struct spdk_vhost_dev *vdev; rpc_vhost_get_controllers() local
493 struct spdk_vhost_dev *vdev; rpc_vhost_controller_set_coalescing() local
[all...]
H A Dvhost_blk.c55 struct spdk_vhost_dev vdev; member
82 struct spdk_vhost_dev *vdev = &bvsession->bvdev->vdev;
84 return virtio_blk_process_request(vdev, bvsession->io_channel, &user_task->blk_task,
89 to_blk_dev(struct spdk_vhost_dev *vdev)
91 if (vdev == NULL) {
95 if (vdev->backend->type != VHOST_BACKEND_BLK) {
96 SPDK_ERRLOG("%s: not a vhost-blk device\n", vdev->name);
100 return SPDK_CONTAINEROF(vdev, struct spdk_vhost_blk_dev, vdev);
74 struct spdk_vhost_dev *vdev; global() member
114 struct spdk_vhost_dev *vdev = &bvsession->bvdev->vdev; vhost_user_process_blk_request() local
122 to_blk_dev(struct spdk_vhost_dev * vdev) to_blk_dev() argument
137 vhost_blk_get_bdev(struct spdk_vhost_dev * vdev) vhost_blk_get_bdev() argument
243 struct spdk_vhost_dev *vdev = vsession->vdev; blk_iovs_split_queue_setup() local
375 struct spdk_vhost_dev *vdev = vsession->vdev; blk_iovs_packed_queue_setup() local
397 struct spdk_vhost_dev *vdev = vsession->vdev; blk_iovs_inflight_queue_setup() local
484 blk_request_queue_io(struct spdk_vhost_dev * vdev,struct spdk_io_channel * ch,struct spdk_vhost_blk_task * task) blk_request_queue_io() argument
503 virtio_blk_process_request(struct spdk_vhost_dev * vdev,struct spdk_io_channel * ch,struct spdk_vhost_blk_task * task,virtio_blk_request_cb cb,void * cb_arg) virtio_blk_process_request() argument
1190 struct spdk_vhost_dev *vdev; vhost_blk_vq_enable() local
1256 bdev_event_cpl_cb(struct spdk_vhost_dev * vdev,void * ctx) bdev_event_cpl_cb() argument
1272 vhost_session_bdev_resize_cb(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) vhost_session_bdev_resize_cb() argument
1287 vhost_user_blk_resize_cb(struct spdk_vhost_dev * vdev,bdev_event_cb_complete cb,void * cb_arg) vhost_user_blk_resize_cb() argument
1320 vhost_user_session_bdev_remove_cb(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) vhost_user_session_bdev_remove_cb() argument
1337 vhost_user_bdev_remove_cb(struct spdk_vhost_dev * vdev,bdev_event_cb_complete cb,void * cb_arg) vhost_user_bdev_remove_cb() argument
1347 vhost_user_bdev_event_cb(enum spdk_bdev_event_type type,struct spdk_vhost_dev * vdev,bdev_event_cb_complete cb,void * cb_arg) vhost_user_bdev_event_cb() argument
1367 struct spdk_vhost_dev *vdev = (struct spdk_vhost_dev *)event_ctx; bdev_event_cb() local
1488 session_start_poll_groups(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession) session_start_poll_groups() argument
1570 vhost_blk_start(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * unused) vhost_blk_start() argument
1710 vhost_blk_stop(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * unused) vhost_blk_stop() argument
1730 vhost_blk_dump_info_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_blk_dump_info_json() argument
1753 vhost_blk_write_config_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_blk_write_config_json() argument
1782 vhost_blk_get_config(struct spdk_vhost_dev * vdev,uint8_t * config,uint32_t len) vhost_blk_get_config() argument
1844 vhost_blk_set_coalescing(struct spdk_vhost_dev * vdev,uint32_t delay_base_us,uint32_t iops_threshold) vhost_blk_set_coalescing() argument
1855 vhost_blk_get_coalescing(struct spdk_vhost_dev * vdev,uint32_t * delay_base_us,uint32_t * iops_threshold) vhost_blk_get_coalescing() argument
1884 virtio_blk_construct_ctrlr(struct spdk_vhost_dev * vdev,const char * address,struct spdk_cpuset * cpumask,const struct spdk_json_val * params,const struct spdk_vhost_user_dev_backend * user_backend) virtio_blk_construct_ctrlr() argument
1900 struct spdk_vhost_dev *vdev; spdk_vhost_blk_construct() local
1964 virtio_blk_destroy_ctrlr(struct spdk_vhost_dev * vdev) virtio_blk_destroy_ctrlr() argument
1974 vhost_blk_destroy(struct spdk_vhost_dev * vdev) vhost_blk_destroy() argument
1997 vhost_blk_get_io_channel(struct spdk_vhost_dev * vdev) vhost_blk_get_io_channel() argument
2052 vhost_user_blk_create_ctrlr(struct spdk_vhost_dev * vdev,struct spdk_cpuset * cpumask,const char * address,const struct spdk_json_val * params,void * custom_opts) vhost_user_blk_create_ctrlr() argument
2079 vhost_user_blk_destroy_ctrlr(struct spdk_vhost_dev * vdev) vhost_user_blk_destroy_ctrlr() argument
[all...]
H A Dvhost_scsi.c71 struct spdk_vhost_dev vdev; member
115 static int vhost_scsi_start(struct spdk_vhost_dev *vdev,
117 static int vhost_scsi_stop(struct spdk_vhost_dev *vdev,
119 static void vhost_scsi_dump_info_json(struct spdk_vhost_dev *vdev,
121 static void vhost_scsi_write_config_json(struct spdk_vhost_dev *vdev,
123 static int vhost_scsi_dev_remove(struct spdk_vhost_dev *vdev);
124 static int vhost_scsi_dev_param_changed(struct spdk_vhost_dev *vdev,
178 if (vhost_dev_unregister(&svdev->vdev) == 0) { in vhost_scsi_dev_unregister()
197 state->remove_cb(&svdev->vdev, state->remove_ctx); in remove_scsi_tgt()
211 vhost_scsi_dev_process_removed_cpl_cb(struct spdk_vhost_dev *vdev, voi argument
227 vhost_scsi_session_process_removed(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) vhost_scsi_session_process_removed() argument
863 struct spdk_vhost_dev *vdev; vhost_scsi_controller_start() local
936 vhost_scsi_dev_remove(struct spdk_vhost_dev * vdev) vhost_scsi_dev_remove() argument
966 spdk_vhost_scsi_dev_get_tgt(struct spdk_vhost_dev * vdev,uint8_t num) spdk_vhost_scsi_dev_get_tgt() argument
1032 vhost_scsi_dev_add_tgt_cpl_cb(struct spdk_vhost_dev * vdev,void * ctx) vhost_scsi_dev_add_tgt_cpl_cb() argument
1048 vhost_scsi_session_add_tgt(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) vhost_scsi_session_add_tgt() argument
1099 spdk_vhost_scsi_dev_add_tgt(struct spdk_vhost_dev * vdev,int scsi_tgt_num,const char * bdev_name) spdk_vhost_scsi_dev_add_tgt() argument
1186 vhost_scsi_dev_remove_tgt_cpl_cb(struct spdk_vhost_dev * vdev,void * _ctx) vhost_scsi_dev_remove_tgt_cpl_cb() argument
1201 vhost_scsi_session_remove_tgt(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * _ctx) vhost_scsi_session_remove_tgt() argument
1232 spdk_vhost_scsi_dev_remove_tgt(struct spdk_vhost_dev * vdev,unsigned scsi_tgt_num,spdk_vhost_event_fn cb_fn,void * cb_arg) spdk_vhost_scsi_dev_remove_tgt() argument
1281 vhost_scsi_session_param_changed(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * ctx) vhost_scsi_session_param_changed() argument
1313 vhost_scsi_dev_param_changed(struct spdk_vhost_dev * vdev,unsigned scsi_tgt_num) vhost_scsi_dev_param_changed() argument
1410 vhost_scsi_start(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * unused) vhost_scsi_start() argument
1537 vhost_scsi_stop(struct spdk_vhost_dev * vdev,struct spdk_vhost_session * vsession,void * unused) vhost_scsi_stop() argument
1569 vhost_scsi_dump_info_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_scsi_dump_info_json() argument
1612 vhost_scsi_write_config_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_scsi_write_config_json() argument
[all...]
/spdk/module/bdev/virtio/
H A Dbdev_virtio_blk.c28 struct virtio_dev vdev; member
44 struct virtio_dev *vdev; member
254 struct virtio_dev *vdev = &bvdev->vdev; in virtio_blk_dev_unregister_cb() local
256 virtio_dev_stop(vdev); in virtio_blk_dev_unregister_cb()
257 virtio_dev_destruct(vdev); in virtio_blk_dev_unregister_cb()
282 virtio_dev_dump_json_info(&bvdev->vdev, w); in bdev_virtio_dump_json_config()
296 spdk_json_write_named_string(w, "name", bvdev->vdev.name); in bdev_virtio_write_config_json()
300 bvdev->vdev.backend_ops->write_json_config(&bvdev->vdev, w); in bdev_virtio_write_config_json()
345 struct virtio_dev *vdev = &bvdev->vdev; in bdev_virtio_blk_ch_create_cb() local
350 queue_idx = virtio_dev_find_and_acquire_queue(vdev, 0); in bdev_virtio_blk_ch_create_cb()
[all …]
H A Dbdev_virtio_scsi.c47 struct virtio_dev vdev; member
67 /** Callback to be called after vdev removal. */
198 struct virtio_dev *vdev = &svdev->vdev; in virtio_scsi_dev_init() local
205 rc = virtio_dev_reset(vdev, feature_bits); in virtio_scsi_dev_init()
210 rc = virtio_dev_start(vdev, max_queues, SPDK_VIRTIO_SCSI_QUEUE_NUM_FIXED); in virtio_scsi_dev_init()
222 rc = virtio_dev_acquire_queue(vdev, VIRTIO_SCSI_CONTROLQ); in virtio_scsi_dev_init()
229 rc = virtio_dev_acquire_queue(vdev, VIRTIO_SCSI_EVENTQ); in virtio_scsi_dev_init()
232 virtio_dev_release_queue(vdev, VIRTIO_SCSI_CONTROLQ); in virtio_scsi_dev_init()
237 eventq = vdev in virtio_scsi_dev_init()
285 struct virtio_dev *vdev; virtio_pci_scsi_dev_create() local
340 struct virtio_dev *vdev; virtio_user_scsi_dev_create() local
948 struct virtio_dev *vdev = &svdev->vdev; bdev_virtio_mgmt_poll() local
986 struct virtio_dev *vdev = &svdev->vdev; bdev_virtio_scsi_ch_create_cb() local
1012 struct virtio_dev *vdev = &svdev->vdev; bdev_virtio_scsi_ch_destroy_cb() local
1687 struct virtio_dev *vdev = &svdev->vdev; _virtio_scsi_dev_unregister_cb() local
[all...]
/spdk/include/spdk_internal/
H A Dvirtio.h80 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);
107 struct virtio_dev *vdev; /**< owner of this virtqueue */ member
231 int virtio_dev_construct(struct virtio_dev *vdev, const char *name,
242 int virtio_dev_reset(struct virtio_dev *vdev, uint64_t req_features);
257 int virtio_dev_start(struct virtio_dev *vdev, uint16_t max_queues,
268 void virtio_dev_stop(struct virtio_dev *vdev);
276 void virtio_dev_destruct(struct virtio_dev *vdev);
[all …]
/spdk/lib/virtio/
H A Dvirtio_vhost_user.c484 virtio_user_create_queue(struct virtio_dev *vdev, uint32_t queue_sel) in virtio_user_create_queue() argument
486 struct virtio_user_dev *dev = vdev->ctx; in virtio_user_create_queue()
500 virtio_user_set_vring_addr(struct virtio_dev *vdev, uint32_t queue_sel) in virtio_user_set_vring_addr() argument
502 struct virtio_user_dev *dev = vdev->ctx; in virtio_user_set_vring_addr()
517 virtio_user_kick_queue(struct virtio_dev *vdev, uint32_t queue_sel) in virtio_user_kick_queue() argument
519 struct virtio_user_dev *dev = vdev->ctx; in virtio_user_kick_queue()
539 virtio_user_set_vring_addr(vdev, queue_sel); in virtio_user_kick_queue()
551 virtio_user_stop_queue(struct virtio_dev *vdev, uint32_t queue_sel) in virtio_user_stop_queue() argument
553 struct virtio_user_dev *dev = vdev->ctx; in virtio_user_stop_queue()
563 virtio_user_queue_setup(struct virtio_dev *vdev, in virtio_user_queue_setup() argument
585 struct virtio_dev *vdev = cb_ctx; virtio_user_map_notify() local
620 virtio_user_register_mem(struct virtio_dev * vdev) virtio_user_register_mem() argument
638 virtio_user_unregister_mem(struct virtio_dev * vdev) virtio_user_unregister_mem() argument
647 virtio_user_start_device(struct virtio_dev * vdev) virtio_user_start_device() argument
691 virtio_user_stop_device(struct virtio_dev * vdev) virtio_user_stop_device() argument
705 virtio_user_dev_setup(struct virtio_dev * vdev) virtio_user_dev_setup() argument
721 virtio_user_read_dev_config(struct virtio_dev * vdev,size_t offset,void * dst,int length) virtio_user_read_dev_config() argument
746 virtio_user_write_dev_config(struct virtio_dev * vdev,size_t offset,const void * src,int length) virtio_user_write_dev_config() argument
771 virtio_user_set_status(struct virtio_dev * vdev,uint8_t status) virtio_user_set_status() argument
794 virtio_user_get_status(struct virtio_dev * vdev) virtio_user_get_status() argument
802 virtio_user_get_features(struct virtio_dev * vdev) virtio_user_get_features() argument
818 virtio_user_set_features(struct virtio_dev * vdev,uint64_t features) virtio_user_set_features() argument
853 virtio_user_get_queue_size(struct virtio_dev * vdev,uint16_t queue_id) virtio_user_get_queue_size() argument
862 virtio_user_setup_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_user_setup_queue() argument
937 virtio_user_del_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_user_del_queue() argument
959 virtio_user_notify_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_user_notify_queue() argument
970 virtio_user_destroy(struct virtio_dev * vdev) virtio_user_destroy() argument
981 virtio_user_dump_json_info(struct virtio_dev * vdev,struct spdk_json_write_ctx * w) virtio_user_dump_json_info() argument
990 virtio_user_write_json_config(struct virtio_dev * vdev,struct spdk_json_write_ctx * w) virtio_user_write_json_config() argument
1017 virtio_user_dev_init(struct virtio_dev * vdev,const char * name,const char * path,uint32_t queue_size) virtio_user_dev_init() argument
[all...]
H A Dvirtio.c63 if (vq->vdev->negotiated_features & (1ULL << VIRTIO_RING_F_EVENT_IDX)) { in virtio_init_vring()
105 vq->vdev = dev; in virtio_init_queue()
229 virtio_dev_construct(struct virtio_dev *vdev, const char *name, in virtio_dev_construct() argument
234 vdev->name = strdup(name); in virtio_dev_construct()
235 if (vdev->name == NULL) { in virtio_dev_construct()
239 rc = pthread_mutex_init(&vdev->mutex, NULL); in virtio_dev_construct()
241 free(vdev->name); in virtio_dev_construct()
245 vdev->backend_ops = ops; in virtio_dev_construct()
246 vdev->ctx = ctx; in virtio_dev_construct()
274 virtio_dev_start(struct virtio_dev *vdev, uint16_t max_queues, uint16_t fixed_queue_num) in virtio_dev_start() argument
[all …]
H A Dvirtio_vfio_user.c27 virtio_vfio_user_read_dev_config(struct virtio_dev *vdev, size_t offset, in virtio_vfio_user_read_dev_config() argument
30 struct virtio_vfio_user_dev *dev = vdev->ctx; in virtio_vfio_user_read_dev_config()
39 virtio_vfio_user_write_dev_config(struct virtio_dev *vdev, size_t offset, in virtio_vfio_user_write_dev_config() argument
42 struct virtio_vfio_user_dev *dev = vdev->ctx; in virtio_vfio_user_write_dev_config()
51 virtio_vfio_user_get_status(struct virtio_dev *vdev) in virtio_vfio_user_get_status() argument
53 struct virtio_vfio_user_dev *dev = vdev->ctx; in virtio_vfio_user_get_status()
71 virtio_vfio_user_set_status(struct virtio_dev *vdev, uint8_t status) in virtio_vfio_user_set_status() argument
73 struct virtio_vfio_user_dev *dev = vdev->ctx; in virtio_vfio_user_set_status()
88 virtio_vfio_user_get_features(struct virtio_dev *vdev) in virtio_vfio_user_get_features() argument
90 struct virtio_vfio_user_dev *dev = vdev in virtio_vfio_user_get_features()
133 virtio_vfio_user_set_features(struct virtio_dev * vdev,uint64_t features) virtio_vfio_user_set_features() argument
182 virtio_vfio_user_destruct_dev(struct virtio_dev * vdev) virtio_vfio_user_destruct_dev() argument
193 virtio_vfio_user_get_queue_size(struct virtio_dev * vdev,uint16_t queue_id) virtio_vfio_user_get_queue_size() argument
222 virtio_vfio_user_setup_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_vfio_user_setup_queue() argument
343 virtio_vfio_user_del_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_vfio_user_del_queue() argument
371 virtio_vfio_user_notify_queue(struct virtio_dev * vdev,struct virtqueue * vq) virtio_vfio_user_notify_queue() argument
391 virtio_vfio_user_dev_init(struct virtio_dev * vdev,const char * name,const char * path) virtio_vfio_user_dev_init() argument
[all...]
H A Dvirtio_pci.c36 struct virtio_dev *vdev; member
152 return hw->vdev->name; in virtio_pci_dev_check()
349 modern_destruct_dev(struct virtio_dev *vdev) in modern_destruct_dev() argument
351 struct virtio_hw *hw = vdev->ctx; in modern_destruct_dev()
761 virtio_pci_dev_init(struct virtio_dev *vdev, const char *name, in virtio_pci_dev_init() argument
767 rc = virtio_dev_construct(vdev, name, &modern_ops, pci_ctx); in virtio_pci_dev_init()
772 vdev->is_hw = 1; in virtio_pci_dev_init()
773 vdev->modern = 1; in virtio_pci_dev_init()
774 hw->vdev = vdev; in virtio_pci_dev_init()
/spdk/test/unit/lib/vhost/vhost.c/
H A Dvhost_ut.c205 struct spdk_vhost_dev *vdev = NULL; in alloc_vdev() local
209 rc = posix_memalign((void **)&vdev, 64, sizeof(*vdev)); in alloc_vdev()
211 SPDK_CU_ASSERT_FATAL(vdev != NULL); in alloc_vdev()
212 memset(vdev, 0, sizeof(*vdev)); in alloc_vdev()
213 rc = vhost_dev_register(vdev, name, cpumask, NULL, &g_vdev_backend, &g_vdev_user_backend, false); in alloc_vdev()
215 *vdev_p = vdev; in alloc_vdev()
217 free(vdev); in alloc_vdev()
225 start_vdev(struct spdk_vhost_dev *vdev) in start_vdev() argument
254 stop_vdev(struct spdk_vhost_dev * vdev) stop_vdev() argument
265 cleanup_vdev(struct spdk_vhost_dev * vdev) cleanup_vdev() argument
279 struct spdk_vhost_dev *vdev; desc_to_iov_test() local
365 struct spdk_vhost_dev *vdev, *vdev2; create_controller_test() local
426 struct spdk_vhost_dev *vdev; session_find_by_vid_test() local
450 struct spdk_vhost_dev *vdev; remove_controller_test() local
683 struct spdk_vhost_dev *vdev = NULL; vhost_blk_construct_test() local
[all...]
/spdk/include/spdk/
H A Dvhost.h141 struct spdk_vhost_dev *spdk_vhost_dev_next(struct spdk_vhost_dev *vdev);
151 typedef int (*spdk_vhost_event_fn)(struct spdk_vhost_dev *vdev, void *arg);
162 const char *spdk_vhost_dev_get_name(struct spdk_vhost_dev *vdev);
172 const struct spdk_cpuset *spdk_vhost_dev_get_cpumask(struct spdk_vhost_dev *vdev);
193 int spdk_vhost_set_coalescing(struct spdk_vhost_dev *vdev, uint32_t delay_base_us,
205 void spdk_vhost_get_coalescing(struct spdk_vhost_dev *vdev, uint32_t *delay_base_us,
269 int spdk_vhost_scsi_dev_add_tgt(struct spdk_vhost_dev *vdev, int scsi_tgt_num,
282 struct spdk_scsi_dev *spdk_vhost_scsi_dev_get_tgt(struct spdk_vhost_dev *vdev, uint8_t num);
300 int spdk_vhost_scsi_dev_remove_tgt(struct spdk_vhost_dev *vdev, unsigned scsi_tgt_num,
341 int spdk_vhost_dev_remove(struct spdk_vhost_dev *vdev);
/spdk/test/app/fuzz/vhost_fuzz/
H A Dvhost_fuzz.c179 virtio_dev_init(struct virtio_dev *vdev, const char *socket_path, uint64_t flags, in virtio_dev_init() argument
184 rc = virtio_user_dev_init(vdev, "dev_ctx", socket_path, 1024); in virtio_dev_init()
190 rc = virtio_dev_reset(vdev, flags); in virtio_dev_init()
195 rc = virtio_dev_start(vdev, max_queues, VIRTIO_DEV_FIXED_QUEUES); in virtio_dev_init()
200 rc = virtio_dev_acquire_queue(vdev, VIRTIO_REQUESTQ); in virtio_dev_init()
203 virtio_dev_stop(vdev); in virtio_dev_init()
210 blk_dev_init(struct virtio_dev *vdev, const char *socket_path, uint16_t max_queues) in blk_dev_init() argument
212 return virtio_dev_init(vdev, socket_path, VIRTIO_BLK_DEV_SUPPORTED_FEATURES, max_queues); in blk_dev_init()
216 scsi_dev_init(struct virtio_dev *vdev, const char *socket_path, uint16_t max_queues) in scsi_dev_init() argument
220 rc = virtio_dev_init(vdev, socket_path, VIRTIO_SCSI_DEV_SUPPORTED_FEATURES, max_queues); in scsi_dev_init()
[all …]