/openbmc/linux/tools/perf/util/ |
H A D | string.c | 312 char *strreplace_chars(char needle, const char *haystack, const char *replace) in strreplace_chars() argument 316 const char *loc = strchr(haystack, needle); in strreplace_chars() 317 const char *from = haystack; in strreplace_chars() 327 new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1)); in strreplace_chars() 330 loc = strchr(haystack, needle); in strreplace_chars()
|
H A D | string2.h | 42 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
H A D | expr.h | 43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
|
H A D | expr.c | 228 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, in expr__subset_of_ids() argument 236 if (expr__get_id(haystack, cur->pkey, &data)) in expr__subset_of_ids()
|
/openbmc/linux/tools/perf/tests/ |
H A D | util.c | 9 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument 12 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_util.c | 209 const char* avb_strstr(const char* haystack, const char* needle) { in avb_strstr() argument 215 for (n = 0; haystack[n] != '\0'; n++) { in avb_strstr() 216 if (haystack[n] != needle[0]) { in avb_strstr() 222 return haystack + n; in avb_strstr() 225 if (haystack[n + m] != needle[m]) { in avb_strstr()
|
H A D | avb_util.h | 222 const char* avb_strstr(const char* haystack,
|
/openbmc/linux/tools/bpf/ |
H A D | bpf_jit_disasm.c | 173 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image() argument 192 ptr = haystack; in get_last_jit_image() 205 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image() 224 tmp = ptr = haystack + off; in get_last_jit_image()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/ |
H A D | 0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch | 29 static inline char* strstr_ptr(const char *haystack, const char *needle) { 30 if (!haystack || !needle)
|
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/ |
H A D | 0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch | 29 static inline char* strstr_ptr(const char *haystack, const char *needle) { 30 if (!haystack || !needle)
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | virtio-9p.c | 215 static void regex_replace(GString *haystack, const char *pattern, in regex_replace() argument 227 s = g_regex_replace(regex, haystack->str, -1, 0, replace, 0, NULL); in regex_replace() 228 g_string_assign(haystack, s); in regex_replace()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/ |
H A D | 0001-replace-__pure__-with-compiler-attribute-pure.patch | 47 -size_t byte_chr(const void* haystack, size_t len, char needle) __pure__; 48 +size_t byte_chr(const void* haystack, size_t len, char needle) __PURE; 52 -size_t byte_rchr(const void* haystack,size_t len,char needle) __pure__; 53 +size_t byte_rchr(const void* haystack,size_t len,char needle) __PURE; 371 /* str_chr returns the index of the first occurance of needle or \0 in haystack */ 372 -size_t str_chr(const char *haystack,char needle) __pure__; 373 +size_t str_chr(const char *haystack,char needle) __PURE; 375 /* str_rchr returns the index of the last occurance of needle or \0 in haystack */ 376 -size_t str_rchr(const char *haystack,char needle) __pure__; 377 +size_t str_rchr(const char *haystack,char needle) __PURE;
|
/openbmc/linux/arch/sh/drivers/dma/ |
H A D | dma-api.c | 104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument 108 for (p = haystack; *p; p++) in search_cap()
|
/openbmc/linux/tools/testing/selftests/alsa/ |
H A D | mixer-test.c | 420 static bool strend(const char *haystack, const char *needle) in strend() argument 422 size_t haystack_len = strlen(haystack); in strend() 427 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
|
/openbmc/linux/drivers/scsi/ |
H A D | NCR5380.c | 2190 static bool list_find_cmd(struct list_head *haystack, in list_find_cmd() argument 2195 list_for_each_entry(ncmd, haystack, list) in list_find_cmd() 2207 static bool list_del_cmd(struct list_head *haystack, in list_del_cmd() argument 2210 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
|
H A D | hpsa.c | 1556 struct hpsa_scsi_dev_t *haystack[], int haystack_size, in hpsa_scsi_find_entry() argument 1568 if (haystack[i] == NULL) /* previously removed. */ 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()
|
/openbmc/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() 216 return haystack + i; in findstr()
|
/openbmc/linux/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 93 copy, backup = itertools.tee(haystack)
|