Home
last modified time | relevance | path

Searched refs:spdk_bit_array (Results 1 – 12 of 12) sorted by relevance

/spdk/include/spdk/
H A Dbit_array.h22 struct spdk_bit_array;
31 uint32_t spdk_bit_array_capacity(const struct spdk_bit_array *ba);
42 struct spdk_bit_array *spdk_bit_array_create(uint32_t num_bits);
49 void spdk_bit_array_free(struct spdk_bit_array **bap);
70 int spdk_bit_array_resize(struct spdk_bit_array **bap, uint32_t num_bits);
83 bool spdk_bit_array_get(const struct spdk_bit_array *ba, uint32_t bit_index);
95 int spdk_bit_array_set(struct spdk_bit_array *ba, uint32_t bit_index);
106 void spdk_bit_array_clear(struct spdk_bit_array *ba, uint32_t bit_index);
117 uint32_t spdk_bit_array_find_first_set(const struct spdk_bit_array *ba, uint32_t start_bit_index);
128 uint32_t spdk_bit_array_find_first_clear(const struct spdk_bit_array *ba, uint32_t start_bit_index);
[all …]
H A Dbit_pool.h20 struct spdk_bit_array;
57 struct spdk_bit_pool *spdk_bit_pool_create_from_array(struct spdk_bit_array *array);
/spdk/lib/util/
H A Dbit_array.c24 struct spdk_bit_array { struct
29 struct spdk_bit_array * argument
32 struct spdk_bit_array *ba = NULL; in spdk_bit_array_create()
40 spdk_bit_array_free(struct spdk_bit_array **bap) in spdk_bit_array_free()
42 struct spdk_bit_array *ba; in spdk_bit_array_free()
67 spdk_bit_array_resize(struct spdk_bit_array **bap, uint32_t num_bits) in spdk_bit_array_resize()
69 struct spdk_bit_array *new_ba; in spdk_bit_array_resize()
82 new_size = offsetof(struct spdk_bit_array, words) + new_word_count * SPDK_BIT_ARRAY_WORD_BYTES; in spdk_bit_array_resize()
90 new_ba = (struct spdk_bit_array *)spdk_realloc(*bap, new_size, 64); in spdk_bit_array_resize()
131 spdk_bit_array_capacity(const struct spdk_bit_array *ba) in spdk_bit_array_capacity()
[all …]
/spdk/test/unit/lib/util/bit_array.c/
H A Dbit_array_ut.c16 struct spdk_bit_array *ba; in test_1bit()
42 struct spdk_bit_array *ba; in test_64bit()
82 struct spdk_bit_array *ba; in test_find()
138 struct spdk_bit_array *ba; in test_resize()
203 struct spdk_bit_array *ba; in test_count()
258 struct spdk_bit_array *ba; in test_mask_store_load()
302 struct spdk_bit_array *ba; in test_mask_clear()
/spdk/lib/nvmf/
H A Dnvmf_internal.h64 struct spdk_bit_array *subsystem_ids;
218 struct spdk_bit_array *visible_ns;
228 struct spdk_bit_array *qpair_mask;
335 struct spdk_bit_array *used_listener_ids;
/spdk/test/unit/lib/ftl/ftl_band.c/
H A Dftl_band_ut.c177 return spdk_bit_array_get((struct spdk_bit_array *)bitmap, bit); in ftl_bitmap_get()
186 ret = spdk_bit_array_set((struct spdk_bit_array *)bitmap, bit); in ftl_bitmap_set()
194 spdk_bit_array_clear((struct spdk_bit_array *)bitmap, bit); in ftl_bitmap_clear()
/spdk/test/unit/lib/ftl/common/
H A Dutils.c162 spdk_bit_array_free((struct spdk_bit_array **)&band->p2l_map.valid); in test_free_ftl_band()
/spdk/lib/trace/
H A Dtrace.c27 static struct spdk_bit_array *g_ut_array;
/spdk/test/env/memory/
H A Dmemory_ut.c16 static struct spdk_bit_array *g_page_array;
/spdk/lib/reduce/
H A Dreduce.c134 struct spdk_bit_array *allocated_chunk_maps;
139 struct spdk_bit_array *allocated_backing_io_units;
/spdk/lib/nvme/
H A Dnvme_internal.h1067 struct spdk_bit_array *free_io_qids;
H A Dnvme_cuse.c45 static struct spdk_bit_array *g_ctrlr_started;