Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
A Dcgroup_util.h30 const char *needle);
52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
A Dcgroup_util.c129 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
136 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
551 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
558 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/linux/tools/testing/selftests/powerpc/signal/
A 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/tools/testing/selftests/powerpc/mm/
A 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/tools/testing/selftests/bpf/
A Dtest_verifier.c1056 char needle[200]; in cmp_str_seq() local
1068 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
1072 strncpy(needle, exp, len); in cmp_str_seq()
1073 needle[len] = 0; in cmp_str_seq()
1074 q = strstr(log, needle); in cmp_str_seq()
1077 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
A 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/arch/sh/drivers/dma/
A 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/drivers/scsi/
A DNCR5380.c2189 struct scsi_cmnd *needle) in list_find_cmd() argument
2194 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2206 struct scsi_cmnd *needle) in list_del_cmd() argument
2208 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
2209 struct NCR5380_cmd *ncmd = scsi_cmd_priv(needle); in list_del_cmd()
A Dhpsa.c1555 static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, in hpsa_scsi_find_entry() argument
1564 if (needle == NULL) in hpsa_scsi_find_entry()
1570 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry()
1572 if (device_is_the_same(needle, haystack[i])) { in hpsa_scsi_find_entry()
1573 if (device_updated(needle, haystack[i])) in hpsa_scsi_find_entry()
1578 if (needle->volume_offline) in hpsa_scsi_find_entry()
/linux/sound/soc/codecs/
A 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/net/netfilter/
A 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/tools/testing/kunit/
A Dkunit_tool_test.py97 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
101 if needle in line:
/linux/drivers/media/dvb-core/
A 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()

Completed in 486 milliseconds