/linux/drivers/xen/xenfs/ |
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()
|
/linux/fs/ocfs2/dlm/ |
A D | dlmmaster.c | 56 unsigned int namelen) in dlm_mle_equal() argument 703 int namelen, in dlm_get_lock_resource() argument 1424 namelen = request->namelen; in dlm_master_request_handler() 1681 assert.namelen = namelen; in dlm_do_assert_master() 1707 namelen)) { in dlm_do_assert_master() 1776 namelen = assert->namelen; in dlm_assert_master_handler() 2228 deref.namelen = namelen; in dlm_drop_lockres_ref() 2268 namelen = deref->namelen; in dlm_deref_lockres_handler() 2360 namelen = deref->namelen; in dlm_deref_lockres_done_handler() 2422 deref.namelen = namelen; in dlm_drop_lockres_ref_done() [all …]
|
A D | dlmlock.c | 295 create.namelen = res->lockname.len; in dlm_send_remote_lock_request() 297 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request() 306 "currently.\n", dlm->name, create.namelen, in dlm_send_remote_lock_request() 450 unsigned int namelen; in dlm_create_lock_handler() local 458 namelen = create->namelen; in dlm_create_lock_handler() 463 dlm->name, create->node_idx, namelen, name); in dlm_create_lock_handler() 469 if (namelen > DLM_LOCKID_NAME_MAX) { in dlm_create_lock_handler() 491 res = dlm_lookup_lockres(dlm, name, namelen); in dlm_create_lock_handler() 542 const char *name, int namelen, dlm_astlockfunc_t *ast, in dlmlock() argument 645 if (namelen > DLM_LOCKID_NAME_MAX || namelen < 1) { in dlmlock() [all …]
|
/linux/net/dns_resolver/ |
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()
|
/linux/fs/xfs/libxfs/ |
A D | xfs_dir2_sf.c | 197 count = i8count = namelen = 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() 316 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf() 483 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_easy() 573 sfep->namelen = args->namelen; in xfs_dir2_sf_addname_hard() 760 if (sfep->namelen == 0) in xfs_dir2_sf_verify() 896 if (args->namelen == 2 && in xfs_dir2_sf_lookup() 1089 if (args->namelen == 2 && in xfs_dir2_sf_replace() 1208 sfep->namelen = oldsfep->namelen; in xfs_dir2_sf_toino4() [all …]
|
/linux/fs/jffs2/ |
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() 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() 582 rd->nsize = namelen; in jffs2_do_unlink() 611 !memcmp(fd->name, name, namelen) && in jffs2_do_unlink() 612 !fd->name[namelen]) { in jffs2_do_unlink() [all …]
|
A D | dir.c | 292 int namelen; in jffs2_symlink() local 311 namelen = dentry->d_name.len; in jffs2_symlink() 401 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink() 408 rd->nsize = namelen; in jffs2_symlink() 455 int namelen; in jffs2_mkdir() local 470 namelen = dentry->d_name.len; in jffs2_mkdir() 545 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_mkdir() 552 rd->nsize = namelen; in jffs2_mkdir() 627 int namelen; in jffs2_mknod() local 645 namelen = dentry->d_name.len; in jffs2_mknod() [all …]
|
/linux/fs/xfs/ |
A D | xfs_xattr.c | 30 .namelen = strlen(name), in xfs_xattr_get() 53 .namelen = strlen(name), in xfs_xattr_set() 103 int namelen) in __xfs_xattr_put_listent() argument 114 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 123 strncpy(offset, (char *)name, namelen); /* real name */ in __xfs_xattr_put_listent() 124 offset += namelen; in __xfs_xattr_put_listent() 128 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 137 int namelen, in xfs_xattr_put_listent() argument 147 if (namelen == SGI_ACL_FILE_SIZE && in xfs_xattr_put_listent() 155 } else if (namelen == SGI_ACL_DEFAULT_SIZE && in xfs_xattr_put_listent() [all …]
|
A D | xfs_attr_list.c | 86 sfe->namelen))) in xfs_attr_shortform_list() 91 (int)sfe->namelen, in xfs_attr_shortform_list() 133 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list() 135 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list() 178 sbp->namelen))) { in xfs_attr_shortform_list() 185 sbp->namelen, in xfs_attr_shortform_list() 440 int namelen, valuelen; in xfs_attr3_leaf_list_int() local 456 namelen = name_loc->namelen; in xfs_attr3_leaf_list_int() 463 namelen = name_rmt->namelen; in xfs_attr3_leaf_list_int() 468 !xfs_attr_namecheck(name, namelen))) in xfs_attr3_leaf_list_int() [all …]
|
/linux/fs/dlm/ |
A D | dir.c | 66 uint16_t namelen; in dlm_recover_directory() local 116 namelen = be16_to_cpu(v); in dlm_recover_directory() 124 if (namelen == 0xFFFF) in dlm_recover_directory() 126 if (!namelen) in dlm_recover_directory() 129 if (namelen > left) in dlm_recover_directory() 136 b, namelen, in dlm_recover_directory() 159 b, namelen); in dlm_recover_directory() 177 last_len = namelen; in dlm_recover_directory() 178 memcpy(last_name, b, namelen); in dlm_recover_directory() 179 b += namelen; in dlm_recover_directory() [all …]
|
/linux/fs/efs/ |
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()
|
/linux/fs/nfs/ |
A D | dns_resolve.c | 18 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name() argument 25 ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, in nfs_dns_resolve_name() 64 size_t namelen; member 97 new->namelen = key->namelen; in nfs_dns_ent_init() 100 new->namelen = 0; in nfs_dns_ent_init() 128 item->namelen = 0; in nfs_dns_ent_alloc() 172 if (a->namelen == 0 || a->namelen != b->namelen) in nfs_dns_match() 174 return memcmp(a->hostname, b->hostname, a->namelen) == 0; in nfs_dns_match() 254 key.namelen = len; in nfs_dns_parse() 344 size_t namelen, struct sockaddr *sa, size_t salen) in nfs_dns_resolve_name() argument [all …]
|
A D | nfs4idmap.c | 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() 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() 315 rkey = nfs_idmap_request_key(name, namelen, type, idmap); in nfs_idmap_get_key() 749 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid() 756 trace_nfs4_map_name_to_uid(name, namelen, id, ret); in nfs_map_name_to_uid() 766 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_group_to_gid() [all …]
|
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 …]
|
/linux/fs/omfs/ |
A D | dir.c | 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() 115 int namelen = dentry->d_name.len; in omfs_add_link() local 139 memcpy(oi->i_name, name, namelen); in omfs_add_link() 140 memset(oi->i_name + namelen, 0, OMFS_NAMELEN - namelen); in omfs_add_link() [all …]
|
/linux/scripts/dtc/libfdt/ |
A D | fdt_ro.c | 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 479 int namelen; in fdt_getprop_by_offset() local 483 &namelen); in fdt_getprop_by_offset() 486 *lenp = namelen; in fdt_getprop_by_offset() 545 int offset, depth, namelen; in fdt_get_path() local 566 return namelen; in fdt_get_path() 568 memcpy(buf + p, name, namelen); in fdt_get_path() [all …]
|
/linux/fs/afs/ |
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() 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() 347 memcpy(buffer, volname, namelen); in afs_xattr_get_volume() [all …]
|
/linux/fs/ocfs2/ |
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,
|
/linux/fs/jfs/ |
A D | xattr.c | 98 return ea->namelen; in name_size() 105 int len = ea->namelen; in copy_name() 113 buffer[ea->namelen] = 0; in copy_name() 664 int namelen = strlen(name); in __jfs_setxattr() local 684 if ((namelen == ea->namelen) && in __jfs_setxattr() 756 ea->namelen = namelen; in __jfs_setxattr() 758 memcpy(ea->name, name, namelen); in __jfs_setxattr() 759 ea->name[namelen] = 0; in __jfs_setxattr() 802 int namelen = strlen(name); in __jfs_getxattr() local 821 if ((namelen == ea->namelen) && in __jfs_getxattr() [all …]
|
/linux/fs/xfs/scrub/ |
A D | attr.c | 110 int namelen, in xchk_xattr_listent() argument 131 if (!xfs_attr_namecheck(name, namelen)) { in xchk_xattr_listent() 156 args.namelen = namelen; in xchk_xattr_listent() 157 args.hashval = xfs_da_hashname(args.name, args.namelen); in xchk_xattr_listent() 279 namesize = xfs_attr_leaf_entsize_local(lentry->namelen, in xchk_xattr_entry() 282 if (lentry->namelen == 0) in xchk_xattr_entry() 286 namesize = xfs_attr_leaf_entsize_remote(rentry->namelen); in xchk_xattr_entry() 288 if (rentry->namelen == 0 || rentry->valueblk == 0) in xchk_xattr_entry() 451 if (lentry->namelen <= 0) { in xchk_xattr_rec() 459 if (rentry->namelen <= 0) { in xchk_xattr_rec() [all …]
|
/linux/kernel/locking/ |
A D | lockdep_proc.c | 437 int i, namelen; in seq_stats() local 443 namelen = 38; in seq_stats() 447 namelen -= 2; in seq_stats() 462 snprintf(name, namelen, "%s", key_name); in seq_stats() 464 snprintf(name, namelen, "%s", cname); in seq_stats() 468 namelen = strlen(name); in seq_stats() 471 namelen += 2; in seq_stats() 475 namelen += 2; in seq_stats() 504 namelen += 2; in seq_stats() 513 seq_line(m, '-', 40-namelen, namelen); in seq_stats() [all …]
|
/linux/fs/nfsd/ |
A D | nfs4idmap.c | 547 if (namelen + 1 > sizeof(key.name)) in idmap_name_to_id() 549 memcpy(key.name, name, namelen); in idmap_name_to_id() 550 key.name[namelen] = '\0'; in idmap_name_to_id() 609 if (namelen + 1 > sizeof(buf)) in numeric_name_to_id() 613 memcpy(buf, name, namelen); in numeric_name_to_id() 614 buf[namelen] = '\0'; in numeric_name_to_id() 623 if (numeric_name_to_id(rqstp, type, name, namelen, id)) in do_name_to_id() 629 return idmap_name_to_id(rqstp, type, name, namelen, id); in do_name_to_id() 647 if (name == NULL || namelen == 0) in nfsd_map_name_to_uid() 650 status = do_name_to_id(rqstp, IDMAP_TYPE_USER, name, namelen, &id); in nfsd_map_name_to_uid() [all …]
|
/linux/fs/hpfs/ |
A D | dnode.c | 175 unsigned namelen, secno down_ptr) in hpfs_add_de() argument 179 unsigned d_size = de_size(namelen, down_ptr); in hpfs_add_de() 181 int c = hpfs_compare_names(s, name, namelen, de->name, de->namelen, de->last); in hpfs_add_de() 195 de->not_8x3 = hpfs_is_name_long(name, namelen); in hpfs_add_de() 196 de->namelen = namelen; in hpfs_add_de() 197 memcpy(de->name, name, namelen); in hpfs_add_de() 257 if (namelen >= 256) { in hpfs_add_to_dnode() 320 memcpy(nname, de->name, de->namelen); in hpfs_add_to_dnode() 322 namelen = de->namelen; in hpfs_add_to_dnode() 388 const unsigned char *name, unsigned namelen, in hpfs_add_dirent() argument [all …]
|
/linux/fs/cramfs/ |
A D | inode.c | 724 int namelen; in cramfs_readdir() local 735 namelen = de->namelen << 2; in cramfs_readdir() 736 memcpy(buf, name, namelen); in cramfs_readdir() 742 if (!namelen) { in cramfs_readdir() 746 if (buf[namelen-1]) in cramfs_readdir() 748 namelen--; in cramfs_readdir() 773 int namelen, retval; in cramfs_lookup() local 783 namelen = de->namelen << 2; in cramfs_lookup() 791 if (!namelen) { in cramfs_lookup() 795 if (name[namelen-1]) in cramfs_lookup() [all …]
|
/linux/fs/qnx4/ |
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()
|