Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.10/tools/testing/selftests/cgroup/
Dcgroup_util.h30 const char *needle);
52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
Dcgroup_util.c127 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
134 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
545 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
552 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/Linux-v5.10/tools/testing/selftests/powerpc/signal/
Dsigreturn_vdso.c26 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-v5.10/tools/testing/selftests/powerpc/mm/
Dstack_expansion_ldst.c75 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-v5.10/tools/testing/selftests/bpf/
Dtest_verifier.c901 char needle[80]; in cmp_str_seq() local
911 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
915 strncpy(needle, exp, len); in cmp_str_seq()
916 needle[len] = 0; in cmp_str_seq()
917 q = strstr(log, needle); in cmp_str_seq()
920 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
Dtest_offload.py660 def check_no_extack(res, needle): argument
661 fail((res[1] + res[2]).count(needle) or (res[1] + res[2]).count("Warning:"),
662 "Found '%s' in command output, leaky extack?" % (needle))
680 def test_spurios_extack(sim, obj, skip_hw, needle): argument
683 check_no_extack(res, needle)
686 check_no_extack(res, needle)
689 check_no_extack(res, needle)
/Linux-v5.10/arch/sh/drivers/dma/
Ddma-api.c104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument
109 if (strcmp(*p, needle) == 0) in search_cap()
/Linux-v5.10/tools/testing/kunit/
Dkunit_tool_test.py93 def assertContains(self, needle, haystack): argument
95 if needle in line:
98 str(needle) + '" not found in "' + str(haystack) + '"!')
/Linux-v5.10/drivers/scsi/
DNCR5380.c2181 struct scsi_cmnd *needle) in list_find_cmd() argument
2186 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2198 struct scsi_cmnd *needle) in list_del_cmd() argument
2200 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
2201 struct NCR5380_cmd *ncmd = scsi_cmd_priv(needle); in list_del_cmd()
Dhpsa.c1549 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->volume_offline) in hpsa_scsi_find_entry()
/Linux-v5.10/sound/soc/codecs/
Dtas5086.c340 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument
345 if (array[i] == needle) in index_in_array()
/Linux-v5.10/net/netfilter/
Dnf_conntrack_sip.c351 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-v5.10/drivers/media/dvb-core/
Ddvb_ca_en50221.c201 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument
209 if (!strncmp(haystack + i, needle, nlen)) in findstr()