Home
last modified time | relevance | path

Searched refs:haystack (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/tools/bpf/
H A Dbpf_jit_disasm.c170 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image() argument
189 ptr = haystack; in get_last_jit_image()
202 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image()
221 tmp = ptr = haystack + off; in get_last_jit_image()
/kernel/linux/linux-6.6/tools/bpf/
H A Dbpf_jit_disasm.c173 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()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dexpr.h43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
H A Dexpr.c228 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()
/kernel/linux/linux-5.10/tools/testing/kunit/
H A Dkunit_tool_test.py93 def assertContains(self, needle, haystack):
94 for line in haystack:
98 str(needle) + '" not found in "' + str(haystack) + '"!')
/kernel/linux/linux-5.10/arch/sh/drivers/dma/
H A Ddma-api.c104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument
108 for (p = haystack; *p; p++) in search_cap()
/kernel/linux/linux-6.6/arch/sh/drivers/dma/
H A Ddma-api.c104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument
108 for (p = haystack; *p; p++) in search_cap()
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dmixer-test.c420 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()
/kernel/linux/linux-5.10/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c199 * Safely find needle in haystack.
201 * @haystack: Buffer to look in.
202 * @hlen: Number of bytes in haystack.
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()
216 return haystack + i; in findstr()
/kernel/linux/linux-6.6/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c199 * findstr - Safely find needle in haystack.
201 * @haystack: Buffer to look in.
202 * @hlen: Number of bytes in haystack.
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()
216 return haystack + i; in findstr()
/kernel/linux/linux-5.10/drivers/scsi/
H A DNCR5380.c2176 * @haystack: list of commands
2180 static bool list_find_cmd(struct list_head *haystack, in list_find_cmd() argument
2185 list_for_each_entry(ncmd, haystack, list) in list_find_cmd()
2193 * @haystack: list of commands
2197 static bool list_del_cmd(struct list_head *haystack, in list_del_cmd() argument
2200 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
H A Dhpsa.c1541 /* Find needle in haystack. If exact match found, return DEVICE_SAME,
1550 struct hpsa_scsi_dev_t *haystack[], int haystack_size, in hpsa_scsi_find_entry()
1562 if (haystack[i] == NULL) /* previously removed. */ 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()
1549 hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, struct hpsa_scsi_dev_t *haystack[], int haystack_size, int *index) hpsa_scsi_find_entry() argument
/kernel/linux/linux-6.6/drivers/scsi/
H A DNCR5380.c2182 * @haystack: list of commands
2186 static bool list_find_cmd(struct list_head *haystack, in list_find_cmd() argument
2191 list_for_each_entry(ncmd, haystack, list) in list_find_cmd()
2199 * @haystack: list of commands
2203 static bool list_del_cmd(struct list_head *haystack, in list_del_cmd() argument
2206 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
H A Dhpsa.c1547 /* Find needle in haystack. If exact match found, return DEVICE_SAME,
1556 struct hpsa_scsi_dev_t *haystack[], int haystack_size, in hpsa_scsi_find_entry()
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()
1555 hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, struct hpsa_scsi_dev_t *haystack[], int haystack_size, int *index) hpsa_scsi_find_entry() argument
/kernel/linux/linux-6.6/tools/testing/kunit/
H A Dkunit_tool_test.py91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
93 copy, backup = itertools.tee(haystack)

Completed in 38 milliseconds