/openbmc/u-boot/fs/cramfs/ |
H A D | cramfs.c | 125 int namelen; in cramfs_resolve() local 135 namelen = CRAMFS_GET_NAMELEN (inode) << 2; in cramfs_resolve() 139 inodeoffset + sizeof (struct cramfs_inode) + namelen; in cramfs_resolve() 142 if (!namelen) in cramfs_resolve() 144 if (name[namelen - 1]) in cramfs_resolve() 146 namelen--; in cramfs_resolve() 149 if (!strncmp(filename, name, namelen) && in cramfs_resolve() 150 (namelen == strlen(filename))) { in cramfs_resolve() 177 namelen, namelen, name); in cramfs_resolve() 194 namelen, namelen, name, in cramfs_resolve() [all …]
|
/openbmc/linux/drivers/xen/xenfs/ |
H A D | xensyms.c | 19 uint32_t namelen; member 29 memset(xs->name, 0, xs->namelen); in xensyms_next_sym() 30 symdata->namelen = xs->namelen; in xensyms_next_sym() 42 if (unlikely(symdata->namelen > xs->namelen)) { in xensyms_next_sym() 45 xs->namelen = symdata->namelen; in xensyms_next_sym() 46 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_next_sym() 125 xs->namelen = XEN_KSYM_NAME_LEN + 1; in xensyms_open() 126 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_open() 133 xs->op.u.symdata.namelen = xs->namelen; in xensyms_open()
|
/openbmc/linux/net/dns_resolver/ |
H A D | dns_query.c | 75 const char *type, const char *name, size_t namelen, in dns_query() argument 87 type, (int)namelen, (int)namelen, name, namelen, options); in dns_query() 89 if (!name || namelen == 0) in dns_query() 102 if (namelen < 3 || namelen > 255) in dns_query() 104 desclen += namelen + 1; in dns_query() 116 memcpy(cp, name, namelen); in dns_query() 117 cp += namelen; in dns_query()
|
/openbmc/linux/fs/ocfs2/dlm/ |
H A D | dlmmaster.c | 56 unsigned int namelen) in dlm_mle_equal() argument 61 if (namelen != mle->mnamelen || in dlm_mle_equal() 62 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal() 78 unsigned int namelen); 83 char *name, unsigned int namelen); 101 const char *name, unsigned int namelen, 253 unsigned int namelen) in dlm_init_mle() argument 284 memcpy(mle->mname, name, namelen); in dlm_init_mle() 285 mle->mnamelen = namelen; in dlm_init_mle() 286 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen); in xfs_dir2_sf_nextentry() 77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino() 94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino() 139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype() 157 sfep->name[sfep->namelen] = ftype; in xfs_dir2_sf_put_ftype() 182 int namelen; /* total name bytes */ in xfs_dir2_block_sfsize() local 197 count = i8count = namelen = 0; in xfs_dir2_block_sfsize() 217 isdot = dep->namelen == 1 && dep->name[0] == '.'; in xfs_dir2_block_sfsize() 219 dep->namelen == 2 && in xfs_dir2_block_sfsize() 228 namelen += dep->namelen + has_ftype; in xfs_dir2_block_sfsize() [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | write.c | 207 uint32_t namelen, int alloc_mode) in jffs2_write_dirent() argument 226 if (strnlen(name, namelen) != namelen) { in jffs2_write_dirent() 240 vecs[1].iov_len = namelen; in jffs2_write_dirent() 242 fd = jffs2_alloc_full_dirent(namelen+1); in jffs2_write_dirent() 248 fd->nhash = full_name_hash(NULL, name, namelen); in jffs2_write_dirent() 250 memcpy(fd->name, name, namelen); in jffs2_write_dirent() 251 fd->name[namelen]=0; in jffs2_write_dirent() 270 if (ret || (retlen != sizeof(*rd) + namelen)) { in jffs2_write_dirent() 272 sizeof(*rd) + namelen, flash_ofs, ret, retlen); in jffs2_write_dirent() 275 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*rd)+namelen), NULL); in jffs2_write_dirent() [all …]
|
H A D | dir.c | 293 int namelen; in jffs2_symlink() local 312 namelen = dentry->d_name.len; in jffs2_symlink() 384 ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, in jffs2_symlink() 385 ALLOC_NORMAL, JFFS2_SUMMARY_DIRENT_SIZE(namelen)); in jffs2_symlink() 402 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink() 409 rd->nsize = namelen; in jffs2_symlink() 412 rd->name_crc = cpu_to_je32(crc32(0, dentry->d_name.name, namelen)); in jffs2_symlink() 414 fd = jffs2_write_dirent(c, dir_f, rd, dentry->d_name.name, namelen, ALLOC_NORMAL); in jffs2_symlink() 457 int namelen; in jffs2_mkdir() local 472 namelen = dentry->d_name.len; in jffs2_mkdir() [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_xattr.c | 133 .namelen = strlen(name), in xfs_xattr_get() 156 .namelen = strlen(name), in xfs_xattr_set() 202 int namelen) in __xfs_xattr_put_listent() argument 213 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 222 strncpy(offset, (char *)name, namelen); /* real name */ in __xfs_xattr_put_listent() 223 offset += namelen; in __xfs_xattr_put_listent() 227 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 236 int namelen, in xfs_xattr_put_listent() argument 246 if (namelen == SGI_ACL_FILE_SIZE && in xfs_xattr_put_listent() 254 } else if (namelen == SGI_ACL_DEFAULT_SIZE && in xfs_xattr_put_listent() [all …]
|
H A D | xfs_attr_list.c | 87 sfe->namelen))) in xfs_attr_shortform_list() 92 (int)sfe->namelen, in xfs_attr_shortform_list() 135 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list() 137 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list() 180 sbp->namelen))) { in xfs_attr_shortform_list() 187 sbp->namelen, in xfs_attr_shortform_list() 442 int namelen, valuelen; in xfs_attr3_leaf_list_int() local 458 namelen = name_loc->namelen; in xfs_attr3_leaf_list_int() 465 namelen = name_rmt->namelen; in xfs_attr3_leaf_list_int() 471 namelen))) in xfs_attr3_leaf_list_int() [all …]
|
/openbmc/linux/fs/efs/ |
H A D | dir.c | 65 int namelen; in efs_readdir() local 73 namelen = dirslot->namelen; in efs_readdir() 77 inodenum, nameptr, namelen); in efs_readdir() 78 if (!namelen) in efs_readdir() 84 if (nameptr - (char *) dirblock + namelen > EFS_DIRBSIZE) { in efs_readdir() 91 if (!dir_emit(ctx, nameptr, namelen, inodenum, DT_UNKNOWN)) { in efs_readdir()
|
/openbmc/linux/fs/dlm/ |
H A D | dir.c | 66 uint16_t namelen; in dlm_recover_directory() local 115 namelen = be16_to_cpu(v); in dlm_recover_directory() 123 if (namelen == 0xFFFF) in dlm_recover_directory() 125 if (!namelen) in dlm_recover_directory() 128 if (namelen > left) in dlm_recover_directory() 131 if (namelen > DLM_RESNAME_MAXLEN) in dlm_recover_directory() 135 b, namelen, in dlm_recover_directory() 158 b, namelen); in dlm_recover_directory() 176 last_len = namelen; in dlm_recover_directory() 177 memcpy(last_name, b, namelen); in dlm_recover_directory() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | dns_resolve.c | 20 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument 28 ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, in nfs_dns_resolve_name() 63 size_t namelen; member 94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 96 new->namelen = key->namelen; in nfs_dns_ent_init() 99 new->namelen = 0; in nfs_dns_ent_init() 127 item->namelen = 0; in nfs_dns_ent_alloc() 171 if (a->namelen == 0 || a->namelen != b->namelen) in nfs_dns_match() 173 return memcmp(a->hostname, b->hostname, a->namelen) == 0; in nfs_dns_match() 253 key.namelen = len; in nfs_dns_parse() [all …]
|
H A D | nfs4idmap.c | 165 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) in nfs_map_string_to_numeric() argument 170 if (memchr(name, '@', namelen) != NULL || namelen >= sizeof(buf)) in nfs_map_string_to_numeric() 172 memcpy(buf, name, namelen); in nfs_map_string_to_numeric() 173 buf[namelen] = '\0'; in nfs_map_string_to_numeric() 258 static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, in nfs_idmap_get_desc() argument 262 size_t desclen = typelen + namelen + 2; in nfs_idmap_get_desc() 273 memcpy(cp, name, namelen); in nfs_idmap_get_desc() 274 cp += namelen; in nfs_idmap_get_desc() 279 static struct key *nfs_idmap_request_key(const char *name, size_t namelen, in nfs_idmap_request_key() argument 286 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key() [all …]
|
H A D | namespace.c | 56 int namelen; in nfs_path() local 75 namelen = dentry->d_name.len; in nfs_path() 76 buflen -= namelen + 1; in nfs_path() 79 end -= namelen; in nfs_path() 80 memcpy(end, dentry->d_name.name, namelen); in nfs_path() 106 namelen = strlen(base); in nfs_path() 109 while (namelen > 0 && base[namelen - 1] == '/') in nfs_path() 110 namelen--; in nfs_path() 112 buflen -= namelen; in nfs_path() 118 end -= namelen; in nfs_path() [all …]
|
/openbmc/linux/fs/omfs/ |
H A D | dir.c | 12 static int omfs_hash(const char *name, int namelen, int mod) in omfs_hash() argument 15 for (i = 0; i < namelen; i++) in omfs_hash() 25 const char *name, int namelen, int *ofs) in omfs_get_bucket() argument 28 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket() 35 const char *name, int namelen, in omfs_scan_list() argument 56 if (strncmp(oi->i_name, name, namelen) == 0) in omfs_scan_list() 68 const char *name, int namelen) in omfs_find_entry() argument 74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry() 81 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry() 115 int namelen = dentry->d_name.len; in omfs_add_link() local [all …]
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 226 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 236 && fdt_nodename_eq_(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 250 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 252 const char *end = path + namelen; in fdt_path_offset_namelen() 397 int namelen, in fdt_get_property_namelen_() argument 412 name, namelen)) { in fdt_get_property_namelen_() 428 int namelen, int *lenp) in fdt_get_property_namelen() argument 438 return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, in fdt_get_property_namelen() 452 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument 457 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() [all …]
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_ro.c | 160 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 170 && fdt_nodename_eq_(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 184 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 186 const char *end = path + namelen; in fdt_path_offset_namelen() 330 int namelen, in fdt_get_property_namelen_() argument 344 name, namelen)) { in fdt_get_property_namelen_() 360 int namelen, int *lenp) in fdt_get_property_namelen() argument 370 return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, in fdt_get_property_namelen() 384 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument 389 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() [all …]
|
/openbmc/u-boot/lib/libfdt/ |
H A D | fdt_ro.c | 118 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 128 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 161 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 163 const char *end = path + namelen; in fdt_path_offset_namelen() 171 const char *q = fdt_path_next_separator(path, namelen); in fdt_path_offset_namelen() 274 int namelen, int *lenp) in fdt_get_property_namelen() argument 286 name, namelen)) in fdt_get_property_namelen() 304 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument 308 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen() 352 const char *name, int namelen) in fdt_get_alias_namelen() argument [all …]
|
/openbmc/linux/fs/afs/ |
H A D | xattr.c | 275 size_t namelen; in afs_xattr_get_cell() local 277 namelen = cell->name_len; in afs_xattr_get_cell() 279 return namelen; in afs_xattr_get_cell() 280 if (namelen > size) in afs_xattr_get_cell() 282 memcpy(buffer, cell->name, namelen); in afs_xattr_get_cell() 283 return namelen; in afs_xattr_get_cell() 340 size_t namelen; in afs_xattr_get_volume() local 342 namelen = strlen(volname); in afs_xattr_get_volume() 344 return namelen; in afs_xattr_get_volume() 345 if (namelen > size) in afs_xattr_get_volume() [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | dir.h | 41 int ocfs2_find_entry(const char *name, int namelen, 49 const char *name, int namelen, 69 int namelen); 73 int namelen, 78 int namelen, u64 *blkno); 85 int namelen,
|
/openbmc/linux/fs/jfs/ |
H A D | xattr.c | 98 return ea->namelen; in name_size() 100 return ea->namelen + XATTR_OS2_PREFIX_LEN; in name_size() 105 int len = ea->namelen; in copy_name() 112 memcpy(buffer, ea->name, ea->namelen); in copy_name() 113 buffer[ea->namelen] = 0; in copy_name() 668 int namelen = strlen(name); in __jfs_setxattr() local 688 if ((namelen == ea->namelen) && in __jfs_setxattr() 689 (memcmp(name, ea->name, namelen) == 0)) { in __jfs_setxattr() 714 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr() 760 ea->namelen = namelen; in __jfs_setxattr() [all …]
|
/openbmc/linux/kernel/locking/ |
H A D | lockdep_proc.c | 464 int i, namelen; in seq_stats() local 470 namelen = 38; in seq_stats() 472 namelen -= 2; /* XXX truncates versions > 9 */ in seq_stats() 474 namelen -= 2; in seq_stats() 489 snprintf(name, namelen, "%s", key_name); in seq_stats() 491 snprintf(name, namelen, "%s", cname); in seq_stats() 495 namelen = strlen(name); in seq_stats() 497 snprintf(name+namelen, 3, "#%d", class->name_version); in seq_stats() 498 namelen += 2; in seq_stats() 501 snprintf(name+namelen, 3, "/%d", class->subclass); in seq_stats() [all …]
|
/openbmc/linux/fs/qnx4/ |
H A D | namei.c | 30 int namelen, thislen; in qnx4_match() local 39 namelen = QNX4_NAME_MAX; in qnx4_match() 41 namelen = QNX4_SHORT_NAME_MAX; in qnx4_match() 44 if ( thislen > namelen ) in qnx4_match() 45 thislen = namelen; in qnx4_match()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | attr.c | 158 int namelen, in xchk_xattr_listent() argument 168 .namelen = namelen, in xchk_xattr_listent() 169 .hashval = xfs_da_hashname(name, namelen), in xchk_xattr_listent() 197 if (!xfs_attr_namecheck(flags, name, namelen)) { in xchk_xattr_listent() 337 namesize = xfs_attr_leaf_entsize_local(lentry->namelen, in xchk_xattr_entry() 340 if (lentry->namelen == 0) in xchk_xattr_entry() 344 namesize = xfs_attr_leaf_entsize_remote(rentry->namelen); in xchk_xattr_entry() 346 if (rentry->namelen == 0 || rentry->valueblk == 0) in xchk_xattr_entry() 503 if (lentry->namelen <= 0) { in xchk_xattr_rec() 507 calc_hash = xfs_da_hashname(lentry->nameval, lentry->namelen); in xchk_xattr_rec() [all …]
|
/openbmc/linux/fs/nfsd/ |
H A D | nfs4idmap.c | 539 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument 548 if (namelen + 1 > sizeof(key.name)) in idmap_name_to_id() 550 memcpy(key.name, name, namelen); in idmap_name_to_id() 551 key.name[namelen] = '\0'; in idmap_name_to_id() 610 numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in numeric_name_to_id() argument 615 if (namelen + 1 > sizeof(buf)) in numeric_name_to_id() 619 memcpy(buf, name, namelen); in numeric_name_to_id() 620 buf[namelen] = '\0'; in numeric_name_to_id() 626 do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id) in do_name_to_id() argument 629 if (numeric_name_to_id(rqstp, type, name, namelen, id)) in do_name_to_id() [all …]
|