/spdk/lib/ftl/ |
H A D | ftl_l2p_flat.c | 62 void *cb_ctx = md->owner.cb_ctx; in md_cb() local 64 cb(dev, status, cb_ctx); in md_cb() 68 ftl_l2p_flat_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_flat_clear() argument 78 md->owner.cb_ctx = cb_ctx; in ftl_l2p_flat_clear() 84 ftl_l2p_flat_restore(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_flat_restore() argument 90 md->owner.cb_ctx = cb_ctx; in ftl_l2p_flat_restore() 96 ftl_l2p_flat_persist(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_flat_persist() argument 102 md->owner.cb_ctx = cb_ctx; in ftl_l2p_flat_persist() 173 ftl_l2p_flat_trim(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_flat_trim() argument 175 cb(dev, 0, cb_ctx); in ftl_l2p_flat_trim()
|
H A D | ftl_l2p.c | 36 ftl_l2p_pin_cb cb, void *cb_ctx) in ftl_l2p_pin_ctx_init() argument 41 pin_ctx->cb_ctx = cb_ctx; in ftl_l2p_pin_ctx_init() 45 ftl_l2p_pin(struct spdk_ftl_dev *dev, uint64_t lba, uint64_t count, ftl_l2p_pin_cb cb, void *cb_ctx, in ftl_l2p_pin() argument 48 ftl_l2p_pin_ctx_init(pin_ctx, lba, count, cb, cb_ctx); in ftl_l2p_pin() 59 ftl_l2p_pin_skip(struct spdk_ftl_dev *dev, ftl_l2p_pin_cb cb, void *cb_ctx, in ftl_l2p_pin_skip() argument 62 ftl_l2p_pin_ctx_init(pin_ctx, FTL_LBA_INVALID, 0, cb, cb_ctx); in ftl_l2p_pin_skip() 79 ftl_l2p_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_clear() argument 81 FTL_L2P_OP(clear)(dev, cb, cb_ctx); in ftl_l2p_clear() 85 ftl_l2p_restore(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_restore() argument 87 FTL_L2P_OP(restore)(dev, cb, cb_ctx); in ftl_l2p_restore() [all …]
|
H A D | ftl_l2p.h | 30 void *cb_ctx; member 35 void *cb_ctx, struct ftl_l2p_pin_ctx *pin_ctx); 37 void ftl_l2p_pin_skip(struct spdk_ftl_dev *dev, ftl_l2p_pin_cb cb, void *cb_ctx, 43 void ftl_l2p_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 44 void ftl_l2p_trim(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 45 void ftl_l2p_restore(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 46 void ftl_l2p_persist(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx);
|
H A D | ftl_l2p_flat.h | 15 void ftl_l2p_flat_trim(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 16 void ftl_l2p_flat_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 17 void ftl_l2p_flat_restore(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 18 void ftl_l2p_flat_persist(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx);
|
H A D | ftl_l2p_cache.h | 19 void ftl_l2p_cache_trim(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 20 void ftl_l2p_cache_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 21 void ftl_l2p_cache_restore(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx); 22 void ftl_l2p_cache_persist(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx);
|
H A D | ftl_io.c | 165 struct iovec *iov, size_t iov_cnt, spdk_ftl_fn cb_fn, void *cb_ctx, int type) in ftl_io_init() argument 177 io->cb_ctx = cb_ctx; in ftl_io_init() 230 ftl_io_cb(io, io->cb_ctx, io->status); in ftl_io_complete()
|
H A D | ftl_nv_cache.h | 241 typedef void (*nvc_scrub_cb)(struct spdk_ftl_dev *dev, void *cb_ctx, int status); 243 void ftl_nv_cache_scrub(struct spdk_ftl_dev *dev, nvc_scrub_cb cb, void *cb_ctx); 299 ftl_chunk_md_cb cb, void *cb_ctx);
|
H A D | ftl_l2p_cache.c | 97 void *cb_ctx; member 552 ftl_l2p_cb cb, void *cb_ctx) in process_init_ctx() argument 556 assert(NULL == ctx->cb_ctx); in process_init_ctx() 562 ctx->cb_ctx = cb_ctx; in process_init_ctx() 574 ctx.cb(cache->dev, ctx.status, ctx.cb_ctx); in process_finish() 761 ftl_l2p_cache_trim(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_cache_trim() argument 765 process_init_ctx(dev, cache, cb, cb_ctx); in ftl_l2p_cache_trim() 773 void *cb_cntx = md->owner.cb_ctx; in clear_cb() 779 ftl_l2p_cache_clear(struct spdk_ftl_dev *dev, ftl_l2p_cb cb, void *cb_ctx) in ftl_l2p_cache_clear() argument 879 ftl_l2p_cache_restore(struct spdk_ftl_dev * dev,ftl_l2p_cb cb,void * cb_ctx) ftl_l2p_cache_restore() argument 932 ftl_l2p_cache_persist(struct spdk_ftl_dev * dev,ftl_l2p_cb cb,void * cb_ctx) ftl_l2p_cache_persist() argument [all...] |
/spdk/module/bdev/raid/ |
H A D | bdev_raid_sb.c | 21 void *cb_ctx; member 29 void *cb_ctx; member 266 ctx->cb(sb, status, ctx->cb_ctx); in raid_bdev_read_sb_cb() 273 raid_bdev_load_sb_cb cb, void *cb_ctx) in raid_bdev_load_base_bdev_superblock() argument 289 ctx->cb_ctx = cb_ctx; in raid_bdev_load_base_bdev_superblock() 318 ctx->cb(ctx->status, ctx->raid_bdev, ctx->cb_ctx); in raid_bdev_write_sb_base_bdev_done() 383 raid_bdev_write_superblock(struct raid_bdev *raid_bdev, raid_bdev_write_sb_cb cb, void *cb_ctx) in raid_bdev_write_superblock() argument 409 ctx->cb_ctx = cb_ctx; in raid_bdev_write_superblock() 427 cb(rc, raid_bdev, cb_ctx); in raid_bdev_write_superblock()
|
H A D | bdev_raid.h | 178 typedef void (*raid_bdev_configure_cb)(void *cb_ctx, int rc); 263 typedef void (*raid_bdev_destruct_cb)(void *cb_ctx, int rc); 268 void raid_bdev_delete(struct raid_bdev *raid_bdev, raid_bdev_destruct_cb cb_fn, void *cb_ctx); 270 raid_base_bdev_cb cb_fn, void *cb_ctx); 278 int raid_bdev_remove_base_bdev(struct spdk_bdev *base_bdev, raid_base_bdev_cb cb_fn, void *cb_ctx); 555 void *cb_ctx); 557 raid_bdev_load_sb_cb cb, void *cb_ctx);
|
H A D | bdev_raid.c | 87 void *cb_ctx; 1673 raid_bdev_process_add_finish_action(struct raid_bdev_process *process, spdk_msg_fn cb, void *cb_ctx) in raid_bdev_event_cb() 1686 finish_action->cb_ctx = cb_ctx; 1812 raid_bdev_configure(struct raid_bdev *raid_bdev, raid_bdev_configure_cb cb, void *cb_ctx) in raid_bdev_configure() 1839 raid_bdev->configure_cb_ctx = cb_ctx; in raid_bdev_deconfigure() 2170 raid_base_bdev_cb cb_fn, void *cb_ctx) 2202 cb_fn(cb_ctx, 0); in raid_bdev_fail_base_remove_cb() 2207 raid_bdev_deconfigure(raid_bdev, cb_fn, cb_ctx); in raid_bdev_fail_base_remove_cb() 2210 base_info->remove_cb_ctx = cb_ctx; 74 void *cb_ctx; global() member 1633 raid_bdev_process_add_finish_action(struct raid_bdev_process * process,spdk_msg_fn cb,void * cb_ctx) raid_bdev_process_add_finish_action() argument 2115 _raid_bdev_remove_base_bdev(struct raid_base_bdev_info * base_info,raid_base_bdev_cb cb_fn,void * cb_ctx) _raid_bdev_remove_base_bdev() argument 2185 raid_bdev_remove_base_bdev(struct spdk_bdev * base_bdev,raid_base_bdev_cb cb_fn,void * cb_ctx) raid_bdev_remove_base_bdev() argument 3127 raid_bdev_configure_base_bdev(struct raid_base_bdev_info * base_info,bool existing,raid_base_bdev_cb cb_fn,void * cb_ctx) raid_bdev_configure_base_bdev() argument 3312 raid_bdev_add_base_bdev(struct raid_bdev * raid_bdev,const char * name,raid_base_bdev_cb cb_fn,void * cb_ctx) raid_bdev_add_base_bdev() argument 3441 void *cb_ctx; global() member 3522 raid_bdev_examine_sb(const struct raid_bdev_superblock * sb,struct spdk_bdev * bdev,raid_base_bdev_cb cb_fn,void * cb_ctx) raid_bdev_examine_sb() argument 3666 void *cb_ctx; global() member 3704 raid_bdev_examine_load_sb(const char * bdev_name,raid_bdev_examine_load_sb_cb cb,void * cb_ctx) raid_bdev_examine_load_sb() argument [all...] |
/spdk/lib/ftl/mngt/ |
H A D | ftl_mngt.c | 36 void *cb_ctx; member 125 ftl_mngt_completion cb, void *cb_ctx, bool silent) in allocate_mngt() argument 137 mngt->caller.cb_ctx = cb_ctx; in allocate_mngt() 177 ftl_mngt_completion cb, void *cb_ctx, bool silent, void *init_ctx) in _ftl_mngt_process_execute() argument 183 mngt = allocate_mngt(dev, pdesc, cb, cb_ctx, silent); in _ftl_mngt_process_execute() 224 ftl_mngt_completion cb, void *cb_ctx) in ftl_mngt_process_execute() argument 226 return _ftl_mngt_process_execute(dev, pdesc, cb, cb_ctx, false, NULL); in ftl_mngt_process_execute() 231 ftl_mngt_completion cb, void *cb_ctx) in ftl_mngt_process_rollback() argument 237 mngt = allocate_mngt(dev, pdesc, cb, cb_ctx, true); in ftl_mngt_process_rollback() 310 return mngt->caller.cb_ctx; in ftl_mngt_get_caller_ctx() [all …]
|
H A D | ftl_mngt_p2l.c | 42 struct ftl_mngt_p2l_md_ctx *ctx = md->owner.cb_ctx; in ftl_p2l_wipe_md_region_cb() 72 md->owner.cb_ctx = ctx; in ftl_p2l_wipe_md_region() 145 struct ftl_mngt_p2l_md_ctx *ctx = md->owner.cb_ctx; in ftl_mngt_p2l_restore_ckpt() 187 md->owner.cb_ctx = ctx;
|
H A D | ftl_mngt.h | 154 ftl_mngt_completion cb, void *cb_ctx); 173 ftl_mngt_completion cb, void *cb_ctx);
|
H A D | ftl_mngt_recovery.c | 204 struct ftl_mngt_process *mngt = md->owner.cb_ctx; in restore_band_state_cb() 246 md->owner.cb_ctx = mngt; in ftl_mngt_recovery_restore_band_state() 356 struct ftl_mngt_process *mngt = md->owner.cb_ctx; in l2p_cb() 379 md->owner.cb_ctx = mngt; in ftl_mngt_recovery_iteration_load_l2p() 390 md->owner.cb_ctx = mngt; in ftl_mngt_recovery_iteration_save_l2p() 730 struct ftl_mngt_process *mngt = md->owner.cb_ctx; in ftl_mngt_recover_trim_cb() 765 md->owner.cb_ctx = mngt; in ftl_mngt_recover_trim_md() 781 md->owner.cb_ctx = mngt; in ftl_mngt_recover_trim_md_persist() 789 struct ftl_mngt_process *mngt = md->owner.cb_ctx; in ftl_mngt_recover_trim_log_cb() 837 md->owner.cb_ctx = mngt; in ftl_mngt_recover_trim_log() [all …]
|
H A D | ftl_mngt_misc.c | 145 user_clear_cb(struct spdk_ftl_dev *dev, void *cb_ctx, int status) in user_clear_cb() argument 147 struct ftl_mngt_process *mngt = cb_ctx; in user_clear_cb() 297 struct ftl_mngt_process *mngt = md->owner.cb_ctx; in trim_clear_cb() 312 md->owner.cb_ctx = mngt; in ftl_mngt_trim_metadata_clear() 322 md->owner.cb_ctx = mngt; in ftl_mngt_trim_log_clear()
|
/spdk/include/spdk/ |
H A D | ioat.h | 42 typedef bool (*spdk_ioat_probe_cb)(void *cb_ctx, struct spdk_pci_device *pci_dev); 52 typedef void (*spdk_ioat_attach_cb)(void *cb_ctx, struct spdk_pci_device *pci_dev, 73 int spdk_ioat_probe(void *cb_ctx, spdk_ioat_probe_cb probe_cb, spdk_ioat_attach_cb attach_cb);
|
/spdk/lib/nvmf/ |
H A D | nvmf_fc.h | 161 void *cb_ctx; member 516 void *cb_ctx; 655 void *cb_ctx; 667 void *cb_ctx; 675 void *cb_ctx; 691 void *cb_ctx; 701 void *cb_ctx; 717 void *cb_ctx; 729 void *cb_ctx; 740 void *cb_ctx; 514 void *cb_ctx; global() member 653 void *cb_ctx; global() member 665 void *cb_ctx; global() member 673 void *cb_ctx; global() member 689 void *cb_ctx; global() member 699 void *cb_ctx; global() member 715 void *cb_ctx; global() member 727 void *cb_ctx; global() member 738 void *cb_ctx; global() member 749 void *cb_ctx; global() member 760 void *cb_ctx; global() member [all...] |
/spdk/lib/idxd/ |
H A D | idxd_user.c | 347 void *cb_ctx; member 351 probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev) in probe_cb() argument 384 if (enum_ctx->probe_cb(enum_ctx->cb_ctx, pci_dev) == false) { in idxd_enum_cb() 388 if (probe_cb(enum_ctx->cb_ctx, pci_dev)) { in idxd_enum_cb() 395 enum_ctx->attach_cb(enum_ctx->cb_ctx, idxd); in idxd_enum_cb() 403 user_idxd_probe(void *cb_ctx, spdk_idxd_attach_cb attach_cb, in user_idxd_probe() argument 411 enum_ctx.cb_ctx = cb_ctx; in user_idxd_probe()
|
/spdk/lib/nvme/ |
H A D | nvme.c | 655 if (!probe_ctx->probe_cb || probe_ctx->probe_cb(probe_ctx->cb_ctx, trid, &opts)) { in nvme_ctrlr_probe() 664 probe_ctx->attach_fail_cb(probe_ctx->cb_ctx, trid, -EBUSY); in nvme_ctrlr_probe() 674 probe_ctx->attach_cb(probe_ctx->cb_ctx, &ctrlr->trid, ctrlr, &ctrlr->opts); in nvme_ctrlr_probe() 683 probe_ctx->attach_fail_cb(probe_ctx->cb_ctx, trid, -ENODEV); in nvme_ctrlr_probe() 687 ctrlr->cb_ctx = probe_ctx->cb_ctx; in nvme_ctrlr_probe() 710 probe_ctx->attach_fail_cb(probe_ctx->cb_ctx, &ctrlr->trid, rc); in nvme_ctrlr_poll_internal() 755 probe_ctx->attach_cb(probe_ctx->cb_ctx, &ctrlr->trid, ctrlr, &ctrlr->opts); in nvme_init_controllers() 845 probe_ctx->attach_fail_cb(probe_ctx->cb_ctx, &ctrlr->trid, -EFAULT); in nvme_probe_internal() 880 probe_ctx->attach_cb(probe_ctx->cb_ctx, in nvme_probe_ctx_init() 882 nvme_probe_ctx_init(struct spdk_nvme_probe_ctx * probe_ctx,const struct spdk_nvme_transport_id * trid,const struct spdk_nvme_ctrlr_opts * opts,void * cb_ctx,spdk_nvme_probe_cb probe_cb,spdk_nvme_attach_cb attach_cb,spdk_nvme_remove_cb remove_cb) nvme_probe_ctx_init() argument 897 spdk_nvme_probe(const struct spdk_nvme_transport_id * trid,void * cb_ctx,spdk_nvme_probe_cb probe_cb,spdk_nvme_attach_cb attach_cb,spdk_nvme_remove_cb remove_cb) spdk_nvme_probe() argument 925 nvme_connect_probe_cb(void * cb_ctx,const struct spdk_nvme_transport_id * trid,struct spdk_nvme_ctrlr_opts * opts) nvme_connect_probe_cb() argument 1509 spdk_nvme_probe_async(const struct spdk_nvme_transport_id * trid,void * cb_ctx,spdk_nvme_probe_cb probe_cb,spdk_nvme_attach_cb attach_cb,spdk_nvme_remove_cb remove_cb) spdk_nvme_probe_async() argument [all...] |
/spdk/module/bdev/nvme/ |
H A D | bdev_nvme.h | 41 void *cb_ctx; 287 int bdev_nvme_set_hotplug(bool enabled, uint64_t period_us, spdk_msg_fn cb, void *cb_ctx); 292 spdk_bdev_nvme_start_discovery_fn cb_fn, void *cb_ctx); 294 void *cb_ctx); 308 bdev_nvme_set_keys_cb cb_fn, void *cb_ctx); 63 void *cb_ctx; global() member
|
/spdk/test/env/env_dpdk_post_init/ |
H A D | env_dpdk_post_init.c | 28 probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, in probe_cb() argument 37 attach_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, in attach_cb() argument
|
/spdk/lib/ftl/upgrade/ |
H A D | ftl_band_upgrade.c | 38 struct ftl_layout_upgrade_ctx *lctx = md->owner.cb_ctx; in v2_upgrade_md_persist_cb() 46 struct ftl_layout_upgrade_ctx *lctx = md->owner.cb_ctx; in v2_upgrade_md_restore_cb() 104 ctx->md->owner.cb_ctx = lctx; in v2_upgrade_setup_ctx()
|
H A D | ftl_trim_upgrade.c | 39 struct ftl_layout_upgrade_ctx *lctx = md->owner.cb_ctx; in v0_to_v1_upgrade_md_cb() 62 ctx->md->owner.cb_ctx = lctx; in v0_to_v1_upgrade_setup_ctx()
|
/spdk/module/bdev/zone_block/ |
H A D | vbdev_zone_block_rpc.c | 89 _rpc_delete_zone_block_cb(void *cb_ctx, int rc) in _rpc_delete_zone_block_cb() argument 91 struct spdk_jsonrpc_request *request = cb_ctx; in _rpc_delete_zone_block_cb()
|