strnlen 204 arch/alpha/boot/stdio.c len = strnlen(s, precision); strnlen 571 arch/alpha/kernel/osf_sys.c len = strnlen(kname, namelen); strnlen 25 arch/arm64/include/asm/string.h extern __kernel_size_t strnlen(const char *, __kernel_size_t); strnlen 95 arch/m68k/kernel/uboot.c n = strnlen(commandp, size); strnlen 344 arch/powerpc/boot/devtree.c pos += strnlen(&buf[pos], len - pos); strnlen 240 arch/powerpc/boot/stdio.c len = strnlen(s, precision); strnlen 14 arch/powerpc/boot/string.h extern size_t strnlen(const char *s, size_t count); strnlen 142 arch/powerpc/include/asm/code-patching.h if (strnlen(name, KSYM_NAME_LEN) >= KSYM_NAME_LEN) strnlen 902 arch/powerpc/kernel/nvram_64.c memcpy(new_part->header.name, name, strnlen(name, sizeof(new_part->header.name))); strnlen 94 arch/powerpc/platforms/ps3/repository.c memcpy((char *)&n, text, strnlen(text, sizeof(n))); strnlen 205 arch/s390/include/asm/string.h size_t strnlen(const char * s, size_t n); strnlen 66 arch/s390/lib/string.c EXPORT_SYMBOL(strnlen); strnlen 441 arch/s390/lib/uaccess.c len_str = strnlen(dst, len); strnlen 179 arch/um/kernel/skas/uaccess.c n = strnlen(to, len); strnlen 194 arch/um/kernel/skas/uaccess.c return strnlen(dst, count); strnlen 201 arch/um/kernel/skas/uaccess.c return strnlen(dst, count); strnlen 226 arch/um/kernel/skas/uaccess.c n = strnlen((void *) str, len); strnlen 239 arch/um/kernel/skas/uaccess.c return strnlen((__force char*)str, len) + 1; strnlen 328 arch/x86/boot/boot.h size_t strnlen(const char *s, size_t maxlen); strnlen 207 arch/x86/boot/printf.c len = strnlen(s, precision); strnlen 27 arch/x86/boot/string.h extern size_t strnlen(const char *s, size_t maxlen); strnlen 214 arch/x86/include/asm/string_32.h extern size_t strnlen(const char *s, size_t count); strnlen 235 arch/x86/lib/string_32.c EXPORT_SYMBOL(strnlen); strnlen 25 crypto/crypto_user_base.c #define null_terminated(x) (strnlen(x, sizeof(x)) < sizeof(x)) strnlen 22 crypto/crypto_user_stat.c #define null_terminated(x) (strnlen(x, sizeof(x)) < sizeof(x)) strnlen 1155 drivers/ata/libata-core.c p = s + strnlen(s, len - 1); strnlen 345 drivers/block/ps3disk.c p = s + strnlen(s, len - 1); strnlen 341 drivers/char/tlclk.c return strnlen(buf, count); strnlen 363 drivers/char/tlclk.c return strnlen(buf, count); strnlen 385 drivers/char/tlclk.c return strnlen(buf, count); strnlen 406 drivers/char/tlclk.c return strnlen(buf, count); strnlen 427 drivers/char/tlclk.c return strnlen(buf, count); strnlen 449 drivers/char/tlclk.c return strnlen(buf, count); strnlen 470 drivers/char/tlclk.c return strnlen(buf, count); strnlen 491 drivers/char/tlclk.c return strnlen(buf, count); strnlen 533 drivers/char/tlclk.c return strnlen(buf, count); strnlen 575 drivers/char/tlclk.c return strnlen(buf, count); strnlen 596 drivers/char/tlclk.c return strnlen(buf, count); strnlen 617 drivers/char/tlclk.c return strnlen(buf, count); strnlen 638 drivers/char/tlclk.c return strnlen(buf, count); strnlen 658 drivers/char/tlclk.c return strnlen(buf, count); strnlen 679 drivers/char/tlclk.c return strnlen(buf, count); strnlen 699 drivers/char/tlclk.c return strnlen(buf, count); strnlen 719 drivers/char/tlclk.c return strnlen(buf, count); strnlen 739 drivers/char/tlclk.c return strnlen(buf, count); strnlen 60 drivers/firmware/tegra/bpmp-debugfs.c seqbuf->pos += strnlen(*str, seqbuf_avail(seqbuf)); strnlen 1368 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c if (strnlen(input, AMDGPU_MAX_TIMEOUT_PARAM_LENTH)) { strnlen 1370 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c strnlen(timeout_setting, AMDGPU_MAX_TIMEOUT_PARAM_LENTH)) { strnlen 189 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c size = strnlen((((char *)adev->virt.fw_reserve.p_pf2vf) + strnlen 165 drivers/gpu/drm/drm_dp_cec.c (int)strnlen(id->device_id, sizeof(id->device_id)), strnlen 1329 drivers/gpu/drm/drm_dp_helper.c dev_id_len = strnlen(ident->device_id, sizeof(ident->device_id)); strnlen 92 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c if (strnlen(prop->value, prop->length) >= prop->length) strnlen 1693 drivers/hid/hid-wiimote-core.c return strnlen(buf, PAGE_SIZE); strnlen 1837 drivers/hid/hid-wiimote-modules.c return strnlen(buf, PAGE_SIZE); strnlen 608 drivers/ide/siimage.c unsigned len = strnlen(s, ATA_ID_PROD_LEN); strnlen 140 drivers/infiniband/core/cma_configfs.c return !ret ? strnlen(buf, count) : ret; strnlen 181 drivers/infiniband/core/cma_configfs.c return ret ? ret : strnlen(buf, count); strnlen 1083 drivers/infiniband/hw/hfi1/sdma.c return ret ? : strnlen(buf, PAGE_SIZE); strnlen 1094 drivers/infiniband/hw/hfi1/sdma.c return strnlen(buf, PAGE_SIZE); strnlen 172 drivers/input/keyboard/omap-keypad.c return strnlen(buf, count); strnlen 1072 drivers/input/misc/ims-pcu.c data_len = strnlen(buf, attr->field_length); strnlen 451 drivers/iommu/dmar.c if (strnlen(andd->device_name, header->length - 8) == header->length - 8) { strnlen 977 drivers/misc/eeprom/idt_89hpesx.c csraddr_len = strnlen(csraddr_str, count); strnlen 390 drivers/mtd/devices/block2mtd.c if (strnlen(val, sizeof(buf)) >= sizeof(buf)) { strnlen 225 drivers/mtd/devices/phram.c if (strnlen(val, sizeof(buf)) >= sizeof(buf)) strnlen 112 drivers/mtd/ubi/block.c len = strnlen(val, UBIBLOCK_PARAM_LEN); strnlen 1367 drivers/mtd/ubi/build.c len = strnlen(val, MTD_PARAM_LEN_MAX); strnlen 638 drivers/mtd/ubi/cdev.c n = strnlen(req->name, req->name_len + 1); strnlen 112 drivers/mtd/ubi/debug.c strnlen(vol->name, vol->name_len + 1) == vol->name_len) { strnlen 144 drivers/mtd/ubi/debug.c strnlen(&r->name[0], name_len + 1) == name_len) { strnlen 244 drivers/mtd/ubi/kapi.c len = strnlen(name, UBI_VOL_NAME_MAX + 1); strnlen 706 drivers/mtd/ubi/vmt.c n = strnlen(vol->name, vol->name_len + 1); strnlen 244 drivers/mtd/ubi/vtbl.c if (name_len != strnlen(name, name_len + 1)) { strnlen 909 drivers/net/ethernet/cavium/liquidio/octeon_console.c if ((sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))) < strnlen 915 drivers/net/ethernet/cavium/liquidio/octeon_console.c sizeof(h->bootcmd) - strnlen(h->bootcmd, sizeof(h->bootcmd))); strnlen 203 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c key_len = strnlen(spec->data, tl_len); strnlen 238 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c key_len = strnlen(spec_rtsym->rtsym, tl_len); strnlen 421 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c key_len = strnlen(spec->data, tl_len); strnlen 611 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c key_len = strnlen(spec->rtsym, tl_len); strnlen 929 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (strnlen(buf, size) == size) { strnlen 945 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (strnlen(default_val, size) == size) strnlen 966 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (strnlen(buf, size) == size) { strnlen 1040 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (strnlen(&buf[buf_off], size - buf_off) == size - buf_off) strnlen 586 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c iwe.u.data.length = strnlen(scan->essid, 32); strnlen 1611 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c target->essid_len = strnlen(scan_info->essid, strnlen 364 drivers/net/netconsole.c return strnlen(buf, count); strnlen 396 drivers/net/netconsole.c return strnlen(buf, count); strnlen 419 drivers/net/netconsole.c len = strnlen(nt->np.dev_name, IFNAMSIZ); strnlen 424 drivers/net/netconsole.c return strnlen(buf, count); strnlen 444 drivers/net/netconsole.c return strnlen(buf, count); strnlen 467 drivers/net/netconsole.c return strnlen(buf, count); strnlen 503 drivers/net/netconsole.c return strnlen(buf, count); strnlen 539 drivers/net/netconsole.c return strnlen(buf, count); strnlen 565 drivers/net/netconsole.c return strnlen(buf, count); strnlen 889 drivers/net/netconsole.c if (strnlen(input, MAX_PARAM_LENGTH)) { strnlen 97 drivers/net/wireless/ath/carl9170/fw.c str_ver_len = strnlen(motd_desc->release, strnlen 725 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c mp_path_len = strnlen(mp_path, BRCMF_FW_ALTPATH_LEN); strnlen 4168 drivers/net/wireless/intel/ipw2x00/ipw2100.c return strnlen(buf, count); strnlen 4237 drivers/net/wireless/intel/ipw2x00/ipw2100.c return strnlen(buf, count); strnlen 1208 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1614 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1637 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1661 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1687 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1714 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 1741 drivers/net/wireless/intel/ipw2x00/ipw2200.c return strnlen(buf, count); strnlen 240 drivers/net/wireless/intel/ipw2x00/libipw_module.c return strnlen(buf, len); strnlen 3097 drivers/net/wireless/intel/iwlegacy/3945-mac.c return strnlen(buf, count); strnlen 3376 drivers/net/wireless/intel/iwlegacy/3945-mac.c return strnlen(buf, count); strnlen 4573 drivers/net/wireless/intel/iwlegacy/4965-mac.c return strnlen(buf, count); strnlen 76 drivers/net/wireless/intersil/p54/fwio.c if (strnlen((unsigned char *) bootrec->data, 24) < 24) strnlen 2465 drivers/nvme/host/core.c nqnlen = strnlen(id->subnqn, NVMF_NQN_SIZE); strnlen 3265 drivers/nvme/host/fc.c if (strnlen(buf, blen) == NVME_FC_TRADDR_MAXLENGTH && strnlen 3272 drivers/nvme/host/fc.c } else if ((strnlen(buf, blen) == NVME_FC_TRADDR_MINLENGTH && strnlen 2460 drivers/nvme/target/fc.c if (strnlen(buf, blen) == NVME_FC_TRADDR_MAXLENGTH && strnlen 2467 drivers/nvme/target/fc.c } else if ((strnlen(buf, blen) == NVME_FC_TRADDR_MINLENGTH && strnlen 217 drivers/of/overlay.c if (strnlen(prop->value, prop->length) >= prop->length) strnlen 401 drivers/of/property.c if (strnlen(prop->value, prop->length) >= prop->length) strnlen 434 drivers/of/property.c l = strnlen(p, end - p) + 1; strnlen 472 drivers/of/property.c l = strnlen(p, end - p) + 1; strnlen 241 drivers/platform/x86/classmate-laptop.c return strnlen(buf, count); strnlen 290 drivers/platform/x86/classmate-laptop.c return strnlen(buf, count); strnlen 580 drivers/platform/x86/classmate-laptop.c return strnlen(buf, count); strnlen 300 drivers/power/supply/test_power.c cr = strnlen(buf, MAX_KEYLENGTH) - 1; strnlen 55 drivers/remoteproc/remoteproc_debugfs.c len = strnlen(va, trace->len); strnlen 223 drivers/s390/char/vmlogrdr.c len = strnlen(cp_response,sizeof(cp_response)); strnlen 2797 drivers/scsi/fcoe/fcoe.c len = strnlen(fc_host_symbolic_name(lport->host), 255); strnlen 1350 drivers/scsi/libfc/fc_lport.c len = strnlen(fc_host_symbolic_name(lport->host), 255); strnlen 1358 drivers/scsi/libfc/fc_lport.c len = strnlen(fc_host_symbolic_name(lport->host), 255); strnlen 941 drivers/scsi/libsas/sas_scsi_host.c res = hex2bin(addr, fw->data, strnlen(fw->data, SAS_ADDR_SIZE * 2) / 2); strnlen 515 drivers/scsi/lpfc/lpfc_attr.c len = strnlen(buf, PAGE_SIZE); strnlen 523 drivers/scsi/lpfc/lpfc_attr.c strnlen(LPFC_NVME_INFO_MORE_STR, PAGE_SIZE - 1), strnlen 525 drivers/scsi/lpfc/lpfc_attr.c strnlen(LPFC_NVME_INFO_MORE_STR, PAGE_SIZE - 1) strnlen 578 drivers/scsi/lpfc/lpfc_attr.c len = strnlen(buf, PAGE_SIZE); strnlen 1506 drivers/scsi/lpfc/lpfc_ct.c return strnlen(symbol, size); strnlen 2085 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2106 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2128 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); strnlen 2149 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2202 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2227 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2248 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2272 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); strnlen 2380 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2418 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2611 drivers/scsi/lpfc/lpfc_ct.c len = strnlen((char *)ae->un.AttrString, strnlen 2633 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); strnlen 2830 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2872 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, strnlen 2894 drivers/scsi/lpfc/lpfc_ct.c len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString)); strnlen 492 drivers/scsi/lpfc/lpfc_debugfs.c return strnlen(buf, size); strnlen 509 drivers/scsi/lpfc/lpfc_debugfs.c return strnlen(buf, size); strnlen 519 drivers/scsi/lpfc/lpfc_debugfs.c return strnlen(buf, size); strnlen 524 drivers/scsi/lpfc/lpfc_debugfs.c return strnlen(buf, size); strnlen 568 drivers/scsi/lpfc/lpfc_debugfs.c return strnlen(buf, size); strnlen 1297 drivers/scsi/lpfc/lpfc_debugfs.c len = strnlen(buf, size); strnlen 12549 drivers/scsi/lpfc/lpfc_init.c if (strncmp(fwrev, image->revision, strnlen(image->revision, 16))) { strnlen 457 drivers/scsi/scsi_devinfo.c if (vmax != strnlen(devinfo->vendor, strnlen 466 drivers/scsi/scsi_devinfo.c mlen = strnlen(devinfo->model, sizeof(devinfo->model)); strnlen 71 drivers/staging/comedi/drivers/ni_routes.c strnlen(device_family, 30)) == 0) { strnlen 80 drivers/staging/comedi/drivers/ni_routes.c strnlen(board_name, 30)) == 0) { strnlen 242 drivers/staging/greybus/fw-download.c if (strnlen(tag, GB_FIRMWARE_TAG_MAX_SIZE) == strnlen 154 drivers/staging/media/ipu3/ipu3-css-fw.c len = strnlen(name, css->fw->size - bi->blob.prog_name_offset); strnlen 106 drivers/target/target_core_spc.c strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); strnlen 108 drivers/target/target_core_spc.c strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); strnlen 110 drivers/target/target_core_spc.c strnlen(dev->t10_wwn.revision, INQUIRY_REVISION_LEN)); strnlen 251 drivers/target/target_core_spc.c strnlen(dev->t10_wwn.vendor, INQUIRY_VENDOR_LEN)); strnlen 2670 drivers/usb/gadget/function/f_fs.c size_t length = strnlen(data, len); strnlen 254 drivers/usb/usbip/stub_main.c len = strnlen(buf, BUSID_SIZE); strnlen 92 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c if (strnlen(prop->value, prop->length) >= prop->length) strnlen 570 drivers/visorbus/visorchipset.c value_length = strnlen(pscan, nscan); strnlen 384 fs/afs/dir.c nlen = strnlen(dire->u.name, strnlen 55 fs/bfs/dir.c int size = strnlen(de->name, BFS_NAMELEN); strnlen 5182 fs/btrfs/ioctl.c len = strnlen(label, BTRFS_LABEL_SIZE); strnlen 5211 fs/btrfs/ioctl.c if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { strnlen 363 fs/cifs/cifs_unicode.c len = strnlen(src, maxlen); strnlen 6432 fs/cifs/cifssmb.c name_len = strnlen(ea_name, 255); strnlen 1668 fs/cifs/connect.c for (i = 0; i < strnlen(nodename, RFC1001_NAME_LEN); i++) strnlen 2179 fs/cifs/connect.c if (strnlen(string, CIFS_MAX_USERNAME_LEN) > strnlen 2281 fs/cifs/connect.c if (strnlen(string, CIFS_MAX_DOMAINNAME_LEN) strnlen 2313 fs/cifs/connect.c if (strnlen(string, 1024) >= 65) { strnlen 4373 fs/cifs/connect.c unsigned int unc_len = strnlen(vol->UNC, MAX_TREE_SIZE + 1); strnlen 5110 fs/cifs/connect.c length = strnlen(bcc_ptr, bytes_left - 2); strnlen 63 fs/cifs/dir.c dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); strnlen 106 fs/cifs/dir.c dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); strnlen 420 fs/cifs/readdir.c de->namelen = strnlen(de->name, PATH_MAX); strnlen 244 fs/cifs/sess.c len = strnlen(bcc_ptr, bleft); strnlen 261 fs/cifs/sess.c len = strnlen(bcc_ptr, bleft); strnlen 276 fs/cifs/sess.c len = strnlen(bcc_ptr, bleft); strnlen 380 fs/cifs/sess.c sz += 2 * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN); strnlen 385 fs/cifs/sess.c sz += 2 * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN); strnlen 122 fs/crypto/fname.c oname->len = strnlen(oname->name, iname->len); strnlen 43 fs/erofs/dir.c de_namelen = strnlen(de_name, maxsize - nameoff); strnlen 193 fs/ext4/xattr.c if (strnlen(e->e_name, e->e_name_len) != e->e_name_len) strnlen 95 fs/fuse/xattr.c size_t thislen = strnlen(list, size); strnlen 671 fs/jffs2/gc.c if (strnlen(node->d.name, node->d.nsize) != node->d.nsize) { strnlen 1069 fs/jffs2/scan.c checkedlen = strnlen(rd->name, rd->nsize); strnlen 445 fs/jffs2/summary.c checkedlen = strnlen(spd->name, spd->nsize); strnlen 226 fs/jffs2/write.c if (strnlen(name, namelen) != namelen) { strnlen 121 fs/minix/dir.c unsigned l = strnlen(name, sbi->s_namelen); strnlen 474 fs/nfs/dir.c if (strnlen(filename.name, filename.len) != filename.len) strnlen 701 fs/nfs/nfs4idmap.c namelen_in = strnlen(im.im_name, IDMAP_NAMESZ); strnlen 574 fs/ocfs2/stackglue.c (strnlen(buf, len) != len)) strnlen 1379 fs/ocfs2/super.c (strnlen(args[0].from, strnlen 75 fs/ocfs2/symlink.c len = strnlen(link, ocfs2_fast_symlink_chars(inode->i_sb)); strnlen 361 fs/omfs/dir.c strnlen(oi->i_name, OMFS_NAMELEN), strnlen 68 fs/overlayfs/copy_up.c slen = strnlen(name, list_size) + 1; strnlen 412 fs/overlayfs/inode.c size_t slen = strnlen(s, len) + 1; strnlen 233 fs/proc/base.c int len = strnlen(page, got); strnlen 51 fs/qnx4/dir.c size = strnlen(de->di_fname, size); strnlen 521 fs/romfs/super.c len = strnlen(rsb->name, ROMFS_MAXFN); strnlen 96 fs/sysv/dir.c if (!dir_emit(ctx, name, strnlen(name,SYSV_NAMELEN), strnlen 488 fs/ubifs/replay.c (key_type == UBIFS_XENT_KEY && strnlen(dent->name, nlen) != nlen) || strnlen 57 fs/xfs/scrub/symlink.c len > strnlen(ifp->if_u1.if_data, XFS_IFORK_DSIZE(ip))) strnlen 66 fs/xfs/scrub/symlink.c if (strnlen(sc->buf, XFS_SYMLINK_MAXLEN) < len) strnlen 2059 fs/xfs/xfs_ioctl.c len = strnlen(label, XFSLABEL_MAX + 1); strnlen 532 include/acpi/actypes.h strnlen (a, ACPI_NAMESEG_SIZE) == ACPI_NAMESEG_SIZE) strnlen 244 include/asm-generic/uaccess.h #define __strnlen_user(s, n) (strnlen((s), (n)) + 1) strnlen 90 include/linux/string.h extern __kernel_size_t strnlen(const char *,__kernel_size_t); strnlen 301 include/linux/string.h ret = strnlen(p, p_size); strnlen 307 include/linux/string.h extern __kernel_size_t __real_strnlen(const char *, __kernel_size_t) __RENAME(strnlen); strnlen 308 include/linux/string.h __FORTIFY_INLINE __kernel_size_t strnlen(const char *p, __kernel_size_t maxlen) strnlen 348 include/linux/string.h copy_len = strnlen(q, count); strnlen 167 include/scsi/fc_encode.h len = strnlen(fc_host_symbolic_name(lport->host), 255); strnlen 177 include/scsi/fc_encode.h len = strnlen(fc_host_symbolic_name(lport->host), 255); strnlen 444 include/scsi/fc_encode.h strnlen(dev_name(&lport->host->shost_gendev), strnlen 458 include/scsi/fc_encode.h strnlen(fc_host_system_hostname(lport->host), strnlen 548 lib/string.c EXPORT_SYMBOL(strnlen); strnlen 201 lib/test_hexdump.c len, buflen, strnlen(buf, sizeof(buf))); strnlen 660 lib/test_kasan.c strnlen(ptr, 1); strnlen 104 mm/util.c len = strnlen(s, max); strnlen 891 mm/util.c len = strnlen(buffer, res); strnlen 901 mm/util.c res = strnlen(buffer, res); strnlen 2851 net/bluetooth/hci_event.c strnlen(ev->name, HCI_MAX_NAME_LENGTH)); strnlen 207 net/core/dev.c unsigned int hash = full_name_hash(net, name, strnlen(name, IFNAMSIZ)); strnlen 946 net/core/dev.c if (strnlen(name, IFNAMSIZ) == IFNAMSIZ) strnlen 3250 net/core/devlink.c len = strnlen(nla_data(param_data), nla_len(param_data)); strnlen 2487 net/netfilter/ipvs/ip_vs_ctl.c strnlen(usvc.sched_name, IP_VS_SCHEDNAME_MAXLEN) == strnlen 662 net/netfilter/ipvs/ip_vs_sync.c pe_name_len = strnlen(cp->pe->name, IP_VS_PENAME_MAXLEN); strnlen 182 net/netfilter/x_tables.c if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) strnlen 212 net/netfilter/x_tables.c if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) strnlen 231 net/netfilter/x_tables.c if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) strnlen 259 net/netfilter/x_tables.c if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) strnlen 446 net/netfilter/x_tables.c if (strnlen(name, size) == size) strnlen 639 net/netfilter/x_tables.c return usersize == kernsize && strnlen(msg, msglen) < msglen; strnlen 184 net/netfilter/xt_CT.c if (strnlen(info->helper, sizeof(info->helper)) == sizeof(info->helper)) { strnlen 195 net/netfilter/xt_CT.c if (strnlen(info->timeout, sizeof(info->timeout)) == sizeof(info->timeout)) { strnlen 196 net/netfilter/xt_IDLETIMER.c strnlen(info->label, strnlen 57 net/netfilter/xt_bpf.c if (strnlen(path, XT_BPF_PATH_MAX) == XT_BPF_PATH_MAX) strnlen 648 net/netrom/nr_route.c if (strnlen(nr_route.mnemonic, 7) == 7) { strnlen 275 net/rds/connection.c strnlen(trans->t_name, sizeof(trans->t_name)) ? strnlen 231 scripts/dtc/checks.c l = strnlen(str, rem); strnlen 933 scripts/dtc/checks.c str += strnlen(str, end - str) + 1) { strnlen 710 scripts/dtc/libfdt/fdt_ro.c length = strnlen(list, end - list) + 1; strnlen 737 scripts/dtc/libfdt/fdt_ro.c length = strnlen(list, end - list) + 1; strnlen 771 scripts/dtc/libfdt/fdt_ro.c length = strnlen(list, end - list) + 1; strnlen 675 security/apparmor/apparmorfs.c key = query + strnlen(query, query_len) + 1; strnlen 678 security/apparmor/apparmorfs.c if (key + strnlen(key, query + query_len - key) >= query + query_len) strnlen 767 security/apparmor/apparmorfs.c label_name_len = strnlen(query, query_len); strnlen 560 security/tomoyo/network.c len = strnlen(buf, len); strnlen 1179 sound/core/control.c name_len = strnlen(p, buf_len); strnlen 1234 sound/core/control.c if (strnlen(info->id.name, sizeof(info->id.name)) >= sizeof(info->id.name)) strnlen 767 sound/soc/soc-topology.c if (strnlen(be->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 848 sound/soc/soc-topology.c if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 944 sound/soc/soc-topology.c if (strnlen(ec->texts[i], SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1024 sound/soc/soc-topology.c if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1254 sound/soc/soc-topology.c if (strnlen(elem->source, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1259 sound/soc/soc-topology.c if (strnlen(elem->sink, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1264 sound/soc/soc-topology.c if (strnlen(elem->control, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1275 sound/soc/soc-topology.c if (strnlen(elem->control, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == 0) strnlen 1325 sound/soc/soc-topology.c if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1417 sound/soc/soc-topology.c if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1528 sound/soc/soc-topology.c if (strnlen(be->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1593 sound/soc/soc-topology.c if (strnlen(w->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 1596 sound/soc/soc-topology.c if (strnlen(w->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == strnlen 2242 sound/soc/soc-topology.c len = strnlen(cfg->name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); strnlen 2250 sound/soc/soc-topology.c len = strnlen(cfg->stream_name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN); strnlen 2059 sound/soc/sof/topology.c strnlen(tw->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) > 0 strnlen 2138 sound/soc/sof/topology.c strnlen(tw->sname, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) > 0 strnlen 99 tools/testing/selftests/bpf/test_verifier_log.c len = strnlen(log, buf_len);