/linux/tools/testing/selftests/cgroup/ |
A D | cgroup_util.h | 30 const char *needle); 52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
A D | cgroup_util.c | 129 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 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/testing/selftests/powerpc/mm/ |
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/tools/testing/selftests/bpf/ |
A D | test_verifier.c | 1056 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 D | test_offload.py | 660 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 D | dma-api.c | 104 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 D | NCR5380.c | 2189 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 D | hpsa.c | 1555 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 D | tas5086.c | 340 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 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/tools/testing/kunit/ |
A D | kunit_tool_test.py | 97 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 101 if needle in line:
|
/linux/drivers/media/dvb-core/ |
A D | dvb_ca_en50221.c | 201 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument 209 if (!strncmp(haystack + i, needle, nlen)) in findstr()
|