Home
last modified time | relevance | path

Searched refs:strs (Results 1 – 17 of 17) sorted by relevance

/OK3568_Linux_fs/external/rknpu2/examples/rknn_multiple_input_demo/src/
H A Dmain.cc74 std::string strs = str + pattern; in split() local
75 size_t pos = strs.find(pattern); in split()
76 while (pos != strs.npos) { in split()
77 std::string temp = strs.substr(0, pos); in split()
79 strs = strs.substr(pos + 1, strs.size()); in split()
80 pos = strs.find(pattern); in split()
/OK3568_Linux_fs/kernel/drivers/base/test/
H A Dproperty-entry-test.c232 const char *strs[10]; in pe_test_strings() local
242 error = fwnode_property_read_string_array(node, "str", strs, 1); in pe_test_strings()
244 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
247 error = fwnode_property_read_string_array(node, "str", strs, 2); in pe_test_strings()
249 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
254 error = fwnode_property_read_string_array(node, "no-str", strs, 1); in pe_test_strings()
261 error = fwnode_property_read_string_array(node, "strs", strs, 3); in pe_test_strings()
263 KUNIT_EXPECT_STREQ(test, strs[0], "string-a"); in pe_test_strings()
264 KUNIT_EXPECT_STREQ(test, strs[1], "string-b"); in pe_test_strings()
266 error = fwnode_property_read_string_array(node, "strs", strs, 1); in pe_test_strings()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbtf.c1396 void *hdr, *types, *strs, *strs_end, *s; in btf_ensure_modifiable() local
1410 strs = malloc(btf->hdr->str_len); in btf_ensure_modifiable()
1411 if (!hdr || !types || !strs) in btf_ensure_modifiable()
1416 memcpy(strs, btf->strs_data, btf->hdr->str_len); in btf_ensure_modifiable()
1426 strs_end = strs + btf->hdr->str_len; in btf_ensure_modifiable()
1427 for (off = 0, s = strs; s < strs_end; off += strlen(s) + 1, s = strs + off) { in btf_ensure_modifiable()
1442 btf->strs_data = strs; in btf_ensure_modifiable()
1459 free(strs); in btf_ensure_modifiable()
3129 struct btf_str_ptrs *strs; in btf_str_mark_as_used() local
3135 strs = ctx; in btf_str_mark_as_used()
[all …]
H A Dlibbpf_probes.c177 const char strs[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_local_storage_btf() local
199 strs, sizeof(strs)); in load_local_storage_btf()
H A Dlibbpf.c3839 static const char strs[] = "\0int"; in probe_kern_btf() local
3846 strs, sizeof(strs))); in probe_kern_btf()
3851 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func() local
3864 strs, sizeof(strs))); in probe_kern_btf_func()
3869 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func_global() local
3882 strs, sizeof(strs))); in probe_kern_btf_func_global()
3887 static const char strs[] = "\0x\0.data"; in probe_kern_btf_datasec() local
3901 strs, sizeof(strs))); in probe_kern_btf_datasec()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_benchmark/src/
H A Drknn_benchmark.cpp234 std::string strs = str + pattern; in split() local
235 size_t pos = strs.find(pattern); in split()
236 while (pos != strs.npos) { in split()
237 std::string temp = strs.substr(0, pos); in split()
239 strs = strs.substr(pos + 1, strs.size()); in split()
240 pos = strs.find(pattern); in split()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_dynamic_shape_input_demo/src/
H A Drknn_dynshape_inference.cc220 std::string strs = str + pattern; in split() local
221 size_t pos = strs.find(pattern); in split()
222 while (pos != strs.npos) in split()
224 std::string temp = strs.substr(0, pos); in split()
226 strs = strs.substr(pos + 1, strs.size()); in split()
227 pos = strs.find(pattern); in split()
H A Drknn_dynshape_inference_zero_copy.cc220 std::string strs = str + pattern; in split() local
221 size_t pos = strs.find(pattern); in split()
222 while (pos != strs.npos) in split()
224 std::string temp = strs.substr(0, pos); in split()
226 strs = strs.substr(pos + 1, strs.size()); in split()
227 pos = strs.find(pattern); in split()
/OK3568_Linux_fs/external/xserver/hw/xquartz/xpr/
H A DxprFrame.c358 char** strs = backtrace_symbols(callstack, frames); in xprStartDrawing() local
362 ErrorF(" %s\n", strs[i]); in xprStartDrawing()
364 free(strs); in xprStartDrawing()
389 char** strs = backtrace_symbols(callstack, frames); in xprStopDrawing() local
393 ErrorF(" %s\n", strs[i]); in xprStopDrawing()
395 free(strs); in xprStopDrawing()
/OK3568_Linux_fs/kernel/sound/firewire/dice/
H A Ddice-proc.c29 static const char *str_from_array(const char *const strs[], unsigned int count, in str_from_array() argument
33 return strs[i]; in str_from_array()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_progs.h51 const char **strs; member
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Dcper.c83 const char * const strs[], unsigned int strs_size) in cper_print_bits() argument
92 str = strs[i]; in cper_print_bits()
/OK3568_Linux_fs/kernel/include/linux/
H A Dcper.h562 const char * const strs[], unsigned int strs_size);
/OK3568_Linux_fs/kernel/sound/core/
H A Dpcm.c1020 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in show_pcm_class() local
1030 str = strs[pcm->dev_class]; in show_pcm_class()
/OK3568_Linux_fs/app/QLauncher/
H A Dxdgdesktopfile.cpp87 QStringList expandEnvVariables(const QStringList strs);
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c6634 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument
6636 const char *cur = strs; in dump_btf_strings()
6639 while (cur < strs + len) { in dump_btf_strings()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c648 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument
655 buf[i] = HCLGE_STATS_READ(comm_stats, strs[i].offset); in hclge_comm_get_stats()
661 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument
671 snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc); in hclge_comm_get_strings()