/linux-6.3-rc2/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-6.3-rc2/tools/lib/bpf/ |
A D | libbpf_probes.c | 249 const char strs[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_local_storage_btf() local 271 strs, sizeof(strs)); in load_local_storage_btf()
|
A D | libbpf.c | 4523 static const char strs[] = "\0int"; in probe_kern_btf() local 4530 strs, sizeof(strs))); in probe_kern_btf() 4548 strs, sizeof(strs))); in probe_kern_btf_func() 4566 strs, sizeof(strs))); in probe_kern_btf_func_global() 4585 strs, sizeof(strs))); in probe_kern_btf_datasec() 4597 strs, sizeof(strs))); in probe_kern_btf_float() 4602 static const char strs[] = "\0tag"; in probe_kern_btf_decl_tag() local 4614 strs, sizeof(strs))); in probe_kern_btf_decl_tag() 4630 strs, sizeof(strs))); in probe_kern_btf_type_tag() 4720 fd = libbpf__load_raw_btf((char *)types, sizeof(types), strs, sizeof(strs)); in probe_module_btf() [all …]
|
A D | linker.c | 2553 const void *strs; in bpf_linker__finalize() local 2565 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize() 2570 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
|
/linux-6.3-rc2/drivers/regulator/ |
A D | of_regulator.c | 712 int strs, i; in is_supply_name() local 714 strs = strlen(name); in is_supply_name() 716 if (strs < 8) in is_supply_name() 718 for (i = strs - 6; i > 0; i--) { in is_supply_name()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/counter/ |
A D | counter-sysfs.c | 204 return sysfs_emit(buf, "%s\n", avail->strs[data]); in counter_comp_u32_show() 255 err = __sysfs_match_string(avail->strs, avail->num_items, buf); in counter_comp_u32_store() 475 const char *const strs[], char *buf) in enums_available_show() argument 481 len += sysfs_emit_at(buf, len, "%s\n", strs[enums[index]]); in enums_available_show() 493 len += sysfs_emit_at(buf, len, "%s\n", avail->strs[index]); in strs_available_show()
|
/linux-6.3-rc2/include/linux/ |
A D | counter.h | 485 const char *const *strs; member 498 .strs = (_strs), \
|
A D | cper.h | 563 const char * const strs[], unsigned int strs_size);
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_msg.c | 1036 if (!arg->stat || !arg->info || !arg->strs) in vmw_mksstat_add_ioctl() 1083 pdesc->strsStartVA = arg->strs; in vmw_mksstat_add_ioctl() 1114 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
|
/linux-6.3-rc2/drivers/firmware/efi/ |
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-6.3-rc2/include/uapi/drm/ |
A D | vmwgfx_drm.h | 1268 __u64 strs; member
|
/linux-6.3-rc2/security/apparmor/ |
A D | policy_unpack.c | 455 static bool unpack_trans_table(struct aa_ext *e, struct aa_str_table *strs) in unpack_trans_table() argument 520 strs->table = table; in unpack_trans_table() 521 strs->size = size; in unpack_trans_table()
|
/linux-6.3-rc2/sound/core/ |
A D | pcm.c | 1023 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in pcm_class_show() local 1033 str = strs[pcm->dev_class]; in pcm_class_show()
|
/linux-6.3-rc2/tools/testing/kunit/ |
A D | kunit_tool_test.py | 349 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream: 350 return kunit_parser.LineStream(enumerate(strs, start=1))
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.c | 617 const struct hclge_comm_stats_str strs[], in hclge_comm_get_count() argument 624 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count() 631 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument 638 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats() 641 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats() 649 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument 659 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings() 662 snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc); in hclge_comm_get_strings()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | btf.c | 7955 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument 7957 const char *cur = strs; in dump_btf_strings() 7960 while (cur < strs + len) { in dump_btf_strings()
|