/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_field_iter.c | 11 const char *strs[5]; member 13 { .ids = {}, .strs = {} }, 14 { .ids = {}, .strs = { "int" } }, 15 { .ids = {}, .strs = { "int64" } }, 16 { .ids = { 1 }, .strs = { "" } }, 17 { .ids = { 2, 1 }, .strs = { "" } }, 18 { .ids = { 3, 1 }, .strs = { "s1", "f1", "f2" } }, 19 { .ids = { 1, 5 }, .strs = { "u1", "f1", "f2" } }, 20 { .ids = {}, .strs = { "e1", "v1", "v2" } }, 21 { .ids = {}, .strs = { "fw1" } }, [all …]
|
H A D | btf.c | 8054 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument 8056 const char *cur = strs; in dump_btf_strings() 8059 while (cur < strs + len) { in dump_btf_strings()
|
/linux/tools/perf/util/ |
H A D | comm.c | 17 struct comm_str **strs; member 29 _comm_strs.strs = calloc(16, sizeof(*_comm_strs.strs)); in comm_strs__init() 109 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last() 112 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last() 113 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last() 123 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find() 152 tmp = reallocarray(comm_strs->strs, in comm_strs__findnew() 154 sizeof(*comm_strs->strs)); in comm_strs__findnew() 159 comm_strs->strs = tmp; in comm_strs__findnew() 169 int cmp = strcmp(comm_str__str(comm_strs->strs[mid]), str); in comm_strs__findnew() [all …]
|
/linux/drivers/base/test/ |
H 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/ |
H A D | libbpf_probes.c | 257 const char strs[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_local_storage_btf() local 279 strs, sizeof(strs), 0); in load_local_storage_btf()
|
H A D | linker.c | 2754 const void *strs; in bpf_linker__finalize() local 2766 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize() 2771 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
|
/linux/drivers/regulator/ |
H A D | of_regulator.c | 881 int strs, i; in is_supply_name() local 883 strs = strlen(name); in is_supply_name() 885 if (strs < 8) in is_supply_name() 887 for (i = strs - 6; i > 0; i--) { in is_supply_name()
|
/linux/sound/firewire/dice/ |
H 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/counter/ |
H A D | counter-sysfs.c | 210 return sysfs_emit(buf, "%s\n", avail->strs[data]); in counter_comp_u32_show() 261 err = __sysfs_match_string(avail->strs, avail->num_items, buf); in counter_comp_u32_store() 481 const char *const strs[], char *buf) in enums_available_show() argument 487 len += sysfs_emit_at(buf, len, "%s\n", strs[enums[index]]); in enums_available_show() 499 len += sysfs_emit_at(buf, len, "%s\n", avail->strs[index]); in strs_available_show()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_msg.c | 959 if (!arg->stat || !arg->info || !arg->strs) in vmw_mksstat_add_ioctl() 1006 pdesc->strsStartVA = arg->strs; in vmw_mksstat_add_ioctl() 1037 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
|
/linux/drivers/firmware/efi/ |
H A D | cper.c | 84 const char * const strs[], unsigned int strs_size) in cper_print_bits() argument 93 str = strs[i]; in cper_print_bits()
|
/linux/include/uapi/drm/ |
H A D | vmwgfx_drm.h | 1270 __u64 strs; member
|
/linux/include/linux/ |
H A D | cper.h | 586 const char * const strs[], unsigned int strs_size);
|
/linux/sound/core/ |
H A D | pcm.c | 1017 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in pcm_class_show() local 1027 str = strs[pcm->dev_class]; in pcm_class_show()
|
/linux/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 366 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream: 367 return kunit_parser.LineStream(enumerate(strs, start=1))
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 567 const struct hclge_comm_stats_str strs[], in hclge_comm_get_count() argument 574 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count() 581 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument 588 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats() 591 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats() 599 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument 608 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings() 611 ethtool_puts(data, strs[i].desc); in hclge_comm_get_strings()
|