Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 188) sorted by relevance

12345678

/fs/ubifs/
Dkey.h97 union ubifs_key *key, ino_t inum) in ino_key_init() argument
99 key->u32[0] = inum; in ino_key_init()
100 key->u32[1] = UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS; in ino_key_init()
112 union ubifs_key *key = k; in ino_key_init_flash() local
114 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
115 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
126 union ubifs_key *key, ino_t inum) in lowest_ino_key() argument
128 key->u32[0] = inum; in lowest_ino_key()
129 key->u32[1] = 0; in lowest_ino_key()
139 union ubifs_key *key, ino_t inum) in highest_ino_key() argument
[all …]
Dtnc.c338 ubifs_assert(is_hash_key(c, &zbr->key)); in lnc_add()
413 ubifs_assert(is_hash_key(c, &zbr->key)); in tnc_read_node_nm()
503 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key, in fallible_read_node() argument
508 dbg_tnck(key, "LEB %d:%d, key ", zbr->lnum, zbr->offs); in fallible_read_node()
510 ret = try_read_node(c, node, key_type(c, key), zbr->len, zbr->lnum, in fallible_read_node()
517 key_read(c, &dent->key, &node_key); in fallible_read_node()
518 if (keys_cmp(c, key, &node_key) != 0) in fallible_read_node()
522 dbg_mntk(key, "dangling branch LEB %d:%d len %d, key ", in fallible_read_node()
707 static int resolve_collision(struct ubifs_info *c, const union ubifs_key *key, in resolve_collision() argument
730 if (keys_cmp(c, &(*zn)->zbranch[*n].key, key)) { in resolve_collision()
[all …]
Dtnc_misc.c137 const union ubifs_key *key, int *n) in ubifs_search_zbranch() argument
147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch()
163 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch()
165 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch()
167 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch()
308 key_read(c, &br->key, &zbr->key); in read_znode()
324 switch (key_type(c, &zbr->key)) { in read_znode()
332 i, key_type(c, &zbr->key)); in read_znode()
340 type = key_type(c, &zbr->key); in read_znode()
368 key1 = &znode->zbranch[i].key; in read_znode()
[all …]
/fs/nilfs2/
Ddirect.c37 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) in nilfs_direct_get_ptr() argument
39 return le64_to_cpu(*(nilfs_direct_dptrs(direct) + key)); in nilfs_direct_get_ptr()
43 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument
45 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr()
49 __u64 key, int level, __u64 *ptrp) in nilfs_direct_lookup() argument
53 if (key > NILFS_DIRECT_KEY_MAX || level != 1) in nilfs_direct_lookup()
55 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup()
64 __u64 key, __u64 *ptrp, in nilfs_direct_lookup_contig() argument
72 if (key > NILFS_DIRECT_KEY_MAX) in nilfs_direct_lookup_contig()
74 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig()
[all …]
Dbmap.c75 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, in nilfs_bmap_lookup_at_level() argument
82 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
99 int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, in nilfs_bmap_lookup_contig() argument
105 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
111 static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_bmap_do_insert() argument
118 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert()
125 bmap, key, ptr, keys, ptrs, n); in nilfs_bmap_do_insert()
134 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert()
156 unsigned long key, in nilfs_bmap_insert() argument
162 ret = nilfs_bmap_do_insert(bmap, key, rec); in nilfs_bmap_insert()
[all …]
/fs/afs/
Dsecurity.c23 struct key *afs_request_key(struct afs_cell *cell) in afs_request_key()
25 struct key *key; in afs_request_key() local
30 key = request_key(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key()
32 if (IS_ERR(key)) { in afs_request_key()
33 if (PTR_ERR(key) != -ENOKEY) { in afs_request_key()
34 _leave(" = %ld", PTR_ERR(key)); in afs_request_key()
35 return key; in afs_request_key()
43 _leave(" = {%x} [auth]", key_serial(key)); in afs_request_key()
44 return key; in afs_request_key()
60 key_put(permits->permits[loop].key); in afs_zap_permits()
[all …]
Ddir.c191 struct key *key) in afs_dir_get_page() argument
196 page = read_cache_page(dir->i_mapping, index, afs_page_filler, key); in afs_dir_get_page()
328 filldir_t filldir, struct key *key) in afs_dir_iterate() argument
353 page = afs_dir_get_page(dir, blkoff / PAGE_SIZE, key); in afs_dir_iterate()
445 struct afs_fid *fid, struct key *key) in afs_do_lookup() argument
464 key); in afs_do_lookup()
486 int ret, struct dentry *dentry, struct inode *dir, struct key *key, in afs_try_auto_mntpt() argument
494 ret, dentry, devname, vnode->fid.vid, vnode->fid.vnode, key); in afs_try_auto_mntpt()
500 inode = afs_iget_autocell(dir, devname, strlen(devname), key); in afs_try_auto_mntpt()
524 struct key *key; in afs_lookup() local
[all …]
Dfile.c70 struct key *key; in afs_open() local
75 key = afs_request_key(vnode->volume->cell); in afs_open()
76 if (IS_ERR(key)) { in afs_open()
77 _leave(" = %ld [key]", PTR_ERR(key)); in afs_open()
78 return PTR_ERR(key); in afs_open()
81 ret = afs_validate(vnode, key); in afs_open()
87 file->private_data = key; in afs_open()
131 struct key *key = data; in afs_page_filler() local
136 _enter("{%x},{%lu},{%lu}", key_serial(key), inode->i_ino, page->index); in afs_page_filler()
174 ret = afs_vnode_fetch_data(vnode, key, offset, len, page); in afs_page_filler()
[all …]
Dinternal.h51 struct key *key; /* key to use for secure mounting */ member
82 struct key *key; /* security for this call */ member
147 struct key *key; /* owner of this write */ member
196 struct key *anonymous_key; /* anonymous user key for this cell */
371 struct key *unlock_key; /* key to be used in unlocking */
389 struct key *key; /* RxRPC ticket holding a security context */ member
515 extern int afs_fs_fetch_file_status(struct afs_server *, struct key *,
520 extern int afs_fs_fetch_data(struct afs_server *, struct key *,
523 extern int afs_fs_create(struct afs_server *, struct key *,
528 extern int afs_fs_remove(struct afs_server *, struct key *,
[all …]
Dvnode.c265 struct afs_vnode *auth_vnode, struct key *key) in afs_vnode_fetch_status() argument
360 ret = afs_fs_fetch_file_status(server, key, vnode, NULL, in afs_vnode_fetch_status()
369 afs_cache_permit(vnode, key, acl_order); in afs_vnode_fetch_status()
395 int afs_vnode_fetch_data(struct afs_vnode *vnode, struct key *key, in afs_vnode_fetch_data() argument
406 key_serial(key)); in afs_vnode_fetch_data()
423 ret = afs_fs_fetch_data(server, key, vnode, offset, length, in afs_vnode_fetch_data()
450 int afs_vnode_create(struct afs_vnode *vnode, struct key *key, in afs_vnode_create() argument
463 key_serial(key), in afs_vnode_create()
479 ret = afs_fs_create(server, key, vnode, name, mode, newfid, in afs_vnode_create()
508 int afs_vnode_remove(struct afs_vnode *vnode, struct key *key, const char *name, in afs_vnode_remove() argument
[all …]
Dfsclient.c278 struct key *key, in afs_fs_fetch_file_status() argument
287 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
293 call->key = key; in afs_fs_fetch_file_status()
450 struct key *key, in afs_fs_fetch_data64() argument
467 call->key = key; in afs_fs_fetch_data64()
493 struct key *key, in afs_fs_fetch_data() argument
503 return afs_fs_fetch_data64(server, key, vnode, offset, length, in afs_fs_fetch_data()
512 call->key = key; in afs_fs_fetch_data()
661 struct key *key, in afs_fs_create() argument
685 call->key = key; in afs_fs_create()
[all …]
/fs/btrfs/
Droot-tree.c72 struct btrfs_root_item *item, struct btrfs_key *key) in btrfs_find_last_root() argument
107 if (key) in btrfs_find_last_root()
108 memcpy(key, &found_key, sizeof(found_key)); in btrfs_find_last_root()
128 *root, struct btrfs_key *key, struct btrfs_root_item in btrfs_update_root() argument
142 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
151 (unsigned long long)key->objectid, key->type, in btrfs_update_root()
152 (unsigned long long)key->offset); in btrfs_update_root()
168 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
182 key, sizeof(*item)); in btrfs_update_root()
206 struct btrfs_key *key, struct btrfs_root_item *item) in btrfs_insert_root() argument
[all …]
Dexport.c66 struct btrfs_key key; in btrfs_get_dentry() local
73 key.objectid = root_objectid; in btrfs_get_dentry()
74 btrfs_set_key_type(&key, BTRFS_ROOT_ITEM_KEY); in btrfs_get_dentry()
75 key.offset = (u64)-1; in btrfs_get_dentry()
79 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
90 key.objectid = objectid; in btrfs_get_dentry()
91 btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY); in btrfs_get_dentry()
92 key.offset = 0; in btrfs_get_dentry()
94 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
166 struct btrfs_key key; in btrfs_get_parent() local
[all …]
Dorphan.c26 struct btrfs_key key; in btrfs_insert_orphan_item() local
29 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item()
30 btrfs_set_key_type(&key, BTRFS_ORPHAN_ITEM_KEY); in btrfs_insert_orphan_item()
31 key.offset = offset; in btrfs_insert_orphan_item()
37 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item()
47 struct btrfs_key key; in btrfs_del_orphan_item() local
50 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
51 btrfs_set_key_type(&key, BTRFS_ORPHAN_ITEM_KEY); in btrfs_del_orphan_item()
52 key.offset = offset; in btrfs_del_orphan_item()
58 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
[all …]
Ddir-item.c81 struct btrfs_key key, location; in btrfs_insert_xattr_item() local
88 key.objectid = objectid; in btrfs_insert_xattr_item()
89 btrfs_set_key_type(&key, BTRFS_XATTR_ITEM_KEY); in btrfs_insert_xattr_item()
90 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item()
93 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
135 struct btrfs_key key; in btrfs_insert_dir_item() local
139 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
140 btrfs_set_key_type(&key, BTRFS_DIR_ITEM_KEY); in btrfs_insert_dir_item()
141 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_dir_item()
151 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_dir_item()
[all …]
Dinode-item.c103 struct btrfs_key key; in btrfs_lookup_inode_ref() local
106 key.objectid = inode_objectid; in btrfs_lookup_inode_ref()
107 key.type = BTRFS_INODE_REF_KEY; in btrfs_lookup_inode_ref()
108 key.offset = ref_objectid; in btrfs_lookup_inode_ref()
110 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_ref()
130 struct btrfs_key key; in btrfs_lookup_inode_extref() local
133 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
134 key.type = BTRFS_INODE_EXTREF_KEY; in btrfs_lookup_inode_extref()
135 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_lookup_inode_extref()
137 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
[all …]
Drelocation.c142 struct btrfs_key key; member
582 struct btrfs_key key; in read_fs_root() local
584 key.objectid = root_objectid; in read_fs_root()
585 key.type = BTRFS_ROOT_ITEM_KEY; in read_fs_root()
587 key.offset = 0; in read_fs_root()
589 key.offset = (u64)-1; in read_fs_root()
591 return btrfs_read_fs_root_no_name(fs_info, &key); in read_fs_root()
621 struct btrfs_key key; in find_inline_backref() local
626 btrfs_item_key_to_cpu(leaf, &key, slot); in find_inline_backref()
639 if (key.type == BTRFS_EXTENT_ITEM_KEY && in find_inline_backref()
[all …]
Dbackref.c34 static int check_extent_in_eb(struct btrfs_key *key, struct extent_buffer *eb, in check_extent_in_eb() argument
55 e->inum = key->objectid; in check_extent_in_eb()
56 e->offset = key->offset + (extent_item_pos - data_offset); in check_extent_in_eb()
67 struct btrfs_key key; in find_extent_in_eb() local
81 btrfs_item_key_to_cpu(eb, &key, slot); in find_extent_in_eb()
82 if (key.type != BTRFS_EXTENT_DATA_KEY) in find_extent_in_eb()
93 ret = check_extent_in_eb(&key, eb, fi, extent_item_pos, eie); in find_extent_in_eb()
155 struct btrfs_key *key, int level, in __add_prelim_ref() argument
166 if (key) in __add_prelim_ref()
167 ref->key_for_search = *key; in __add_prelim_ref()
[all …]
Dfile-item.c296 struct btrfs_key key; in btrfs_lookup_csums_range() local
319 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range()
320 key.offset = start; in btrfs_lookup_csums_range()
321 key.type = BTRFS_EXTENT_CSUM_KEY; in btrfs_lookup_csums_range()
323 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_lookup_csums_range()
328 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in btrfs_lookup_csums_range()
329 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range()
330 key.type == BTRFS_EXTENT_CSUM_KEY) { in btrfs_lookup_csums_range()
331 offset = (start - key.offset) >> in btrfs_lookup_csums_range()
350 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_lookup_csums_range()
[all …]
/fs/sdcardfs/
Dpackagelist.c37 struct qstr key; member
72 static appid_t __get_appid(const struct qstr *key) in __get_appid() argument
75 unsigned int hash = key->hash; in __get_appid()
80 if (qstr_case_eq(key, &hash_cur->key)) { in __get_appid()
90 appid_t get_appid(const char *key) in get_appid() argument
94 qstr_init(&q, key); in get_appid()
98 static appid_t __get_ext_gid(const struct qstr *key) in __get_ext_gid() argument
101 unsigned int hash = key->hash; in __get_ext_gid()
106 if (qstr_case_eq(key, &hash_cur->key)) { in __get_ext_gid()
116 appid_t get_ext_gid(const char *key) in get_ext_gid() argument
[all …]
/fs/nfs/
Dfscache.c69 struct nfs_fscache_key *key, *xkey; in nfs_fscache_get_super_cookie() local
79 key = kzalloc(sizeof(*key) + ulen, GFP_KERNEL); in nfs_fscache_get_super_cookie()
80 if (!key) in nfs_fscache_get_super_cookie()
83 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie()
84 key->key.super.s_flags = sb->s_flags & NFS_MS_MASK; in nfs_fscache_get_super_cookie()
85 key->key.nfs_server.flags = nfss->flags; in nfs_fscache_get_super_cookie()
86 key->key.nfs_server.rsize = nfss->rsize; in nfs_fscache_get_super_cookie()
87 key->key.nfs_server.wsize = nfss->wsize; in nfs_fscache_get_super_cookie()
88 key->key.nfs_server.acregmin = nfss->acregmin; in nfs_fscache_get_super_cookie()
89 key->key.nfs_server.acregmax = nfss->acregmax; in nfs_fscache_get_super_cookie()
[all …]
Ddns_resolve.c73 struct nfs_dns_ent *key; in nfs_dns_ent_update() local
76 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
78 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
79 new->addrlen = key->addrlen; in nfs_dns_ent_update()
86 struct nfs_dns_ent *key; in nfs_dns_ent_init() local
89 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
92 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
94 new->namelen = key->namelen; in nfs_dns_ent_init()
124 static unsigned int nfs_dns_hash(const struct nfs_dns_ent *key) in nfs_dns_hash() argument
126 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash()
[all …]
Dfscache-index.c74 struct nfs_server_key *key = buffer; in nfs_server_get_key() local
77 key->nfsversion = clp->rpc_ops->version; in nfs_server_get_key()
78 key->family = clp->cl_addr.ss_family; in nfs_server_get_key()
80 memset(key, 0, len); in nfs_server_get_key()
84 key->port = sin->sin_port; in nfs_server_get_key()
85 key->addr[0].ipv4_addr = sin->sin_addr; in nfs_server_get_key()
86 len += sizeof(key->addr[0].ipv4_addr); in nfs_server_get_key()
90 key->port = sin6->sin6_port; in nfs_server_get_key()
91 key->addr[0].ipv6_addr = sin6->sin6_addr; in nfs_server_get_key()
92 len += sizeof(key->addr[0].ipv6_addr); in nfs_server_get_key()
[all …]
/fs/cachefiles/
Dkey.c41 char *key; in cachefiles_cook_key() local
81 key = kmalloc(max, cachefiles_gfp); in cachefiles_cook_key()
82 if (!key) in cachefiles_cook_key()
88 sprintf(key, "@%02x%c+", (unsigned) csum, 0); in cachefiles_cook_key()
96 key[len + 1] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
98 key[len] = cachefiles_charmap[acc & 63]; in cachefiles_cook_key()
104 key[len++] = '\0'; in cachefiles_cook_key()
106 key[len++] = '+'; in cachefiles_cook_key()
110 key[len++] = *raw++; in cachefiles_cook_key()
123 key[len++] = '\0'; in cachefiles_cook_key()
[all …]
/fs/reiserfs/
Dprints.c17 static char *reiserfs_cpu_offset(struct cpu_key *key) in reiserfs_cpu_offset() argument
19 if (cpu_key_k_type(key) == TYPE_DIRENTRY) in reiserfs_cpu_offset()
22 GET_HASH_VALUE(cpu_key_k_offset(key)), in reiserfs_cpu_offset()
24 GET_GENERATION_NUMBER(cpu_key_k_offset(key))); in reiserfs_cpu_offset()
27 (unsigned long long)cpu_key_k_offset(key)); in reiserfs_cpu_offset()
31 static char *le_offset(struct reiserfs_key *key) in le_offset() argument
35 version = le_key_version(key); in le_offset()
36 if (le_key_k_type(version, key) == TYPE_DIRENTRY) in le_offset()
39 GET_HASH_VALUE(le_key_k_offset(version, key)), in le_offset()
41 GET_GENERATION_NUMBER(le_key_k_offset(version, key))); in le_offset()
[all …]

12345678