Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 20 of 20) sorted by relevance

/spdk/test/unit/lib/ftl/ftl_bitmap.c/
H A Dftl_bitmap_ut.c127 uint64_t bit; in test_ftl_bitmap_find_first_set() local
134 bit = g_test_bits[g_test_bits_count - i].bit_idx; in test_ftl_bitmap_find_first_set()
136 ftl_bitmap_set(g_bitmap, bit); in test_ftl_bitmap_find_first_set()
138 CU_ASSERT_EQUAL(ftl_bitmap_find_first_set(g_bitmap, 0, UINT64_MAX), bit); in test_ftl_bitmap_find_first_set()
139 CU_ASSERT_EQUAL(ftl_bitmap_find_first_set(g_bitmap, 0, bit), bit); in test_ftl_bitmap_find_first_set()
140 if (bit > 0) { in test_ftl_bitmap_find_first_set()
141 CU_ASSERT_EQUAL(ftl_bitmap_find_first_set(g_bitmap, 0, bit - 1), UINT64_MAX); in test_ftl_bitmap_find_first_set()
146 bit = g_test_bits[i].bit_idx; in test_ftl_bitmap_find_first_set()
148 CU_ASSERT_EQUAL(ftl_bitmap_find_first_set(g_bitmap, bit, UINT64_MAX), bit); in test_ftl_bitmap_find_first_set()
149 CU_ASSERT_EQUAL(ftl_bitmap_find_first_set(g_bitmap, bit, bit), bit); in test_ftl_bitmap_find_first_set()
[all …]
/spdk/lib/ftl/utils/
H A Dftl_bitmap.c81 locate_bit(const struct ftl_bitmap *bitmap, uint64_t bit, in locate_bit() argument
84 size_t word_idx = bit >> FTL_BITMAP_WORD_SHIFT; in locate_bit()
88 *word_bit_idx_out = bit & FTL_BITMAP_WORD_MASK; in locate_bit()
93 ftl_bitmap_get(const struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_get() argument
98 locate_bit(bitmap, bit, &word, &word_bit_idx); in ftl_bitmap_get()
104 ftl_bitmap_set(struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_set() argument
109 locate_bit(bitmap, bit, &word, &word_bit_idx); in ftl_bitmap_set()
115 ftl_bitmap_clear(struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_clear() argument
120 locate_bit(bitmap, bit, &word, &word_bit_idx); in ftl_bitmap_clear()
H A Dftl_bitmap.h61 bool ftl_bitmap_get(const struct ftl_bitmap *bitmap, uint64_t bit);
69 void ftl_bitmap_set(struct ftl_bitmap *bitmap, uint64_t bit);
77 void ftl_bitmap_clear(struct ftl_bitmap *bitmap, uint64_t bit);
/spdk/test/vhost/
H A Dirqs.sh172 local bit dword dword_l=32 dword_idx
184 bit=-1
185 while ((++bit < dword_l)); do
186 if ((smp_affinity[dword] & 1 << bit)); then heredoc
187 cpus[bit + dword_l * dword_idx]=$bit
/spdk/test/common/nvme/
H A Dfunctions.sh121 local ctrl=${1:-nvme0} bit=${2:-nsmgt}
137 bit=${bit,,}
138 [[ -n ${bits["$bit"]} ]] || return 1
140 (($(get_nvme_ctrl_feature "$ctrl" oacs) & bits["$bit"]))
/spdk/test/unit/lib/ftl/ftl_band.c/
H A Dftl_band_ut.c165 adjust_bitmap(struct ftl_bitmap **bitmap, uint64_t *bit) in adjust_bitmap() argument
169 *bit = test_offset_from_addr(*bit, g_band); in adjust_bitmap()
174 ftl_bitmap_get(const struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_get() argument
176 adjust_bitmap((struct ftl_bitmap **)&bitmap, &bit); in ftl_bitmap_get()
177 return spdk_bit_array_get((struct spdk_bit_array *)bitmap, bit); in ftl_bitmap_get()
181 ftl_bitmap_set(struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_set() argument
185 adjust_bitmap(&bitmap, &bit); in ftl_bitmap_set()
186 ret = spdk_bit_array_set((struct spdk_bit_array *)bitmap, bit); in ftl_bitmap_set()
191 ftl_bitmap_clear(struct ftl_bitmap *bitmap, uint64_t bit) in ftl_bitmap_clear() argument
193 adjust_bitmap(&bitmap, &bit); in ftl_bitmap_clear()
[all …]
/spdk/test/unit/lib/ftl/ftl_mempool.c/
H A Dftl_mempool_ut.c20 DEFINE_STUB(ftl_bitmap_get, bool, (const struct ftl_bitmap *bitmap, uint64_t bit), true);
21 DEFINE_STUB_V(ftl_bitmap_set, (struct ftl_bitmap *bitmap, uint64_t bit));
22 DEFINE_STUB_V(ftl_bitmap_clear, (struct ftl_bitmap *bitmap, uint64_t bit));
/spdk/test/thread/lock/
H A Dspdk_lock.c106 uint32_t bit; member
113 { .bit = 0, .delay_us = 3 },
114 { .bit = 1, .delay_us = 5 },
130 const uint32_t mask = 1 << data->bit; in contend_worker_fn()
/spdk/doc/
H A Dnvme_spec.md18 structures, plus 2 integers (head and tail indices). There are also two 32-bit
39 entries into the ring. Each entry contains a "phase" bit that toggles between 0
43 bit to detect completions. Interrupts are very heavy operations, so polling this
44 phase bit is often far more efficient.
86 although it is a bit more restricted. The user provides SPDK with the virtual
114 SPDK to examine the completion queue. Specifically, it reads the phase bit of
H A Dssd_internals.md15 * Flipping a bit is a highly asymmetric process. Flipping it one way is
21 each bit may be written to (i.e. have its bit flipped from 0 to 1) with
22 bit-granularity once. In order to write to the erase block a second time, the
H A Dcompression.md48 "chunk map" in persistent memory. Each chunk map consists of N 64-bit values, where N is the maxim…
49 number of backing IO units in the chunk. Each 64-bit value corresponds to a backing IO unit index.…
58 chunk map. Each entry in the logical map is a 64-bit value, denoting the associated chunk map.
H A Duserspace.md66 memory needs to be read (no MMIO) to check a queue pair for a bit flip and
H A Discsi.md39 This is a hexadecimal bit mask of the CPU cores where the iSCSI target will start polling threads.
H A Dnvme_multipath.md91 1. If the DNR (Do Not Retry) bit is set or the retry count exceeds the limit, then complete the
H A Dblob.md89 …steps the next time it is loaded which will take a bit more time than it would have if shutdown cl…
435 * **On disk**: the blob metadata has the `SPDK_BLOB_EXTERNAL_SNAPSHOT` (0x8) bit is set in
/spdk/include/spdk_internal/
H A Dvirtio.h393 virtio_dev_has_feature(struct virtio_dev *vdev, uint64_t bit) in virtio_dev_has_feature() argument
395 return !!(vdev->negotiated_features & (1ULL << bit)); in virtio_dev_has_feature()
/spdk/lib/vmd/
H A Dvmd_spec.h208 } bit; member
250 } bit; member
H A Dvmd.c267 /* This is only for 32-bit memory space, need to revisit to support 64-bit */ in vmd_update_base_limit_register()
421 dev->msix_table_size = dev->msix_cap->message_control.bit.table_size + 1; in vmd_get_device_capabilities()
1228 bus_restrict_cap = vmd_cap & 0x1; /* bit 0 */ in vmd_set_starting_bus_number()
/spdk/test/unit/lib/ftl/ftl_p2l.c/
H A Dftl_p2l_ut.c20 DEFINE_STUB_V(ftl_bitmap_set, (struct ftl_bitmap *bitmap, uint64_t bit));
21 DEFINE_STUB(ftl_bitmap_get, bool, (const struct ftl_bitmap *bitmap, uint64_t bit), false);
22 DEFINE_STUB_V(ftl_bitmap_clear, (struct ftl_bitmap *bitmap, uint64_t bit));
/spdk/test/common/config/pkgdep/
H A Dgit148 # it looks under /usr/local/qemu/vanilla*/bin/../etc which is a bit peculiar. Fix it.