namelen 560 arch/alpha/kernel/osf_sys.c SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen) namelen 566 arch/alpha/kernel/osf_sys.c if (namelen < 0 || namelen > 32) namelen 567 arch/alpha/kernel/osf_sys.c namelen = 32; namelen 571 arch/alpha/kernel/osf_sys.c len = strnlen(kname, namelen); namelen 572 arch/alpha/kernel/osf_sys.c len = min(len + 1, namelen); namelen 106 arch/mips/fw/cfe/cfe_api.c int cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen) namelen 117 arch/mips/fw/cfe/cfe_api.c xiocb.plist.xiocb_envbuf.name_length = namelen; namelen 87 arch/mips/include/asm/fw/cfe/cfe_api.h int cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen); namelen 145 arch/mips/include/asm/sgiarcs.h ULONG namelen; namelen 180 arch/mips/include/asm/sgiarcs.h unsigned long namelen; namelen 186 arch/sparc/vdso/vdso2c.c int namelen; namelen 198 arch/sparc/vdso/vdso2c.c namelen = strlen(name); namelen 199 arch/sparc/vdso/vdso2c.c if (namelen >= 3 && !strcmp(name + namelen - 3, ".so")) { namelen 207 arch/x86/entry/vdso/vdso2c.c int namelen; namelen 219 arch/x86/entry/vdso/vdso2c.c namelen = strlen(name); namelen 220 arch/x86/entry/vdso/vdso2c.c if (namelen >= 3 && !strcmp(name + namelen - 3, ".so")) { namelen 88 drivers/firmware/efi/vars.c int i, desclength = 0, namelen; namelen 90 drivers/firmware/efi/vars.c namelen = ucs2_strnlen(var_name, EFI_VAR_NAME_LEN); namelen 100 drivers/firmware/efi/vars.c if (namelen > match + 4) namelen 3645 drivers/gpu/drm/drm_dp_mst_topology.c int namelen) namelen 3650 drivers/gpu/drm/drm_dp_mst_topology.c drm_edid_get_monitor_name(mst_edid, name, namelen); namelen 1768 drivers/gpu/drm/drm_modes.c unsigned int namelen = strlen(name); namelen 1774 drivers/gpu/drm/drm_modes.c if (namelen == 1) { namelen 1775 drivers/gpu/drm/drm_modes.c ret = drm_mode_parse_cmdline_extra(name, namelen, true, namelen 276 drivers/gpu/drm/drm_print.c int namelen = 0; namelen 280 drivers/gpu/drm/drm_print.c namelen = max(namelen, (int)strlen(regset->regs[i].name)); namelen 284 drivers/gpu/drm/drm_print.c namelen, regset->regs[i].name, namelen 187 drivers/md/md-cluster.c int ret, namelen; namelen 198 drivers/md/md-cluster.c namelen = strlen(name); namelen 199 drivers/md/md-cluster.c res->name = kzalloc(namelen + 1, GFP_KERNEL); namelen 204 drivers/md/md-cluster.c strlcpy(res->name, name, namelen + 1); namelen 4613 drivers/md/md.c size_t namelen = len-9; namelen 4614 drivers/md/md.c if (namelen >= sizeof(mddev->metadata_type)) namelen 4615 drivers/md/md.c namelen = sizeof(mddev->metadata_type)-1; namelen 4616 drivers/md/md.c strncpy(mddev->metadata_type, buf+9, namelen); namelen 4617 drivers/md/md.c mddev->metadata_type[namelen] = 0; namelen 4618 drivers/md/md.c if (namelen && mddev->metadata_type[namelen-1] == '\n') namelen 4619 drivers/md/md.c mddev->metadata_type[--namelen] = 0; namelen 2191 drivers/md/raid5.c size_t namelen = sizeof(conf->cache_name[0]); namelen 2195 drivers/md/raid5.c snprintf(conf->cache_name[0], namelen, namelen 2198 drivers/md/raid5.c snprintf(conf->cache_name[0], namelen, namelen 2200 drivers/md/raid5.c snprintf(conf->cache_name[1], namelen, "%.27s-alt", conf->cache_name[0]); namelen 981 drivers/misc/fastrpc.c u32 namelen; namelen 1004 drivers/misc/fastrpc.c inbuf.namelen = strlen(current->comm) + 1; namelen 1030 drivers/misc/fastrpc.c args[1].length = inbuf.namelen; namelen 78 drivers/mtd/parsers/redboot.c int namelen = 0; namelen 202 drivers/mtd/parsers/redboot.c namelen += strlen(buf[i].name)+1; namelen 237 drivers/mtd/parsers/redboot.c parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); namelen 353 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int namelen = sizeof(adapter->msix_info[0].desc) - 1; namelen 359 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c snprintf(adapter->msix_info[MSIX_FW].desc, namelen, namelen 361 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c adapter->msix_info[MSIX_FW].desc[namelen] = 0; namelen 372 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c snprintf(adapter->msix_info[msi].desc, namelen, namelen 374 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c adapter->msix_info[msi].desc[namelen] = 0; namelen 298 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c u32 namelen; namelen 306 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c namelen = strlen(name) + 1; /* length of iovar name + null */ namelen 307 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen; namelen 321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c memcpy(p, name, namelen); namelen 322 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c p += namelen; namelen 788 drivers/of/fdt.c int namelen; namelen 642 drivers/video/fbdev/core/modedb.c unsigned int namelen = strlen(name); namelen 650 drivers/video/fbdev/core/modedb.c for (i = namelen-1; i >= 0; i--) { namelen 653 drivers/video/fbdev/core/modedb.c namelen = i; namelen 665 drivers/video/fbdev/core/modedb.c namelen = i; namelen 773 drivers/video/fbdev/core/modedb.c if ((name_matches(db[i], name, namelen) || namelen 1860 drivers/video/fbdev/pxafb.c unsigned int namelen = strlen(name); namelen 1865 drivers/video/fbdev/pxafb.c for (i = namelen-1; i >= 0; i--) { namelen 1868 drivers/video/fbdev/pxafb.c namelen = i; namelen 19 drivers/xen/xenfs/xensyms.c uint32_t namelen; namelen 29 drivers/xen/xenfs/xensyms.c memset(xs->name, 0, xs->namelen); namelen 30 drivers/xen/xenfs/xensyms.c symdata->namelen = xs->namelen; namelen 42 drivers/xen/xenfs/xensyms.c if (unlikely(symdata->namelen > xs->namelen)) { namelen 45 drivers/xen/xenfs/xensyms.c xs->namelen = symdata->namelen; namelen 46 drivers/xen/xenfs/xensyms.c xs->name = kzalloc(xs->namelen, GFP_KERNEL); namelen 125 drivers/xen/xenfs/xensyms.c xs->namelen = XEN_KSYM_NAME_LEN + 1; namelen 126 drivers/xen/xenfs/xensyms.c xs->name = kzalloc(xs->namelen, GFP_KERNEL); namelen 133 drivers/xen/xenfs/xensyms.c xs->op.u.symdata.namelen = xs->namelen; namelen 263 fs/9p/vfs_super.c buf->f_namelen = rs.namelen; namelen 52 fs/affs/dir.c int namelen; namelen 119 fs/affs/dir.c namelen = min(AFFS_TAIL(sb, fh_bh)->name[0], namelen 123 fs/affs/dir.c namelen, name, ino, hash_pos, ctx->pos); namelen 125 fs/affs/dir.c if (!dir_emit(ctx, name, namelen, ino, DT_UNKNOWN)) namelen 123 fs/afs/cell.c const char *name, unsigned int namelen, namelen 131 fs/afs/cell.c if (namelen == 0) namelen 133 fs/afs/cell.c if (namelen > AFS_MAXCELLNAME) { namelen 143 fs/afs/cell.c for (i = 0; i < namelen; i++) { namelen 149 fs/afs/cell.c _enter("%*.*s,%s", namelen, namelen, name, addresses); namelen 158 fs/afs/cell.c cell->name_len = namelen; namelen 159 fs/afs/cell.c for (i = 0; i < namelen; i++) namelen 341 fs/afs/xattr.c size_t namelen; namelen 343 fs/afs/xattr.c namelen = cell->name_len; namelen 345 fs/afs/xattr.c return namelen; namelen 346 fs/afs/xattr.c if (namelen > size) namelen 348 fs/afs/xattr.c memcpy(buffer, cell->name, namelen); namelen 349 fs/afs/xattr.c return namelen; namelen 404 fs/afs/xattr.c size_t namelen; namelen 406 fs/afs/xattr.c namelen = strlen(volname); namelen 408 fs/afs/xattr.c return namelen; namelen 409 fs/afs/xattr.c if (namelen > size) namelen 411 fs/afs/xattr.c memcpy(buffer, volname, namelen); namelen 412 fs/afs/xattr.c return namelen; namelen 270 fs/bfs/dir.c int namelen = child->len; namelen 276 fs/bfs/dir.c dprintf("name=%s, namelen=%d\n", name, namelen); namelen 278 fs/bfs/dir.c if (!namelen) namelen 280 fs/bfs/dir.c if (namelen > BFS_NAMELEN) namelen 302 fs/bfs/dir.c (i < namelen) ? name[i] : 0; namelen 329 fs/bfs/dir.c int namelen = child->len; namelen 332 fs/bfs/dir.c if (namelen > BFS_NAMELEN) namelen 346 fs/bfs/dir.c bfs_namecmp(namelen, name, de->name)) { namelen 5667 fs/btrfs/inode.c int namelen = dentry->d_name.len; namelen 5678 fs/btrfs/inode.c name, namelen, 0); namelen 557 fs/btrfs/ioctl.c const char *name, int namelen, namelen 699 fs/btrfs/ioctl.c ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, namelen 706 fs/btrfs/ioctl.c btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); namelen 714 fs/btrfs/ioctl.c btrfs_ino(BTRFS_I(dir)), index, name, namelen); namelen 955 fs/btrfs/ioctl.c const char *name, int namelen, namelen 969 fs/btrfs/ioctl.c dentry = lookup_one_len(name, parent->dentry, namelen); namelen 984 fs/btrfs/ioctl.c namelen); namelen 997 fs/btrfs/ioctl.c error = create_subvol(dir, dentry, name, namelen, namelen 1743 fs/btrfs/ioctl.c int namelen; namelen 1753 fs/btrfs/ioctl.c namelen = strlen(name); namelen 1760 fs/btrfs/ioctl.c (namelen == 1 || (name[1] == '.' && namelen == 2))) { namelen 1766 fs/btrfs/ioctl.c ret = btrfs_mksubvol(&file->f_path, name, namelen, namelen 1788 fs/btrfs/ioctl.c ret = btrfs_mksubvol(&file->f_path, name, namelen, namelen 2850 fs/btrfs/ioctl.c int namelen; namelen 2861 fs/btrfs/ioctl.c namelen = strlen(vol_args->name); namelen 2863 fs/btrfs/ioctl.c strncmp(vol_args->name, "..", namelen) == 0) { namelen 2876 fs/btrfs/ioctl.c dentry = lookup_one_len(vol_args->name, parent, namelen); namelen 2353 fs/btrfs/send.c int namelen; namelen 2386 fs/btrfs/send.c namelen = btrfs_root_ref_name_len(leaf, ref); namelen 2387 fs/btrfs/send.c read_extent_buffer(leaf, name, (unsigned long)(ref + 1), namelen); namelen 2400 fs/btrfs/send.c TLV_PUT_STRING(sctx, BTRFS_SEND_A_PATH, name, namelen); namelen 946 fs/btrfs/tree-log.c const char *name, int namelen) namelen 972 fs/btrfs/tree-log.c name, namelen)) namelen 983 fs/btrfs/tree-log.c if (found_name_len == namelen) { namelen 986 fs/btrfs/tree-log.c name_ptr, namelen); namelen 1006 fs/btrfs/tree-log.c u64 ref_index, char *name, int namelen, namelen 1086 fs/btrfs/tree-log.c extref = btrfs_lookup_inode_extref(NULL, root, path, name, namelen, namelen 1156 fs/btrfs/tree-log.c ref_index, name, namelen, 0); namelen 1166 fs/btrfs/tree-log.c name, namelen, 0); namelen 1178 fs/btrfs/tree-log.c u32 *namelen, char **name, u64 *index, namelen 1185 fs/btrfs/tree-log.c *namelen = btrfs_inode_extref_name_len(eb, extref); namelen 1186 fs/btrfs/tree-log.c *name = kmalloc(*namelen, GFP_NOFS); namelen 1191 fs/btrfs/tree-log.c *namelen); namelen 1202 fs/btrfs/tree-log.c u32 *namelen, char **name, u64 *index) namelen 1208 fs/btrfs/tree-log.c *namelen = btrfs_inode_ref_name_len(eb, ref); namelen 1209 fs/btrfs/tree-log.c *name = kmalloc(*namelen, GFP_NOFS); namelen 1213 fs/btrfs/tree-log.c read_extent_buffer(eb, *name, (unsigned long)(ref + 1), *namelen); namelen 1256 fs/btrfs/tree-log.c int namelen; namelen 1260 fs/btrfs/tree-log.c ret = extref_get_fields(eb, ref_ptr, &namelen, &name, namelen 1264 fs/btrfs/tree-log.c ret = ref_get_fields(eb, ref_ptr, &namelen, &name, namelen 1273 fs/btrfs/tree-log.c namelen); namelen 1276 fs/btrfs/tree-log.c name, namelen); namelen 1289 fs/btrfs/tree-log.c inode, name, namelen); namelen 1298 fs/btrfs/tree-log.c ref_ptr += namelen; namelen 1312 fs/btrfs/tree-log.c const int namelen) namelen 1328 fs/btrfs/tree-log.c key.offset = btrfs_extref_hash(parent_id, name, namelen); namelen 1339 fs/btrfs/tree-log.c path->slots[0], parent_id, name, namelen); namelen 1342 fs/btrfs/tree-log.c name, namelen); namelen 1351 fs/btrfs/tree-log.c int namelen, u64 ref_index) namelen 1365 fs/btrfs/tree-log.c name, namelen, 0); namelen 1387 fs/btrfs/tree-log.c name, namelen); namelen 1402 fs/btrfs/tree-log.c name, namelen, 0, ref_index); namelen 1428 fs/btrfs/tree-log.c int namelen; namelen 1473 fs/btrfs/tree-log.c ret = extref_get_fields(eb, ref_ptr, &namelen, &name, namelen 1486 fs/btrfs/tree-log.c ret = ref_get_fields(eb, ref_ptr, &namelen, &name, namelen 1495 fs/btrfs/tree-log.c name, namelen)) { namelen 1510 fs/btrfs/tree-log.c ref_index, name, namelen, namelen 1528 fs/btrfs/tree-log.c name, namelen); namelen 1533 fs/btrfs/tree-log.c name, namelen); namelen 1546 fs/btrfs/tree-log.c ret = add_link(trans, root, dir, inode, name, namelen, namelen 1554 fs/btrfs/tree-log.c ref_ptr = (unsigned long)(ref_ptr + ref_struct_size) + namelen; namelen 4490 fs/ceph/mds_client.c u32 fscid, namelen; namelen 4503 fs/ceph/mds_client.c namelen = ceph_decode_32(&info_p); namelen 4504 fs/ceph/mds_client.c ceph_decode_need(&info_p, info_end, namelen, bad); namelen 4507 fs/ceph/mds_client.c strlen(mds_namespace) == namelen && namelen 4508 fs/ceph/mds_client.c !strncmp(mds_namespace, (char *)info_p, namelen)) { namelen 148 fs/ceph/mdsmap.c u32 namelen; namelen 175 fs/ceph/mdsmap.c namelen = ceph_decode_32(p); /* skip mds name */ namelen 176 fs/ceph/mdsmap.c *p += namelen; namelen 191 fs/ceph/mdsmap.c ceph_decode_32_safe(p, end, namelen, bad); namelen 192 fs/ceph/mdsmap.c *p += namelen; namelen 652 fs/ceph/xattr.c u32 namelen; namelen 705 fs/ceph/xattr.c namelen = len; namelen 712 fs/ceph/xattr.c err = __set_xattr(ci, name, namelen, val, len, namelen 909 fs/ceph/xattr.c u32 namelen; namelen 930 fs/ceph/xattr.c namelen = ci->i_xattrs.names_size + ci->i_xattrs.count; namelen 932 fs/ceph/xattr.c if (namelen > size) { namelen 937 fs/ceph/xattr.c size -= namelen; namelen 939 fs/ceph/xattr.c err = namelen; namelen 95 fs/cifs/dir.c int namelen; namelen 114 fs/cifs/dir.c namelen = dfsplen + pplen; namelen 118 fs/cifs/dir.c namelen += (1 + temp->d_name.len); namelen 128 fs/cifs/dir.c full_path = kmalloc(namelen+1, GFP_ATOMIC); namelen 131 fs/cifs/dir.c full_path[namelen] = 0; /* trailing null */ namelen 135 fs/cifs/dir.c namelen -= 1 + temp->d_name.len; namelen 136 fs/cifs/dir.c if (namelen < 0) { namelen 140 fs/cifs/dir.c full_path[namelen] = dirsep; namelen 141 fs/cifs/dir.c strncpy(full_path + namelen + 1, temp->d_name.name, namelen 143 fs/cifs/dir.c cifs_dbg(FYI, "name: %s\n", full_path + namelen); namelen 155 fs/cifs/dir.c if (namelen != dfsplen + pplen || read_seqretry(&rename_lock, seq)) { namelen 157 fs/cifs/dir.c namelen, dfsplen); namelen 408 fs/cifs/readdir.c size_t namelen; namelen 418 fs/cifs/readdir.c de->namelen = cifs_unicode_bytelen(de->name); namelen 420 fs/cifs/readdir.c de->namelen = strnlen(de->name, PATH_MAX); namelen 429 fs/cifs/readdir.c de->namelen = le32_to_cpu(info->FileNameLength); namelen 437 fs/cifs/readdir.c de->namelen = le32_to_cpu(info->FileNameLength); namelen 445 fs/cifs/readdir.c de->namelen = le32_to_cpu(info->FileNameLength); namelen 454 fs/cifs/readdir.c de->namelen = le32_to_cpu(info->FileNameLength); namelen 463 fs/cifs/readdir.c de->namelen = info->FileNameLength; namelen 511 fs/cifs/readdir.c if (de->namelen == 2) { namelen 515 fs/cifs/readdir.c } else if (de->namelen == 4) { namelen 522 fs/cifs/readdir.c if (de->namelen == 1) { namelen 525 fs/cifs/readdir.c } else if (de->namelen == 2) { namelen 558 fs/cifs/readdir.c file_info->srch_inf.resume_name_len = de.namelen; namelen 720 fs/cifs/readdir.c if (de.namelen > max_len) { namelen 722 fs/cifs/readdir.c de.namelen); namelen 739 fs/cifs/readdir.c min_t(size_t, de.namelen, namelen 744 fs/cifs/readdir.c name.len = de.namelen; namelen 727 fs/cramfs/inode.c int namelen; namelen 738 fs/cramfs/inode.c namelen = de->namelen << 2; namelen 739 fs/cramfs/inode.c memcpy(buf, name, namelen); namelen 743 fs/cramfs/inode.c nextoffset = offset + sizeof(*de) + namelen; namelen 745 fs/cramfs/inode.c if (!namelen) { namelen 749 fs/cramfs/inode.c if (buf[namelen-1]) namelen 751 fs/cramfs/inode.c namelen--; namelen 753 fs/cramfs/inode.c if (!dir_emit(ctx, buf, namelen, ino, mode >> 12)) namelen 776 fs/cramfs/inode.c int namelen, retval; namelen 786 fs/cramfs/inode.c namelen = de->namelen << 2; namelen 787 fs/cramfs/inode.c offset += sizeof(*de) + namelen; namelen 790 fs/cramfs/inode.c if (((dentry->d_name.len + 3) & ~3) != namelen) namelen 794 fs/cramfs/inode.c if (!namelen) { namelen 798 fs/cramfs/inode.c if (name[namelen-1]) namelen 800 fs/cramfs/inode.c namelen--; namelen 802 fs/cramfs/inode.c if (namelen != dentry->d_name.len) namelen 804 fs/cramfs/inode.c retval = memcmp(dentry->d_name.name, name, namelen); namelen 11 fs/d_path.c static int prepend(char **buffer, int *buflen, const char *str, int namelen) namelen 13 fs/d_path.c *buflen -= namelen; namelen 16 fs/d_path.c *buffer -= namelen; namelen 17 fs/d_path.c memcpy(*buffer, str, namelen); namelen 66 fs/dlm/dir.c uint16_t namelen; namelen 114 fs/dlm/dir.c namelen = be16_to_cpu(v); namelen 122 fs/dlm/dir.c if (namelen == 0xFFFF) namelen 124 fs/dlm/dir.c if (!namelen) namelen 127 fs/dlm/dir.c if (namelen > left) namelen 130 fs/dlm/dir.c if (namelen > DLM_RESNAME_MAXLEN) namelen 134 fs/dlm/dir.c b, namelen, namelen 157 fs/dlm/dir.c b, namelen); namelen 175 fs/dlm/dir.c last_len = namelen; namelen 176 fs/dlm/dir.c memcpy(last_name, b, namelen); namelen 177 fs/dlm/dir.c b += namelen; namelen 178 fs/dlm/dir.c left -= namelen; namelen 2807 fs/dlm/lock.c int namelen, unsigned long timeout_cs, namelen 2820 fs/dlm/lock.c if (!(flags & DLM_LKF_CONVERT) && (namelen > DLM_RESNAME_MAXLEN)) namelen 3415 fs/dlm/lock.c unsigned int namelen, namelen 3440 fs/dlm/lock.c error = set_lock_args(mode, lksb, flags, namelen, 0, ast, namelen 3448 fs/dlm/lock.c error = request_lock(ls, lkb, name, namelen, &args); namelen 4077 fs/dlm/lock.c int error, namelen = 0; namelen 4099 fs/dlm/lock.c namelen = receive_extralen(ms); namelen 4101 fs/dlm/lock.c error = find_rsb(ls, ms->m_extra, namelen, from_nodeid, namelen 4155 fs/dlm/lock.c if (namelen && error == -EBADR) { namelen 4156 fs/dlm/lock.c send_repeat_remove(ls, ms->m_extra, namelen); namelen 5772 fs/dlm/lock.c int mode, uint32_t flags, void *name, unsigned int namelen, namelen 5796 fs/dlm/lock.c error = set_lock_args(mode, &ua->lksb, flags, namelen, timeout_cs, namelen 5810 fs/dlm/lock.c error = request_lock(ls, lkb, name, namelen, &args); namelen 5897 fs/dlm/lock.c int mode, uint32_t flags, void *name, unsigned int namelen, namelen 5908 fs/dlm/lock.c if (lkb->lkb_resource->res_length != namelen) namelen 5910 fs/dlm/lock.c if (memcmp(lkb->lkb_resource->res_name, name, namelen)) namelen 45 fs/dlm/lock.h uint32_t flags, void *name, unsigned int namelen, namelen 51 fs/dlm/lock.h int mode, uint32_t flags, void *name, unsigned int namelen, namelen 431 fs/dlm/lockspace.c int namelen = strlen(name); namelen 433 fs/dlm/lockspace.c if (namelen > DLM_LOCKSPACE_LEN || namelen == 0) namelen 473 fs/dlm/lockspace.c if (ls->ls_namelen != namelen) namelen 475 fs/dlm/lockspace.c if (memcmp(ls->ls_name, name, namelen)) namelen 493 fs/dlm/lockspace.c ls = kzalloc(sizeof(struct dlm_ls) + namelen, GFP_NOFS); namelen 496 fs/dlm/lockspace.c memcpy(ls->ls_name, name, namelen); namelen 497 fs/dlm/lockspace.c ls->ls_namelen = namelen; namelen 36 fs/dlm/user.c __u8 namelen; namelen 87 fs/dlm/user.c int namelen) namelen 99 fs/dlm/user.c memcpy(kb->i.lspace.name, kb32->i.lspace.name, namelen); namelen 105 fs/dlm/user.c kb->i.lock.namelen = kb32->i.lock.namelen; namelen 117 fs/dlm/user.c memcpy(kb->i.lock.name, kb32->i.lock.name, namelen); namelen 272 fs/dlm/user.c params->name, params->namelen, namelen 280 fs/dlm/user.c params->name, params->namelen, namelen 534 fs/dlm/user.c int namelen = 0; namelen 537 fs/dlm/user.c namelen = count - sizeof(struct dlm_write_request32); namelen 542 fs/dlm/user.c kbuf = kzalloc(sizeof(struct dlm_write_request) + namelen + 1, namelen 552 fs/dlm/user.c compat_input(kbuf, k32buf, namelen); namelen 2083 fs/ecryptfs/crypto.c int ecryptfs_set_f_namelen(long *namelen, long lower_namelen, namelen 2092 fs/ecryptfs/crypto.c (*namelen) = lower_namelen; namelen 2099 fs/ecryptfs/crypto.c (*namelen) = 0; namelen 2110 fs/ecryptfs/crypto.c (*namelen) = ENC_NAME_MAX_BLOCKLEN_8_OR_16; namelen 2115 fs/ecryptfs/crypto.c (*namelen) = lower_namelen; namelen 2116 fs/ecryptfs/crypto.c (*namelen) -= ECRYPTFS_FNEK_ENCRYPTED_FILENAME_PREFIX_SIZE; namelen 2118 fs/ecryptfs/crypto.c (*namelen) = ecryptfs_max_decoded_size(*namelen) - 3; namelen 2119 fs/ecryptfs/crypto.c (*namelen) -= ECRYPTFS_TAG_70_MAX_METADATA_SIZE; namelen 2120 fs/ecryptfs/crypto.c (*namelen) -= ECRYPTFS_FILENAME_MIN_RANDOM_PREPEND_BYTES; namelen 2122 fs/ecryptfs/crypto.c (*namelen) -= cipher_blocksize - 1; namelen 2124 fs/ecryptfs/crypto.c if ((*namelen) < 0) namelen 2125 fs/ecryptfs/crypto.c (*namelen) = 0; namelen 715 fs/ecryptfs/ecryptfs_kernel.h int ecryptfs_set_f_namelen(long *namelen, long lower_namelen, namelen 73 fs/efivarfs/inode.c int namelen, i = 0, err = 0; namelen 84 fs/efivarfs/inode.c namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; namelen 86 fs/efivarfs/inode.c err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); namelen 91 fs/efivarfs/inode.c dentry->d_name.name, namelen)) namelen 100 fs/efivarfs/inode.c for (i = 0; i < namelen; i++) namelen 65 fs/efs/dir.c int namelen; namelen 73 fs/efs/dir.c namelen = dirslot->namelen; namelen 77 fs/efs/dir.c inodenum, nameptr, namelen); namelen 78 fs/efs/dir.c if (!namelen) namelen 84 fs/efs/dir.c if (nameptr - (char *) dirblock + namelen > EFS_DIRBSIZE) { namelen 91 fs/efs/dir.c if (!dir_emit(ctx, nameptr, namelen, inodenum, DT_UNKNOWN)) { namelen 91 fs/efs/efs.h unsigned char namelen; namelen 20 fs/efs/namei.c int slot, namelen; namelen 51 fs/efs/namei.c namelen = dirslot->namelen; namelen 54 fs/efs/namei.c if ((namelen == len) && (!memcmp(name, nameptr, len))) { namelen 344 fs/ext2/dir.c int namelen = child->len; namelen 345 fs/ext2/dir.c unsigned reclen = EXT2_DIR_REC_LEN(namelen); namelen 377 fs/ext2/dir.c if (ext2_match (namelen, name, de)) namelen 465 fs/ext2/dir.c int namelen = dentry->d_name.len; namelen 467 fs/ext2/dir.c unsigned reclen = EXT2_DIR_REC_LEN(namelen); namelen 510 fs/ext2/dir.c if (ext2_match (namelen, name, de)) namelen 538 fs/ext2/dir.c de->name_len = namelen; namelen 539 fs/ext2/dir.c memcpy(de->name, name, namelen); namelen 1454 fs/ext4/namei.c int i, namelen, retval; namelen 1458 fs/ext4/namei.c namelen = fname->usr_fname->len; namelen 1459 fs/ext4/namei.c if (namelen > EXT4_NAME_LEN) namelen 1473 fs/ext4/namei.c if ((namelen <= 2) && (name[0] == '.') && namelen 85 fs/freevxfs/vxfs_lookup.c int namelen = dp->d_name.len; namelen 126 fs/freevxfs/vxfs_lookup.c if (namelen != fs16_to_cpu(sbi, de->d_namelen)) namelen 128 fs/freevxfs/vxfs_lookup.c if (!memcmp(name, de->d_name, namelen)) { namelen 1454 fs/fuse/dev.c if (outarg.namelen > FUSE_NAME_MAX) namelen 1458 fs/fuse/dev.c if (size != sizeof(outarg) + outarg.namelen + 1) namelen 1462 fs/fuse/dev.c name.len = outarg.namelen; namelen 1463 fs/fuse/dev.c err = fuse_copy_one(cs, buf, outarg.namelen + 1); namelen 1467 fs/fuse/dev.c buf[outarg.namelen] = 0; namelen 1504 fs/fuse/dev.c if (outarg.namelen > FUSE_NAME_MAX) namelen 1508 fs/fuse/dev.c if (size != sizeof(outarg) + outarg.namelen + 1) namelen 1512 fs/fuse/dev.c name.len = outarg.namelen; namelen 1513 fs/fuse/dev.c err = fuse_copy_one(cs, buf, outarg.namelen + 1); namelen 1517 fs/fuse/dev.c buf[outarg.namelen] = 0; namelen 407 fs/fuse/inode.c stbuf->f_namelen = attr->namelen; namelen 120 fs/fuse/readdir.c return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, namelen 130 fs/fuse/readdir.c if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) namelen 134 fs/fuse/readdir.c if (memchr(dirent->name, '/', dirent->namelen) != NULL) namelen 155 fs/fuse/readdir.c struct qstr name = QSTR_INIT(dirent->name, dirent->namelen); namelen 287 fs/fuse/readdir.c if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) namelen 291 fs/fuse/readdir.c if (memchr(dirent->name, '/', dirent->namelen) != NULL) namelen 391 fs/fuse/readdir.c if (nbytes < FUSE_NAME_OFFSET || !dirent->namelen) namelen 396 fs/fuse/readdir.c if (WARN_ON(dirent->namelen > FUSE_NAME_MAX)) namelen 400 fs/fuse/readdir.c if (WARN_ON(memchr(dirent->name, '/', dirent->namelen) != NULL)) namelen 405 fs/fuse/readdir.c if (!dir_emit(ctx, dirent->name, dirent->namelen, namelen 162 fs/hpfs/dir.c if (de->first && !de->last && (de->namelen != 2 namelen 165 fs/hpfs/dir.c if (de->last && (de->namelen != 1 || de ->name[0] != 255)) namelen 172 fs/hpfs/dir.c tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); namelen 173 fs/hpfs/dir.c if (!dir_emit(ctx, tempname, de->namelen, le32_to_cpu(de->fnode), DT_UNKNOWN)) { namelen 175 fs/hpfs/dnode.c unsigned namelen, secno down_ptr) namelen 179 fs/hpfs/dnode.c unsigned d_size = de_size(namelen, down_ptr); namelen 181 fs/hpfs/dnode.c int c = hpfs_compare_names(s, name, namelen, de->name, de->namelen, de->last); namelen 183 fs/hpfs/dnode.c hpfs_error(s, "name (%c,%d) already exists in dnode %08x", *name, namelen, le32_to_cpu(d->self)); namelen 195 fs/hpfs/dnode.c de->not_8x3 = hpfs_is_name_long(name, namelen); namelen 196 fs/hpfs/dnode.c de->namelen = namelen; namelen 197 fs/hpfs/dnode.c memcpy(de->name, name, namelen); namelen 238 fs/hpfs/dnode.c const unsigned char *name, unsigned namelen, namelen 257 fs/hpfs/dnode.c if (namelen >= 256) { namelen 258 fs/hpfs/dnode.c hpfs_error(i->i_sb, "%s(): namelen == %d", __func__, namelen); namelen 276 fs/hpfs/dnode.c if (le32_to_cpu(d->first_free) + de_size(namelen, down_ptr) <= 2048) { namelen 278 fs/hpfs/dnode.c copy_de(de=hpfs_add_de(i->i_sb, d, name, namelen, down_ptr), new_de); namelen 301 fs/hpfs/dnode.c copy_de(de = hpfs_add_de(i->i_sb, nd, name, namelen, down_ptr), new_de); namelen 315 fs/hpfs/dnode.c copy_de(hpfs_add_de(i->i_sb, ad, de->name, de->namelen, de->down ? de_down_pointer(de) : 0), de); namelen 320 fs/hpfs/dnode.c memcpy(nname, de->name, de->namelen); namelen 322 fs/hpfs/dnode.c namelen = de->namelen; namelen 388 fs/hpfs/dnode.c const unsigned char *name, unsigned namelen, namelen 405 fs/hpfs/dnode.c if (!(c = hpfs_compare_names(i->i_sb, name, namelen, de->name, de->namelen, de->last))) { namelen 423 fs/hpfs/dnode.c c = hpfs_add_to_dnode(i, dno, name, namelen, new_de, 0); namelen 507 fs/hpfs/dnode.c a = hpfs_add_to_dnode(i, to, nde->name, nde->namelen, nde, from); namelen 625 fs/hpfs/dnode.c hpfs_add_to_dnode(i, ndown, de_cp->name, de_cp->namelen, de_cp, de_cp->down ? de_down_pointer(de_cp) : 0); namelen 697 fs/hpfs/dnode.c hpfs_add_to_dnode(i, ndown, de_cp->name, de_cp->namelen, de_cp, dlp); namelen 926 fs/hpfs/dnode.c int t = hpfs_compare_names(inode->i_sb, name, len, de->name, de->namelen, de->last); namelen 1061 fs/hpfs/dnode.c c = hpfs_compare_names(s, name1, name1len, de->name, de->namelen, de->last); namelen 1077 fs/hpfs/dnode.c c = hpfs_compare_names(s, name2, name2len, de->name, de->namelen, de->last); namelen 33 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) namelen 37 fs/hpfs/ea.c pos += ea->namelen + ea_valuelen(ea) + 5; namelen 105 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea_indirect(ea) ? 8 : 0), ex + 4)) namelen 112 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea_valuelen(ea), buf)) namelen 117 fs/hpfs/ea.c pos += ea->namelen + ea_valuelen(ea) + 5; namelen 163 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea_indirect(ea) ? 8 : 0), ex + 4)) namelen 172 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea_valuelen(ea), ret)) { namelen 179 fs/hpfs/ea.c pos += ea->namelen + ea_valuelen(ea) + 5; namelen 224 fs/hpfs/ea.c if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 1 + (ea_indirect(ea) ? 8 : 0), ex + 4)) namelen 233 fs/hpfs/ea.c hpfs_ea_write(s, a, ano, pos + 4 + ea->namelen + 1, size, data); namelen 237 fs/hpfs/ea.c pos += ea->namelen + ea_valuelen(ea) + 5; namelen 257 fs/hpfs/ea.c ea->namelen = strlen(key); namelen 359 fs/hpfs/hpfs.h u8 namelen, name[1]; /* file name */ namelen 530 fs/hpfs/hpfs.h u8 namelen; /* length of name, bytes */ namelen 152 fs/hpfs/hpfs_fn.h return (struct extended_attribute *)((char *)ea + 5 + ea->namelen + ea_valuelen(ea)); namelen 157 fs/hpfs/hpfs_fn.h return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 9 + ea->namelen))); namelen 162 fs/hpfs/hpfs_fn.h return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 5 + ea->namelen))); namelen 167 fs/hpfs/hpfs_fn.h return (char *)((char *)ea + 5 + ea->namelen); namelen 170 fs/hpfs/hpfs_fn.h static inline unsigned de_size(int namelen, secno down_ptr) namelen 172 fs/hpfs/hpfs_fn.h return ((0x1f + namelen + 3) & ~3) + (down_ptr ? 4 : 0); namelen 290 fs/hpfs/map.c if (((31 + de->namelen + de->down*4 + 3) & ~3) != le16_to_cpu(de->length)) { namelen 291 fs/hpfs/map.c if (((31 + de->namelen + de->down*4 + 3) & ~3) < le16_to_cpu(de->length) && s->s_flags & SB_RDONLY) goto ok; namelen 288 fs/jffs2/dir.c int namelen; namelen 307 fs/jffs2/dir.c namelen = dentry->d_name.len; namelen 379 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, namelen 380 fs/jffs2/dir.c ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 397 fs/jffs2/dir.c rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); namelen 404 fs/jffs2/dir.c rd->nsize = namelen; namelen 407 fs/jffs2/dir.c rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); namelen 409 fs/jffs2/dir.c fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); namelen 450 fs/jffs2/dir.c int namelen; namelen 465 fs/jffs2/dir.c namelen = dentry->d_name.len; namelen 522 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, namelen 523 fs/jffs2/dir.c ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 540 fs/jffs2/dir.c rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); namelen 547 fs/jffs2/dir.c rd->nsize = namelen; namelen 550 fs/jffs2/dir.c rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); namelen 552 fs/jffs2/dir.c fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); namelen 617 fs/jffs2/dir.c int namelen; namelen 635 fs/jffs2/dir.c namelen = dentry->d_name.len; namelen 691 fs/jffs2/dir.c ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, namelen 692 fs/jffs2/dir.c ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 709 fs/jffs2/dir.c rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); namelen 716 fs/jffs2/dir.c rd->nsize = namelen; namelen 722 fs/jffs2/dir.c rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); namelen 724 fs/jffs2/dir.c fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); namelen 403 fs/jffs2/nodelist.h uint32_t namelen, int alloc_mode); namelen 410 fs/jffs2/nodelist.h int namelen, struct jffs2_inode_info *dead_f, uint32_t time); namelen 412 fs/jffs2/nodelist.h uint8_t type, const char *name, int namelen, uint32_t time); namelen 207 fs/jffs2/write.c uint32_t namelen, int alloc_mode) namelen 226 fs/jffs2/write.c if (strnlen(name, namelen) != namelen) { namelen 240 fs/jffs2/write.c vecs[1].iov_len = namelen; namelen 242 fs/jffs2/write.c fd = jffs2_alloc_full_dirent(namelen+1); namelen 248 fs/jffs2/write.c fd->nhash = full_name_hash(NULL, name, namelen); namelen 250 fs/jffs2/write.c memcpy(fd->name, name, namelen); namelen 251 fs/jffs2/write.c fd->name[namelen]=0; namelen 270 fs/jffs2/write.c if (ret || (retlen != sizeof(*rd) + namelen)) { namelen 272 fs/jffs2/write.c sizeof(*rd) + namelen, flash_ofs, ret, retlen); namelen 275 fs/jffs2/write.c jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*rd)+namelen), NULL); namelen 293 fs/jffs2/write.c ret = jffs2_reserve_space_gc(c, sizeof(*rd) + namelen, &dummy, namelen 294 fs/jffs2/write.c JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 300 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*rd) + namelen, &dummy, namelen 301 fs/jffs2/write.c alloc_mode, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 322 fs/jffs2/write.c PAD(sizeof(*rd)+namelen), f->inocache); namelen 548 fs/jffs2/write.c const char *name, int namelen, struct jffs2_inode_info *dead_f, namelen 563 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, namelen 564 fs/jffs2/write.c ALLOC_DELETION, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 575 fs/jffs2/write.c rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); namelen 582 fs/jffs2/write.c rd->nsize = namelen; namelen 585 fs/jffs2/write.c rd->name_crc = cpu_to_je32(crc32(0, name, namelen)); namelen 587 fs/jffs2/write.c fd = jffs2_write_dirent(c, dir_f, rd, name, namelen, ALLOC_DELETION); namelen 601 fs/jffs2/write.c uint32_t nhash = full_name_hash(NULL, name, namelen); namelen 611 fs/jffs2/write.c !memcmp(fd->name, name, namelen) && namelen 612 fs/jffs2/write.c !fd->name[namelen]) { namelen 669 fs/jffs2/write.c int jffs2_do_link (struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t type, const char *name, int namelen, uint32_t time) namelen 680 fs/jffs2/write.c ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, namelen 681 fs/jffs2/write.c ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); namelen 692 fs/jffs2/write.c rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); namelen 699 fs/jffs2/write.c rd->nsize = namelen; namelen 704 fs/jffs2/write.c rd->name_crc = cpu_to_je32(crc32(0, name, namelen)); namelen 706 fs/jffs2/write.c fd = jffs2_write_dirent(c, dir_f, rd, name, namelen, ALLOC_NORMAL); namelen 18 fs/jfs/jfs_xattr.h u8 namelen; /* Length of name */ namelen 36 fs/jfs/jfs_xattr.h (sizeof (struct jfs_ea) + (ea)->namelen + 1 + \ namelen 98 fs/jfs/xattr.c return ea->namelen; namelen 100 fs/jfs/xattr.c return ea->namelen + XATTR_OS2_PREFIX_LEN; namelen 105 fs/jfs/xattr.c int len = ea->namelen; namelen 112 fs/jfs/xattr.c memcpy(buffer, ea->name, ea->namelen); namelen 113 fs/jfs/xattr.c buffer[ea->namelen] = 0; namelen 664 fs/jfs/xattr.c int namelen = strlen(name); namelen 684 fs/jfs/xattr.c if ((namelen == ea->namelen) && namelen 685 fs/jfs/xattr.c (memcmp(name, ea->name, namelen) == 0)) { namelen 710 fs/jfs/xattr.c new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; namelen 756 fs/jfs/xattr.c ea->namelen = namelen; namelen 758 fs/jfs/xattr.c memcpy(ea->name, name, namelen); namelen 759 fs/jfs/xattr.c ea->name[namelen] = 0; namelen 761 fs/jfs/xattr.c memcpy(&ea->name[namelen + 1], value, value_len); namelen 802 fs/jfs/xattr.c int namelen = strlen(name); namelen 821 fs/jfs/xattr.c if ((namelen == ea->namelen) && namelen 822 fs/jfs/xattr.c memcmp(name, ea->name, namelen) == 0) { namelen 831 fs/jfs/xattr.c value = ((char *) &ea->name) + ea->namelen + 1; namelen 896 fs/jfs/xattr.c int namelen = copy_name(buffer, ea); namelen 897 fs/jfs/xattr.c buffer += namelen + 1; namelen 154 fs/minix/dir.c int namelen = dentry->d_name.len; namelen 188 fs/minix/dir.c if (namecompare(namelen, sbi->s_namelen, name, namx)) namelen 204 fs/minix/dir.c int namelen = dentry->d_name.len; namelen 255 fs/minix/dir.c if (namecompare(namelen, sbi->s_namelen, name, namx)) namelen 269 fs/minix/dir.c memcpy (namx, name, namelen); namelen 271 fs/minix/dir.c memset (namx + namelen, 0, sbi->s_dirsize - namelen - 4); namelen 274 fs/minix/dir.c memset (namx + namelen, 0, sbi->s_dirsize - namelen - 2); namelen 722 fs/nfs/client.c server->namelen = data->namlen; namelen 810 fs/nfs/client.c if (server->namelen == 0) { namelen 817 fs/nfs/client.c server->namelen = pathinfo.max_namelen; namelen 972 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS3_MAXNAMLEN) namelen 973 fs/nfs/client.c server->namelen = NFS3_MAXNAMLEN; namelen 977 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS2_MAXNAMLEN) namelen 978 fs/nfs/client.c server->namelen = NFS2_MAXNAMLEN; namelen 1049 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS4_MAXNAMLEN) namelen 1050 fs/nfs/client.c server->namelen = NFS4_MAXNAMLEN; namelen 1411 fs/nfs/dir.c if (unlikely(dentry->d_name.len > NFS_SERVER(dir)->namelen)) namelen 1554 fs/nfs/dir.c if (dentry->d_name.len > NFS_SERVER(dir)->namelen) namelen 18 fs/nfs/dns_resolve.c ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, namelen 25 fs/nfs/dns_resolve.c ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, namelen 65 fs/nfs/dns_resolve.c size_t namelen; namelen 96 fs/nfs/dns_resolve.c new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); namelen 98 fs/nfs/dns_resolve.c new->namelen = key->namelen; namelen 101 fs/nfs/dns_resolve.c new->namelen = 0; namelen 129 fs/nfs/dns_resolve.c item->namelen = 0; namelen 172 fs/nfs/dns_resolve.c if (a->namelen == 0 || a->namelen != b->namelen) namelen 174 fs/nfs/dns_resolve.c return memcmp(a->hostname, b->hostname, a->namelen) == 0; namelen 254 fs/nfs/dns_resolve.c key.namelen = len; namelen 344 fs/nfs/dns_resolve.c size_t namelen, struct sockaddr *sa, size_t salen) namelen 348 fs/nfs/dns_resolve.c .namelen = namelen, namelen 35 fs/nfs/dns_resolve.h size_t namelen, struct sockaddr *sa, size_t salen); namelen 55 fs/nfs/namespace.c int namelen; namelen 70 fs/nfs/namespace.c namelen = dentry->d_name.len; namelen 71 fs/nfs/namespace.c buflen -= namelen + 1; namelen 74 fs/nfs/namespace.c end -= namelen; namelen 75 fs/nfs/namespace.c memcpy(end, dentry->d_name.name, namelen); namelen 101 fs/nfs/namespace.c namelen = strlen(base); namelen 104 fs/nfs/namespace.c while (namelen > 0 && base[namelen - 1] == '/') namelen 105 fs/nfs/namespace.c namelen--; namelen 107 fs/nfs/namespace.c buflen -= namelen; namelen 113 fs/nfs/namespace.c end -= namelen; namelen 114 fs/nfs/namespace.c memcpy(end, base, namelen); namelen 1040 fs/nfs/nfs4client.c if (server->namelen == 0 || server->namelen > NFS4_MAXNAMLEN) namelen 1041 fs/nfs/nfs4client.c server->namelen = NFS4_MAXNAMLEN; namelen 164 fs/nfs/nfs4idmap.c int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) namelen 169 fs/nfs/nfs4idmap.c if (memchr(name, '@', namelen) != NULL || namelen >= sizeof(buf)) namelen 171 fs/nfs/nfs4idmap.c memcpy(buf, name, namelen); namelen 172 fs/nfs/nfs4idmap.c buf[namelen] = '\0'; namelen 257 fs/nfs/nfs4idmap.c static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, namelen 261 fs/nfs/nfs4idmap.c size_t desclen = typelen + namelen + 2; namelen 272 fs/nfs/nfs4idmap.c memcpy(cp, name, namelen); namelen 273 fs/nfs/nfs4idmap.c cp += namelen; namelen 278 fs/nfs/nfs4idmap.c static struct key *nfs_idmap_request_key(const char *name, size_t namelen, namelen 285 fs/nfs/nfs4idmap.c ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); namelen 304 fs/nfs/nfs4idmap.c static ssize_t nfs_idmap_get_key(const char *name, size_t namelen, namelen 314 fs/nfs/nfs4idmap.c rkey = nfs_idmap_request_key(name, namelen, type, idmap); namelen 364 fs/nfs/nfs4idmap.c static int nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, namelen 372 fs/nfs/nfs4idmap.c data_size = nfs_idmap_get_key(name, namelen, type, id_str, NFS_UINT_MAXLEN, idmap); namelen 742 fs/nfs/nfs4idmap.c int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) namelen 748 fs/nfs/nfs4idmap.c if (!nfs_map_string_to_numeric(name, namelen, &id)) namelen 749 fs/nfs/nfs4idmap.c ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); namelen 755 fs/nfs/nfs4idmap.c trace_nfs4_map_name_to_uid(name, namelen, id, ret); namelen 759 fs/nfs/nfs4idmap.c int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) namelen 765 fs/nfs/nfs4idmap.c if (!nfs_map_string_to_numeric(name, namelen, &id)) namelen 766 fs/nfs/nfs4idmap.c ret = nfs_idmap_lookup_id(name, namelen, "gid", &id, idmap); namelen 772 fs/nfs/nfs4idmap.c trace_nfs4_map_group_to_gid(name, namelen, id, ret); namelen 65 fs/nfs/nfs4idmap.h int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res); namelen 4911 fs/nfs/nfs4xdr.c uint32_t namelen, type; namelen 4930 fs/nfs/nfs4xdr.c namelen = be32_to_cpup(p); /* read 4 bytes */ /* have read all 32 bytes now */ namelen 4931 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, namelen); /* variable size field */ namelen 493 fs/nfs/super.c buf->f_namelen = server->namelen; namelen 658 fs/nfs/super.c seq_printf(m, ",namlen=%u", nfss->namelen); namelen 850 fs/nfs/super.c seq_printf(m, ",namlen=%u", nfss->namelen); namelen 524 fs/nfsd/nfs4idmap.c idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, namelen 533 fs/nfsd/nfs4idmap.c if (namelen + 1 > sizeof(key.name)) namelen 535 fs/nfsd/nfs4idmap.c memcpy(key.name, name, namelen); namelen 536 fs/nfsd/nfs4idmap.c key.name[namelen] = '\0'; namelen 590 fs/nfsd/nfs4idmap.c numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) namelen 595 fs/nfsd/nfs4idmap.c if (namelen + 1 > sizeof(buf)) namelen 599 fs/nfsd/nfs4idmap.c memcpy(buf, name, namelen); namelen 600 fs/nfsd/nfs4idmap.c buf[namelen] = '\0'; namelen 606 fs/nfsd/nfs4idmap.c do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) namelen 609 fs/nfsd/nfs4idmap.c if (numeric_name_to_id(rqstp, type, name, namelen, id)) namelen 615 fs/nfsd/nfs4idmap.c return idmap_name_to_id(rqstp, type, name, namelen, id); namelen 627 fs/nfsd/nfs4idmap.c nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, namelen 633 fs/nfsd/nfs4idmap.c if (name == NULL || namelen == 0) namelen 636 fs/nfsd/nfs4idmap.c status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); namelen 644 fs/nfsd/nfs4idmap.c nfsd_map_name_to_gid(struct svc_rqst *rqstp, const char *name, size_t namelen, namelen 650 fs/nfsd/nfs4idmap.c if (name == NULL || namelen == 0) namelen 653 fs/nfsd/nfs4idmap.c status = do_name_to_id(rqstp, IDMAP_TYPE_GROUP, name, namelen, &id); namelen 805 fs/nfsd/nfs4recover.c uint16_t namelen; namelen 817 fs/nfsd/nfs4recover.c if (get_user(namelen, &ci->cc_name.cn_len)) namelen 819 fs/nfsd/nfs4recover.c name.data = memdup_user(&ci->cc_name.cn_id, namelen); namelen 822 fs/nfsd/nfs4recover.c name.len = namelen; namelen 837 fs/nfsd/nfs4recover.c if (get_user(namelen, &cnm->cn_len)) namelen 839 fs/nfsd/nfs4recover.c name.data = memdup_user(&cnm->cn_id, namelen); namelen 842 fs/nfsd/nfs4recover.c name.len = namelen; namelen 329 fs/nilfs2/dir.c int namelen = qstr->len; namelen 330 fs/nilfs2/dir.c unsigned int reclen = NILFS_DIR_REC_LEN(namelen); namelen 362 fs/nilfs2/dir.c if (nilfs_match(namelen, name, de)) namelen 442 fs/nilfs2/dir.c int namelen = dentry->d_name.len; namelen 444 fs/nilfs2/dir.c unsigned int reclen = NILFS_DIR_REC_LEN(namelen); namelen 487 fs/nilfs2/dir.c if (nilfs_match(namelen, name, de)) namelen 517 fs/nilfs2/dir.c de->name_len = namelen; namelen 518 fs/nilfs2/dir.c memcpy(de->name, name, namelen); namelen 343 fs/ocfs2/dir.c const char *name, int namelen, namelen 363 fs/ocfs2/dir.c if (de_buf + namelen <= dlimit && namelen 364 fs/ocfs2/dir.c ocfs2_match(namelen, name, de)) { namelen 392 fs/ocfs2/dir.c int namelen, namelen 410 fs/ocfs2/dir.c found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, namelen 666 fs/ocfs2/dir.c static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen, namelen 727 fs/ocfs2/dir.c i = ocfs2_search_dirblock(bh, dir, name, namelen, namelen 891 fs/ocfs2/dir.c static int ocfs2_dx_dir_search(const char *name, int namelen, namelen 907 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, name, namelen, &res->dl_hinfo); namelen 923 fs/ocfs2/dir.c namelen, name, hinfo->major_hash, namelen 969 fs/ocfs2/dir.c found = ocfs2_search_dirblock(dir_ent_bh, dir, name, namelen, namelen 1005 fs/ocfs2/dir.c static int ocfs2_find_entry_dx(const char *name, int namelen, namelen 1030 fs/ocfs2/dir.c ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup); namelen 1059 fs/ocfs2/dir.c int ocfs2_find_entry(const char *name, int namelen, namelen 1066 fs/ocfs2/dir.c return ocfs2_find_entry_dx(name, namelen, dir, lookup); namelen 1074 fs/ocfs2/dir.c bh = ocfs2_find_entry_id(name, namelen, dir, &res_dir); namelen 1076 fs/ocfs2/dir.c bh = ocfs2_find_entry_el(name, namelen, dir, &res_dir); namelen 1583 fs/ocfs2/dir.c const char *name, int namelen, namelen 1598 fs/ocfs2/dir.c if (!namelen) namelen 1634 fs/ocfs2/dir.c rec_len = OCFS2_DIR_REC_LEN(namelen); namelen 1647 fs/ocfs2/dir.c if (ocfs2_match(namelen, name, de)) { namelen 1658 fs/ocfs2/dir.c namelen, name, namelen, namelen 1709 fs/ocfs2/dir.c de->name_len = namelen; namelen 1710 fs/ocfs2/dir.c memcpy(de->name, name, namelen); namelen 1965 fs/ocfs2/dir.c int namelen, namelen 1972 fs/ocfs2/dir.c trace_ocfs2_find_files_on_disk(namelen, name, blkno, namelen 1975 fs/ocfs2/dir.c status = ocfs2_find_entry(name, namelen, inode, lookup); namelen 1992 fs/ocfs2/dir.c int namelen, u64 *blkno) namelen 1997 fs/ocfs2/dir.c ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup); namelen 2012 fs/ocfs2/dir.c int namelen) namelen 2018 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); namelen 2020 fs/ocfs2/dir.c if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) { namelen 2593 fs/ocfs2/dir.c int ret = 0, namelen, i; namelen 2606 fs/ocfs2/dir.c namelen = de->name_len; namelen 2607 fs/ocfs2/dir.c if (!namelen || !de->inode) namelen 2610 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, de->name, namelen, &hinfo); namelen 3338 fs/ocfs2/dir.c const char *name, int namelen, namelen 3361 fs/ocfs2/dir.c rec_len = OCFS2_DIR_REC_LEN(namelen); namelen 3370 fs/ocfs2/dir.c if (ocfs2_match(namelen, name, de)) { namelen 3409 fs/ocfs2/dir.c int namelen, struct buffer_head **ret_de_bh) namelen 3423 fs/ocfs2/dir.c rec_len = OCFS2_DIR_REC_LEN(namelen); namelen 3452 fs/ocfs2/dir.c if (ocfs2_match(namelen, name, de)) { namelen 3884 fs/ocfs2/dir.c const char *name, int namelen, namelen 3956 fs/ocfs2/dir.c int namelen, namelen 3963 fs/ocfs2/dir.c int rec_len = OCFS2_DIR_REC_LEN(namelen); namelen 4136 fs/ocfs2/dir.c int namelen, namelen 4184 fs/ocfs2/dir.c namelen, lookup); namelen 4197 fs/ocfs2/dir.c ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); namelen 4239 fs/ocfs2/dir.c int namelen, namelen 4247 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen); namelen 4249 fs/ocfs2/dir.c if (!namelen) { namelen 4267 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, name, namelen, &lookup->dl_hinfo); namelen 4271 fs/ocfs2/dir.c name, namelen, lookup); namelen 4279 fs/ocfs2/dir.c namelen, &bh, &blocks_wanted); namelen 4281 fs/ocfs2/dir.c ret = ocfs2_find_dir_space_el(dir, name, namelen, &bh); namelen 43 fs/ocfs2/dir.h int ocfs2_find_entry(const char *name, int namelen, namelen 51 fs/ocfs2/dir.h const char *name, int namelen, namelen 71 fs/ocfs2/dir.h int namelen); namelen 75 fs/ocfs2/dir.h int namelen, namelen 80 fs/ocfs2/dir.h int namelen, u64 *blkno); namelen 87 fs/ocfs2/dir.h int namelen, namelen 170 fs/ocfs2/dlm/dlmapi.h int namelen, namelen 292 fs/ocfs2/dlm/dlmast.c locklen = past->namelen; namelen 451 fs/ocfs2/dlm/dlmast.c past.namelen = res->lockname.len; namelen 452 fs/ocfs2/dlm/dlmast.c memcpy(past.name, res->lockname.name, past.namelen); namelen 472 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 488 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 501 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 512 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 587 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 600 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 615 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 631 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 767 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 781 fs/ocfs2/dlm/dlmcommon.h u8 namelen; namelen 889 fs/ocfs2/dlm/dlmcommon.h int namelen, namelen 893 fs/ocfs2/dlm/dlmcommon.h unsigned int namelen); namelen 372 fs/ocfs2/dlm/dlmconvert.c convert.namelen = res->lockname.len; namelen 374 fs/ocfs2/dlm/dlmconvert.c memcpy(convert.name, res->lockname.name, convert.namelen); namelen 452 fs/ocfs2/dlm/dlmconvert.c if (cnv->namelen > DLM_LOCKID_NAME_MAX) { namelen 471 fs/ocfs2/dlm/dlmconvert.c res = dlm_lookup_lockres(dlm, cnv->name, cnv->namelen); namelen 297 fs/ocfs2/dlm/dlmlock.c create.namelen = res->lockname.len; namelen 299 fs/ocfs2/dlm/dlmlock.c memcpy(create.name, res->lockname.name, create.namelen); namelen 308 fs/ocfs2/dlm/dlmlock.c "currently.\n", dlm->name, create.namelen, namelen 315 fs/ocfs2/dlm/dlmlock.c "node %u\n", dlm->name, create.namelen, create.name, namelen 452 fs/ocfs2/dlm/dlmlock.c unsigned int namelen; namelen 460 fs/ocfs2/dlm/dlmlock.c namelen = create->namelen; namelen 465 fs/ocfs2/dlm/dlmlock.c dlm->name, create->node_idx, namelen, name); namelen 471 fs/ocfs2/dlm/dlmlock.c if (namelen > DLM_LOCKID_NAME_MAX) { namelen 493 fs/ocfs2/dlm/dlmlock.c res = dlm_lookup_lockres(dlm, name, namelen); namelen 544 fs/ocfs2/dlm/dlmlock.c const char *name, int namelen, dlm_astlockfunc_t *ast, namelen 575 fs/ocfs2/dlm/dlmlock.c (!dlm_is_recovery_lock(name, namelen) || convert) ) { namelen 647 fs/ocfs2/dlm/dlmlock.c if (namelen > DLM_LOCKID_NAME_MAX || namelen < 1) { namelen 663 fs/ocfs2/dlm/dlmlock.c res = dlm_get_lock_resource(dlm, name, namelen, flags); namelen 58 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen) namelen 63 fs/ocfs2/dlm/dlmmaster.c if (namelen != mle->mnamelen || namelen 64 fs/ocfs2/dlm/dlmmaster.c memcmp(name, mle->mname, namelen) != 0) namelen 80 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen); namelen 85 fs/ocfs2/dlm/dlmmaster.c char *name, unsigned int namelen); namelen 103 fs/ocfs2/dlm/dlmmaster.c const char *name, unsigned int namelen, namelen 255 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen) namelen 286 fs/ocfs2/dlm/dlmmaster.c memcpy(mle->mname, name, namelen); namelen 287 fs/ocfs2/dlm/dlmmaster.c mle->mnamelen = namelen; namelen 288 fs/ocfs2/dlm/dlmmaster.c mle->mnamehash = dlm_lockid_hash(name, namelen); namelen 326 fs/ocfs2/dlm/dlmmaster.c char *name, unsigned int namelen) namelen 334 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 337 fs/ocfs2/dlm/dlmmaster.c if (!dlm_mle_equal(dlm, tmpmle, name, namelen)) namelen 527 fs/ocfs2/dlm/dlmmaster.c const char *name, unsigned int namelen) namelen 536 fs/ocfs2/dlm/dlmmaster.c memcpy(qname, name, namelen); namelen 538 fs/ocfs2/dlm/dlmmaster.c res->lockname.len = namelen; namelen 539 fs/ocfs2/dlm/dlmmaster.c res->lockname.hash = dlm_lockid_hash(name, namelen); namelen 582 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen) namelen 594 fs/ocfs2/dlm/dlmmaster.c dlm_init_lockres(dlm, res, name, namelen); namelen 705 fs/ocfs2/dlm/dlmmaster.c int namelen, namelen 720 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(lockid, namelen); namelen 722 fs/ocfs2/dlm/dlmmaster.c mlog(0, "get lockres %s (len %d)\n", lockid, namelen); namelen 726 fs/ocfs2/dlm/dlmmaster.c tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); namelen 791 fs/ocfs2/dlm/dlmmaster.c res = dlm_new_lockres(dlm, lockid, namelen); namelen 816 fs/ocfs2/dlm/dlmmaster.c blocked = dlm_find_mle(dlm, &mle, (char *)lockid, namelen); namelen 837 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, lockid, namelen 870 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, (char *)lockid, bit); namelen 899 fs/ocfs2/dlm/dlmmaster.c if (dlm_is_recovery_lock(lockid, namelen)) { namelen 921 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, (char *)lockid, bit); namelen 950 fs/ocfs2/dlm/dlmmaster.c "master is %u, keep going\n", dlm->name, namelen, namelen 1320 fs/ocfs2/dlm/dlmmaster.c request.namelen = (u8)mle->mnamelen; namelen 1321 fs/ocfs2/dlm/dlmmaster.c memcpy(request.name, mle->mname, request.namelen); namelen 1411 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; namelen 1426 fs/ocfs2/dlm/dlmmaster.c namelen = request->namelen; namelen 1427 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 1429 fs/ocfs2/dlm/dlmmaster.c if (namelen > DLM_LOCKID_NAME_MAX) { namelen 1436 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); namelen 1500 fs/ocfs2/dlm/dlmmaster.c found = dlm_find_mle(dlm, &tmpmle, name, namelen); namelen 1561 fs/ocfs2/dlm/dlmmaster.c found = dlm_find_mle(dlm, &tmpmle, name, namelen); namelen 1580 fs/ocfs2/dlm/dlmmaster.c dlm_init_mle(mle, DLM_MLE_BLOCK, dlm, NULL, name, namelen); namelen 1662 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen = res->lockname.len; namelen 1664 fs/ocfs2/dlm/dlmmaster.c BUG_ON(namelen > O2NM_MAX_NAME_LEN); namelen 1680 fs/ocfs2/dlm/dlmmaster.c namelen, lockname); namelen 1683 fs/ocfs2/dlm/dlmmaster.c assert.namelen = namelen; namelen 1684 fs/ocfs2/dlm/dlmmaster.c memcpy(assert.name, lockname, namelen); namelen 1705 fs/ocfs2/dlm/dlmmaster.c "got %d.\n", namelen, lockname, to, r); namelen 1709 fs/ocfs2/dlm/dlmmaster.c namelen)) { namelen 1722 fs/ocfs2/dlm/dlmmaster.c namelen, lockname, to); namelen 1728 fs/ocfs2/dlm/dlmmaster.c namelen, lockname, to); namelen 1734 fs/ocfs2/dlm/dlmmaster.c namelen, lockname, to); namelen 1769 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; namelen 1778 fs/ocfs2/dlm/dlmmaster.c namelen = assert->namelen; namelen 1779 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 1782 fs/ocfs2/dlm/dlmmaster.c if (namelen > DLM_LOCKID_NAME_MAX) { namelen 1794 fs/ocfs2/dlm/dlmmaster.c if (!dlm_find_mle(dlm, &mle, name, namelen)) { namelen 1798 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 1806 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 1819 fs/ocfs2/dlm/dlmmaster.c assert->node_idx, namelen, name, bit, namelen 1827 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, name, namelen 1832 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, name, namelen 1845 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); namelen 1850 fs/ocfs2/dlm/dlmmaster.c "RECOVERING!\n", assert->node_idx, namelen, name); namelen 1858 fs/ocfs2/dlm/dlmmaster.c assert->node_idx, res->owner, namelen, namelen 1869 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 1875 fs/ocfs2/dlm/dlmmaster.c res->owner, namelen, name); namelen 1883 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 1893 fs/ocfs2/dlm/dlmmaster.c mle->master, namelen, name); namelen 1970 fs/ocfs2/dlm/dlmmaster.c "inuse=%d\n", dlm->name, namelen, name, namelen 1989 fs/ocfs2/dlm/dlmmaster.c res->owner, namelen, name); namelen 2010 fs/ocfs2/dlm/dlmmaster.c assert->node_idx, dlm->name, namelen, name); namelen 2017 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, name, assert->node_idx); namelen 2222 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen; namelen 2225 fs/ocfs2/dlm/dlmmaster.c namelen = res->lockname.len; namelen 2226 fs/ocfs2/dlm/dlmmaster.c BUG_ON(namelen > O2NM_MAX_NAME_LEN); namelen 2230 fs/ocfs2/dlm/dlmmaster.c deref.namelen = namelen; namelen 2231 fs/ocfs2/dlm/dlmmaster.c memcpy(deref.name, lockname, namelen); namelen 2237 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, lockname, ret, res->owner); namelen 2241 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, lockname, res->owner, r); namelen 2258 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen; namelen 2270 fs/ocfs2/dlm/dlmmaster.c namelen = deref->namelen; namelen 2273 fs/ocfs2/dlm/dlmmaster.c if (namelen > DLM_LOCKID_NAME_MAX) { namelen 2282 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 2285 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); namelen 2289 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, name); namelen 2353 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen; namelen 2362 fs/ocfs2/dlm/dlmmaster.c namelen = deref->namelen; namelen 2365 fs/ocfs2/dlm/dlmmaster.c if (namelen > DLM_LOCKID_NAME_MAX) { namelen 2374 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 2377 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres_full(dlm, name, namelen, hash); namelen 2381 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, name); namelen 2416 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen; namelen 2419 fs/ocfs2/dlm/dlmmaster.c namelen = res->lockname.len; namelen 2420 fs/ocfs2/dlm/dlmmaster.c BUG_ON(namelen > O2NM_MAX_NAME_LEN); namelen 2424 fs/ocfs2/dlm/dlmmaster.c deref.namelen = namelen; namelen 2425 fs/ocfs2/dlm/dlmmaster.c memcpy(deref.name, lockname, namelen); namelen 2431 fs/ocfs2/dlm/dlmmaster.c " to node %u\n", dlm->name, namelen, namelen 2436 fs/ocfs2/dlm/dlmmaster.c dlm->name, namelen, lockname, node, r); namelen 2550 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen; namelen 2560 fs/ocfs2/dlm/dlmmaster.c namelen = res->lockname.len; namelen 2562 fs/ocfs2/dlm/dlmmaster.c mlog(0, "%s: Migrating %.*s to node %u\n", dlm->name, namelen, name, namelen 2587 fs/ocfs2/dlm/dlmmaster.c namelen, target, dlm->node_num); namelen 2749 fs/ocfs2/dlm/dlmmaster.c mlog(0, "%s: Migrating %.*s to %u, returns %d\n", dlm->name, namelen, namelen 3037 fs/ocfs2/dlm/dlmmaster.c migrate.namelen = res->lockname.len; namelen 3038 fs/ocfs2/dlm/dlmmaster.c memcpy(migrate.name, res->lockname.name, migrate.namelen); namelen 3065 fs/ocfs2/dlm/dlmmaster.c migrate.namelen, migrate.name, ret, nodenum); namelen 3112 fs/ocfs2/dlm/dlmmaster.c unsigned int namelen, hash; namelen 3119 fs/ocfs2/dlm/dlmmaster.c namelen = migrate->namelen; namelen 3120 fs/ocfs2/dlm/dlmmaster.c hash = dlm_lockid_hash(name, namelen); namelen 3132 fs/ocfs2/dlm/dlmmaster.c res = __dlm_lookup_lockres(dlm, name, namelen, hash); namelen 3153 fs/ocfs2/dlm/dlmmaster.c name, namelen, namelen 3188 fs/ocfs2/dlm/dlmmaster.c const char *name, unsigned int namelen, namelen 3200 fs/ocfs2/dlm/dlmmaster.c found = dlm_find_mle(dlm, oldmle, (char *)name, namelen); namelen 3209 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 3220 fs/ocfs2/dlm/dlmmaster.c namelen, name); namelen 3237 fs/ocfs2/dlm/dlmmaster.c namelen, name, master, namelen 3245 fs/ocfs2/dlm/dlmmaster.c dlm_init_mle(mle, DLM_MLE_MIGRATION, dlm, res, name, namelen); namelen 54 fs/ocfs2/dlm/dlmrecovery.c const char *lockname, int namelen, namelen 1165 fs/ocfs2/dlm/dlmrecovery.c const char *lockname, int namelen, namelen 1171 fs/ocfs2/dlm/dlmrecovery.c mres->lockname_len = namelen; namelen 1172 fs/ocfs2/dlm/dlmrecovery.c memcpy(mres->lockname, lockname, namelen); namelen 1677 fs/ocfs2/dlm/dlmrecovery.c req.namelen = res->lockname.len; namelen 1723 fs/ocfs2/dlm/dlmrecovery.c hash = dlm_lockid_hash(req->name, req->namelen); namelen 1726 fs/ocfs2/dlm/dlmrecovery.c res = __dlm_lookup_lockres(dlm, req->name, req->namelen, hash); namelen 339 fs/ocfs2/dlm/dlmunlock.c unlock.namelen = res->lockname.len; namelen 340 fs/ocfs2/dlm/dlmunlock.c memcpy(unlock.name, res->lockname.name, unlock.namelen); namelen 418 fs/ocfs2/dlm/dlmunlock.c if (unlock->namelen > DLM_LOCKID_NAME_MAX) { namelen 431 fs/ocfs2/dlm/dlmunlock.c res = dlm_lookup_lockres(dlm, unlock->name, unlock->namelen); namelen 2054 fs/ocfs2/namei.c int status, namelen; namelen 2056 fs/ocfs2/namei.c namelen = snprintf(name, OCFS2_ORPHAN_NAMELEN + 1, "%016llx", namelen 2058 fs/ocfs2/namei.c if (namelen <= 0) { namelen 2059 fs/ocfs2/namei.c if (namelen) namelen 2060 fs/ocfs2/namei.c status = namelen; namelen 2066 fs/ocfs2/namei.c if (namelen != OCFS2_ORPHAN_NAMELEN) { namelen 2072 fs/ocfs2/namei.c trace_ocfs2_blkno_stringify(blkno, name, namelen); namelen 2124 fs/ocfs2/namei.c int namelen = dio ? namelen 2148 fs/ocfs2/namei.c namelen, lookup); namelen 2225 fs/ocfs2/namei.c int namelen = dio ? namelen 2271 fs/ocfs2/namei.c namelen, inode, namelen 2049 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long ino, int namelen, const char *name, namelen 2052 fs/ocfs2/ocfs2_trace.h TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno), namelen 2055 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2063 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2070 fs/ocfs2/ocfs2_trace.h __entry->namelen, __get_str(name), namelen 2081 fs/ocfs2/ocfs2_trace.h TP_PROTO(int namelen, const char *name, void *blkno, namelen 2083 fs/ocfs2/ocfs2_trace.h TP_ARGS(namelen, name, blkno, dir), namelen 2085 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2091 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2096 fs/ocfs2/ocfs2_trace.h TP_printk("%.*s %p %llu", __entry->namelen, __get_str(name), namelen 2101 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long dir, int namelen, const char *name), namelen 2102 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, namelen, name), namelen 2105 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2110 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2114 fs/ocfs2/ocfs2_trace.h __entry->namelen, __get_str(name)) namelen 2124 fs/ocfs2/ocfs2_trace.h int namelen, const char *name, unsigned int num_used), namelen 2125 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, major_hash, minor_hash, namelen, name, num_used), namelen 2130 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2138 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2144 fs/ocfs2/ocfs2_trace.h __entry->namelen, __get_str(name), __entry->num_used) namelen 2355 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long blkno, const char *name, int namelen), namelen 2356 fs/ocfs2/ocfs2_trace.h TP_ARGS(blkno, name, namelen), namelen 2360 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2365 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2368 fs/ocfs2/ocfs2_trace.h __entry->namelen) namelen 2376 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long dir, const char *name, int namelen), namelen 2377 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, name, namelen), namelen 2381 fs/ocfs2/ocfs2_trace.h __field(int, namelen) namelen 2386 fs/ocfs2/ocfs2_trace.h __entry->namelen = namelen; namelen 2389 fs/ocfs2/ocfs2_trace.h __entry->namelen) namelen 197 fs/ocfs2/stack_o2cb.c unsigned int namelen) namelen 205 fs/ocfs2/stack_o2cb.c o2dlm_flags, name, namelen, namelen 686 fs/ocfs2/stack_user.c unsigned int namelen) namelen 695 fs/ocfs2/stack_user.c flags|DLM_LKF_NODLCKWT, name, namelen, 0, namelen 238 fs/ocfs2/stackglue.c unsigned int namelen) namelen 245 fs/ocfs2/stackglue.c name, namelen); namelen 170 fs/ocfs2/stackglue.h unsigned int namelen); namelen 272 fs/ocfs2/stackglue.h unsigned int namelen); namelen 12 fs/omfs/dir.c static int omfs_hash(const char *name, int namelen, int mod) namelen 15 fs/omfs/dir.c for (i = 0; i < namelen; i++) namelen 25 fs/omfs/dir.c const char *name, int namelen, int *ofs) namelen 28 fs/omfs/dir.c int bucket = omfs_hash(name, namelen, nbuckets); namelen 35 fs/omfs/dir.c const char *name, int namelen, namelen 56 fs/omfs/dir.c if (strncmp(oi->i_name, name, namelen) == 0) namelen 68 fs/omfs/dir.c const char *name, int namelen) namelen 74 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); namelen 81 fs/omfs/dir.c return omfs_scan_list(dir, block, name, namelen, &dummy); namelen 115 fs/omfs/dir.c int namelen = dentry->d_name.len; namelen 123 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); namelen 139 fs/omfs/dir.c memcpy(oi->i_name, name, namelen); namelen 140 fs/omfs/dir.c memset(oi->i_name + namelen, 0, OMFS_NAMELEN - namelen); namelen 161 fs/omfs/dir.c int namelen = dentry->d_name.len; namelen 170 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); namelen 177 fs/omfs/dir.c bh2 = omfs_scan_list(dir, block, name, namelen, &prev); namelen 195 fs/overlayfs/namei.c const char *name, unsigned int namelen, namelen 203 fs/overlayfs/namei.c this = lookup_one_len_unlocked(name, base, namelen); namelen 844 fs/overlayfs/namei.c if (dentry->d_name.len > ofs->namelen) namelen 59 fs/overlayfs/ovl_entry.h long namelen; namelen 198 fs/overlayfs/readdir.c const char *name, int namelen, namelen 203 fs/overlayfs/readdir.c p = ovl_cache_entry_find(rdd->root, name, namelen); namelen 207 fs/overlayfs/readdir.c p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type); namelen 254 fs/overlayfs/readdir.c int namelen, loff_t offset, u64 ino, namelen 262 fs/overlayfs/readdir.c return ovl_cache_entry_add_rb(rdd, name, namelen, ino, d_type); namelen 264 fs/overlayfs/readdir.c return ovl_fill_lowest(rdd, name, namelen, offset, ino, d_type); namelen 441 fs/overlayfs/readdir.c const char *name, int namelen) namelen 445 fs/overlayfs/readdir.c namelen, name, ino, xinobits); namelen 533 fs/overlayfs/readdir.c int namelen, loff_t offset, u64 ino, namelen 541 fs/overlayfs/readdir.c p = ovl_cache_entry_new(rdd, name, namelen, ino, d_type); namelen 651 fs/overlayfs/readdir.c int namelen, loff_t offset, u64 ino, namelen 663 fs/overlayfs/readdir.c p = ovl_cache_entry_find(&rdt->cache->root, name, namelen); namelen 668 fs/overlayfs/readdir.c name, namelen); namelen 671 fs/overlayfs/readdir.c return orig_ctx->actor(orig_ctx, name, namelen, offset, ino, d_type); namelen 987 fs/overlayfs/readdir.c int namelen, loff_t offset, u64 ino, namelen 994 fs/overlayfs/readdir.c if (!strncmp(name, ".", namelen) || !strncmp(name, "..", namelen)) namelen 301 fs/overlayfs/super.c buf->f_namelen = ofs->namelen; namelen 774 fs/overlayfs/super.c ofs->namelen = max(ofs->namelen, statfs.f_namelen); namelen 48 fs/proc/generic.c if (len < de->namelen) namelen 50 fs/proc/generic.c if (len > de->namelen) namelen 101 fs/proc/generic.c int result = proc_match(de->name, this, de->namelen); namelen 308 fs/proc/generic.c if (!dir_emit(ctx, de->name, de->namelen, namelen 424 fs/proc/generic.c ent->namelen = qstr.len; namelen 61 fs/proc/internal.h u8 namelen; namelen 347 fs/proc/proc_net.c netd->namelen = 3; namelen 110 fs/proc/proc_sysctl.c struct ctl_dir *dir, const char *name, int namelen) namelen 127 fs/proc/proc_sysctl.c cmp = namecmp(name, namelen, procname, strlen(procname)); namelen 146 fs/proc/proc_sysctl.c int namelen = strlen(name); namelen 161 fs/proc/proc_sysctl.c cmp = namecmp(name, namelen, parent_name, strlen(parent_name)); namelen 369 fs/proc/proc_sysctl.c const char *name, int namelen) namelen 375 fs/proc/proc_sysctl.c entry = find_entry(&head, dir, name, namelen); namelen 951 fs/proc/proc_sysctl.c const char *name, int namelen) namelen 956 fs/proc/proc_sysctl.c entry = find_entry(&head, dir, name, namelen); namelen 965 fs/proc/proc_sysctl.c const char *name, int namelen) namelen 973 fs/proc/proc_sysctl.c sizeof(struct ctl_table)*2 + namelen + 1, namelen 981 fs/proc/proc_sysctl.c memcpy(new_name, name, namelen); namelen 982 fs/proc/proc_sysctl.c new_name[namelen] = '\0'; namelen 1003 fs/proc/proc_sysctl.c const char *name, int namelen) namelen 1010 fs/proc/proc_sysctl.c subdir = find_subdir(dir, name, namelen); namelen 1017 fs/proc/proc_sysctl.c new = new_dir(set, name, namelen); namelen 1024 fs/proc/proc_sysctl.c subdir = find_subdir(dir, name, namelen); namelen 1043 fs/proc/proc_sysctl.c namelen, namelen, name, PTR_ERR(subdir)); namelen 1349 fs/proc/proc_sysctl.c int namelen; namelen 1352 fs/proc/proc_sysctl.c namelen = nextname - name; namelen 1355 fs/proc/proc_sysctl.c namelen = strlen(name); namelen 1357 fs/proc/proc_sysctl.c if (namelen == 0) namelen 1360 fs/proc/proc_sysctl.c dir = get_subdir(dir, name, namelen); namelen 1402 fs/proc/proc_sysctl.c int namelen; namelen 1403 fs/proc/proc_sysctl.c namelen = strlen(name); namelen 1404 fs/proc/proc_sysctl.c if (((pos - path) + namelen + 2) >= PATH_MAX) namelen 1406 fs/proc/proc_sysctl.c memcpy(pos, name, namelen); namelen 1407 fs/proc/proc_sysctl.c pos[namelen] = '/'; namelen 1408 fs/proc/proc_sysctl.c pos[namelen + 1] = '\0'; namelen 1409 fs/proc/proc_sysctl.c pos += namelen + 1; namelen 290 fs/proc/root.c .namelen = 5, namelen 30 fs/qnx4/namei.c int namelen, thislen; namelen 39 fs/qnx4/namei.c namelen = QNX4_NAME_MAX; namelen 41 fs/qnx4/namei.c namelen = QNX4_SHORT_NAME_MAX; namelen 44 fs/qnx4/namei.c if ( thislen > namelen ) namelen 45 fs/qnx4/namei.c thislen = namelen; namelen 375 fs/reiserfs/item_ops.c int namelen; namelen 386 fs/reiserfs/item_ops.c namelen = namelen 390 fs/reiserfs/item_ops.c if (name[namelen - 1] == 0) namelen 391 fs/reiserfs/item_ops.c namelen = strlen(name); namelen 393 fs/reiserfs/item_ops.c if (namelen > sizeof(namebuf) - 3) { namelen 398 fs/reiserfs/item_ops.c memcpy(namebuf + 1, name, namelen); namelen 399 fs/reiserfs/item_ops.c namebuf[namelen + 1] = '"'; namelen 400 fs/reiserfs/item_ops.c namebuf[namelen + 2] = 0; namelen 209 fs/reiserfs/namei.c const char *name, int namelen) namelen 213 fs/reiserfs/namei.c if ((namelen == de->de_namelen) && namelen 228 fs/reiserfs/namei.c const char *name, int namelen) namelen 268 fs/reiserfs/namei.c reiserfs_match(de, name, namelen)) != NAME_NOT_FOUND) { namelen 304 fs/reiserfs/namei.c static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, namelen 311 fs/reiserfs/namei.c if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) namelen 316 fs/reiserfs/namei.c get_third_component(dir->i_sb, name, namelen), namelen 331 fs/reiserfs/namei.c namelen); namelen 433 fs/reiserfs/namei.c struct inode *dir, const char *name, int namelen, namelen 456 fs/reiserfs/namei.c if (!namelen) namelen 459 fs/reiserfs/namei.c if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) namelen 464 fs/reiserfs/namei.c get_third_component(dir->i_sb, name, namelen), namelen 468 fs/reiserfs/namei.c buflen = DEH_SIZE + ROUND_UP(namelen); namelen 478 fs/reiserfs/namei.c STAT_DATA_V1) ? (DEH_SIZE + namelen) : buflen; namelen 496 fs/reiserfs/namei.c memcpy((char *)(deh + 1), name, namelen); namelen 498 fs/reiserfs/namei.c padd_item((char *)(deh + 1), ROUND_UP(namelen), namelen); namelen 510 fs/reiserfs/namei.c retval = reiserfs_find_entry(dir, name, namelen, &path, &de); namelen 193 fs/reiserfs/xattr.c fill_with_dentries(struct dir_context *ctx, const char *name, int namelen, namelen 205 fs/reiserfs/xattr.c if (name[0] == '.' && (namelen < 2 || namelen 206 fs/reiserfs/xattr.c (namelen == 2 && name[1] == '.'))) namelen 209 fs/reiserfs/xattr.c dentry = lookup_one_len(name, dbuf->xadir, namelen); namelen 801 fs/reiserfs/xattr.c int namelen, loff_t offset, u64 ino, namelen 809 fs/reiserfs/xattr.c (namelen != 1 && (name[1] != '.' || namelen != 2))) { namelen 817 fs/reiserfs/xattr.c size = namelen + 1; namelen 823 fs/reiserfs/xattr.c memcpy(b->buf + b->pos, name, namelen); namelen 824 fs/reiserfs/xattr.c b->buf[b->pos + namelen] = 0; namelen 130 fs/sysv/dir.c int namelen = dentry->d_name.len; namelen 154 fs/sysv/dir.c if (namecompare(namelen, SYSV_NAMELEN, namelen 177 fs/sysv/dir.c int namelen = dentry->d_name.len; namelen 199 fs/sysv/dir.c if (namecompare(namelen, SYSV_NAMELEN, name, de->name)) namelen 215 fs/sysv/dir.c memcpy (de->name, name, namelen); namelen 216 fs/sysv/dir.c memset (de->name + namelen, 0, SYSV_DIRSIZE - namelen - 2); namelen 335 fs/udf/namei.c int namelen; namelen 358 fs/udf/namei.c namelen = udf_put_filename(sb, dentry->d_name.name, namelen 361 fs/udf/namei.c if (!namelen) { namelen 366 fs/udf/namei.c namelen = 0; namelen 369 fs/udf/namei.c nfidlen = ALIGN(sizeof(struct fileIdentDesc) + namelen, UDF_NAME_PAD); namelen 415 fs/udf/namei.c cfi->lengthFileIdent = namelen; namelen 529 fs/udf/namei.c cfi->lengthFileIdent = namelen; namelen 893 fs/udf/namei.c int namelen; namelen 985 fs/udf/namei.c namelen = udf_put_filename(sb, compstart, namelen 988 fs/udf/namei.c if (!namelen) namelen 991 fs/udf/namei.c if (elen + sizeof(struct pathComponent) + namelen > namelen 995 fs/udf/namei.c pc->lengthComponentIdent = namelen; namelen 997 fs/udf/namei.c memcpy(pc->componentIdent, name, namelen); namelen 255 fs/ufs/dir.c int namelen = qstr->len; namelen 256 fs/ufs/dir.c unsigned reclen = UFS_DIR_REC_LEN(namelen); namelen 263 fs/ufs/dir.c UFSD("ENTER, dir_ino %lu, name %s, namlen %u\n", dir->i_ino, name, namelen); namelen 265 fs/ufs/dir.c if (npages == 0 || namelen > UFS_MAXNAMLEN) namelen 284 fs/ufs/dir.c if (ufs_match(sb, namelen, name, de)) namelen 309 fs/ufs/dir.c int namelen = dentry->d_name.len; namelen 311 fs/ufs/dir.c unsigned reclen = UFS_DIR_REC_LEN(namelen); namelen 322 fs/ufs/dir.c UFSD("ENTER, name %s, namelen %u\n", name, namelen); namelen 357 fs/ufs/dir.c if (ufs_match(sb, namelen, name, de)) namelen 388 fs/ufs/dir.c ufs_set_de_namlen(sb, de, namelen); namelen 389 fs/ufs/dir.c memcpy(de->d_name, name, namelen + 1); namelen 617 fs/ufs/dir.c u16 namelen=ufs_get_de_namlen(sb, de); namelen 621 fs/ufs/dir.c if (namelen > 2) namelen 623 fs/ufs/dir.c if (namelen < 2) { namelen 77 fs/xfs/libxfs/xfs_attr.c args->namelen = strlen((const char *)name); namelen 78 fs/xfs/libxfs/xfs_attr.c if (args->namelen >= MAXNAMELEN) namelen 81 fs/xfs/libxfs/xfs_attr.c args->hashval = xfs_da_hashname(args->name, args->namelen); namelen 375 fs/xfs/libxfs/xfs_attr.c XFS_ATTR_SF_ENTSIZE_BYNAME(args.namelen, valuelen); namelen 551 fs/xfs/libxfs/xfs_attr.c if (args->namelen >= XFS_ATTR_SF_ENTSIZE_MAX || namelen 556 fs/xfs/libxfs/xfs_attr.c newsize += XFS_ATTR_SF_ENTSIZE_BYNAME(args->namelen, args->valuelen); namelen 618 fs/xfs/libxfs/xfs_attr_leaf.c if (sfe->namelen != args->namelen) namelen 620 fs/xfs/libxfs/xfs_attr_leaf.c if (memcmp(args->name, sfe->nameval, args->namelen) != 0) namelen 629 fs/xfs/libxfs/xfs_attr_leaf.c size = XFS_ATTR_SF_ENTSIZE_BYNAME(args->namelen, args->valuelen); namelen 634 fs/xfs/libxfs/xfs_attr_leaf.c sfe->namelen = args->namelen; namelen 637 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(sfe->nameval, args->name, args->namelen); namelen 638 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(&sfe->nameval[args->namelen], args->value, args->valuelen); namelen 688 fs/xfs/libxfs/xfs_attr_leaf.c if (sfe->namelen != args->namelen) namelen 690 fs/xfs/libxfs/xfs_attr_leaf.c if (memcmp(sfe->nameval, args->name, args->namelen) != 0) namelen 755 fs/xfs/libxfs/xfs_attr_leaf.c if (sfe->namelen != args->namelen) namelen 757 fs/xfs/libxfs/xfs_attr_leaf.c if (memcmp(args->name, sfe->nameval, args->namelen) != 0) namelen 786 fs/xfs/libxfs/xfs_attr_leaf.c if (sfe->namelen != args->namelen) namelen 788 fs/xfs/libxfs/xfs_attr_leaf.c if (memcmp(args->name, sfe->nameval, args->namelen) != 0) namelen 792 fs/xfs/libxfs/xfs_attr_leaf.c return xfs_attr_copy_value(args, &sfe->nameval[args->namelen], namelen 852 fs/xfs/libxfs/xfs_attr_leaf.c nargs.namelen = sfe->namelen; namelen 853 fs/xfs/libxfs/xfs_attr_leaf.c nargs.value = &sfe->nameval[nargs.namelen]; namelen 856 fs/xfs/libxfs/xfs_attr_leaf.c sfe->namelen); namelen 901 fs/xfs/libxfs/xfs_attr_leaf.c if (name_loc->namelen >= XFS_ATTR_SF_ENTSIZE_MAX) namelen 906 fs/xfs/libxfs/xfs_attr_leaf.c + name_loc->namelen namelen 954 fs/xfs/libxfs/xfs_attr_leaf.c if (sfep->namelen == 0) namelen 1059 fs/xfs/libxfs/xfs_attr_leaf.c nargs.namelen = name_loc->namelen; namelen 1060 fs/xfs/libxfs/xfs_attr_leaf.c nargs.value = &name_loc->nameval[nargs.namelen]; namelen 1415 fs/xfs/libxfs/xfs_attr_leaf.c name_loc->namelen = args->namelen; namelen 1417 fs/xfs/libxfs/xfs_attr_leaf.c memcpy((char *)name_loc->nameval, args->name, args->namelen); namelen 1418 fs/xfs/libxfs/xfs_attr_leaf.c memcpy((char *)&name_loc->nameval[args->namelen], args->value, namelen 1422 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt->namelen = args->namelen; namelen 1423 fs/xfs/libxfs/xfs_attr_leaf.c memcpy((char *)name_rmt->name, args->name, args->namelen); namelen 2342 fs/xfs/libxfs/xfs_attr_leaf.c if (name_loc->namelen != args->namelen) namelen 2345 fs/xfs/libxfs/xfs_attr_leaf.c args->namelen) != 0) namelen 2353 fs/xfs/libxfs/xfs_attr_leaf.c if (name_rmt->namelen != args->namelen) namelen 2356 fs/xfs/libxfs/xfs_attr_leaf.c args->namelen) != 0) namelen 2400 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(name_loc->namelen == args->namelen); namelen 2401 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(memcmp(args->name, name_loc->nameval, args->namelen) == 0); namelen 2403 fs/xfs/libxfs/xfs_attr_leaf.c &name_loc->nameval[args->namelen], namelen 2408 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(name_rmt->namelen == args->namelen); namelen 2409 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(memcmp(args->name, name_rmt->name, args->namelen) == 0); namelen 2603 fs/xfs/libxfs/xfs_attr_leaf.c size = xfs_attr_leaf_entsize_local(name_loc->namelen, namelen 2607 fs/xfs/libxfs/xfs_attr_leaf.c size = xfs_attr_leaf_entsize_remote(name_rmt->namelen); namelen 2625 fs/xfs/libxfs/xfs_attr_leaf.c size = xfs_attr_leaf_entsize_local(args->namelen, args->valuelen); namelen 2633 fs/xfs/libxfs/xfs_attr_leaf.c return xfs_attr_leaf_entsize_remote(args->namelen); namelen 2656 fs/xfs/libxfs/xfs_attr_leaf.c int namelen; namelen 2679 fs/xfs/libxfs/xfs_attr_leaf.c namelen = name_loc->namelen; namelen 2683 fs/xfs/libxfs/xfs_attr_leaf.c namelen = name_rmt->namelen; namelen 2687 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(namelen == args->namelen); namelen 2688 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(memcmp(name, args->name, namelen) == 0); namelen 2826 fs/xfs/libxfs/xfs_attr_leaf.c namelen1 = name_loc->namelen; namelen 2830 fs/xfs/libxfs/xfs_attr_leaf.c namelen1 = name_rmt->namelen; namelen 2835 fs/xfs/libxfs/xfs_attr_leaf.c namelen2 = name_loc->namelen; namelen 2839 fs/xfs/libxfs/xfs_attr_leaf.c namelen2 = name_rmt->namelen; namelen 23 fs/xfs/libxfs/xfs_attr_sf.h uint8_t namelen; /* length of name value (no null) */ namelen 35 fs/xfs/libxfs/xfs_attr_sf.h ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen) namelen 2010 fs/xfs/libxfs/xfs_da_btree.c xfs_da_hashname(const uint8_t *name, int namelen) namelen 2017 fs/xfs/libxfs/xfs_da_btree.c for (hash = 0; namelen >= 4; namelen -= 4, name += 4) namelen 2024 fs/xfs/libxfs/xfs_da_btree.c switch (namelen) { namelen 2043 fs/xfs/libxfs/xfs_da_btree.c return (args->namelen == len && memcmp(args->name, name, len) == 0) ? namelen 51 fs/xfs/libxfs/xfs_da_btree.h int namelen; /* length of string (maybe no NULL) */ namelen 46 fs/xfs/libxfs/xfs_da_format.c ((char *)sfep + xfs_dir2_sf_entsize(hdr, sfep->namelen)); namelen 55 fs/xfs/libxfs/xfs_da_format.c ((char *)sfep + xfs_dir3_sf_entsize(hdr, sfep->namelen)); namelen 86 fs/xfs/libxfs/xfs_da_format.c ftype = sfep->name[sfep->namelen]; namelen 99 fs/xfs/libxfs/xfs_da_format.c sfep->name[sfep->namelen] = ftype; namelen 160 fs/xfs/libxfs/xfs_da_format.c return xfs_dir2_sf_get_ino(hdr, &sfep->name[sfep->namelen]); namelen 169 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_sf_put_ino(hdr, &sfep->name[sfep->namelen], ino); namelen 177 fs/xfs/libxfs/xfs_da_format.c return xfs_dir2_sf_get_ino(hdr, &sfep->name[sfep->namelen + 1]); namelen 186 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_sf_put_ino(hdr, &sfep->name[sfep->namelen + 1], ino); namelen 249 fs/xfs/libxfs/xfs_da_format.c uint8_t ftype = dep->name[dep->namelen]; namelen 262 fs/xfs/libxfs/xfs_da_format.c ASSERT(dep->namelen != 0); namelen 264 fs/xfs/libxfs/xfs_da_format.c dep->name[dep->namelen] = type; namelen 275 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_data_entsize(dep->namelen) - sizeof(__be16)); namelen 283 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_data_entsize(dep->namelen) - sizeof(__be16)); namelen 223 fs/xfs/libxfs/xfs_da_format.h __u8 namelen; /* actual name length */ namelen 354 fs/xfs/libxfs/xfs_da_format.h __u8 namelen; /* name length */ namelen 623 fs/xfs/libxfs/xfs_da_format.h uint8_t namelen; /* actual length of name (no NULL) */ namelen 655 fs/xfs/libxfs/xfs_da_format.h __u8 namelen; /* length of name bytes */ namelen 662 fs/xfs/libxfs/xfs_da_format.h __u8 namelen; /* length of name bytes */ namelen 77 fs/xfs/libxfs/xfs_dir2.c if (args->namelen != len) namelen 263 fs/xfs/libxfs/xfs_dir2.c args->namelen = name->len; namelen 359 fs/xfs/libxfs/xfs_dir2.c args->namelen = name->len; namelen 431 fs/xfs/libxfs/xfs_dir2.c args->namelen = name->len; namelen 492 fs/xfs/libxfs/xfs_dir2.c args->namelen = name->len; namelen 358 fs/xfs/libxfs/xfs_dir2_block.c len = dp->d_ops->data_entsize(args->namelen); namelen 542 fs/xfs/libxfs/xfs_dir2_block.c dep->namelen = args->namelen; namelen 543 fs/xfs/libxfs/xfs_dir2_block.c memcpy(dep->name, args->name, args->namelen); namelen 637 fs/xfs/libxfs/xfs_dir2_block.c error = xfs_dir_cilookup_result(args, dep->name, dep->namelen); namelen 721 fs/xfs/libxfs/xfs_dir2_block.c cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); namelen 794 fs/xfs/libxfs/xfs_dir2_block.c dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); namelen 1154 fs/xfs/libxfs/xfs_dir2_block.c dep->namelen = 1; namelen 1168 fs/xfs/libxfs/xfs_dir2_block.c dep->namelen = 2; namelen 1219 fs/xfs/libxfs/xfs_dir2_block.c dep->namelen = sfep->namelen; namelen 1221 fs/xfs/libxfs/xfs_dir2_block.c memcpy(dep->name, sfep->name, dep->namelen); namelen 1226 fs/xfs/libxfs/xfs_dir2_block.c name.len = sfep->namelen; namelen 172 fs/xfs/libxfs/xfs_dir2_data.c if (dep->namelen == 0) namelen 176 fs/xfs/libxfs/xfs_dir2_data.c if (endp < p + ops->data_entsize(dep->namelen)) namelen 191 fs/xfs/libxfs/xfs_dir2_data.c name.len = dep->namelen; namelen 201 fs/xfs/libxfs/xfs_dir2_data.c p += ops->data_entsize(dep->namelen); namelen 613 fs/xfs/libxfs/xfs_dir2_data.c p += ops->data_entsize(dep->namelen); namelen 613 fs/xfs/libxfs/xfs_dir2_leaf.c length = dp->d_ops->data_entsize(args->namelen); namelen 816 fs/xfs/libxfs/xfs_dir2_leaf.c dep->namelen = args->namelen; namelen 817 fs/xfs/libxfs/xfs_dir2_leaf.c memcpy(dep->name, args->name, dep->namelen); namelen 1152 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir_cilookup_result(args, dep->name, dep->namelen); namelen 1250 fs/xfs/libxfs/xfs_dir2_leaf.c cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); namelen 1353 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); namelen 607 fs/xfs/libxfs/xfs_dir2_node.c length = dp->d_ops->data_entsize(args->namelen); namelen 816 fs/xfs/libxfs/xfs_dir2_node.c cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); namelen 1263 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); namelen 1872 fs/xfs/libxfs/xfs_dir2_node.c length = dp->d_ops->data_entsize(args->namelen); namelen 1927 fs/xfs/libxfs/xfs_dir2_node.c dep->namelen = args->namelen; namelen 1928 fs/xfs/libxfs/xfs_dir2_node.c memcpy(dep->name, args->name, dep->namelen); namelen 2062 fs/xfs/libxfs/xfs_dir2_node.c rval = xfs_dir_cilookup_result(args, dep->name, dep->namelen); namelen 62 fs/xfs/libxfs/xfs_dir2_sf.c int namelen; /* total name bytes */ namelen 77 fs/xfs/libxfs/xfs_dir2_sf.c count = i8count = namelen = 0; namelen 97 fs/xfs/libxfs/xfs_dir2_sf.c isdot = dep->namelen == 1 && dep->name[0] == '.'; namelen 99 fs/xfs/libxfs/xfs_dir2_sf.c dep->namelen == 2 && namelen 108 fs/xfs/libxfs/xfs_dir2_sf.c namelen += dep->namelen + has_ftype; namelen 116 fs/xfs/libxfs/xfs_dir2_sf.c namelen + /* name */ namelen 199 fs/xfs/libxfs/xfs_dir2_sf.c if (dep->namelen == 1 && dep->name[0] == '.') namelen 204 fs/xfs/libxfs/xfs_dir2_sf.c else if (dep->namelen == 2 && namelen 212 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen = dep->namelen; namelen 216 fs/xfs/libxfs/xfs_dir2_sf.c memcpy(sfep->name, dep->name, dep->namelen); namelen 224 fs/xfs/libxfs/xfs_dir2_sf.c ptr += dp->d_ops->data_entsize(dep->namelen); namelen 294 fs/xfs/libxfs/xfs_dir2_sf.c incr_isize = dp->d_ops->sf_entsize(sfp, args->namelen); namelen 378 fs/xfs/libxfs/xfs_dir2_sf.c xfs_idata_realloc(dp, dp->d_ops->sf_entsize(sfp, args->namelen), namelen 388 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen = args->namelen; namelen 390 fs/xfs/libxfs/xfs_dir2_sf.c memcpy(sfep->name, args->name, sfep->namelen); namelen 449 fs/xfs/libxfs/xfs_dir2_sf.c add_datasize = dp->d_ops->data_entsize(args->namelen), namelen 452 fs/xfs/libxfs/xfs_dir2_sf.c offset = new_offset + dp->d_ops->data_entsize(oldsfep->namelen), namelen 479 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen = args->namelen; namelen 481 fs/xfs/libxfs/xfs_dir2_sf.c memcpy(sfep->name, args->name, sfep->namelen); namelen 525 fs/xfs/libxfs/xfs_dir2_sf.c size = dp->d_ops->data_entsize(args->namelen); namelen 538 fs/xfs/libxfs/xfs_dir2_sf.c dp->d_ops->data_entsize(sfep->namelen); namelen 604 fs/xfs/libxfs/xfs_dir2_sf.c dp->d_ops->data_entsize(sfep->namelen); namelen 675 fs/xfs/libxfs/xfs_dir2_sf.c if (sfep->namelen == 0) namelen 704 fs/xfs/libxfs/xfs_dir2_sf.c dops->data_entsize(sfep->namelen); namelen 810 fs/xfs/libxfs/xfs_dir2_sf.c if (args->namelen == 1 && args->name[0] == '.') { namelen 819 fs/xfs/libxfs/xfs_dir2_sf.c if (args->namelen == 2 && namelen 838 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen); namelen 856 fs/xfs/libxfs/xfs_dir2_sf.c error = xfs_dir_cilookup_result(args, ci_sfep->name, ci_sfep->namelen); namelen 899 fs/xfs/libxfs/xfs_dir2_sf.c if (xfs_da_compname(args, sfep->name, sfep->namelen) == namelen 915 fs/xfs/libxfs/xfs_dir2_sf.c entsize = dp->d_ops->sf_entsize(sfp, args->namelen); namelen 1005 fs/xfs/libxfs/xfs_dir2_sf.c ASSERT(args->namelen != 1 || args->name[0] != '.'); namelen 1009 fs/xfs/libxfs/xfs_dir2_sf.c if (args->namelen == 2 && namelen 1021 fs/xfs/libxfs/xfs_dir2_sf.c if (xfs_da_compname(args, sfep->name, sfep->namelen) == namelen 1128 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen = oldsfep->namelen; namelen 1130 fs/xfs/libxfs/xfs_dir2_sf.c memcpy(sfep->name, oldsfep->name, sfep->namelen); namelen 1201 fs/xfs/libxfs/xfs_dir2_sf.c sfep->namelen = oldsfep->namelen; namelen 1203 fs/xfs/libxfs/xfs_dir2_sf.c memcpy(sfep->name, oldsfep->name, sfep->namelen); namelen 111 fs/xfs/scrub/attr.c int namelen, namelen 132 fs/xfs/scrub/attr.c if (!xfs_attr_namecheck(name, namelen)) { namelen 159 fs/xfs/scrub/attr.c args.namelen = namelen; namelen 160 fs/xfs/scrub/attr.c args.hashval = xfs_da_hashname(args.name, args.namelen); namelen 279 fs/xfs/scrub/attr.c namesize = xfs_attr_leaf_entsize_local(lentry->namelen, namelen 282 fs/xfs/scrub/attr.c if (lentry->namelen == 0) namelen 286 fs/xfs/scrub/attr.c namesize = xfs_attr_leaf_entsize_remote(rentry->namelen); namelen 288 fs/xfs/scrub/attr.c if (rentry->namelen == 0 || rentry->valueblk == 0) namelen 449 fs/xfs/scrub/attr.c if (lentry->namelen <= 0) { namelen 453 fs/xfs/scrub/attr.c calc_hash = xfs_da_hashname(lentry->nameval, lentry->namelen); namelen 457 fs/xfs/scrub/attr.c if (rentry->namelen <= 0) { namelen 461 fs/xfs/scrub/attr.c calc_hash = xfs_da_hashname(rentry->name, rentry->namelen); namelen 97 fs/xfs/scrub/dir.c int namelen, namelen 123 fs/xfs/scrub/dir.c if (!xfs_dir2_namecheck(name, namelen)) { namelen 128 fs/xfs/scrub/dir.c if (!strncmp(".", name, namelen)) { namelen 136 fs/xfs/scrub/dir.c } else if (!strncmp("..", name, namelen)) { namelen 151 fs/xfs/scrub/dir.c xname.len = namelen; namelen 254 fs/xfs/scrub/dir.c p += mp->m_dir_inode_ops->data_entsize(dep->namelen); namelen 267 fs/xfs/scrub/dir.c if (dent->namelen == 0) { namelen 271 fs/xfs/scrub/dir.c calc_hash = xfs_da_hashname(dent->name, dent->namelen); namelen 397 fs/xfs/scrub/dir.c newlen = d_ops->data_entsize(dep->namelen); namelen 44 fs/xfs/scrub/parent.c int namelen, namelen 90 fs/xfs/xfs_attr_list.c (int)sfe->namelen, namelen 132 fs/xfs/xfs_attr_list.c sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); namelen 134 fs/xfs/xfs_attr_list.c sbp->namelen = sfe->namelen; namelen 180 fs/xfs/xfs_attr_list.c sbp->namelen, namelen 433 fs/xfs/xfs_attr_list.c int namelen, valuelen; namelen 449 fs/xfs/xfs_attr_list.c namelen = name_loc->namelen; namelen 456 fs/xfs/xfs_attr_list.c namelen = name_rmt->namelen; namelen 461 fs/xfs/xfs_attr_list.c name, namelen, valuelen); namelen 532 fs/xfs/xfs_attr_list.c #define ATTR_ENTSIZE(namelen) /* actual bytes used by an attr */ \ namelen 533 fs/xfs/xfs_attr_list.c ((ATTR_ENTBASESIZE + (namelen) + 1 + sizeof(uint32_t)-1) \ namelen 546 fs/xfs/xfs_attr_list.c int namelen, namelen 572 fs/xfs/xfs_attr_list.c context->firstu -= ATTR_ENTSIZE(namelen); namelen 582 fs/xfs/xfs_attr_list.c memcpy(aep->a_name, name, namelen); namelen 583 fs/xfs/xfs_attr_list.c aep->a_name[namelen] = 0; namelen 118 fs/xfs/xfs_dir2_readdir.c if (!dir_emit(ctx, (char *)sfep->name, sfep->namelen, ino, namelen 196 fs/xfs/xfs_dir2_readdir.c ptr += dp->d_ops->data_entsize(dep->namelen); namelen 211 fs/xfs/xfs_dir2_readdir.c if (!dir_emit(ctx, (char *)dep->name, dep->namelen, namelen 424 fs/xfs/xfs_dir2_readdir.c dp->d_ops->data_entsize(dep->namelen); namelen 455 fs/xfs/xfs_dir2_readdir.c length = dp->d_ops->data_entsize(dep->namelen); namelen 459 fs/xfs/xfs_dir2_readdir.c if (!dir_emit(ctx, (char *)dep->name, dep->namelen, namelen 80 fs/xfs/xfs_ondisk.h XFS_CHECK_OFFSET(xfs_attr_leaf_name_local_t, namelen, 2); namelen 84 fs/xfs/xfs_ondisk.h XFS_CHECK_OFFSET(xfs_attr_leaf_name_remote_t, namelen, 8); namelen 89 fs/xfs/xfs_ondisk.h XFS_CHECK_OFFSET(xfs_attr_shortform_t, list[0].namelen, 4); namelen 108 fs/xfs/xfs_ondisk.h XFS_CHECK_OFFSET(xfs_dir2_sf_entry_t, namelen, 0); namelen 795 fs/xfs/xfs_trace.h __field(int, namelen) namelen 801 fs/xfs/xfs_trace.h __entry->namelen = name->len; namelen 807 fs/xfs/xfs_trace.h __entry->namelen, namelen 1672 fs/xfs/xfs_trace.h __dynamic_array(char, name, args->namelen) namelen 1673 fs/xfs/xfs_trace.h __field(int, namelen) namelen 1681 fs/xfs/xfs_trace.h if (args->namelen) namelen 1682 fs/xfs/xfs_trace.h memcpy(__get_str(name), args->name, args->namelen); namelen 1683 fs/xfs/xfs_trace.h __entry->namelen = args->namelen; namelen 1692 fs/xfs/xfs_trace.h __entry->namelen, namelen 1693 fs/xfs/xfs_trace.h __entry->namelen ? __get_str(name) : NULL, namelen 1694 fs/xfs/xfs_trace.h __entry->namelen, namelen 1736 fs/xfs/xfs_trace.h __dynamic_array(char, name, args->namelen) namelen 1737 fs/xfs/xfs_trace.h __field(int, namelen) namelen 1746 fs/xfs/xfs_trace.h if (args->namelen) namelen 1747 fs/xfs/xfs_trace.h memcpy(__get_str(name), args->name, args->namelen); namelen 1748 fs/xfs/xfs_trace.h __entry->namelen = args->namelen; namelen 1758 fs/xfs/xfs_trace.h __entry->namelen, namelen 1759 fs/xfs/xfs_trace.h __entry->namelen ? __get_str(name) : NULL, namelen 1760 fs/xfs/xfs_trace.h __entry->namelen, namelen 124 fs/xfs/xfs_xattr.c int namelen) namelen 135 fs/xfs/xfs_xattr.c arraytop = context->count + prefix_len + namelen + 1; namelen 144 fs/xfs/xfs_xattr.c strncpy(offset, (char *)name, namelen); /* real name */ namelen 145 fs/xfs/xfs_xattr.c offset += namelen; namelen 149 fs/xfs/xfs_xattr.c context->count += prefix_len + namelen + 1; namelen 158 fs/xfs/xfs_xattr.c int namelen, namelen 168 fs/xfs/xfs_xattr.c if (namelen == SGI_ACL_FILE_SIZE && namelen 176 fs/xfs/xfs_xattr.c } else if (namelen == SGI_ACL_DEFAULT_SIZE && namelen 205 fs/xfs/xfs_xattr.c namelen); namelen 138 include/linux/dlm.h unsigned int namelen, namelen 30 include/linux/dns_resolver.h extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen, namelen 3547 include/linux/fs.h const char *name, int namelen, namelen 3550 include/linux/fs.h return ctx->actor(ctx, name, namelen, ctx->pos, ino, type) == 0; namelen 166 include/linux/nfs_fs_sb.h unsigned int namelen; namelen 522 include/net/9p/9p.h u32 namelen; namelen 457 include/sound/hda_codec.h void snd_hda_get_codec_name(struct hda_codec *codec, char *name, int namelen); namelen 42 include/uapi/linux/cramfs_fs.h __u32 namelen:CRAMFS_NAMELEN_WIDTH, offset:CRAMFS_OFFSET_WIDTH; namelen 35 include/uapi/linux/dlm_device.h __u8 namelen; namelen 244 include/uapi/linux/fuse.h uint32_t namelen; namelen 806 include/uapi/linux/fuse.h uint32_t namelen; namelen 815 include/uapi/linux/fuse.h FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) namelen 825 include/uapi/linux/fuse.h FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen) namelen 835 include/uapi/linux/fuse.h uint32_t namelen; namelen 842 include/uapi/linux/fuse.h uint32_t namelen; namelen 489 include/xen/interface/platform.h uint32_t namelen; /* size of 'name' buffer */ namelen 412 kernel/locking/lockdep_proc.c int i, namelen; namelen 418 kernel/locking/lockdep_proc.c namelen = 38; namelen 420 kernel/locking/lockdep_proc.c namelen -= 2; /* XXX truncates versions > 9 */ namelen 422 kernel/locking/lockdep_proc.c namelen -= 2; namelen 437 kernel/locking/lockdep_proc.c snprintf(name, namelen, "%s", key_name); namelen 439 kernel/locking/lockdep_proc.c snprintf(name, namelen, "%s", cname); namelen 443 kernel/locking/lockdep_proc.c namelen = strlen(name); namelen 445 kernel/locking/lockdep_proc.c snprintf(name+namelen, 3, "#%d", class->name_version); namelen 446 kernel/locking/lockdep_proc.c namelen += 2; namelen 449 kernel/locking/lockdep_proc.c snprintf(name+namelen, 3, "/%d", class->subclass); namelen 450 kernel/locking/lockdep_proc.c namelen += 2; namelen 479 kernel/locking/lockdep_proc.c namelen += 2; namelen 488 kernel/locking/lockdep_proc.c seq_line(m, '-', 40-namelen, namelen); namelen 503 kernel/locking/lockdep_proc.c seq_line(m, '-', 40-namelen, namelen); namelen 1915 net/9p/client.c &sb->files, &sb->ffree, &sb->fsid, &sb->namelen); namelen 1927 net/9p/client.c sb->fsid, (long int)sb->namelen); namelen 34 net/9p/error.c int namelen; namelen 189 net/9p/error.c c->namelen = strlen(c->name); namelen 190 net/9p/error.c bucket = jhash(c->name, c->namelen, 0) % ERRHASHSZ; namelen 216 net/9p/error.c if (c->namelen == len && !memcmp(c->name, errstr, len)) { namelen 1866 net/ceph/messenger.c static int ceph_dns_resolve_name(const char *name, size_t namelen, namelen 1877 net/ceph/messenger.c delim_p = memchr(name, delim, namelen); namelen 1878 net/ceph/messenger.c colon_p = memchr(name, ':', namelen); namelen 1887 net/ceph/messenger.c end = name + namelen; namelen 1911 net/ceph/messenger.c static inline int ceph_dns_resolve_name(const char *name, size_t namelen, namelen 1922 net/ceph/messenger.c static int ceph_parse_server_name(const char *name, size_t namelen, namelen 1927 net/ceph/messenger.c ret = ceph_pton(name, namelen, addr, delim, ipend); namelen 1929 net/ceph/messenger.c ret = ceph_dns_resolve_name(name, namelen, addr, delim, ipend); namelen 75 net/dns_resolver/dns_query.c const char *type, const char *name, size_t namelen, namelen 87 net/dns_resolver/dns_query.c type, (int)namelen, (int)namelen, name, namelen, options); namelen 89 net/dns_resolver/dns_query.c if (!name || namelen == 0) namelen 102 net/dns_resolver/dns_query.c if (namelen < 3 || namelen > 255) namelen 104 net/dns_resolver/dns_query.c desclen += namelen + 1; namelen 116 net/dns_resolver/dns_query.c memcpy(cp, name, namelen); namelen 117 net/dns_resolver/dns_query.c cp += namelen; namelen 1121 net/rds/send.c int namelen; namelen 1137 net/rds/send.c namelen = msg->msg_namelen; namelen 1138 net/rds/send.c if (namelen != 0) { namelen 1139 net/rds/send.c if (namelen < sizeof(*usin)) { namelen 1159 net/rds/send.c if (namelen < sizeof(*sin6)) { namelen 1215 net/rds/send.c } else if (namelen != 0) { namelen 1589 net/unix/af_unix.c int namelen = 0; /* fake GCC */ namelen 1611 net/unix/af_unix.c namelen = err; namelen 1662 net/unix/af_unix.c other = unix_find_other(net, sunaddr, namelen, sk->sk_type, namelen 39 scripts/dtc/fdtput.c static void report_error(const char *name, int namelen, int err) namelen 41 scripts/dtc/fdtput.c if (namelen == -1) namelen 42 scripts/dtc/fdtput.c namelen = strlen(name); namelen 43 scripts/dtc/fdtput.c fprintf(stderr, "Error at '%1.*s': %s\n", namelen, name, namelen 652 scripts/dtc/libfdt/fdt_overlay.c int len = 0, namelen; namelen 658 scripts/dtc/libfdt/fdt_overlay.c name = fdt_get_name(fdt, nodeoffset, &namelen); namelen 660 scripts/dtc/libfdt/fdt_overlay.c return namelen; namelen 663 scripts/dtc/libfdt/fdt_overlay.c if (namelen == 0) namelen 669 scripts/dtc/libfdt/fdt_overlay.c len += namelen + 1; namelen 211 scripts/dtc/libfdt/fdt_ro.c const char *name, int namelen) namelen 221 scripts/dtc/libfdt/fdt_ro.c && fdt_nodename_eq_(fdt, offset, name, namelen)) namelen 235 scripts/dtc/libfdt/fdt_ro.c int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) namelen 237 scripts/dtc/libfdt/fdt_ro.c const char *end = path + namelen; namelen 381 scripts/dtc/libfdt/fdt_ro.c int namelen, namelen 395 scripts/dtc/libfdt/fdt_ro.c name, namelen)) { namelen 411 scripts/dtc/libfdt/fdt_ro.c int namelen, int *lenp) namelen 421 scripts/dtc/libfdt/fdt_ro.c return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, namelen 435 scripts/dtc/libfdt/fdt_ro.c const char *name, int namelen, int *lenp) namelen 440 scripts/dtc/libfdt/fdt_ro.c prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, namelen 462 scripts/dtc/libfdt/fdt_ro.c int namelen; namelen 464 scripts/dtc/libfdt/fdt_ro.c &namelen); namelen 467 scripts/dtc/libfdt/fdt_ro.c *lenp = namelen; namelen 504 scripts/dtc/libfdt/fdt_ro.c const char *name, int namelen) namelen 512 scripts/dtc/libfdt/fdt_ro.c return fdt_getprop_namelen(fdt, aliasoffset, name, namelen, NULL); namelen 523 scripts/dtc/libfdt/fdt_ro.c int offset, depth, namelen; namelen 542 scripts/dtc/libfdt/fdt_ro.c name = fdt_get_name(fdt, offset, &namelen); namelen 544 scripts/dtc/libfdt/fdt_ro.c return namelen; namelen 545 scripts/dtc/libfdt/fdt_ro.c if ((p + namelen + 1) <= buflen) { namelen 546 scripts/dtc/libfdt/fdt_ro.c memcpy(buf + p, name, namelen); namelen 547 scripts/dtc/libfdt/fdt_ro.c p += namelen; namelen 319 scripts/dtc/libfdt/fdt_rw.c const char *name, int namelen) namelen 330 scripts/dtc/libfdt/fdt_rw.c offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); namelen 344 scripts/dtc/libfdt/fdt_rw.c nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; namelen 351 scripts/dtc/libfdt/fdt_rw.c memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); namelen 352 scripts/dtc/libfdt/fdt_rw.c memcpy(nh->name, name, namelen); namelen 214 scripts/dtc/libfdt/fdt_sw.c int namelen; namelen 218 scripts/dtc/libfdt/fdt_sw.c namelen = strlen(name) + 1; namelen 219 scripts/dtc/libfdt/fdt_sw.c nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); namelen 224 scripts/dtc/libfdt/fdt_sw.c memcpy(nh->name, name, namelen); namelen 14 scripts/dtc/libfdt/fdt_wip.c const char *name, int namelen, namelen 21 scripts/dtc/libfdt/fdt_wip.c propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, namelen 451 scripts/dtc/libfdt/libfdt.h const char *name, int namelen); namelen 489 scripts/dtc/libfdt/libfdt.h int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen); namelen 656 scripts/dtc/libfdt/libfdt.h int namelen, int *lenp); namelen 746 scripts/dtc/libfdt/libfdt.h const char *name, int namelen, int *lenp); namelen 748 scripts/dtc/libfdt/libfdt.h const char *name, int namelen, namelen 752 scripts/dtc/libfdt/libfdt.h namelen, lenp); namelen 817 scripts/dtc/libfdt/libfdt.h const char *name, int namelen); namelen 1218 scripts/dtc/libfdt/libfdt.h const char *name, int namelen, namelen 1975 scripts/dtc/libfdt/libfdt.h const char *name, int namelen); namelen 1339 scripts/mod/file2alias.c static bool sym_is(const char *name, unsigned namelen, const char *symbol) namelen 1341 scripts/mod/file2alias.c if (namelen != strlen(symbol)) namelen 1344 scripts/mod/file2alias.c return memcmp(name, symbol, namelen) == 0; namelen 1421 scripts/mod/file2alias.c unsigned int namelen; namelen 1435 scripts/mod/file2alias.c namelen = strlen(name); namelen 1436 scripts/mod/file2alias.c if (namelen < strlen("_device_table")) namelen 1438 scripts/mod/file2alias.c if (strcmp(name + namelen - strlen("_device_table"), "_device_table")) namelen 1443 scripts/mod/file2alias.c namelen = identifier - name; namelen 1456 scripts/mod/file2alias.c if (sym_is(name, namelen, "usb")) namelen 1458 scripts/mod/file2alias.c if (sym_is(name, namelen, "of")) namelen 1460 scripts/mod/file2alias.c else if (sym_is(name, namelen, "pnp")) namelen 1462 scripts/mod/file2alias.c else if (sym_is(name, namelen, "pnp_card")) namelen 1470 scripts/mod/file2alias.c if (sym_is(name, namelen, p->device_id)) { namelen 25 security/apparmor/path.c static int prepend(char **buffer, int buflen, const char *str, int namelen) namelen 27 security/apparmor/path.c buflen -= namelen; namelen 30 security/apparmor/path.c *buffer -= namelen; namelen 31 security/apparmor/path.c memcpy(*buffer, str, namelen); namelen 228 security/integrity/evm/evm_main.c int namelen; namelen 232 security/integrity/evm/evm_main.c namelen = strlen(req_xattr_name); namelen 234 security/integrity/evm/evm_main.c if ((strlen(xattr->name) == namelen) namelen 235 security/integrity/evm/evm_main.c && (strncmp(req_xattr_name, xattr->name, namelen) == 0)) { namelen 134 security/integrity/ima/ima_fs.c u32 pcr, namelen, template_data_len; /* temporary fields */ namelen 158 security/integrity/ima/ima_fs.c namelen = !ima_canonical_fmt ? strlen(template_name) : namelen 160 security/integrity/ima/ima_fs.c ima_putc(m, &namelen, sizeof(namelen)); namelen 1060 tools/perf/builtin-trace.c unsigned int namelen; namelen 2248 tools/perf/builtin-trace.c if (ttrace->filename.namelen < filename_len) { namelen 2254 tools/perf/builtin-trace.c ttrace->filename.namelen = filename_len; namelen 89 tools/perf/util/hist.c symlen = h->ms.sym->namelen + 4; namelen 109 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen); namelen 113 tools/perf/util/hist.c symlen = (int)h->branch_info->from.sym->namelen + 4; namelen 127 tools/perf/util/hist.c symlen = (int)h->branch_info->to.sym->namelen + 4; namelen 150 tools/perf/util/hist.c symlen = (int)h->mem_info->daddr.sym->namelen + 4 namelen 165 tools/perf/util/hist.c symlen = (int)h->mem_info->iaddr.sym->namelen + 4 namelen 307 tools/perf/util/scripting-engines/trace-event-perl.c node->sym->namelen)) || namelen 443 tools/perf/util/scripting-engines/trace-event-python.c node->sym->namelen)); namelen 2000 tools/perf/util/sort.c int namelen = strlen(hde->field->name); namelen 2003 tools/perf/util/sort.c if (namelen > len) namelen 2004 tools/perf/util/sort.c len = namelen; namelen 2023 tools/perf/util/sort.c size_t namelen; namelen 2033 tools/perf/util/sort.c namelen = strlen(field->name); namelen 2043 tools/perf/util/sort.c if (!strncmp(str, field->name, namelen)) { namelen 2046 tools/perf/util/sort.c str += namelen + 1; namelen 2108 tools/perf/util/sort.c size_t namelen; namelen 2124 tools/perf/util/sort.c namelen = strlen(field->name); namelen 2134 tools/perf/util/sort.c if (!strncmp(str, field->name, namelen)) { namelen 2135 tools/perf/util/sort.c str += namelen + 1; namelen 557 tools/perf/util/srcline.c strndup(sym->name, sym->namelen) : NULL; namelen 272 tools/perf/util/symbol.c size_t namelen = strlen(name) + 1; namelen 274 tools/perf/util/symbol.c sizeof(*sym) + namelen)); namelen 290 tools/perf/util/symbol.c sym->namelen = namelen - 1; namelen 294 tools/perf/util/symbol.c memcpy(sym->name, name, namelen); namelen 49 tools/perf/util/symbol.h u16 namelen;