Home
last modified time | relevance | path

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

12

/openbmc/qemu/util/
H A Diova-tree.c41 const DMAMap *needle; member
94 const DMAMap *needle; in iova_tree_find_address_iterator() local
98 needle = args->needle; in iova_tree_find_address_iterator()
99 if (map->translated_addr + map->size < needle->translated_addr || in iova_tree_find_address_iterator()
100 needle->translated_addr + needle->size < map->translated_addr) { in iova_tree_find_address_iterator()
111 .needle = map, in iova_tree_find_iova()
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch29 static inline char* strstr_ptr(const char *haystack, const char *needle) {
30 if (!haystack || !needle)
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dcgroup_util.h35 const char *needle);
59 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
H A Dcgroup_util.c124 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
131 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
572 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
579 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch29 static inline char* strstr_ptr(const char *haystack, const char *needle) {
30 if (!haystack || !needle)
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H 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()
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H 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()
/openbmc/u-boot/lib/libavb/
H A Davb_util.c209 const char* avb_strstr(const char* haystack, const char* needle) { in avb_strstr() argument
216 if (haystack[n] != needle[0]) { in avb_strstr()
221 if (needle[m] == '\0') { in avb_strstr()
225 if (haystack[n + m] != needle[m]) { in avb_strstr()
H A Davb_util.h223 const char* needle) AVB_ATTR_WARN_UNUSED_RESULT;
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.c91 DMAMap needle = { in vhost_svq_translate_addr() local
98 const DMAMap *map = vhost_iova_tree_find_iova(svq->iova_tree, &needle); in vhost_svq_translate_addr()
106 needle.translated_addr); in vhost_svq_translate_addr()
110 off = needle.translated_addr - map->translated_addr; in vhost_svq_translate_addr()
113 needle_last = int128_add(int128_make64(needle.translated_addr), in vhost_svq_translate_addr()
H A Dvhost-vdpa.c1059 const DMAMap needle = { in vhost_vdpa_svq_unmap_ring() local
1062 const DMAMap *result = vhost_iova_tree_find_iova(v->iova_tree, &needle); in vhost_vdpa_svq_unmap_ring()
1101 static bool vhost_vdpa_svq_map_ring(struct vhost_vdpa *v, DMAMap *needle, in vhost_vdpa_svq_map_ring() argument
1106 r = vhost_iova_tree_map_alloc(v->iova_tree, needle); in vhost_vdpa_svq_map_ring()
1112 r = vhost_vdpa_dma_map(v, v->address_space_id, needle->iova, in vhost_vdpa_svq_map_ring()
1113 needle->size + 1, in vhost_vdpa_svq_map_ring()
1114 (void *)(uintptr_t)needle->translated_addr, in vhost_vdpa_svq_map_ring()
1115 needle->perm == IOMMU_RO); in vhost_vdpa_svq_map_ring()
1118 vhost_iova_tree_remove(v->iova_tree, *needle); in vhost_vdpa_svq_map_ring()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ncp/libowfat/
H A D0001-replace-__pure__-with-compiler-attribute-pure.patch46 * inclusive such that one[i] equals needle, or len if not found. */
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;
51 * such that one[i] equals needle, or len if not found. */
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;
376 -size_t str_rchr(const char *haystack,char needle) __pure__;
[all …]
/openbmc/openbmc-tools/reboot-ping-pong/
H A Drpp31 def _state(self, cmd, needle): argument
35 self.session.expect(needle, timeout=None)
/openbmc/linux/arch/sh/drivers/dma/
H 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()
/openbmc/openbmc/poky/bitbake/lib/bb/ui/
H A Dtaskexp.py147 def finder(model, path, iter, needle): argument
149 if package == needle:
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c1314 char needle[200]; in cmp_str_seq() local
1326 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
1330 strncpy(needle, exp, len); in cmp_str_seq()
1331 needle[len] = 0; in cmp_str_seq()
1332 q = strstr(log, needle); in cmp_str_seq()
1335 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
H 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)
/openbmc/openbmc/poky/meta/recipes-support/libssh2/libssh2/
H A DCVE-2023-48795.patch65 - const unsigned char *needle, size_t needle_len)
68 + const unsigned char *needle, size_t needle_len)
261 + const unsigned char *needle,
/openbmc/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c420 static bool strend(const char *haystack, const char *needle) in strend() argument
423 size_t needle_len = strlen(needle); in strend()
427 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
/openbmc/linux/drivers/scsi/
H A DNCR5380.c2187 struct scsi_cmnd *needle) in list_find_cmd() argument
2192 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2204 struct scsi_cmnd *needle) in list_del_cmd() argument
2206 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
2207 struct NCR5380_cmd *ncmd = NCR5380_to_ncmd(needle); in list_del_cmd()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Ddata.py444 needle = '/%s.bbclass' % klass
446 if v.endswith(needle):
/openbmc/linux/sound/soc/codecs/
H 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()
/openbmc/linux/net/netfilter/
H 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()
/openbmc/linux/tools/testing/kunit/
H A Dkunit_tool_test.py91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
95 if needle in line:
/openbmc/qemu/net/
H A Dvhost-vdpa.c474 DMAMap needle = { in vhost_vdpa_cvq_unmap_buf() local
481 const DMAMap *map = vhost_iova_tree_find_iova(tree, &needle); in vhost_vdpa_cvq_unmap_buf()

12