Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 25 of 31) sorted by relevance

12

/fs/ntfs/
Dindex.c119 int ntfs_index_lookup(const void *key, const int key_len, in ntfs_index_lookup() argument
143 BUG_ON(key_len <= 0); in ntfs_index_lookup()
206 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
207 &ie->key, key_len)) { in ntfs_index_lookup()
228 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
376 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
377 &ie->key, key_len)) { in ntfs_index_lookup()
391 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
Dindex.h91 extern int ntfs_index_lookup(const void *key, const int key_len,
/fs/cifs/
Dcache.c71 uint16_t key_len = sizeof(struct cifs_server_key); in cifs_server_get_key() local
73 memset(key, 0, key_len); in cifs_server_get_key()
84 key_len += sizeof(key->addr[0].ipv4_addr); in cifs_server_get_key()
91 key_len += sizeof(key->addr[0].ipv6_addr); in cifs_server_get_key()
96 key_len = 0; in cifs_server_get_key()
100 return key_len; in cifs_server_get_key()
/fs/hfs/
Dbrec.c68 int size, key_len, rec; in hfs_brec_insert() local
83 key_len = (fd->search_key->key_len | 1) + 1; in hfs_brec_insert()
87 size = key_len + entry_len; in hfs_brec_insert()
130 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
131 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
164 key_len = fd->search_key->key_len + 1; in hfs_brec_insert()
166 fd->search_key->key_len = tree->max_key_len; in hfs_brec_insert()
167 key_len = tree->max_key_len + 1; in hfs_brec_insert()
Dhfs.h150 u8 key_len; /* number of bytes in the key */ member
158 u8 key_len; /* number of bytes in the key */ member
165 u8 key_len; /* number of bytes in the key */ member
Dbnode.c48 int key_len; in hfs_bnode_read_key() local
53 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
55 key_len = tree->max_key_len + 1; in hfs_bnode_read_key()
57 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
Dcatalog.c29 key->key_len = 6 + key->cat.CName.len; in hfs_cat_build_key()
32 key->key_len = 6; in hfs_cat_build_key()
/fs/hfsplus/
Dbrec.c66 int size, key_len, rec; in hfs_brec_insert() local
81 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
85 size = key_len + entry_len; in hfs_brec_insert()
130 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
131 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
165 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
167 fd->search_key->key_len = in hfs_brec_insert()
169 key_len = tree->max_key_len + 2; in hfs_brec_insert()
Dhfsplus_raw.h213 __be16 key_len; member
339 __be16 key_len; member
357 __be16 key_len; member
401 __be16 key_len; member
Dxattr.c686 u16 key_len = 0; in hfsplus_listxattr() local
728 key_len = hfs_bnode_read_u16(fd.bnode, fd.keyoffset); in hfsplus_listxattr()
729 if (key_len == 0 || key_len > fd.tree->max_key_len) { in hfsplus_listxattr()
730 pr_err("invalid xattr key length: %d\n", key_len); in hfsplus_listxattr()
736 fd.keyoffset, key_len + sizeof(key_len)); in hfsplus_listxattr()
Dcatalog.c54 key->key_len = cpu_to_be16(6 + 2 * len); in hfsplus_cat_build_key()
64 key->key_len = cpu_to_be16(6); in hfsplus_cat_build_key_with_cnid()
77 key->key_len = cpu_to_be16(6 + ustrlen); in hfsplus_cat_build_key_uni()
352 fd.search_key->key_len = cpu_to_be16(6 + len); in hfsplus_delete_cat()
Dbnode.c61 int key_len; in hfs_bnode_read_key() local
67 key_len = hfs_bnode_read_u16(node, off) + 2; in hfs_bnode_read_key()
69 key_len = tree->max_key_len + 2; in hfs_bnode_read_key()
71 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
Dattributes.c75 key->key_len = in hfsplus_attr_build_key()
/fs/ubifs/
Dmisc.h198 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len) * child_cnt; in ubifs_idx_node_sz()
213 (UBIFS_BRANCH_SZ + c->key_len) * bnum); in ubifs_idx_branch()
Dsb.c89 c->key_len = UBIFS_SK_LEN; in create_default_filesystem()
595 c->key_len = UBIFS_SK_LEN; in ubifs_read_superblock()
/fs/nfsd/
Dnfsfh.h139 static inline int key_len(int type) in key_len() function
204 if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type)) != 0) in fh_fsid_match()
Dexport.c62 qword_addhex(bpp, blen, (char*)ek->ek_fsid, key_len(ek->ek_fsidtype)); in expkey_request()
108 if (key_len(fsidtype)==0) /* invalid type */ in expkey_parse()
113 if (len != key_len(fsidtype)) in expkey_parse()
179 for (i=0; i < key_len(ek->ek_fsidtype)/4; i++) in expkey_show()
197 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
253 int len = key_len(item->ek_fsidtype); in svc_expkey_hash()
814 memcpy(key.ek_fsid, fsidv, key_len(fsid_type)); in exp_find_key()
Dnfsfh.c164 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
169 len = key_len(FSID_ENCODE_DEV)/4; in nfsd_set_fh_dentry()
573 key_len(fhp->fh_handle.fh_fsid_type) + 4; in fh_compose()
Dnfs4layouts.c58 size_t fsid_len = key_len(fh->fh_fsid_type); in nfsd4_alloc_devid_map()
78 key_len(old->fsid_type))) in nfsd4_alloc_devid_map()
/fs/xfs/libxfs/
Dxfs_ialloc_btree.c329 .key_len = sizeof(xfs_inobt_key_t),
350 .key_len = sizeof(xfs_inobt_key_t),
Dxfs_btree.c523 (n - 1) * cur->bc_ops->key_len; in xfs_btree_key_offset()
535 (n - 1) * cur->bc_ops->key_len + (cur->bc_ops->key_len / 2); in xfs_btree_high_key_offset()
548 cur->bc_ops->get_maxrecs(cur, level) * cur->bc_ops->key_len + in xfs_btree_ptr_offset()
1299 memcpy(dst_key, src_key, numkeys * cur->bc_ops->key_len); in xfs_btree_copy_keys()
1345 dst_key = (char *)key + (dir * cur->bc_ops->key_len); in xfs_btree_shift_keys()
1346 memmove(dst_key, key, numkeys * cur->bc_ops->key_len); in xfs_btree_shift_keys()
1994 (cur->bc_ops->key_len / 2)); in xfs_btree_high_key_from_key()
2025 memcpy(high, &max_hkey, cur->bc_ops->key_len / 2); in xfs_btree_get_leaf_keys()
2043 cur->bc_ops->key_len / 2); in xfs_btree_get_node_keys()
2053 memcpy(high, max_hkey, cur->bc_ops->key_len / 2); in xfs_btree_get_node_keys()
[all …]
Dxfs_refcount_btree.c313 .key_len = sizeof(struct xfs_refcount_key),
Dxfs_btree.h144 size_t key_len; member
Dxfs_alloc_btree.c388 .key_len = sizeof(xfs_alloc_key_t),
Dxfs_rmap_btree.c444 .key_len = 2 * sizeof(struct xfs_rmap_key),

12