Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 63) sorted by relevance

123

/spdk/include/spdk/
H A Dhistogram_data.h67 __spdk_histogram_increment(struct spdk_histogram_data *h, uint32_t range, uint32_t index) in __spdk_histogram_increment() argument
71 count = &h->bucket[(range << SPDK_HISTOGRAM_BUCKET_SHIFT(h)) + index]; in __spdk_histogram_increment()
76 __spdk_histogram_get_count(const struct spdk_histogram_data *h, uint32_t range, uint32_t index) in __spdk_histogram_get_count() argument
78 return h->bucket[(range << SPDK_HISTOGRAM_BUCKET_SHIFT(h)) + index]; in __spdk_histogram_get_count()
82 __spdk_histogram_get_bucket(const struct spdk_histogram_data *h, uint32_t range, uint32_t index) in __spdk_histogram_get_bucket() argument
84 return &h->bucket[(range << SPDK_HISTOGRAM_BUCKET_SHIFT(h)) + index]; in __spdk_histogram_get_bucket()
128 uint32_t index = __spdk_histogram_data_get_bucket_index(histogram, datapoint, range); in spdk_histogram_data_tally() local
130 __spdk_histogram_increment(histogram, range, index); in spdk_histogram_data_tally()
135 uint32_t index) in __spdk_histogram_data_get_bucket_start() argument
139 index += 1; in __spdk_histogram_data_get_bucket_start()
[all …]
H A Dvfio_user_pci.h17 int spdk_vfio_user_pci_bar_access(struct vfio_device *dev, uint32_t index,
21 void *spdk_vfio_user_get_bar_addr(struct vfio_device *dev, uint32_t index,
/spdk/scripts/
H A Dhistogram.py28 index = (((i << bucket_shift) + j) * 8) variable
29 total += int.from_bytes(histogram[index:index + 8], 'little')
33 index = (((i << bucket_shift) + j)*8) variable
34 count = int.from_bytes(histogram[index:index + 8], 'little')
/spdk/scripts/vagrant/
H A DVagrantfile121 def get_nvme_disk(disk, index)
124 nvme_disk = nvme_file[index]
136 def setup_nvme_disk(libvirt, disk, index)
137 nvme_disk_id = disk + '-' + index.to_s
138 nvme_disk = get_nvme_disk(disk, index)
154 addr = 0x10 + index
157 nvme_controller = "nvme,id=#{nvme_disk_id},serial=1234#{index},addr=0x#{addr.to_s(16)}"
160 if !nvme_fdp[index].nil? && nvme_fdp[index] != ""
161 fdp_subsys_id = "fdp-subsys#{index}"
162 fdp = nvme_fdp[index].split(':')[0..3]
[all …]
/spdk/lib/scsi/
H A Dport.c12 spdk_scsi_port_create(uint64_t id, uint16_t index, const char *name) in spdk_scsi_port_create() argument
22 if (scsi_port_construct(port, id, index, name) != 0) { in spdk_scsi_port_create()
45 scsi_port_construct(struct spdk_scsi_port *port, uint64_t id, uint16_t index, in scsi_port_construct() argument
55 port->index = index; in scsi_port_construct()
H A Dscsi_internal.h31 uint16_t index; member
179 uint16_t index, const char *name);
/spdk/test/common/config/pkgdep/patches/qat/
H A D0001-missing-prototypes.patch
H A D0001-strlcpy-to-strscpy.patch
/spdk/lib/virtio/
H A Dvirtio.c547 virtio_dev_acquire_queue(struct virtio_dev *vdev, uint16_t index) in virtio_dev_acquire_queue() argument
551 if (index >= vdev->max_queues) { in virtio_dev_acquire_queue()
553 index, vdev->max_queues); in virtio_dev_acquire_queue()
558 vq = vdev->vqs[index]; in virtio_dev_acquire_queue()
595 virtio_dev_queue_get_thread(struct virtio_dev *vdev, uint16_t index) in virtio_dev_queue_get_thread() argument
599 if (index >= vdev->max_queues) { in virtio_dev_queue_get_thread()
601 index, vdev->max_queues); in virtio_dev_queue_get_thread()
606 thread = vdev->vqs[index]->owner_thread; in virtio_dev_queue_get_thread()
613 virtio_dev_queue_is_acquired(struct virtio_dev *vdev, uint16_t index) in virtio_dev_queue_is_acquired() argument
615 return virtio_dev_queue_get_thread(vdev, index) != NULL; in virtio_dev_queue_is_acquired()
[all …]
H A Dvirtio_vhost_user.c351 msg.payload.u64 = file->index & VHOST_USER_VRING_IDX_MASK; in vhost_user_sock()
494 file.index = queue_sel; in virtio_user_create_queue()
505 .index = queue_sel, in virtio_user_set_vring_addr()
525 state.index = queue_sel; in virtio_user_kick_queue()
532 state.index = queue_sel; in virtio_user_kick_queue()
545 file.index = queue_sel; in virtio_user_kick_queue()
556 state.index = queue_sel; in virtio_user_stop_queue()
904 state.index = vq->vq_queue_index; in virtio_user_setup_queue()
/spdk/lib/vfio_user/host/
H A Dvfio_user_pci.c22 spdk_vfio_user_pci_bar_access(struct vfio_device *dev, uint32_t index, uint64_t offset, in spdk_vfio_user_pci_bar_access() argument
25 struct vfio_pci_region *region = &dev->regions[index]; in spdk_vfio_user_pci_bar_access()
33 return vfio_user_dev_mmio_access(dev, index, offset, len, buf, is_write); in spdk_vfio_user_pci_bar_access()
200 vfio_device_setup_sparse_mmaps(struct vfio_device *device, int index, in vfio_device_setup_sparse_mmaps() argument
205 struct vfio_pci_region *region = &device->regions[index]; in vfio_device_setup_sparse_mmaps()
231 SPDK_DEBUGLOG(vfio_pci, "No valid fd, skip mmap for bar %d region %u\n", index, i); in vfio_device_setup_sparse_mmaps()
239 device->regions[index].nr_mmaps = j; in vfio_device_setup_sparse_mmaps()
292 info->index = i; in vfio_device_map_bars_and_config_region()
411 spdk_vfio_user_get_bar_addr(struct vfio_device *dev, uint32_t index, uint64_t offset, uint32_t len) in spdk_vfio_user_get_bar_addr() argument
413 struct vfio_pci_region *region = &dev->regions[index]; in spdk_vfio_user_get_bar_addr()
/spdk/proto/
H A Dvirtio_blk.proto8 // Physical function index
10 // Virtual function index
H A Dnvme.proto8 // Physical function index
10 // Virtual function index
/spdk/lib/ftl/
H A Dftl_rq.c52 uint64_t *index = (uint64_t *)&entry->index; in ftl_rq_new() local
53 *index = i; in ftl_rq_new()
/spdk/
H A Dautorun_post.py28 pivot_by_test = pd.pivot_table(data_table, index=columns_to_group, aggfunc=any)
46 pivot_by_agent = pd.pivot_table(data_table, index=["Agent", "Domain", "Test"], aggfunc=any)
51 …pivot_by_asan = pd.pivot_table(data_table, index=["Domain", "Test"], values=["With Asan"], aggfunc…
53 …pivot_by_ubsan = pd.pivot_table(data_table, index=["Domain", "Test"], values=["With UBsan"], aggfu…
141 def printList(header, test_list, index, condition): argument
143 executed_tests = [x for x in sorted(test_list) if test_list[x][index] is condition]
/spdk/include/spdk_internal/
H A Dvirtio.h288 int virtio_dev_acquire_queue(struct virtio_dev *vdev, uint16_t index);
314 struct spdk_thread *virtio_dev_queue_get_thread(struct virtio_dev *vdev, uint16_t index);
325 bool virtio_dev_queue_is_acquired(struct virtio_dev *vdev, uint16_t index);
335 void virtio_dev_release_queue(struct virtio_dev *vdev, uint16_t index);
/spdk/test/event/app_repeat/
H A Dapp_repeat.c41 int index = *(int *)arg1; in app_repeat_started() local
43 printf("spdk_app_start is called in Round %d.\n", index); in app_repeat_started()
/spdk/lib/idxd/
H A Didxd.c451 if (batch->index == batch->size) { in _idxd_prep_batch_cmd()
455 desc = *_desc = &batch->user_desc[batch->index]; in _idxd_prep_batch_cmd()
456 op = *_op = &batch->user_ops[batch->index]; in _idxd_prep_batch_cmd()
459 SPDK_DEBUGLOG(idxd, "Prep batch %p index %u\n", batch, batch->index); in _idxd_prep_batch_cmd()
461 batch->index++; in _idxd_prep_batch_cmd()
489 batch->index = 0; in idxd_batch_create()
506 batch->index = 0; in _free_batch()
523 if (batch->index == UINT16_MAX) { in idxd_batch_cancel()
530 for (i = 0; i < batch->index; in idxd_batch_cancel()
[all...]
/spdk/lib/rocksdb/
H A Denv_spdk.cc76 int index = 0; in sanitize_path() local
82 if (index == 0) { in sanitize_path()
84 name = name.insert(index, 1, '/'); in sanitize_path()
85 index++; in sanitize_path()
87 name = name.insert(index, 1, c); in sanitize_path()
88 index++; in sanitize_path()
90 if (name[index - 1] == '/' && c == '/') { in sanitize_path()
93 name = name.insert(index, 1, c); in sanitize_path()
94 index++; in sanitize_path()
/spdk/test/common/config/pkgdep/patches/dpdk/20.11/
H A Ddpdk_qat.patch9 index 29e1299f20b..9d67cfbb257 100644
26 index bc90ec44ccd..9e64ad6b2d6 100644
/spdk/lib/trace_parser/
H A Dtrace.cpp58 std::map<uint64_t, uint64_t> index;
174 /* Set related index to the max value to indicate "empty" state */ in next_entry()
181 stats->index[entry->object_id] = stats->counter++; in next_entry()
187 pe->object_index = stats->index[entry->object_id]; in next_entry()
210 related_kv = stats->index.find(reinterpret_cast<uint64_t> in next_entry()
212 /* To avoid parsing the whole array, object index and type are stored in next_entry()
214 if (related_kv != stats->index.end()) { in next_entry()
57 std::map<uint64_t, uint64_t> index; global() member
/spdk/lib/nvme/
H A Dnvme_cuse.c26 uint32_t index; member
1087 nvme_cuse_claim(struct cuse_device *ctrlr_device, uint32_t index) in nvme_cuse_claim() argument
1100 "/var/tmp/spdk_nvme_cuse_lock_%" PRIu32, index); in nvme_cuse_claim()
1135 ctrlr_device->index = index; in nvme_cuse_claim()
1159 spdk_bit_array_clear(g_ctrlr_started, ctrlr_device->index); in cuse_nvme_ctrlr_stop()
1246 /* Check if device already exists, if not increment index until success */ in nvme_cuse_start()
1247 ctrlr_device->index = 0; in nvme_cuse_start()
1249 ctrlr_device->index = spdk_bit_array_find_first_clear(g_ctrlr_started, ctrlr_device->index); in nvme_cuse_start()
[all...]
/spdk/lib/ioat/
H A Dioat.c111 ioat_get_ring_index(struct spdk_ioat_chan *ioat, uint32_t index) in ioat_get_ring_index() argument
113 return index & ((1 << ioat->ring_size_order) - 1); in ioat_get_ring_index()
117 ioat_get_ring_entry(struct spdk_ioat_chan *ioat, uint32_t index, in ioat_get_ring_entry() argument
121 uint32_t i = ioat_get_ring_index(ioat, index); in ioat_get_ring_entry()
136 uint32_t index = ioat_get_ring_index(ioat, ioat->head - 1); in spdk_ioat_flush() local
139 hw_desc = &ioat->hw_ring[index]; in spdk_ioat_flush()
/spdk/test/common/config/pkgdep/patches/dpdk/21.11+/
H A Ddpdk_qat.patch2 index cab4390..020b9da 100644
/spdk/doc/
H A Dcompression.md49 number of backing IO units in the chunk. Each 64-bit value corresponds to a backing IO unit index.…
60 determined by dividing the byte offset by the chunk size to get an index, which is used as an
61 array index into the array of chunk map entries. At start, all entries in the logical map have no
78 (16KB / 4KB), and 8B (64b) per backing IO unit index.
111 * Find the corresponding index into the logical map. Offset 32KB divided by the chunk size
124 * Write the chunk map index to entry 2 in the logical map.
146 * Find the corresponding index into the logical map. Offset 8KB divided by the chunk size is 0.
158 * Write the chunk map index to entry 0 in the logical map.
180 * Offset 16KB maps to index 1 in the logical map.
186 * Offset 4KB maps to index 0 in the logical map.

123