Home
last modified time | relevance | path

Searched refs:valid (Results 1 – 23 of 23) sorted by relevance

/spdk/lib/ftl/mngt/
H A Dftl_mngt_self_test.c85 bool valid; in test_valid_map_pin_cb() local
106 valid = ftl_bitmap_get(dev->valid_map, addr); in test_valid_map_pin_cb()
107 if (!valid) { in test_valid_map_pin_cb()
155 uint64_t valid = ctx->valid_map.base_valid_count + in ftl_mngt_test_valid_map() local
158 if (ftl_bitmap_count_set(dev->valid_map) != valid) { in ftl_mngt_test_valid_map()
H A Dftl_mngt_band.c28 p2l_map->valid = ftl_bitmap_create(ftl_md_get_buffer(valid_map_md) + in ftl_band_init_md()
30 if (!p2l_map->valid) { in ftl_band_init_md()
117 ftl_bitmap_destroy(band->p2l_map.valid); in ftl_dev_deinit_bands_md()
118 band->p2l_map.valid = NULL; in ftl_dev_deinit_bands_md()
/spdk/lib/ftl/
H A Dftl_debug.c57 if (!ftl_bitmap_get(p2l_map->valid, i)) { in ftl_band_validate_md_pin()
80 bool valid = true; in _ftl_band_validate_md() local
92 if (ftl_bitmap_get(band->p2l_map.valid, i)) { in _ftl_band_validate_md()
97 valid = false; in _ftl_band_validate_md()
109 ctx->cb(band, valid); in _ftl_band_validate_md()
H A Dftl_band.c98 _ftl_band_set_closed_cb(struct ftl_band *band, bool valid) in _ftl_band_set_closed_cb() argument
102 assert(valid == true); in _ftl_band_set_closed_cb()
453 double valid = band->p2l_map.num_valid; in ftl_band_invalidity() local
456 return 1.0 - (valid / count); in ftl_band_invalidity()
685 band->p2l_map.num_valid = ftl_bitmap_count_set(band->p2l_map.valid); in ftl_valid_map_load_state()
H A Dftl_band.h48 typedef void (*ftl_band_validate_md_cb)(struct ftl_band *band, bool valid);
242 return ftl_bitmap_get(p2l_map->valid, block_off); in ftl_band_block_offset_valid()
H A Dftl_internal.h78 * - during relocation FTL needs to pin L2P pages (this allows to check which pages to pin) and move still valid blocks
79 * (valid map allows for preliminary elimination of invalid physical blocks, but user data could invalidate a location
85 /* Number of valid LBAs */
91 /* Bitmap of valid LBAs */
92 struct ftl_bitmap *valid;
94 /* P2L map (only valid for open/relocating bands) */
87 struct ftl_bitmap *valid; global() member
H A Dftl_reloc.c391 uint64_t begin = ftl_bitmap_find_first_set(band->p2l_map.valid, pos, UINT64_MAX); in move_read()
427 end = ftl_bitmap_find_first_clear(band->p2l_map.valid, begin + 1, begin + rq_left); in move_read()
/spdk/test/unit/lib/ftl/ftl_band.c/
H A Dftl_band_ut.c168 *bitmap = g_band->p2l_map.valid; in adjust_bitmap()
299 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset)); in test_band_set_addr()
308 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset)); in test_band_set_addr()
311 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset)); in test_band_set_addr()
331 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset[0])); in test_invalidate_addr()
334 CU_ASSERT_FALSE(ftl_bitmap_get(p2l_map->valid, offset[0])); in test_invalidate_addr()
344 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset[0])); in test_invalidate_addr()
345 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset[1])); in test_invalidate_addr()
348 CU_ASSERT_TRUE(ftl_bitmap_get(p2l_map->valid, offset[0])); in test_invalidate_addr()
349 CU_ASSERT_FALSE(ftl_bitmap_get(p2l_map->valid, offset[1])); in test_invalidate_addr()
/spdk/test/unit/lib/ftl/common/
H A Dutils.c126 band->p2l_map.valid = (struct ftl_bitmap *)spdk_bit_array_create(ftl_get_num_blocks_in_band(dev)); in test_init_ftl_band()
127 SPDK_CU_ASSERT_FATAL(band->p2l_map.valid != NULL); in test_init_ftl_band()
162 spdk_bit_array_free((struct spdk_bit_array **)&band->p2l_map.valid); in test_free_ftl_band()
/spdk/app/trace_record/
H A Dtrace_record.c27 bool valid; member
102 ctx->lcore_ports[i].valid = (history != NULL); in input_trace_file_mmap()
157 if (!port_ctx->valid) { in output_trace_files_prepare()
463 if (lcore_port->valid) { in trace_files_aggregate()
509 if (!lcore_port->valid) { in trace_files_aggregate()
708 if (!lcore_port->valid) { in main()
/spdk/doc/
H A Dssd_internals.md53 is no more valid than the data already in the user's data buffer.
69 2. Walking through each entry in the erase block and determining if it is still a valid logical blo…
70 3. Moving valid logical blocks by reading them and writing them to a different erase block (i.e. th…
78 erase block will not contain valid data. The second is software can write to
82 valid data that must be moved.
H A Dftl.md102 situation in which all of the bands contain some valid data and no band can be erased, so no writes
103 can be executed anymore. Therefore a mechanism is needed to move valid data and invalidate whole
119 some of such blocks marked, checks their validity and, if they're still valid, copies them.
121 Choosing a band for garbage collection depends its validity ratio (proportion of valid blocks to all
135 - Valid map - bitmask of all the valid physical addresses, used for improving [relocation](#ftl_rel…
H A Drpm.md30 - GEN_SPEC - Orders rpm.sh to only generate a valid .spec and print
H A Dcompression.md203 would still be fully valid.
265 are reconstructed by walking the logical map. The logical map will only point to valid
266 chunk maps, and the valid chunk maps will only point to valid backing IO units. Any chunk maps
H A Dnvme_spec.md24 submission queue tail doorbell register. It's actually valid to copy a whole set
H A Dbdev_module.md112 blocks as no longer containing valid data. `SPDK_BDEV_IO_TYPE_FLUSH` is a
H A Daccel_fw.md172 assignment map including the names of valid operations. The RPC `accel_assign_opc`
H A Dblob.md166 is no need to set this value. It can, however, be set to any valid set of characters.
/spdk/test/common/config/pkgdep/patches/dpdk/20.11/
H A Ddpdk_pci.patch20 /* device is valid, add in list (sorted) */
/spdk/test/app/fuzz/nvme_fuzz/
H A DREADME.md13 3. The user specified a json file containing operations to run and the fuzzer has received valid co…
37 dumped as valid json. You can combine the dumped commands from the fuzzer into a json
/spdk/test/app/fuzz/iscsi_fuzz/
H A DREADME.md29 device 0x11c3b90 stats: Sent 1543 valid opcode PDUs, 16215 invalid opcode PDUs.
/spdk/test/app/fuzz/vhost_fuzz/
H A DREADME.md31 the request will no longer point to a valid memory location.
/spdk/test/nvme/perf/
H A DREADME.md43 When running test with the Kernel driver, NVMe devices use the Kernel driver. The 5 valid values fo…