| /spdk/test/unit/lib/util/crc16.c/ |
| H A D | crc16_ut.c | 18 crc = spdk_crc16_t10dif(0, buf, strlen(buf)); in test_crc16_t10dif() 29 crc = spdk_crc16_t10dif(crc, buf1, strlen(buf1)); in test_crc16_t10dif_seed() 30 crc = spdk_crc16_t10dif(crc, buf2, strlen(buf2)); in test_crc16_t10dif_seed() 40 char *buf3 = calloc(1, strlen(buf1) + strlen(buf2) + 1); in test_crc16_t10dif_copy() 43 crc1 = spdk_crc16_t10dif_copy(crc1, buf3, buf1, strlen(buf1)); in test_crc16_t10dif_copy() 44 crc1 = spdk_crc16_t10dif_copy(crc1, buf3 + strlen(buf1), buf2, strlen(buf2)); in test_crc16_t10dif_copy() 47 crc2 = spdk_crc16_t10dif(0, buf3, strlen(buf3)); in test_crc16_t10dif_copy()
|
| /spdk/test/unit/lib/util/crc32c.c/ |
| H A D | crc32c_ut.c | 23 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 29 iov[0].iov_len = strlen(buf); in test_crc32c() 37 iov[0].iov_len = strlen(buf); in test_crc32c() 41 iov[1].iov_len = strlen(buf1); in test_crc32c() 56 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 63 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 70 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 77 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 84 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() 91 crc = spdk_crc32c_update(buf, strlen(buf), crc); in test_crc32c() [all …]
|
| /spdk/lib/util/ |
| H A D | string.c | 20 orig_size = strlen(buffer); in spdk_vsprintf_append_realloc() 174 q = p + strlen(p); in spdk_str_trim() 197 len = strlen(src); in spdk_strcpy_pad() 293 size_t len = strlen(s); in spdk_str_chomp() 564 search_size = strlen(search); in spdk_strcpy_replace() 565 replace_size = strlen(replace); in spdk_strcpy_replace() 572 dst_size = strlen(src) + (replace_size - search_size) * c; in spdk_strcpy_replace() 590 memcpy(r, q, strlen(q)); in spdk_strcpy_replace() 591 r += strlen(q); in spdk_strcpy_replace()
|
| H A D | hexlify.c | 63 size_t len = strlen(hex); in spdk_unhexlify()
|
| /spdk/lib/log/ |
| H A D | log_flags.c | 119 uint64_t prefix_len = strlen(LINE_PREFIX); in spdk_log_usage() 120 uint64_t separator_len = strlen(ENTRY_SEPARATOR); in spdk_log_usage() 129 curr_line_len = strlen(first_line); in spdk_log_usage() 132 curr_entry_len = strlen(flag->name); in spdk_log_usage()
|
| /spdk/test/unit/lib/util/base64.c/ |
| H A D | base64_ut.c | 84 CU_ASSERT_EQUAL(strlen(text), strlen(text_A)); in test_base64_encode() 89 CU_ASSERT_EQUAL(strlen(text), strlen(text_B)); in test_base64_encode() 210 CU_ASSERT_EQUAL(strlen(text), strlen(text_A)); in test_base64_urlsafe_encode() 215 CU_ASSERT_EQUAL(strlen(text), strlen(text_urlsafe_B)); in test_base64_urlsafe_encode()
|
| /spdk/test/unit/lib/util/string.c/ |
| H A D | string_ut.c | 27 CU_ASSERT_EQUAL(strlen(host), 11); in test_parse_ip_addr() 36 CU_ASSERT_EQUAL(strlen(host), 13); in test_parse_ip_addr() 39 CU_ASSERT_EQUAL(strlen(port), 4); in test_parse_ip_addr() 47 CU_ASSERT_EQUAL(strlen(host), 36); in test_parse_ip_addr() 56 CU_ASSERT_EQUAL(strlen(host), 36); in test_parse_ip_addr() 59 CU_ASSERT_EQUAL(strlen(port), 3); in test_parse_ip_addr() 67 CU_ASSERT_EQUAL(strlen(host), 36); in test_parse_ip_addr() 480 rc = spdk_strcpy_replace(result, strlen(expected3) + 1, original, search3, replace3); in test_strcpy_replace() 486 rc = spdk_strcpy_replace(result, strlen(expected3), original, search3, replace3); in test_strcpy_replace()
|
| /spdk/test/unit/lib/iscsi/param.c/ |
| H A D | param_ut.c | 204 len = strlen("CHAP_C=") + ISCSI_TEXT_MAX_VAL_LEN + 1/* null terminators */; in parse_valid_test() 298 len = strlen("CHAP_C=") + ISCSI_TEXT_MAX_VAL_LEN + 1 /* max value len + 1 */ + in parse_invalid_test() 312 len = strlen("A=") + ISCSI_TEXT_MAX_SIMPLE_VAL_LEN + 1 /* max simple value len + 1 */ + in parse_invalid_test() 352 len = strlen(data) - 1; in parse_invalid_test()
|
| /spdk/lib/trace/ |
| H A D | trace_flags.c | 206 uint64_t prefix_len = strlen(LINE_PREFIX); in spdk_trace_mask_usage() 207 uint64_t separator_len = strlen(ENTRY_SEPARATOR); in spdk_trace_mask_usage() 216 curr_line_len = prefix_len + strlen(first_entry); in spdk_trace_mask_usage() 220 curr_entry_len = strlen(register_fn->name); in spdk_trace_mask_usage() 230 if (curr_line_len + strlen(last_entry) > MAX_LINE_LENGTH) { in spdk_trace_mask_usage()
|
| /spdk/lib/iscsi/ |
| H A D | portal_grp.c | 78 if (strlen(host) > MAX_PORTAL_ADDR || strlen(port) > MAX_PORTAL_PORT) { in iscsi_portal_create() 100 memcpy(p->host, host, strlen(host)); in iscsi_portal_create() 103 memcpy(p->port, port, strlen(port)); in iscsi_portal_create()
|
| /spdk/module/bdev/ocf/ |
| H A D | stats.c | 15 status = ocf_core_get_by_name(cache, core_name, strlen(core_name), &core); in vbdev_ocf_stats_get() 29 status = ocf_core_get_by_name(cache, core_name, strlen(core_name), &core); in vbdev_ocf_stats_reset()
|
| /spdk/test/unit/lib/util/crc32_ieee.c/ |
| H A D | crc32_ieee_ut.c | 20 crc = spdk_crc32_ieee_update(buf, strlen(buf), crc); in test_crc32_ieee()
|
| /spdk/test/unit/lib/json/json_util.c/ |
| H A D | json_util_ut.c | 787 v.len = strlen(uuidstr); in test_decode_uuid() 802 v.len = strlen(invalid); in test_decode_uuid() 832 values_cnt = spdk_json_parse(ut_json_text, strlen(ut_json_text), NULL, 0, NULL, 0); in test_find() 838 rc = spdk_json_parse(ut_json_text, strlen(ut_json_text), values, values_cnt, NULL, 0); in test_find() 889 values_cnt = spdk_json_parse(array_json_text, strlen(array_json_text), NULL, 0, NULL, 0); in test_find_array() 895 rc = spdk_json_parse(array_json_text, strlen(array_json_text), values, values_cnt, NULL, 0); in test_find_array() 922 values_cnt = spdk_json_parse(ut_json_text, strlen(ut_json_text), NULL, 0, NULL, 0); in test_iterating() 928 rc = spdk_json_parse(ut_json_text, strlen(ut_json_text), values, values_cnt, NULL, 0); in test_iterating()
|
| /spdk/lib/conf/ |
| H A D | conf.c | 325 return strncasecmp(sp->name, name_prefix, strlen(name_prefix)) == 0; in spdk_conf_section_match_prefix() 548 len = strlen(p); in fgets_line() 627 n = strlen(p); in spdk_conf_read() 636 n2 = strlen(lp2); in spdk_conf_read()
|
| /spdk/lib/ftl/base/ |
| H A D | ftl_base_dev.c | 33 return type && type->name && strlen(type->name); in ftl_base_device_valid()
|
| /spdk/lib/ftl/nvc/ |
| H A D | ftl_nvc_dev.c | 32 return type && type->name && strlen(type->name) > 0; in ftl_nv_cache_device_valid()
|
| /spdk/module/bdev/nvme/ |
| H A D | nvme_rpc.c | 244 text_strlen = strlen(text); in rpc_decode_cmdbuf() 282 text_strlen = strlen(text); in rpc_decode_data() 348 text_strlen = strlen(text); in rpc_decode_metadata()
|
| /spdk/test/app/fuzz/vhost_fuzz/ |
| H A D | vhost_fuzz_rpc.c | 45 if (strlen(req.socket) > PATH_MAX) { in spdk_rpc_fuzz_vhost_create_dev()
|
| /spdk/test/unit/lib/lvol/lvol.c/ |
| H A D | lvol_ut.c | 1277 spdk_blob_set_xattr(super_blob, "name", "lvs", strlen("lvs") + 1); in test_lvs_load() 1331 spdk_blob_set_xattr(super_blob, "name", "lvs", strlen("lvs") + 1); in lvols_load() 1343 spdk_blob_set_xattr(blob1, "name", "lvol1", strlen("lvol1") + 1); in lvols_load() 1350 spdk_blob_set_xattr(blob2, "name", "lvol2", strlen("lvol2") + 1); in lvols_load() 1357 spdk_blob_set_xattr(blob3, "name", "lvol3", strlen("lvol3") + 1); in lvols_load() 1438 spdk_blob_set_xattr(super_blob, "name", "lvs", strlen("lvs") + 1); in lvol_open() 1450 spdk_blob_set_xattr(blob1, "name", "lvol1", strlen("lvol1") + 1); in lvol_open() 1457 spdk_blob_set_xattr(blob2, "name", "lvol2", strlen("lvol2") + 1); in lvol_open() 1464 spdk_blob_set_xattr(blob3, "name", "lvol3", strlen("lvol3") + 1); in lvol_open() 2477 rc = spdk_lvol_create_esnap_clone(uuid_str, strlen(uuid_st in lvol_esnap_create_bad_args() [all...] |
| /spdk/lib/scsi/ |
| H A D | port.c | 48 if (strlen(name) >= sizeof(port->name)) { in scsi_port_construct()
|
| /spdk/lib/ftl/utils/ |
| H A D | ftl_property.c | 319 if (0 == strncmp(value, "true", strlen("true"))) { in ftl_property_decode_bool() 324 if (0 == strncmp(value, "false", strlen("false"))) { in ftl_property_decode_bool()
|
| /spdk/app/spdk_top/ |
| H A D | spdk_top.c | 284 g_col_desc[i][j].name_len = strlen(g_col_desc[i][j].name); in init_str_len() 440 thread_name_length = strlen(thread_info.name); in rpc_decode_pollers_threads_array() 1144 len = strlen(string); in print_max_len() 1204 col = ((g_max_col - white_spaces) / NUMBER_OF_TABS / 2) - (strlen(g_tab_title[tab]) / 2) - in draw_tab_win() 1853 length = strlen(string); in print_in_middle() 2323 (RR_WIN_WIDTH - 1 - strlen(refresh_rate_str)) / 2, "%d", refresh_rate); in change_refresh_rate() 2334 (RR_WIN_WIDTH - 1 - strlen(refresh_rate_str) - 2) / 2, " "); in change_refresh_rate() 2336 (RR_WIN_WIDTH - 1 - strlen(refresh_rate_str)) / 2, "%d", refresh_rate); in change_refresh_rate() 2388 mvprintw(g_max_row - 1, g_max_col - strlen(msg) - 2, "%s", msg); in print_bottom_message() 2933 s_name = strlen(g_scheduler_info.scheduler_name) + sched_name_label_len; in get_max_scheduler_win_width() [all …]
|
| /spdk/test/unit/lib/jsonrpc/jsonrpc_server.c/ |
| H A D | jsonrpc_server_ut.c | 57 CU_ASSERT(g_request->id && memcmp(g_request->id->start, num, strlen(num) - 1) == 0)) 341 len = strlen(json_req); in test_parse_request_streaming()
|
| /spdk/lib/notify/ |
| H A D | notify.c | 37 } else if (!type[0] || strlen(type) >= SPDK_NOTIFY_MAX_NAME_SIZE) { in spdk_notify_type_register()
|
| /spdk/test/unit/lib/nvmf/tcp.c/ |
| H A D | tcp_ut.c | 1364 g_ut_psk.len = strlen(psk) + 1; in test_nvmf_tcp_tls_add_remove_credentials() 1369 {(void *)g_ut_psk.name, strlen(g_ut_psk.name), SPDK_JSON_VAL_STRING}, in test_nvmf_tcp_tls_add_remove_credentials() 1451 memcpy(unhexlified_str1, unhexlified1, strlen(psk_reference1) / 2); in test_nvmf_tcp_tls_generate_retained_psk() 1452 memcpy(unhexlified_str2, unhexlified2, strlen(psk_reference2) / 2); in test_nvmf_tcp_tls_generate_retained_psk() 1457 retained_size = nvme_tcp_derive_retained_psk(unhexlified_str1, strlen(psk_reference1) / 2, hostnqn, in test_nvmf_tcp_tls_generate_tls_psk() 1461 CU_ASSERT(nvme_tcp_derive_retained_psk(unhexlified_str2, strlen(psk_reference2) / 2, hostnqn, in test_nvmf_tcp_tls_generate_tls_psk() 1467 psk_retained_len1 = nvme_tcp_derive_retained_psk(unhexlified_str1, strlen(psk_reference1) / 2, in test_nvmf_tcp_tls_generate_tls_psk() 1470 psk_retained_len2 = nvme_tcp_derive_retained_psk(unhexlified_str1, strlen(psk_reference1) / 2, in test_nvmf_tcp_tls_generate_tls_psk() 1476 CU_ASSERT(nvme_tcp_derive_retained_psk(unhexlified_str1, strlen(psk_reference1) / 2, hostnqn, in test_nvmf_tcp_tls_generate_tls_psk() 1480 CU_ASSERT(nvme_tcp_derive_retained_psk(unhexlified_str1, strlen(psk_reference in test_nvmf_tcp_tls_generate_tls_psk() [all...] |