/spdk/lib/json/ |
H A D | json_write.c | 22 static int emit_buf_full(struct spdk_json_write_ctx *w, const void *data, size_t size); 25 fail(struct spdk_json_write_ctx *w) in fail() argument 27 w->failed = true; in fail() 32 flush_buf(struct spdk_json_write_ctx *w) in flush_buf() argument 36 rc = w->write_cb(w->cb_ctx, w->buf, w->buf_filled); in flush_buf() 38 return fail(w); in flush_buf() 41 w->buf_filled = 0; in flush_buf() 49 struct spdk_json_write_ctx *w; in spdk_json_write_begin() local 51 w = calloc(1, sizeof(*w)); in spdk_json_write_begin() 52 if (w == NULL) { in spdk_json_write_begin() [all …]
|
/spdk/module/bdev/ocf/ |
H A D | stats.c | 39 #define WJSON_STAT(w, stats, group, field, units) \ argument 40 spdk_json_write_named_object_begin(w, #field); \ 41 spdk_json_write_named_uint64(w, "count", stats->group.field.value); \ 42 spdk_json_write_named_string_fmt(w, "percentage", "%lu.%lu", \ 44 spdk_json_write_named_string(w, "units", units); \ 45 spdk_json_write_object_end(w); 48 vbdev_ocf_stats_write_json(struct spdk_json_write_ctx *w, struct vbdev_ocf_stats *stats) in vbdev_ocf_stats_write_json() argument 50 spdk_json_write_object_begin(w); in vbdev_ocf_stats_write_json() 52 spdk_json_write_named_object_begin(w, "usage"); in vbdev_ocf_stats_write_json() 53 WJSON_STAT(w, stats, usage, occupancy, "4KiB blocks"); in vbdev_ocf_stats_write_json() [all …]
|
H A D | vbdev_ocf_rpc.c | 62 struct spdk_json_write_ctx *w; in construct_cb() local 69 w = spdk_jsonrpc_begin_result(request); in construct_cb() 70 spdk_json_write_string(w, vbdev->name); in construct_cb() 71 spdk_jsonrpc_end_result(request, w); in construct_cb() 158 struct spdk_json_write_ctx *w; in rpc_bdev_ocf_get_stats_cmpl() local 173 w = spdk_jsonrpc_begin_result(ctx->request); in rpc_bdev_ocf_get_stats_cmpl() 174 vbdev_ocf_stats_write_json(w, &stats); in rpc_bdev_ocf_get_stats_cmpl() 175 spdk_jsonrpc_end_result(ctx->request, w); in rpc_bdev_ocf_get_stats_cmpl() 299 struct spdk_json_write_ctx *w; member 306 struct spdk_json_write_ctx *w = cctx->w; in bdev_get_bdevs_fn() local [all …]
|
/spdk/test/unit/lib/ |
H A D | json_mock.c | 13 DEFINE_STUB(spdk_json_write_end, int, (struct spdk_json_write_ctx *w), 0); 14 DEFINE_STUB(spdk_json_write_null, int, (struct spdk_json_write_ctx *w), 0); 15 DEFINE_STUB(spdk_json_write_bool, int, (struct spdk_json_write_ctx *w, bool val), 0); 16 DEFINE_STUB(spdk_json_write_uint8, int, (struct spdk_json_write_ctx *w, uint8_t val), 0); 17 DEFINE_STUB(spdk_json_write_uint16, int, (struct spdk_json_write_ctx *w, uint16_t val), 0); 18 DEFINE_STUB(spdk_json_write_int32, int, (struct spdk_json_write_ctx *w, int32_t val), 0); 19 DEFINE_STUB(spdk_json_write_uint32, int, (struct spdk_json_write_ctx *w, uint32_t val), 0); 20 DEFINE_STUB(spdk_json_write_int64, int, (struct spdk_json_write_ctx *w, int64_t val), 0); 21 DEFINE_STUB(spdk_json_write_uint64, int, (struct spdk_json_write_ctx *w, uint64_t val), 0); 22 DEFINE_STUB(spdk_json_write_string, int, (struct spdk_json_write_ctx *w, const char *val), 0); [all …]
|
/spdk/lib/event/ |
H A D | app_rpc.c | 102 struct spdk_json_write_ctx *w; in rpc_framework_monitor_context_switch() local 116 w = spdk_jsonrpc_begin_result(request); in rpc_framework_monitor_context_switch() 117 spdk_json_write_object_begin(w); in rpc_framework_monitor_context_switch() 119 spdk_json_write_named_bool(w, "enabled", spdk_framework_context_switch_monitor_enabled()); in rpc_framework_monitor_context_switch() 121 spdk_json_write_object_end(w); in rpc_framework_monitor_context_switch() 122 spdk_jsonrpc_end_result(request, w); in rpc_framework_monitor_context_switch() 130 struct spdk_json_write_ctx *w; member 139 spdk_json_write_array_end(ctx->w); in rpc_thread_get_stats_done() 140 spdk_json_write_object_end(ctx->w); in rpc_thread_get_stats_done() 141 spdk_jsonrpc_end_result(ctx->request, ctx->w); in rpc_thread_get_stats_done() 226 rpc_get_poller(struct spdk_poller * poller,struct spdk_json_write_ctx * w) rpc_get_poller() argument 297 rpc_get_io_channel(struct spdk_io_channel * ch,struct spdk_json_write_ctx * w) rpc_get_io_channel() argument 527 struct spdk_json_write_ctx *w; rpc_framework_get_scheduler() local 561 struct spdk_json_write_ctx *w; rpc_framework_get_governor() local [all...] |
/spdk/lib/init/ |
H A D | subsystem_rpc.c | 20 struct spdk_json_write_ctx *w; in rpc_framework_get_subsystems() local 30 w = spdk_jsonrpc_begin_result(request); in rpc_framework_get_subsystems() 31 spdk_json_write_array_begin(w); in rpc_framework_get_subsystems() 34 spdk_json_write_object_begin(w); in rpc_framework_get_subsystems() 36 spdk_json_write_named_string(w, "subsystem", subsystem->name); in rpc_framework_get_subsystems() 37 spdk_json_write_named_array_begin(w, "depends_on"); in rpc_framework_get_subsystems() 41 spdk_json_write_string(w, deps->depends_on); in rpc_framework_get_subsystems() 45 spdk_json_write_array_end(w); in rpc_framework_get_subsystems() 46 spdk_json_write_object_end(w); in rpc_framework_get_subsystems() 49 spdk_json_write_array_end(w); in rpc_framework_get_subsystems() 68 struct spdk_json_write_ctx *w; rpc_framework_get_config() local 97 struct spdk_json_write_ctx *w = ctx; dump_pci_device() local 129 struct spdk_json_write_ctx *w; rpc_framework_get_pci_devices() local [all...] |
/spdk/include/spdk/ |
H A D | json.h | 197 int spdk_json_write_end(struct spdk_json_write_ctx *w); 198 int spdk_json_write_null(struct spdk_json_write_ctx *w); 199 int spdk_json_write_bool(struct spdk_json_write_ctx *w, bool val); 200 int spdk_json_write_uint8(struct spdk_json_write_ctx *w, uint8_t val); 201 int spdk_json_write_uint16(struct spdk_json_write_ctx *w, uint16_t val); 202 int spdk_json_write_int32(struct spdk_json_write_ctx *w, int32_t val); 203 int spdk_json_write_uint32(struct spdk_json_write_ctx *w, uint32_t val); 204 int spdk_json_write_int64(struct spdk_json_write_ctx *w, int64_t val); 205 int spdk_json_write_uint64(struct spdk_json_write_ctx *w, uint64_t val); 206 int spdk_json_write_uint128(struct spdk_json_write_ctx *w, uint64_t low_val, uint64_t high_val); [all …]
|
/spdk/module/bdev/ftl/ |
H A D | bdev_ftl_rpc.c | 63 struct spdk_json_write_ctx *w; in rpc_bdev_ftl_create_cb() local 72 w = spdk_jsonrpc_begin_result(request); in rpc_bdev_ftl_create_cb() 73 spdk_json_write_object_begin(w); in rpc_bdev_ftl_create_cb() 74 spdk_json_write_named_string(w, "name", bdev_info->name); in rpc_bdev_ftl_create_cb() 75 spdk_json_write_named_uuid(w, "uuid", &bdev_info->uuid); in rpc_bdev_ftl_create_cb() 76 spdk_json_write_object_end(w); in rpc_bdev_ftl_create_cb() 77 spdk_jsonrpc_end_result(request, w); in rpc_bdev_ftl_create_cb() 85 struct spdk_json_write_ctx *w; in rpc_bdev_ftl_create() local 114 w = spdk_jsonrpc_begin_result(request); in rpc_bdev_ftl_create() 115 spdk_json_write_string_fmt(w, "FT in rpc_bdev_ftl_create() 206 struct spdk_json_write_ctx *w; _rpc_bdev_ftl_get_stats() local [all...] |
/spdk/module/event/subsystems/iobuf/ |
H A D | iobuf_rpc.c | 50 struct spdk_json_write_ctx *w; in rpc_iobuf_get_stats_done() 54 w = spdk_jsonrpc_begin_result(request); in rpc_iobuf_get_stats_done() 55 spdk_json_write_array_begin(w); in rpc_iobuf_get_stats_done() 60 spdk_json_write_object_begin(w); in rpc_iobuf_get_stats_done() 61 spdk_json_write_named_string(w, "module", it->module); in rpc_iobuf_get_stats_done() 63 spdk_json_write_named_object_begin(w, "small_pool"); in rpc_iobuf_get_stats_done() 64 spdk_json_write_named_uint64(w, "cache", it->small_pool.cache); in rpc_iobuf_get_stats_done() 65 spdk_json_write_named_uint64(w, "main", it->small_pool.main); in rpc_iobuf_get_stats_done() 66 spdk_json_write_named_uint64(w, "retry", it->small_pool.retry); in rpc_iobuf_get_stats_done() 67 spdk_json_write_object_end(w); in rpc_iobuf_get_stats_done() 49 struct spdk_json_write_ctx *w; rpc_iobuf_get_stats_done() local [all...] |
H A D | iobuf.c | 38 iobuf_write_config_json(struct spdk_json_write_ctx *w) in iobuf_write_config_json() argument 44 spdk_json_write_array_begin(w); in iobuf_write_config_json() 46 spdk_json_write_object_begin(w); in iobuf_write_config_json() 47 spdk_json_write_named_string(w, "method", "iobuf_set_options"); in iobuf_write_config_json() 49 spdk_json_write_named_object_begin(w, "params"); in iobuf_write_config_json() 50 spdk_json_write_named_uint64(w, "small_pool_count", opts.small_pool_count); in iobuf_write_config_json() 51 spdk_json_write_named_uint64(w, "large_pool_count", opts.large_pool_count); in iobuf_write_config_json() 52 spdk_json_write_named_uint32(w, "small_bufsize", opts.small_bufsize); in iobuf_write_config_json() 53 spdk_json_write_named_uint32(w, "large_bufsize", opts.large_bufsize); in iobuf_write_config_json() 54 spdk_json_write_named_bool(w, "enable_num in iobuf_write_config_json() [all...] |
/spdk/lib/notify/ |
H A D | notify_rpc.c | 26 struct spdk_json_write_ctx *w; in rpc_notify_get_types() local 34 w = spdk_jsonrpc_begin_result(request); in rpc_notify_get_types() 35 spdk_json_write_array_begin(w); in rpc_notify_get_types() 36 spdk_notify_foreach_type(notify_get_types_cb, w); in rpc_notify_get_types() 37 spdk_json_write_array_end(w); in rpc_notify_get_types() 39 spdk_jsonrpc_end_result(request, w); in rpc_notify_get_types() 47 struct spdk_json_write_ctx *w; member 61 spdk_json_write_object_begin(req->w); in notify_get_notifications_cb() 62 spdk_json_write_named_string(req->w, "type", ev->type); in notify_get_notifications_cb() 63 spdk_json_write_named_string(req->w, "ctx", ev->ctx); in notify_get_notifications_cb() [all …]
|
/spdk/lib/sock/ |
H A D | sock_rpc.c | 26 struct spdk_json_write_ctx *w; in rpc_sock_impl_get_options() local 46 w = spdk_jsonrpc_begin_result(request); in rpc_sock_impl_get_options() 47 spdk_json_write_object_begin(w); in rpc_sock_impl_get_options() 48 spdk_json_write_named_uint32(w, "recv_buf_size", sock_opts.recv_buf_size); in rpc_sock_impl_get_options() 49 spdk_json_write_named_uint32(w, "send_buf_size", sock_opts.send_buf_size); in rpc_sock_impl_get_options() 50 spdk_json_write_named_bool(w, "enable_recv_pipe", sock_opts.enable_recv_pipe); in rpc_sock_impl_get_options() 51 spdk_json_write_named_bool(w, "enable_quickack", sock_opts.enable_quickack); in rpc_sock_impl_get_options() 52 spdk_json_write_named_uint32(w, "enable_placement_id", sock_opts.enable_placement_id); in rpc_sock_impl_get_options() 53 …spdk_json_write_named_bool(w, "enable_zerocopy_send_server", sock_opts.enable_zerocopy_send_server… in rpc_sock_impl_get_options() 54 …spdk_json_write_named_bool(w, "enable_zerocopy_send_client", sock_opts.enable_zerocopy_send_client… in rpc_sock_impl_get_options() [all …]
|
/spdk/module/event/subsystems/scheduler/ |
H A D | scheduler.c | 36 scheduler_write_config_json(struct spdk_json_write_ctx *w) in scheduler_write_config_json() argument 41 assert(w != NULL); in scheduler_write_config_json() 51 spdk_json_write_array_begin(w); in scheduler_write_config_json() 53 spdk_json_write_object_begin(w); in scheduler_write_config_json() 54 spdk_json_write_named_string(w, "method", "framework_set_scheduler"); in scheduler_write_config_json() 55 spdk_json_write_named_object_begin(w, "params"); in scheduler_write_config_json() 56 spdk_json_write_named_string(w, "name", scheduler->name); in scheduler_write_config_json() 58 spdk_json_write_named_uint32(w, "period", scheduler_period); in scheduler_write_config_json() 60 spdk_json_write_object_end(w); in scheduler_write_config_json() 61 spdk_json_write_object_end(w); in scheduler_write_config_json() [all …]
|
/spdk/lib/keyring/ |
H A D | keyring_rpc.c | 14 struct spdk_json_write_ctx *w = ctx; in rpc_keyring_for_each_key_cb() local 16 spdk_json_write_object_begin(w); in rpc_keyring_for_each_key_cb() 17 keyring_dump_key_info(key, w); in rpc_keyring_for_each_key_cb() 18 spdk_json_write_object_end(w); in rpc_keyring_for_each_key_cb() 25 struct spdk_json_write_ctx *w; in rpc_keyring_get_keys() local 27 w = spdk_jsonrpc_begin_result(request); in rpc_keyring_get_keys() 28 spdk_json_write_array_begin(w); in rpc_keyring_get_keys() 29 spdk_keyring_for_each_key(NULL, w, rpc_keyring_for_each_key_cb, SPDK_KEYRING_FOR_EACH_ALL); in rpc_keyring_get_keys() 30 spdk_json_write_array_end(w); in rpc_keyring_get_keys() 32 spdk_jsonrpc_end_result(request, w); in rpc_keyring_get_keys()
|
/spdk/lib/vhost/ |
H A D | vhost.c | 217 vhost_dump_info_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w) in vhost_dump_info_json() 220 vdev->backend->dump_info_json(vdev, w); in spdk_vhost_dev_remove() 352 vhost_user_config_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w) in vhost_user_config_json() 357 vdev->backend->write_config_json(vdev, w); in vhost_user_config_json() 361 spdk_json_write_object_begin(w); in vhost_user_config_json() 362 spdk_json_write_named_string(w, "method", "vhost_controller_set_coalescing"); in vhost_user_config_json() 364 spdk_json_write_named_object_begin(w, "params"); in vhost_user_config_json() 365 spdk_json_write_named_string(w, "ctrlr", vdev->name); in vhost_user_config_json() 366 spdk_json_write_named_uint32(w, "delay_base_us", delay_base_us); in vhost_user_config_json() 367 spdk_json_write_named_uint32(w, "iops_threshol in vhost_user_config_json() 213 vhost_dump_info_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_dump_info_json() argument 348 vhost_user_config_json(struct spdk_vhost_dev * vdev,struct spdk_json_write_ctx * w) vhost_user_config_json() argument 371 spdk_vhost_scsi_config_json(struct spdk_json_write_ctx * w) spdk_vhost_scsi_config_json() argument 390 vhost_blk_dump_config_json(struct spdk_json_write_ctx * w) vhost_blk_dump_config_json() argument 410 spdk_vhost_blk_config_json(struct spdk_json_write_ctx * w) spdk_vhost_blk_config_json() argument 497 virtio_blk_transport_dump_opts(struct spdk_virtio_blk_transport * transport,struct spdk_json_write_ctx * w) virtio_blk_transport_dump_opts() argument [all...] |
H A D | vhost_rpc.c | 145 struct spdk_json_write_ctx *w; in rpc_vhost_scsi_controller_add_target() local 173 w = spdk_jsonrpc_begin_result(request); in rpc_vhost_scsi_controller_add_target() 174 spdk_json_write_int32(w, rc); in rpc_vhost_scsi_controller_add_target() 175 spdk_jsonrpc_end_result(request, w); in rpc_vhost_scsi_controller_add_target() 403 _rpc_get_vhost_controller(struct spdk_json_write_ctx *w, struct spdk_vhost_dev *vdev) in free_rpc_get_vhost_ctrlrs() 409 spdk_json_write_object_begin(w); in rpc_vhost_get_controllers() 411 spdk_json_write_named_string(w, "ctrlr", spdk_vhost_dev_get_name(vdev)); in rpc_vhost_get_controllers() 412 spdk_json_write_named_string_fmt(w, "cpumask", "0x%s", in rpc_vhost_get_controllers() 414 spdk_json_write_named_uint32(w, "delay_base_us", delay_base_us); in rpc_vhost_get_controllers() 415 spdk_json_write_named_uint32(w, "iops_threshol in rpc_vhost_get_controllers() 373 _rpc_get_vhost_controller(struct spdk_json_write_ctx * w,struct spdk_vhost_dev * vdev) _rpc_get_vhost_controller() argument 413 struct spdk_json_write_ctx *w; rpc_vhost_get_controllers() local 543 struct spdk_json_write_ctx *w; rpc_virtio_blk_get_transports() local [all...] |
/spdk/lib/ftl/utils/ |
H A D | ftl_property.c | 144 struct spdk_json_write_ctx *w) in ftl_property_dump_common_begin() argument 146 spdk_json_write_named_string(w, "name", property->name); in ftl_property_dump_common_begin() 151 struct spdk_json_write_ctx *w) in ftl_property_dump_common_end() argument 154 spdk_json_write_named_string(w, "unit", property->unit); in ftl_property_dump_common_end() 157 spdk_json_write_named_string(w, "desc", property->desc); in ftl_property_dump_common_end() 161 spdk_json_write_named_bool(w, "read-only", true); in ftl_property_dump_common_end() 170 struct spdk_json_write_ctx *w; in ftl_property_dump() local 172 w = spdk_jsonrpc_begin_result(request); in ftl_property_dump() 174 spdk_json_write_object_begin(w); in ftl_property_dump() 175 spdk_json_write_named_string(w, "name", dev->conf.name); in ftl_property_dump() [all …]
|
/spdk/lib/trace/ |
H A D | trace_rpc.c | 179 struct spdk_json_write_ctx *w; in rpc_trace_get_tpoint_group_mask() local 188 w = spdk_jsonrpc_begin_result(request); in rpc_trace_get_tpoint_group_mask() 191 spdk_json_write_object_begin(w); in rpc_trace_get_tpoint_group_mask() 194 spdk_json_write_named_string(w, "tpoint_group_mask", mask_str); in rpc_trace_get_tpoint_group_mask() 200 spdk_json_write_named_object_begin(w, register_fn->name); in rpc_trace_get_tpoint_group_mask() 201 spdk_json_write_named_bool(w, "enabled", enabled); in rpc_trace_get_tpoint_group_mask() 204 spdk_json_write_named_string(w, "mask", mask_str); in rpc_trace_get_tpoint_group_mask() 205 spdk_json_write_object_end(w); in rpc_trace_get_tpoint_group_mask() 210 spdk_json_write_object_end(w); in rpc_trace_get_tpoint_group_mask() 211 spdk_jsonrpc_end_result(request, w); in rpc_trace_get_tpoint_group_mask() [all …]
|
/spdk/lib/scsi/ |
H A D | scsi_rpc.c | 16 struct spdk_json_write_ctx *w; in rpc_scsi_get_devices() local 26 w = spdk_jsonrpc_begin_result(request); in rpc_scsi_get_devices() 27 spdk_json_write_array_begin(w); in rpc_scsi_get_devices() 36 spdk_json_write_object_begin(w); in rpc_scsi_get_devices() 38 spdk_json_write_named_int32(w, "id", dev->id); in rpc_scsi_get_devices() 40 spdk_json_write_named_string(w, "device_name", dev->name); in rpc_scsi_get_devices() 42 spdk_json_write_object_end(w); in rpc_scsi_get_devices() 44 spdk_json_write_array_end(w); in rpc_scsi_get_devices() 46 spdk_jsonrpc_end_result(request, w); in rpc_scsi_get_devices()
|
/spdk/test/unit/lib/json/json_write.c/ |
H A D | json_write_ut.c | 36 w = spdk_json_write_begin(write_cb, NULL, 0); \ 37 SPDK_CU_ASSERT_FATAL(w != NULL) 40 CU_ASSERT(spdk_json_write_end(w) == 0); \ 45 CU_ASSERT(spdk_json_write_end(w) == 0); \ 50 CU_ASSERT(spdk_json_write_end(w) == 0) 53 CU_ASSERT(spdk_json_write_end(w) == 0); \ 57 CU_ASSERT(spdk_json_write_end(w) < 0) 60 CU_ASSERT(spdk_json_write_string_raw(w, str, sizeof(str) - 1) == 0) 63 CU_ASSERT(spdk_json_write_string_raw(w, str, sizeof(str) - 1) < 0) 72 …CU_ASSERT(spdk_json_write_string_utf16le_raw(w, (const uint16_t *)str, sizeof(str) / sizeof(uint16… [all …]
|
/spdk/lib/jsonrpc/ |
H A D | jsonrpc_server.c | 285 struct spdk_json_write_ctx *w = request->response; in begin_response() local 287 spdk_json_write_object_begin(w); in begin_response() 288 spdk_json_write_named_string(w, "jsonrpc", "2.0"); in begin_response() 290 spdk_json_write_name(w, "id"); in begin_response() 292 spdk_json_write_val(w, request->id); in begin_response() 294 spdk_json_write_null(w); in begin_response() 297 return w; in begin_response() 363 struct spdk_json_write_ctx *w = begin_response(request); in spdk_jsonrpc_begin_result() local 365 spdk_json_write_name(w, "result"); in spdk_jsonrpc_begin_result() 366 return w; in spdk_jsonrpc_begin_result() [all …]
|
/spdk/lib/nvmf/ |
H A D | nvmf.c | 526 nvmf_write_nvme_subsystem_config(struct spdk_json_write_ctx *w, in spdk_nvmf_get_tgt() 538 spdk_json_write_object_begin(w); in spdk_nvmf_get_first_tgt() 539 spdk_json_write_named_string(w, "method", "nvmf_create_subsystem"); 542 spdk_json_write_named_object_begin(w, "params"); in spdk_nvmf_get_next_tgt() 543 spdk_json_write_named_string(w, "nqn", spdk_nvmf_subsystem_get_nqn(subsystem)); in spdk_nvmf_get_next_tgt() 544 spdk_json_write_named_bool(w, "allow_any_host", spdk_nvmf_subsystem_get_allow_any_host(subsystem)); in spdk_nvmf_get_next_tgt() 545 spdk_json_write_named_string(w, "serial_number", spdk_nvmf_subsystem_get_sn(subsystem)); 546 spdk_json_write_named_string(w, "model_number", spdk_nvmf_subsystem_get_mn(subsystem)); 550 spdk_json_write_named_uint32(w, "max_namespaces", max_namespaces); in nvmf_write_nvme_subsystem_config() 553 spdk_json_write_named_uint32(w, "min_cntli in nvmf_write_nvme_subsystem_config() 547 nvmf_write_nvme_subsystem_config(struct spdk_json_write_ctx * w,struct spdk_nvmf_subsystem * subsystem) nvmf_write_nvme_subsystem_config() argument 682 nvmf_write_subsystem_config_json(struct spdk_json_write_ctx * w,struct spdk_nvmf_subsystem * subsystem) nvmf_write_subsystem_config_json() argument 728 spdk_nvmf_tgt_write_config_json(struct spdk_json_write_ctx * w,struct spdk_nvmf_tgt * tgt) spdk_nvmf_tgt_write_config_json() argument 1888 spdk_nvmf_poll_group_dump_stat(struct spdk_nvmf_poll_group * group,struct spdk_json_write_ctx * w) spdk_nvmf_poll_group_dump_stat() argument [all...] |
H A D | nvmf_rpc.c | 25 json_write_hex_str(struct spdk_json_write_ctx *w, const void *data, size_t size) 48 rc = spdk_json_write_string(w, str); in json_write_hex_str() 159 dump_nvmf_subsystem(struct spdk_json_write_ctx *w, struct spdk_nvmf_subsystem *subsystem) 164 spdk_json_write_object_begin(w); in dump_nvmf_subsystem() 166 spdk_json_write_named_string(w, "nqn", spdk_nvmf_subsystem_get_nqn(subsystem)); in dump_nvmf_subsystem() 167 spdk_json_write_name(w, "subtype"); in dump_nvmf_subsystem() 169 spdk_json_write_string(w, "NVMe"); in dump_nvmf_subsystem() 171 spdk_json_write_string(w, "Discovery"); in dump_nvmf_subsystem() 174 spdk_json_write_named_array_begin(w, "listen_addresses"); in dump_nvmf_subsystem() 182 spdk_json_write_object_begin(w); in dump_nvmf_subsystem() 27 json_write_hex_str(struct spdk_json_write_ctx * w,const void * data,size_t size) json_write_hex_str() argument 161 dump_nvmf_subsystem(struct spdk_json_write_ctx * w,struct spdk_nvmf_subsystem * subsystem) dump_nvmf_subsystem() argument 270 struct spdk_json_write_ctx *w; rpc_nvmf_get_subsystems() local 1220 dump_nvmf_referral(struct spdk_json_write_ctx * w,struct spdk_nvmf_referral * referral) dump_nvmf_referral() argument 1256 struct spdk_json_write_ctx *w; rpc_nvmf_get_referrals() local 1491 struct spdk_json_write_ctx *w; nvmf_rpc_ns_resumed() local 2187 struct spdk_json_write_ctx *w; rpc_nvmf_create_target() local 2272 struct spdk_json_write_ctx *w; rpc_nvmf_get_targets() local 2543 struct spdk_json_write_ctx *w; rpc_nvmf_get_transports() local 2600 struct spdk_json_write_ctx *w; global() member 2689 dump_nvmf_ctrlr(struct spdk_json_write_ctx * w,struct spdk_nvmf_ctrlr * ctrlr) dump_nvmf_ctrlr() argument 2725 dump_nvmf_qpair(struct spdk_json_write_ctx * w,struct spdk_nvmf_qpair * qpair) dump_nvmf_qpair() argument 2776 dump_nvmf_subsystem_listener(struct spdk_json_write_ctx * w,struct spdk_nvmf_subsystem_listener * listener) dump_nvmf_subsystem_listener() argument 2808 struct spdk_json_write_ctx *w; global() member 2829 struct spdk_json_write_ctx *w; rpc_nvmf_get_controllers_paused() local 2907 struct spdk_json_write_ctx *w; rpc_nvmf_get_listeners_paused() local [all...] |
/spdk/lib/ublk/ |
H A D | ublk_rpc.c | 105 struct spdk_json_write_ctx *w; in rpc_ublk_start_disk_done() local 108 w = spdk_jsonrpc_begin_result(req->request); in rpc_ublk_start_disk_done() 109 spdk_json_write_uint32(w, req->ublk_id); in rpc_ublk_start_disk_done() 110 spdk_jsonrpc_end_result(req->request, w); in rpc_ublk_start_disk_done() 220 rpc_dump_ublk_info(struct spdk_json_write_ctx *w, in rpc_dump_ublk_info() argument 226 spdk_json_write_object_begin(w); in rpc_dump_ublk_info() 228 spdk_json_write_named_string(w, "ublk_device", ublk_path); in rpc_dump_ublk_info() 229 spdk_json_write_named_uint32(w, "id", ublk_dev_get_id(ublk)); in rpc_dump_ublk_info() 230 spdk_json_write_named_uint32(w, "queue_depth", ublk_dev_get_queue_depth(ublk)); in rpc_dump_ublk_info() 231 spdk_json_write_named_uint32(w, "num_queues", ublk_dev_get_num_queues(ublk)); in rpc_dump_ublk_info() [all …]
|
/spdk/module/event/subsystems/vmd/ |
H A D | vmd.c | 77 vmd_write_config_json(struct spdk_json_write_ctx *w) in vmd_write_config_json() argument 79 spdk_json_write_array_begin(w); in vmd_write_config_json() 82 spdk_json_write_object_begin(w); in vmd_write_config_json() 83 spdk_json_write_named_string(w, "method", "vmd_enable"); in vmd_write_config_json() 84 spdk_json_write_named_object_begin(w, "params"); in vmd_write_config_json() 85 spdk_json_write_object_end(w); in vmd_write_config_json() 86 spdk_json_write_object_end(w); in vmd_write_config_json() 89 spdk_json_write_array_end(w); in vmd_write_config_json()
|