/linux/tools/testing/selftests/bpf/ |
A D | test_progs.c | 540 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 D | test_progs.h | 50 const char **strs; member
|
/linux/drivers/base/test/ |
A D | property-entry-test.c | 268 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 D | libbpf_probes.c | 177 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 D | libbpf.c | 4377 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 D | linker.c | 2552 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 D | counter-sysfs.c | 194 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 D | counter.h | 408 const char *const *strs; member 421 .strs = (_strs), \
|
A D | cper.h | 562 const char * const strs[], unsigned int strs_size);
|
/linux/sound/firewire/dice/ |
A D | dice-proc.c | 29 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 D | vmwgfx_msg.c | 1033 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 D | cper.c | 83 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 D | vmwgfx_drm.h | 1260 __u64 strs; member
|
/linux/sound/core/ |
A D | pcm.c | 1013 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 D | btf.c | 7284 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 D | hclge_main.c | 713 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 D | System.map | 82390 ffff8000112a4118 d strs.6
|
A D | .tmp_System.map | 82390 ffff8000112a4118 d strs.6
|