Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/base/test/
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-6.6.21/tools/lib/bpf/
Dlibbpf_probes.c252 const char strs[] = "\0bpf_spin_lock\0val\0cnt\0l"; in load_local_storage_btf() local
274 strs, sizeof(strs)); in load_local_storage_btf()
Dlibbpf.c4596 static const char strs[] = "\0int"; in probe_kern_btf() local
4603 strs, sizeof(strs))); in probe_kern_btf()
4608 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func() local
4621 strs, sizeof(strs))); in probe_kern_btf_func()
4626 static const char strs[] = "\0int\0x\0a"; in probe_kern_btf_func_global() local
4639 strs, sizeof(strs))); in probe_kern_btf_func_global()
4644 static const char strs[] = "\0x\0.data"; in probe_kern_btf_datasec() local
4658 strs, sizeof(strs))); in probe_kern_btf_datasec()
4663 static const char strs[] = "\0float"; in probe_kern_btf_float() local
4670 strs, sizeof(strs))); in probe_kern_btf_float()
[all …]
Dlinker.c2558 const void *strs; in bpf_linker__finalize() local
2570 strs = strset__data(linker->strtab_strs); in bpf_linker__finalize()
2575 sec->data->d_buf = (void *)strs; in bpf_linker__finalize()
/linux-6.6.21/drivers/regulator/
Dof_regulator.c712 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.6.21/sound/firewire/dice/
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-6.6.21/drivers/counter/
Dcounter-sysfs.c210 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-6.6.21/include/linux/
Dcounter.h485 const char *const *strs; member
498 .strs = (_strs), \
Dcper.h563 const char * const strs[], unsigned int strs_size);
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c1010 if (!arg->stat || !arg->info || !arg->strs) in vmw_mksstat_add_ioctl()
1057 pdesc->strsStartVA = arg->strs; in vmw_mksstat_add_ioctl()
1088 nr_pinned_strs = pin_user_pages_fast(arg->strs, num_pages_strs, FOLL_LONGTERM, pages_strs); in vmw_mksstat_add_ioctl()
/linux-6.6.21/drivers/firmware/efi/
Dcper.c84 const char * const strs[], unsigned int strs_size) in cper_print_bits() argument
93 str = strs[i]; in cper_print_bits()
/linux-6.6.21/security/apparmor/
Dpolicy_unpack.c459 static bool unpack_trans_table(struct aa_ext *e, struct aa_str_table *strs) in unpack_trans_table() argument
481 strs->table = table; in unpack_trans_table()
482 strs->size = size; in unpack_trans_table()
529 aa_free_str_table(strs); in unpack_trans_table()
/linux-6.6.21/include/uapi/drm/
Dvmwgfx_drm.h1268 __u64 strs; member
/linux-6.6.21/sound/core/
Dpcm.c1025 static const char *strs[SNDRV_PCM_CLASS_LAST + 1] = { in pcm_class_show() local
1035 str = strs[pcm->dev_class]; in pcm_class_show()
/linux-6.6.21/tools/testing/kunit/
Dkunit_tool_test.py349 def line_stream_from_strs(strs: Iterable[str]) -> kunit_parser.LineStream:
350 return kunit_parser.LineStream(enumerate(strs, start=1))
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c521 const struct hclge_comm_stats_str strs[], in hclge_comm_get_count() argument
528 if (strs[i].stats_num <= hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_count()
535 const struct hclge_comm_stats_str strs[], in hclge_comm_get_stats() argument
542 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_stats()
545 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats()
553 const struct hclge_comm_stats_str strs[], in hclge_comm_get_strings() argument
563 if (strs[i].stats_num > hdev->ae_dev->dev_specs.mac_stats_num) in hclge_comm_get_strings()
566 snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc); in hclge_comm_get_strings()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf.c7991 static void dump_btf_strings(const char *strs, __u32 len) in dump_btf_strings() argument
7993 const char *cur = strs; in dump_btf_strings()
7996 while (cur < strs + len) { in dump_btf_strings()