memchr 63 arch/alpha/include/asm/string.h extern void * memchr(const void *, int, size_t); memchr 624 arch/arc/kernel/unwind.c ptr = memchr(aug, 0, end - ptr); memchr 23 arch/arm/include/asm/string.h extern void * memchr(const void *, int, __kernel_size_t); memchr 91 arch/arm/kernel/armksyms.c EXPORT_SYMBOL(memchr); memchr 31 arch/arm64/include/asm/string.h extern void *memchr(const void *, int, __kernel_size_t); memchr 19 arch/powerpc/boot/string.h extern void *memchr(const void *s, int c, size_t n); memchr 30 arch/powerpc/include/asm/string.h extern void * memchr(const void *,int,__kernel_size_t); memchr 150 arch/powerpc/platforms/4xx/cpm.c p = memchr(buf, '\n', n); memchr 200 arch/s390/include/asm/string.h void *memchr(const void * s, int c, size_t n); memchr 329 arch/s390/lib/string.c EXPORT_SYMBOL(memchr); memchr 125 arch/sh/include/asm/string_32.h extern void *memchr(const void *__s, int __c, size_t __n); memchr 10 arch/sh/kernel/sh_ksyms_32.c EXPORT_SYMBOL(memchr); memchr 30 arch/unicore32/include/asm/string.h extern void *memchr(const void *, int, __kernel_size_t); memchr 38 arch/unicore32/kernel/ksyms.c EXPORT_SYMBOL(memchr); memchr 196 arch/x86/include/asm/string_32.h extern void *memchr(const void *cs, int c, size_t count); memchr 196 arch/x86/lib/string_32.c EXPORT_SYMBOL(memchr); memchr 832 drivers/char/lp.c char *lf = memchr(s, '\n', count); memchr 960 drivers/cpufreq/intel_pstate.c char *p = memchr(buf, '\n', count); memchr 1852 drivers/hwtracing/intel_th/msu.c cp = memchr(buf, '\n', len); memchr 1966 drivers/hwtracing/intel_th/msu.c end = memchr(buf, '\n', len); memchr 1971 drivers/hwtracing/intel_th/msu.c end = memchr(p, ',', len); memchr 1142 drivers/input/keyboard/applespi.c if (memchr(keyboard_protocol->keys_pressed, memchr 96 drivers/input/keyboard/maple_keyb.c ptr = memchr(kbd->new + 2, kbd->old[i], 6); memchr 108 drivers/input/keyboard/maple_keyb.c ptr = memchr(kbd->old + 2, kbd->new[i], 6); memchr 160 drivers/input/serio/libps2.c return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL; memchr 86 drivers/input/serio/ps2mult.c need_escape = memchr(ps2mult_controls, data, sizeof(ps2mult_controls)); memchr 297 drivers/media/pci/cx18/cx18-fileops.c q = memchr(p, 0, start + len - p); memchr 301 drivers/media/pci/ivtv/ivtv-fileops.c while (start + len > p && (q = memchr(p, 0, start + len - p))) { memchr 968 drivers/media/platform/qcom/venus/hfi_venus.c p = memchr(sfr->data, '\0', sfr->buf_size); memchr 367 drivers/media/platform/vicodec/vicodec-core.c p = memchr(p, magic[ctx->comp_magic_cnt], memchr 784 drivers/net/netconsole.c body = memchr(msg, ';', msg_len); memchr 357 drivers/soc/fsl/qe/qe.c const u8 *p = memchr(snums, snum, qe_num_of_snum); memchr 78 drivers/spi/spi.c const char *end = memchr(buf, '\n', count); memchr 1335 drivers/tty/hvc/hvc_iucv.c end = memchr(start, ' ', 8); memchr 478 drivers/usb/core/sysfs.c cp = memchr(buf, '\n', count); memchr 503 drivers/xen/xenbus/xenbus_dev_frontend.c token = memchr(path, 0, u->u.msg.len); memchr 509 drivers/xen/xenbus/xenbus_dev_frontend.c if (memchr(token, 0, u->u.msg.len - (token - path)) == NULL) { memchr 83 fs/afs/addr_list.c if (delim == ':' && (memchr(text, ',', len) || !memchr(text, '.', len))) memchr 102 fs/afs/addr_list.c p = memchr(p, ']', end - p); memchr 112 fs/afs/addr_list.c p = memchr(p, delim, end - p); memchr 148 fs/afs/addr_list.c q = memchr(p, ']', end - p); memchr 94 fs/afs/proc.c name = memchr(buf, '\n', size); memchr 182 fs/afs/proc.c if (memchr(buf, '/', size)) memchr 186 fs/afs/proc.c s = memchr(buf, '\n', size); memchr 516 fs/afs/proc.c if (memchr(s, '/', len)) memchr 42 fs/autofs/dev-ioctl.c if (memchr(str, 0, size)) memchr 237 fs/cachefiles/daemon.c if (memchr(data, '\0', datalen)) memchr 241 fs/cachefiles/daemon.c cp = memchr(data, '\n', datalen); memchr 67 fs/cifs/dns_resolve.c sep = memchr(hostname, '/', len); memchr 167 fs/cifs/netmisc.c pct = memchr(src, '%', len); memchr 592 fs/fs_context.c memchr(param->string, ',', param->size))) memchr 134 fs/fuse/readdir.c if (memchr(dirent->name, '/', dirent->namelen) != NULL) memchr 291 fs/fuse/readdir.c if (memchr(dirent->name, '/', dirent->namelen) != NULL) memchr 400 fs/fuse/readdir.c if (WARN_ON(memchr(dirent->name, '/', dirent->namelen) != NULL)) memchr 222 fs/fuse/virtio_fs.c end = memchr(tag_buf, '\0', sizeof(tag_buf)); memchr 278 fs/isofs/rock.c p = memchr(rr->u.NM.name, '\0', len); memchr 322 fs/lockd/mon.c if (hostname && memchr(hostname, '/', hostname_len) != NULL) { memchr 169 fs/nfs/nfs4idmap.c if (memchr(name, '@', namelen) != NULL || namelen >= sizeof(buf)) memchr 266 fs/nfs/nfs4namespace.c if (memchr(buf->data, IPV6_SCOPE_DELIMITER, buf->len)) memchr 446 fs/nfs/nfs4namespace.c if (memchr(buf->data, IPV6_SCOPE_DELIMITER, buf->len) != NULL) memchr 114 fs/readdir.c if (memchr(name, '/', len)) memchr 51 fs/romfs/storage.c p = memchr(buf, 0, len); memchr 147 fs/romfs/storage.c p = memchr(buf, 0, segment); memchr 1369 fs/xfs/libxfs/xfs_attr.c return !memchr(name, 0, length); memchr 717 fs/xfs/libxfs/xfs_dir2.c return !memchr(name, '/', length) && !memchr(name, 0, length); memchr 230 fs/xfs/libxfs/xfs_symlink_remote.c if (memchr(sfp, 0, size - 1)) memchr 161 include/linux/string.h extern void * memchr(const void *,int,__kernel_size_t); memchr 1011 kernel/power/hibernate.c p = memchr(buf, '\n', n); memchr 153 kernel/power/main.c p = memchr(buf, '\n', n); memchr 237 kernel/power/main.c p = memchr(buf, '\n', n); memchr 580 kernel/power/main.c p = memchr(buf, '\n', n); memchr 1347 kernel/printk/printk.c const char *next = memchr(text, '\n', text_size); memchr 2236 kernel/sysctl.c if (len < *size && perm_tr_len && !memchr(perm_tr, *p, perm_tr_len)) memchr 237 lib/nlattr.c if (!minlen || memchr(nla_data(nla), '\0', minlen) == NULL) { memchr 1007 lib/string.c EXPORT_SYMBOL(memchr); memchr 606 lib/test_kasan.c memchr(ptr, '1', size + 1); memchr 1877 net/ceph/messenger.c delim_p = memchr(name, delim, namelen); memchr 1878 net/ceph/messenger.c colon_p = memchr(name, ':', namelen); memchr 137 net/dns_resolver/dns_key.c opt = memchr(data, '#', datalen); memchr 153 net/dns_resolver/dns_key.c next_opt = memchr(opt, '#', end - opt) ?: end; memchr 161 net/dns_resolver/dns_key.c eq = memchr(opt, '=', opt_len); memchr 199 net/netlink/genetlink.c if (WARN_ON(memchr(grp->name, '\0', GENL_NAMSIZ) == NULL)) memchr 1571 net/openvswitch/conntrack.c if (!memchr(*helper, '\0', nla_len(a))) { memchr 1592 net/openvswitch/conntrack.c if (!memchr(info->timeout, '\0', nla_len(a))) { memchr 954 net/rxrpc/rxkad.c q = memchr(p, 0, end - p); \ memchr 177 net/tipc/netlink_compat.c return memchr(s, '\0', len) ? true : false; memchr 367 scripts/asn1_compiler.c nl = memchr(line, '\n', end - buffer); memchr 378 scripts/asn1_compiler.c while ((p = memchr(p, '-', nl - p))) { memchr 382 scripts/asn1_compiler.c while ((q = memchr(q, '-', nl - q))) { memchr 451 scripts/dtc/libfdt/fdt_overlay.c fixup_end = memchr(value, '\0', len); memchr 460 scripts/dtc/libfdt/fdt_overlay.c sep = memchr(fixup_str, ':', fixup_len); memchr 470 scripts/dtc/libfdt/fdt_overlay.c sep = memchr(name, ':', fixup_len); memchr 730 scripts/dtc/libfdt/fdt_overlay.c if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) memchr 28 scripts/dtc/libfdt/fdt_ro.c else if (!memchr(s, '@', len) && (p[len] == '@')) memchr 71 scripts/dtc/libfdt/fdt_ro.c n = memchr(s, '\0', len); memchr 245 scripts/dtc/libfdt/fdt_ro.c const char *q = memchr(path, '/', end - p); memchr 266 scripts/dtc/libfdt/fdt_ro.c q = memchr(p, '/', end - p); memchr 689 scripts/dtc/libfdt/fdt_ro.c p = memchr(strlist, '\0', listlen); memchr 87 scripts/dtc/libfdt/libfdt_env.h const char *p = memchr(string, 0, max_count); memchr 108 tools/perf/util/color.c char *p = memchr(buf, '\n', count); memchr 1412 tools/perf/util/probe-event.c if (ptr && memchr(arg, '.', ptr - arg)) memchr 56 tools/perf/util/srccode.c while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { memchr 75 tools/perf/util/srccode.c while (p < end && (p = memchr(p, '\n', end - p)) != NULL) { memchr 176 tools/perf/util/srccode.c p = memchr(l, '\n', sf->map + sf->maplen - l); memchr 2080 tools/perf/util/symbol-elf.c name = (const char *)memchr(provider, '\0', data + len - provider); memchr 2095 tools/perf/util/symbol-elf.c args = memchr(name, '\0', data + len - name);