| /linux/tools/testing/selftests/powerpc/papr_vpd/ |
| H A D | papr_vpd.c | 62 static const char needle[] = "System VPD"; in dev_papr_vpd_get_handle_all() local 63 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in dev_papr_vpd_get_handle_all() 294 static const char needle[] = "System VPD"; in papr_vpd_system_loc_code() local 295 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in papr_vpd_system_loc_code()
|
| /linux/tools/perf/util/ |
| H A D | string.c | 421 char *strreplace_chars(char needle, const char *haystack, const char *replace) in strreplace_chars() argument 425 const char *loc = strchr(haystack, needle); in strreplace_chars() 431 loc = strchr(loc + 1, needle); in strreplace_chars() 439 loc = strchr(haystack, needle); in strreplace_chars() 453 loc = strchr(from, needle); in strreplace_chars()
|
| H A D | string2.h | 44 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
| H A D | parse-events.h | 279 const char *needle);
|
| /linux/tools/perf/tests/ |
| H A D | util.c | 10 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument 13 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
|
| /linux/tools/testing/selftests/powerpc/signal/ |
| H A D | sigreturn_vdso.c | 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 52 if (strstr(name, needle)) { in search_proc_maps()
|
| /linux/tools/include/nolibc/ |
| H A D | string.h | 296 char *strstr(const char *haystack, const char *needle) in strstr() argument 300 len_needle = strlen(needle); in strstr() 306 if (!memcmp(haystack, needle, len_needle)) in strstr()
|
| /linux/tools/testing/selftests/cgroup/lib/include/ |
| H A D | cgroup_util.h | 63 const char *needle); 85 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
| /linux/tools/testing/selftests/powerpc/mm/ |
| H A D | stack_expansion_ldst.c | 75 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 101 if (strstr(name, needle)) { in search_proc_maps()
|
| /linux/lib/tests/ |
| H A D | fortify_kunit.c | 942 char needle = 'm'; in __fortify_test() local 947 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), in __fortify_test() 951 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len + 1), in __fortify_test() 954 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len * 2), in __fortify_test() 963 char needle = 'm'; in fortify_test_memchr() local 968 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr() 972 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len + 1), in fortify_test_memchr() 975 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len * 2), in fortify_test_memchr() 984 char needle = 'W'; in fortify_test_memchr_inv() local 990 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len), in fortify_test_memchr_inv() [all …]
|
| /linux/drivers/gpu/drm/i915/soc/ |
| H A D | intel_rom.c | 137 loff_t intel_rom_find(struct intel_rom *rom, u32 needle) in intel_rom_find() argument 142 if (rom->read32(rom, offset) == needle) in intel_rom_find()
|
| H A D | intel_rom.h | 21 loff_t intel_rom_find(struct intel_rom *rom, u32 needle);
|
| /linux/tools/testing/selftests/cgroup/lib/ |
| H A D | cgroup_util.c | 126 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument 133 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr() 552 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument 559 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
|
| /linux/tools/hv/ |
| H A D | hv_kvp_daemon.c | 740 static const char needle[] = "via "; in kvp_extract_routes() local 743 while ((match = strstr(haystack, needle))) { in kvp_extract_routes() 747 address = match + strlen(needle); in kvp_extract_routes() 776 static const char needle[] = "default "; in kvp_get_gateway() local 792 if (num_chars <= strlen(needle)) in kvp_get_gateway() 795 if (memcmp(line, needle, strlen(needle))) in kvp_get_gateway() 801 kvp_extract_routes(line + strlen(needle), &output, &remaining); in kvp_get_gateway()
|
| /linux/tools/testing/selftests/net/ |
| H A D | bpf_offload.py | 600 def check_no_extack(res, needle): argument 602 fail(haystack.count(needle) or haystack.count("Warning:"), 603 "Unexpected command output, leaky extack? ('%s', '%s')" % (needle, haystack)) 621 def test_spurios_extack(sim, obj, skip_hw, needle): argument 624 check_no_extack(res, needle) 627 check_no_extack(res, needle) 630 check_no_extack(res, needle)
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 1307 char needle[200]; in cmp_str_seq() local 1319 if (len >= sizeof(needle) || !len) { in cmp_str_seq() 1323 strncpy(needle, exp, len); in cmp_str_seq() 1324 needle[len] = 0; in cmp_str_seq() 1325 q = strstr(log, needle); in cmp_str_seq() 1328 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
|
| /linux/drivers/scsi/ |
| H A D | NCR5380.c | 2186 struct scsi_cmnd *needle) in list_find_cmd() argument 2191 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd() 2203 struct scsi_cmnd *needle) in list_del_cmd() argument 2205 if (list_find_cmd(haystack, needle)) { in list_del_cmd() 2206 struct NCR5380_cmd *ncmd = NCR5380_to_ncmd(needle); in list_del_cmd()
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | mixer-test.c | 440 static bool strend(const char *haystack, const char *needle) in strend() argument 443 size_t needle_len = strlen(needle); in strend() 447 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
|
| /linux/drivers/gpu/nova-core/ |
| H A D | vbios.rs | 817 fn find_byte_pattern(haystack: &[u8], needle: &[u8]) -> Result<usize> { in find_byte_pattern() 819 .windows(needle.len()) in find_byte_pattern() 820 .position(|window| window == needle) in find_byte_pattern()
|
| /linux/sound/soc/codecs/ |
| H A D | tas5086.c | 339 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument 344 if (array[i] == needle) in index_in_array()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_sip.c | 351 const char *needle, unsigned int len) in ct_sip_header_search() argument 361 if (strncasecmp(dptr, needle, len) == 0) in ct_sip_header_search() 712 const char *needle, unsigned int len) in ct_sdp_header_search() argument 717 if (strncmp(dptr, needle, len) == 0) in ct_sdp_header_search()
|
| /linux/sound/soc/intel/avs/ |
| H A D | topology.c | 377 char *needle = strstr(fmt, "%d"); in avs_ssp_sprint() local 385 if (needle) { in avs_ssp_sprint() 386 retsize = scnprintf(buf, min_t(size_t, size, needle - fmt + 1), "%s", fmt); in avs_ssp_sprint() 390 retsize += scnprintf(buf + retsize, size - retsize, "%s", needle + 2); in avs_ssp_sprint()
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 96 if needle in line:
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_ca_en50221.c | 207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument 215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_mdb_max.sh | 328 local needle=$1; shift
|