Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 168) sorted by relevance

1234567

/spdk/test/dd/
H A Dcommon.sh124 local pci=$1 lbaf id
126 mapfile -t id < <("$rootdir/build/bin/spdk_nvme_identify" -r "trtype:pcie traddr:$pci")
129 [[ ${id[*]} =~ "Current LBA Format:"\ *"LBA Format #"([0-9]+) ]]
131 [[ ${id[*]} =~ "LBA Format #$lbaf: Data Size:"\ *([0-9]+) ]]
168 local id=$1
170 [[ -e /sys/block/zram$id ]]
172 echo 1 > "/sys/block/zram$id/reset"
173 echo "$id" > "/sys/class/zram-control/hot_remove"
177 local id=$1
180 [[ -e /sys/block/zram$id ]]
[all...]
/spdk/lib/nvme/
H A Dnvme_quirks.c9 struct spdk_pci_id id; member
111 nvme_get_quirks(const struct spdk_pci_id *id) in nvme_get_quirks() argument
116 id->vendor_id, id->device_id, in nvme_get_quirks()
117 id->subvendor_id, id->subdevice_id); in nvme_get_quirks()
119 while (quirk->id.vendor_id) { in nvme_get_quirks()
120 if (pci_id_match(&quirk->id, id)) { in nvme_get_quirks()
122 quirk->id.vendor_id, quirk->id.device_id, in nvme_get_quirks()
123 quirk->id.subvendor_id, quirk->id.subdevice_id); in nvme_get_quirks()
H A Dnvme_ns.c51 ns->id, ns->sectors_per_stripe); in nvme_ns_set_identify_data()
57 ns->id, ns->sectors_per_stripe); in nvme_ns_set_identify_data()
115 rc = nvme_ctrlr_cmd_identify(ns->ctrlr, SPDK_NVME_IDENTIFY_NS, 0, ns->id, 0, in nvme_ctrlr_identify_ns()
163 rc = nvme_ctrlr_cmd_identify(ctrlr, SPDK_NVME_IDENTIFY_NS_IOCS, 0, ns->id, ns->csi, in nvme_ctrlr_identify_ns_zns_specific()
209 rc = nvme_ctrlr_cmd_identify(ctrlr, SPDK_NVME_IDENTIFY_NS_IOCS, 0, ns->id, ns->csi, in nvme_ctrlr_identify_ns_nvm_specific()
277 rc = nvme_ctrlr_cmd_identify(ns->ctrlr, SPDK_NVME_IDENTIFY_NS_ID_DESCRIPTOR_LIST, 0, ns->id, in nvme_ctrlr_identify_id_desc()
303 return ns->id; in spdk_nvme_ns_get_id()
312 * According to the spec, valid NS has non-zero id. in spdk_nvme_ns_is_active()
314 if (ns->id == 0) { in spdk_nvme_ns_is_active()
526 SPDK_WARNLOG("CSI not reported for NSID: %" PRIu32 "\n", ns->id); in nvme_ns_get_csi()
608 nvme_ns_construct(struct spdk_nvme_ns * ns,uint32_t id,struct spdk_nvme_ctrlr * ctrlr) nvme_ns_construct() argument
[all...]
H A Dnvme_auth.c22 uint8_t id; member
28 uint8_t id; member
38 (q)->ctrlr->opts.hostnqn, (q)->id, ## __VA_ARGS__)
41 (q)->id, ## __VA_ARGS__)
61 nvme_auth_get_digest(int id) in nvme_auth_get_digest() argument
66 if (g_digests[i].id == id) { in nvme_auth_get_digest()
81 return g_digests[i].id; in spdk_nvme_dhchap_get_digest_id()
89 spdk_nvme_dhchap_get_digest_name(int id) in spdk_nvme_dhchap_get_digest_name() argument
91 const struct nvme_auth_digest *digest = nvme_auth_get_digest(id); in spdk_nvme_dhchap_get_digest_name()
111 spdk_nvme_dhchap_get_dhgroup_name(int id) spdk_nvme_dhchap_get_dhgroup_name() argument
125 spdk_nvme_dhchap_get_digest_length(int id) spdk_nvme_dhchap_get_digest_length() argument
[all...]
/spdk/test/unit/lib/scsi/dev.c/
H A Ddev_ut.c321 int id, rc; in dev_add_port_max_ports() local
326 id = 1; in dev_add_port_max_ports()
328 rc = spdk_scsi_dev_add_port(&dev, id, name); in dev_add_port_max_ports()
341 uint64_t id; in dev_add_port_construct_failure1() local
349 id = 1; in dev_add_port_construct_failure1()
351 rc = spdk_scsi_dev_add_port(&dev, id, name); in dev_add_port_construct_failure1()
363 uint64_t id; in dev_add_port_construct_failure2() local
368 id = 1; in dev_add_port_construct_failure2()
371 dev.port[0].id = id; in dev_add_port_construct_failure2()
374 rc = spdk_scsi_dev_add_port(&dev, id, name); in dev_add_port_construct_failure2()
[all …]
/spdk/lib/scsi/
H A Ddev.c27 dev->id = i; in allocate_dev()
107 if (lun->id > lun_id) { in scsi_dev_find_free_lun()
110 lun_id = lun->id + 1; in scsi_dev_find_free_lun()
119 if (lun->id == lun_id) { in scsi_dev_find_free_lun()
121 } else if (lun->id > lun_id) { in scsi_dev_find_free_lun()
171 lun->id = lun_id; in spdk_scsi_dev_add_lun_ext()
173 lun->id = 0; in spdk_scsi_dev_add_lun_ext()
175 lun->id = prev_lun->id + 1; in spdk_scsi_dev_add_lun_ext()
309 spdk_scsi_dev_add_port(struct spdk_scsi_dev *dev, uint64_t id, const char *name) in spdk_scsi_dev_add_port() argument
319 port = spdk_scsi_dev_find_port_by_id(dev, id); in spdk_scsi_dev_add_port()
[all …]
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
54 port->id = id; in scsi_port_construct()
H A Dscsi_internal.h30 uint64_t id; member
61 int id; member
86 int id; member
178 int scsi_port_construct(struct spdk_scsi_port *port, uint64_t id,
/spdk/test/unit/lib/ftl/common/
H A Dutils.c21 struct ftl_band *test_init_ftl_band(struct spdk_ftl_dev *dev, size_t id, size_t zone_size);
111 test_init_ftl_band(struct spdk_ftl_dev *dev, size_t id, size_t zone_size) in test_init_ftl_band() argument
116 SPDK_CU_ASSERT_FATAL(id < dev->num_bands); in test_init_ftl_band()
118 band = &dev->bands[id]; in test_init_ftl_band()
120 band->id = id; in test_init_ftl_band()
129 band->start_addr = zone_size * id; in test_init_ftl_band()
173 CU_ASSERT_EQUAL(ftl_addr_get_band(dev, addr), band->id); in test_offset_from_addr()
175 return addr - band->id * ftl_get_num_blocks_in_band(dev); in test_offset_from_addr()
/spdk/test/unit/lib/nvme/nvme_ns.c/
H A Dnvme_ns_ut.c99 uint32_t id = 1; in test_nvme_ns_construct() local
102 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_construct()
103 CU_ASSERT(ns.id == 1); in test_nvme_ns_construct()
110 uint32_t id = 1; in test_nvme_ns_uuid() local
118 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_uuid()
124 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_uuid()
133 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_uuid()
143 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_uuid()
156 nvme_ns_construct(&ns, id, &ctrlr); in test_nvme_ns_uuid()
173 uint32_t id = 1; in test_nvme_ns_csi() local
[all …]
/spdk/test/unit/lib/jsonrpc/jsonrpc_server.c/
H A Djsonrpc_server_ut.c51 CU_ASSERT(g_request->id && g_request->id->type == SPDK_JSON_VAL_NUMBER); \
52 CU_ASSERT(g_request->id && memcmp(g_request->id->start, num, sizeof(num) - 1) == 0)
56 CU_ASSERT(g_request->id && g_request->id->type == SPDK_JSON_VAL_STRING); \
57 CU_ASSERT(g_request->id && memcmp(g_request->id->start, num, strlen(num) - 1) == 0))
60 CU_ASSERT(g_request->id && g_request->id
[all...]
/spdk/lib/notify/
H A Dnotify_rpc.c44 uint64_t id; member
51 {"id", offsetof(struct rpc_notify_get_notifications, id), spdk_json_decode_uint64, true},
57 notify_get_notifications_cb(uint64_t id, const struct spdk_notify_event *ev, void *ctx) in notify_get_notifications_cb() argument
64 spdk_json_write_named_uint64(req->w, "id", id); in notify_get_notifications_cb()
89 spdk_notify_foreach_event(req.id, req.max, notify_get_notifications_cb, &req); in rpc_notify_get_notifications()
/spdk/lib/jsonrpc/
H A Djsonrpc_server.c17 const struct spdk_json_val *id; member
81 {"id", offsetof(struct jsonrpc_request, id), capture_val, true},
105 if (req.id) { in parse_single_request()
106 if (req.id->type == SPDK_JSON_VAL_STRING || in parse_single_request()
107 req.id->type == SPDK_JSON_VAL_NUMBER || in parse_single_request()
108 req.id->type == SPDK_JSON_VAL_NULL) { in parse_single_request()
109 request->id = req.id; in parse_single_request()
291 if (request->id) { in begin_response()
292 spdk_json_write_val(w, request->id); in begin_response()
376 if (request->id && request->id->type != SPDK_JSON_VAL_NULL) { in spdk_jsonrpc_end_result()
/spdk/test/nvme/cuse/
H A Dspdk_nvme_cli_cuse.sh39 oacs=$(${NVME_CMD} id-ctrl $ctrlr | grep oacs | cut -d: -f2)
42 ${NVME_CMD} get-ns-id $ns > ${KERNEL_OUT}.1
43 ${NVME_CMD} id-ns $ns > ${KERNEL_OUT}.2
46 ${NVME_CMD} id-ctrl $ctrlr > ${KERNEL_OUT}.4
79 ${NVME_CMD} get-ns-id $ns > ${CUSE_OUT}.1
80 ${NVME_CMD} id-ns $ns > ${CUSE_OUT}.2
83 ${NVME_CMD} id-ctrl $ctrlr > ${CUSE_OUT}.4
/spdk/python/spdk/rpc/
H A Dnotify.py11 id=None, argument
24 if id:
25 params['id'] = id
/spdk/test/nvmf/target/
H A Dnvme_cli.sh41 nvme id-ctrl $ctrl
43 nvme_model=$(nvme id-ctrl $ctrl | grep -w mn | sed 's/^.*: //' | sed 's/ *$//')
48 nvme_cntlid=$(nvme id-ctrl $ctrl | grep -w cntlid | sed 's/^.*: //' | sed 's/ *$//')
56 nvme id-ns $ns
/spdk/scripts/perf/pm/
H A Dcollect-cpu-temp66 local core crit input id label max node package threads
77 id=${label##* }
80 cores_input[id]=$input
81 cores_crit[id]=$crit
82 cores_max[id]=$max
84 Package*) node=$id package[node]=$input ;;
/spdk/test/spdkcli/match_files/
H A Dspdkcli_details_vhost_target.test.match2 "id": 0,
6 "id": 0
H A Dspdkcli_details_vhost_ctrl.test.match5 "id": 0,
9 "id": 0
/spdk/scripts/
H A Dpkgdep.sh136 for id in $ID $ID_LIKE; do
137 if [[ -e $scriptsdir/pkgdep/$id.sh ]]; then
138 source "$scriptsdir/pkgdep/$id.sh"
/spdk/test/unit/lib/nvme/nvme_ctrlr_ocssd_cmd.c/
H A Dnvme_ctrlr_ocssd_cmd_ut.c37 return ns1->id - ns2->id; in nvme_ns_cmp()
54 tmp.id = nsid; in spdk_nvme_ctrlr_get_ns()
110 ns.id = 1; in test_spdk_nvme_ctrlr_is_ocssd_supported()
/spdk/test/unit/lib/blob/blob.c/
H A Desnap_dev.c139 ut_esnap_content_is_correct(void *buf, uint32_t buf_sz, uint32_t id, in ut_esnap_content_is_correct() argument
149 if (words[j].f.blob_id != id || words[j].f.lba != lba) { in ut_esnap_content_is_correct()
339 const void *id, uint32_t id_len, struct spdk_bs_dev **bs_devp) in ut_esnap_create() argument
348 SPDK_CU_ASSERT_FATAL(id != NULL); in ut_esnap_create()
351 bs_dev = ut_esnap_dev_alloc(id); in ut_esnap_create()
360 const void *id, uint32_t id_len, struct spdk_bs_dev **bs_devp) in ut_esnap_create_with_count() argument
378 return ut_esnap_create(NULL, NULL, blob, id, id_len, bs_devp); in ut_esnap_create_with_count()
/spdk/test/vhost/vhost_boot/
H A Dvhost_boot.sh109 while IFS=":" read -r id start end _ _ pt _; do
111 [[ $id == /dev/sda ]] && drive_size=$start && pt_type=$pt
112 [[ $id =~ ^[0-9]+$ ]] && start_part_sector=$((end + 1)) && part_id=$id
/spdk/python/spdk/sma/volume/
H A Dvolume.py277 id = format_volume_id(volume_id)
278 if id is None:
282 volume = self._volumes.get(id)
285 self._cleanup_crypto(id)
294 del self._volumes[id]
306 id = format_volume_id(volume_id)
307 if id is None:
310 volume = self._volumes.get(id)
/spdk/test/vhost/lvol/
H A Dlvol_test.sh97 id=0
99 notice "Creating lvol store on device Nvme${id}n1"
100 ls_guid=$($rpc_py bdev_lvol_create_lvstore Nvme0n1 lvs_$id -c 4194304)
103 notice "Creating lvol bdev for VM $id on lvol store $ls_guid"

1234567