/spdk/test/unit/lib/bdev/gpt/gpt.c/ |
H A D | gpt_ut.c | 64 struct spdk_gpt_header *head; in test_read_header() local 81 head = (struct spdk_gpt_header *)(gpt->buf + GPT_PRIMARY_PARTITION_TABLE_LBA * gpt->sector_size); in test_read_header() 82 to_le32(&head->header_size, 0x258); in test_read_header() 87 head->header_size = sizeof(*head); in test_read_header() 88 to_le32(&head->header_crc32, 0x22D18C80); in test_read_header() 93 to_le32(&head->header_crc32, 0xC5B2117E); in test_read_header() 98 to_le32(&head->header_crc32, 0xD637335A); in test_read_header() 99 head->gpt_signature[0] = 'E'; in test_read_header() 100 head->gpt_signature[1] = 'F'; in test_read_header() 101 head->gpt_signature[2] = 'I'; in test_read_header() [all …]
|
/spdk/include/spdk/ |
H A D | queue_extras.h | 134 #define STAILQ_HEAD_INITIALIZER(head) \ argument 135 { NULL, &(head).stqh_first } 140 #define STAILQ_EMPTY(head) ((head)->stqh_first == NULL) argument 142 #define STAILQ_FIRST(head) ((head)->stqh_first) argument 144 #define STAILQ_FOREACH_FROM(var, head, field) \ argument 145 for ((var) = ((var) ? (var) : STAILQ_FIRST((head))); \ 149 #define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument 150 for ((var) = STAILQ_FIRST((head)); \ 154 #define STAILQ_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument 155 for ((var) = ((var) ? (var) : STAILQ_FIRST((head))); \ [all …]
|
H A D | tree.h | 93 #define SPLAY_ROOT(head) (head)->sph_root argument 94 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument 97 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 98 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 99 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 100 (head)->sph_root = tmp; \ 103 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 104 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 105 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 106 (head)->sph_root = tmp; \ [all …]
|
H A D | queue.h | 32 #define TAILQ_REMOVE(head, elm, field) do { \ argument 38 (head)->tqh_last = (elm)->field.tqe_prev; \ 41 TAILQ_FOREACH(_elm, head, field) { \
|
H A D | gpt_spec.h | 30 uint8_t head; member
|
/spdk/module/bdev/gpt/ |
H A D | gpt.c | 83 struct spdk_gpt_header *head = gpt->header; in gpt_read_partitions() local 86 num_partition_entries = from_le32(&head->num_partition_entries); in gpt_read_partitions() 93 partition_entry_size = from_le32(&head->size_of_partition_entry); in gpt_read_partitions() 101 partition_start_lba = from_le64(&head->partition_entry_lba); in gpt_read_partitions() 112 if (crc32 != from_le32(&head->partition_entry_array_crc32)) { in gpt_read_partitions() 121 gpt_lba_range_check(struct spdk_gpt_header *head, uint64_t lba_end) in gpt_lba_range_check() argument 125 usable_lba_start = from_le64(&head->first_usable_lba); in gpt_lba_range_check() 126 usable_lba_end = from_le64(&head->last_usable_lba); in gpt_lba_range_check() 155 struct spdk_gpt_header *head; in gpt_read_header() local 157 head = gpt_get_header_buf(gpt); in gpt_read_header() [all …]
|
/spdk/lib/env_ocf/ |
H A D | ocf_env_list.h | 76 struct list_head *head) in list_move_tail() argument 79 list_add_tail(list, head); in list_move_tail() 84 struct list_head *head) in list_move() argument 87 list_add(list, head); in list_move() 134 #define _list_entry_helper(item, head, field_name) list_entry(head, typeof(*item), field_name) argument
|
/spdk/lib/notify/ |
H A D | notify.c | 87 uint64_t head; in spdk_notify_send() local 91 head = g_events_head; in spdk_notify_send() 94 ev = &g_events[head % SPDK_NOTIFY_MAX_EVENTS]; in spdk_notify_send() 99 return head; in spdk_notify_send()
|
/spdk/lib/iscsi/ |
H A D | portal_grp.c | 263 TAILQ_INIT(&pg->head); in iscsi_portal_grp_create() 276 while (!TAILQ_EMPTY(&pg->head)) { in iscsi_portal_grp_destroy() 277 p = TAILQ_FIRST(&pg->head); in iscsi_portal_grp_destroy() 278 TAILQ_REMOVE(&pg->head, p, per_pg_tailq); in iscsi_portal_grp_destroy() 310 TAILQ_INSERT_TAIL(&pg->head, p, per_pg_tailq); in iscsi_portal_grp_add_portal() 319 TAILQ_FOREACH(p, &pg->head, per_pg_tailq) { in iscsi_portal_grp_find_portal_by_addr() 383 TAILQ_FOREACH(p, &pg->head, per_pg_tailq) { in iscsi_portal_grp_open() 401 TAILQ_FOREACH(p, &pg->head, per_pg_tailq) { in iscsi_portal_grp_close() 411 TAILQ_FOREACH(p, &pg->head, per_pg_tailq) { in iscsi_portal_grp_resume() 464 TAILQ_FOREACH(portal, &pg->head, per_pg_tailq) { in iscsi_portal_grp_info_json()
|
H A D | portal_grp.h | 44 TAILQ_HEAD(, spdk_iscsi_portal) head;
|
/spdk/lib/ioat/ |
H A D | ioat.c | 101 return (ioat->head - ioat->tail) & ((1 << ioat->ring_size_order) - 1); in ioat_get_active() 130 ioat->head++; in ioat_submit_single() 136 uint32_t index = ioat_get_ring_index(ioat, ioat->head - 1); in spdk_ioat_flush() 141 ioat->regs->dmacount = (uint16_t)ioat->head; in spdk_ioat_flush() 154 ioat_get_ring_entry(ioat, ioat->head, &desc, &hw_desc); in ioat_prep_null() 185 ioat_get_ring_entry(ioat, ioat->head, &desc, &hw_desc); in ioat_prep_copy() 215 ioat_get_ring_entry(ioat, ioat->head, &desc, &hw_desc); in ioat_prep_fill() 297 if (ioat->head == ioat->tail) { in ioat_process_channel_events() 434 ioat->head = 0; in ioat_channel_start() 588 orig_head = ioat->head; in spdk_ioat_build_copy() [all...] |
H A D | ioat_internal.h | 34 uint32_t head; member
|
/spdk/scripts/ |
H A D | get-pmr | 40 local head 61 head=$(get_bar "$dev" 0x0e B) 67 if ((head != 0)); then
|
H A D | detect_cc.sh | 87 CC_TYPE=$($CC -v 2>&1 | grep -o -E '\w+ version' | head -1 | awk '{ print $1 }') 88 CXX_TYPE=$($CXX -v 2>&1 | grep -o -E '\w+ version' | head -1 | awk '{ print $1 }') 94 LD_TYPE=$($LD --version 2>&1 | head -n1 | awk '{print $1, $2}')
|
H A D | iostat.py | 334 head = [] 335 head += SPDK_BDEV_MB_STAT_HEAD if mb else SPDK_BDEV_KB_STAT_HEAD 337 head += SPDK_BDEV_EXT_STAT_HEAD 339 _stat_format(info_stats, head)
|
/spdk/module/bdev/aio/ |
H A D | bdev_aio.c | 80 uint32_t head; 389 uint32_t head, tail, count; in bdev_user_io_getevents() 404 head = ring->head; in bdev_user_io_getevents() 413 count = tail - head; in bdev_user_io_getevents() 414 if (tail < head) { in bdev_user_io_getevents() 425 if ((head + count) <= ring->size) { in bdev_user_io_getevents() 427 memcpy(uevents, &kevents[head], count * sizeof(struct io_event)); in bdev_user_io_getevents() 429 uint32_t first_part = ring->size - head; 431 memcpy(uevents, &kevents[head], first_par 77 uint32_t head; global() member 370 uint32_t head, tail, count; bdev_user_io_getevents() local [all...] |
/spdk/test/spdkcli/ |
H A D | virtio.sh | 27 pci_blk=$(lspci -nn -D | grep '1af4:1001' | head -1 | awk '{print $1;}') 31 pci_scsi=$(lspci -nn -D | grep '1af4:1004' | head -1 | awk '{print $1;}')
|
/spdk/lib/trace/ |
H A D | trace_flags.c | 18 uint32_t head; member 305 if (g_owner_ids.head == g_owner_ids.tail) { in spdk_trace_register_owner() 311 owner_id = g_owner_ids.ring[g_owner_ids.head]; in spdk_trace_register_owner() 312 if (++g_owner_ids.head == g_owner_ids.size) { in spdk_trace_register_owner() 313 g_owner_ids.head = 0; in spdk_trace_register_owner() 607 g_owner_ids.head = 0; in trace_flags_init()
|
/spdk/test/iscsi_tgt/ext4test/ |
H A D | ext4test.sh | 64 dev=$(iscsiadm -m session -P 3 | grep "Attached scsi disk" | awk '{print $4}' | head -n1) 88 dev=$(iscsiadm -m session -P 3 | grep "Attached scsi disk" | awk '{print $4}' | head -n1)
|
/spdk/module/bdev/delay/ |
H A D | vbdev_delay.c | 146 STAILQ_HEAD(, delay_bdev_io) *head = arg; in _process_io_stailq() 150 STAILQ_FOREACH_SAFE(io_ctx, head, link, tmp) { in _process_io_stailq() 152 STAILQ_REMOVE(head, io_ctx, delay_bdev_io, link); in _process_io_stailq() 328 STAILQ_HEAD(, delay_bdev_io) *head = arg; in _abort_all_delayed_io() 331 STAILQ_FOREACH_SAFE(io_ctx, head, link, tmp) { in _abort_all_delayed_io() 332 STAILQ_REMOVE(head, io_ctx, delay_bdev_io, link); in _abort_all_delayed_io() 357 STAILQ_HEAD(, delay_bdev_io) *head = _head; in abort_delayed_io() 361 STAILQ_FOREACH(io_ctx, head, link) { in abort_delayed_io() 363 STAILQ_REMOVE(head, io_ctx_to_abort, delay_bdev_io, link); in abort_delayed_io()
|
/spdk/lib/nvme/ |
H A D | nvme.c | 155 TAILQ_INIT(&detach_ctx->head); in spdk_nvme_detach_async() 163 if (TAILQ_EMPTY(&detach_ctx->head)) { in spdk_nvme_detach_async() 170 TAILQ_INSERT_TAIL(&detach_ctx->head, ctx, link); in spdk_nvme_detach_async() 187 TAILQ_FOREACH_SAFE(ctx, &detach_ctx->head, link, tmp_ctx) { in spdk_nvme_detach_poll_async() 188 TAILQ_REMOVE(&detach_ctx->head, ctx, link); in spdk_nvme_detach_poll_async() 193 TAILQ_INSERT_HEAD(&detach_ctx->head, ctx, link); in spdk_nvme_detach_poll_async() 197 if (!TAILQ_EMPTY(&detach_ctx->head)) { in spdk_nvme_detach_poll_async() 723 TAILQ_INSERT_TAIL(&probe_ctx->failed_ctxs.head, detach_ctx, link); in nvme_ctrlr_poll_internal() 923 TAILQ_INIT(&probe_ctx->failed_ctxs.head); 1630 TAILQ_FOREACH_SAFE(detach_ctx, &probe_ctx->failed_ctxs.head, lin in nvme_parse_addr() [all...] |
/spdk/test/nvmf/target/ |
H A D | invalid.sh | 67 IP=$(echo "$RDMA_IP_LIST" | head -n 1)
|
/spdk/doc/ |
H A D | nvme_spec.md | 16 queue is an array of 64 byte command structures, plus 2 integers (head and tail 18 structures, plus 2 integers (head and tail indices). There are also two 32-bit 42 head. However, SPDK doesn't enable interrupts and instead polls on the phase 122 write the completion queue head doorbell to let the device know that it can use
|
/spdk/test/unit/lib/iscsi/conn.c/ |
H A D | conn_ut.c | 508 TAILQ_HEAD(queued_pdus, spdk_iscsi_pdu) *head = _head; in dequeue_pdu() 511 TAILQ_FOREACH(tmp, head, tailq) { in dequeue_pdu() 513 TAILQ_REMOVE(head, tmp, tailq); in dequeue_pdu() 523 TAILQ_HEAD(queued_tasks, spdk_iscsi_task) *head = _head; in dequeue_task() 526 TAILQ_FOREACH(tmp, head, link) { in dequeue_task() 528 TAILQ_REMOVE(head, tmp, link); in dequeue_task()
|
/spdk/test/nvme/cuse/ |
H A D | spdk_nvme_cli_cuse.sh | 106 head -c"$bs" /dev/urandom > "$testdir/write_file"
|