Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
A Dtest_progs.c540 free(set->strs); in free_str_set()
553 tmp = realloc(strs, sizeof(*strs) * (cnt + 1)); in parse_str_list()
556 strs = tmp; in parse_str_list()
559 strs[cnt] = strdup(next); in parse_str_list()
560 if (!strs[cnt]) in parse_str_list()
564 if (!strs[cnt]) in parse_str_list()
572 tmp = realloc(set->strs, sizeof(*strs) * (cnt + set->cnt)); in parse_str_list()
575 memcpy(tmp + set->cnt, strs, sizeof(*strs) * cnt); in parse_str_list()
580 free(strs); in parse_str_list()
584 free(strs[i]); in parse_str_list()
[all …]
A Dtest_progs.h50 const char **strs; member
/linux/drivers/base/test/
A Dproperty-entry-test.c268 const char *strs[10]; in pe_test_strings() local
281 error = fwnode_property_read_string_array(node, "str", strs, 1); in pe_test_strings()
283 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
286 error = fwnode_property_read_string_array(node, "str", strs, 2); in pe_test_strings()
288 KUNIT_EXPECT_STREQ(test, strs[0], "single"); in pe_test_strings()
293 error = fwnode_property_read_string_array(node, "no-str", strs, 1); in pe_test_strings()
303 error = fwnode_property_read_string_array(node, "strs", strs, 3); in pe_test_strings()
305 KUNIT_EXPECT_STREQ(test, strs[0], "string-a"); in pe_test_strings()
306 KUNIT_EXPECT_STREQ(test, strs[1], "string-b"); in pe_test_strings()
308 error = fwnode_property_read_string_array(node, "strs", strs, 1); in pe_test_strings()
[all …]
/linux/tools/lib/bpf/
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()
A Dlibbpf.c4377 static const char strs[] = "\0int"; in probe_kern_btf() local
4384 strs, sizeof(strs))); in probe_kern_btf()
4402 strs, sizeof(strs))); in probe_kern_btf_func()
4420 strs, sizeof(strs))); in probe_kern_btf_func_global()
4439 strs, sizeof(strs))); in probe_kern_btf_datasec()
4444 static const char strs[] = "\0float"; in probe_kern_btf_float() local
4451 strs, sizeof(strs))); in probe_kern_btf_float()
4456 static const char strs[] = "\0tag"; in probe_kern_btf_decl_tag() local
4468 strs, sizeof(strs))); in probe_kern_btf_decl_tag()
4576 static const char strs[] = "\0int"; in probe_module_btf() local
[all …]
A Dlinker.c2552 const void *strs; in bpf_linker__finalize() local
2564 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize()
2569 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
/linux/drivers/counter/
A Dcounter-sysfs.c194 return sysfs_emit(buf, "%s\n", avail->strs[data]); in counter_comp_u32_show()
243 err = __sysfs_match_string(avail->strs, avail->num_items, buf); in counter_comp_u32_store()
341 const char *const strs[], char *buf) in enums_available_show() argument
347 len += sysfs_emit_at(buf, len, "%s\n", strs[enums[index]]); in enums_available_show()
359 len += sysfs_emit_at(buf, len, "%s\n", avail->strs[index]); in strs_available_show()
/linux/include/linux/
A Dcounter.h408 const char *const *strs; member
421 .strs = (_strs), \
A Dcper.h562 const char * const strs[], unsigned int strs_size);
/linux/sound/firewire/dice/
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()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_msg.c1033 if (!arg->stat || !arg->info || !arg->strs) in vmw_mksstat_add_ioctl()
1070 pdesc->strsStartVA = arg->strs; in vmw_mksstat_add_ioctl()
1101 nr_pinned_strs = pin_user_pages(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs, NULL); in vmw_mksstat_add_ioctl()
/linux/drivers/firmware/efi/
A Dcper.c83 const char * const strs[], unsigned int strs_size) in cper_print_bits() argument
92 str = strs[i]; in cper_print_bits()
/linux/include/uapi/drm/
A Dvmwgfx_drm.h1260 __u64 strs; member
/linux/sound/core/
A Dpcm.c1013 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in pcm_class_show() local
1023 str = strs[pcm->dev_class]; in pcm_class_show()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dbtf.c7284 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument
7286 const char *cur = strs; in dump_btf_strings()
7289 while (cur < strs + len) { in dump_btf_strings()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.c713 const struct hclge_comm_stats_str strs[], in hclge_comm_get_count() argument
720 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count()
727 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument
734 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats()
737 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats()
745 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument
755 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings()
758 snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc); in hclge_comm_get_strings()
/linux/
A DSystem.map82390 ffff8000112a4118 d strs.6
A D.tmp_System.map82390 ffff8000112a4118 d strs.6

Completed in 415 milliseconds