| /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/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/cgroup/ |
| H A D | cgroup_util.h | |
| H A D | cgroup_util.c | |
| /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 | 311 char *strstr(const char *haystack, const char *needle) in strstr() argument 315 len_needle = strlen(needle); in strstr() 321 if (!memcmp(haystack, needle, len_needle)) in strstr()
|
| /linux/tools/testing/selftests/cgroup/lib/include/ |
| H A D | cgroup_util.h | 65 const char *needle); 90 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
| /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/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() 573 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in clone_into_cgroup_run_wait() 580 return strstr(buf, needle) ? 0 : -1; in clone_into_cgroup_run_wait() 552 proc_read_strstr(int pid,bool thread,const char * item,const char * needle) proc_read_strstr() argument
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_rom.c | 140 loff_t intel_rom_find(struct intel_rom *rom, u32 needle) in intel_rom_find() argument 145 if (rom->read32(rom, offset) == needle) in intel_rom_find()
|
| /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/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/tools/perf/util/ |
| H A D | parse-events.h | 268 const char *needle);
|
| H A D | parse-events.c | 2425 const char *needle) in parse_events_error__contains() argument 2430 if (strstr(pos->str, needle) != NULL) in parse_events_error__contains()
|
| /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/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 94 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 98 if needle in line: 100 raise AssertionError(f'"{needle}" not found in {list(backup)}!')
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_ca_en50221.c | 199 * findstr - Safely find needle in haystack. 203 * @needle: Buffer to find. 204 * @nlen: Number of bytes in needle. 205 * return: Pointer into haystack needle was found at, or NULL if not found. 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
|
| /linux/drivers/scsi/ |
| H A D | hpsa.c | 1541 /* Find needle in haystack. If exact match found, return DEVICE_SAME, 1542 * and return needle location in *index. If scsi3addr matches, but not 1543 * vendor, model, serial num, etc. return DEVICE_CHANGED, and return needle 1547 * If needle not found, return DEVICE_NOT_FOUND. 1549 static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, in hpsa_scsi_find_entry() argument 1558 if (needle == NULL) in hpsa_scsi_find_entry() 1564 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry() 1566 if (device_is_the_same(needle, haystack[i])) { in hpsa_scsi_find_entry() 1567 if (device_updated(needle, haystack[i])) in hpsa_scsi_find_entry() 1572 if (needle in hpsa_scsi_find_entry() [all...] |