| /fs/ubifs/ |
| A D | key.h | 93 key->u32[0] = inum; in ino_key_init() 122 key->u32[0] = inum; in lowest_ino_key() 123 key->u32[1] = 0; in lowest_ino_key() 135 key->u32[0] = inum; in highest_ino_key() 153 key->u32[0] = inum; in dent_key_init() 170 key->u32[0] = inum; in dent_key_init_hash() 204 key->u32[0] = inum; in lowest_dent_key() 222 key->u32[0] = inum; in xent_key_init() 255 key->u32[0] = inum; in lowest_xent_key() 271 key->u32[0] = inum; in data_key_init() [all …]
|
| A D | tnc.c | 1592 key = &zbr->key; in ubifs_tnc_get_bu_keys() 2041 key = &znode->zbranch[0].key; in correct_parent_keys() 2123 union ubifs_key *key = &zbr->key, *key1; in tnc_insert() local 2254 zbr->key = zn->zbranch[0].key; in tnc_insert() 2277 zi->zbranch[0].key = znode->zbranch[0].key; in tnc_insert() 2282 zi->zbranch[1].key = zn->zbranch[0].key; in tnc_insert() 2328 key_copy(c, key, &zbr.key); in ubifs_tnc_add() 2503 key_copy(c, key, &zbr.key); in ubifs_tnc_add_nm() 2845 key = &znode->zbranch[n].key; in ubifs_tnc_remove_range() 2863 key = &znode->zbranch[i].key; in ubifs_tnc_remove_range() [all …]
|
| /fs/nilfs2/ |
| A D | direct.c | 172 __u64 key; in nilfs_direct_seek_key() local 174 for (key = start; key <= NILFS_DIRECT_KEY_MAX; key++) { in nilfs_direct_seek_key() 177 *keyp = key; in nilfs_direct_seek_key() 186 __u64 key, lastkey; in nilfs_direct_last_key() local 189 for (key = NILFS_DIRECT_KEY_MIN; key <= NILFS_DIRECT_KEY_MAX; key++) in nilfs_direct_last_key() 192 lastkey = key; in nilfs_direct_last_key() 210 __u64 key; in nilfs_direct_gather_data() local 217 for (key = 0; key < nitems; key++) { in nilfs_direct_gather_data() 220 keys[n] = key; in nilfs_direct_gather_data() 266 __u64 key; in nilfs_direct_propagate() local [all …]
|
| /fs/afs/ |
| A D | security.c | 25 struct key *key; in afs_request_key() local 53 struct key *key; in afs_request_key_rcu() local 164 if (permits->permits[i].key < key) in afs_cache_permit() 166 if (permits->permits[i].key > key) in afs_cache_permit() 232 new->permits[j].key = key; in afs_cache_permit() 243 new->permits[j].key = key; in afs_cache_permit() 322 if (permits->permits[i].key < key) in afs_check_permit_rcu() 324 if (permits->permits[i].key > key) in afs_check_permit_rcu() 362 if (permits->permits[i].key < key) in afs_check_permit() 364 if (permits->permits[i].key > key) in afs_check_permit() [all …]
|
| A D | vl_alias.c | 17 static struct afs_volume *afs_sample_volume(struct afs_cell *cell, struct key *key, in afs_sample_volume() argument 27 .key = key, /* This might need to be something */ in afs_sample_volume() 138 static int afs_query_for_alias_one(struct afs_cell *cell, struct key *key, in afs_query_for_alias_one() argument 185 static int afs_query_for_alias(struct afs_cell *cell, struct key *key) in afs_query_for_alias() argument 227 static char *afs_vl_get_cell_name(struct afs_cell *cell, struct key *key) in afs_vl_get_cell_name() argument 253 static int yfs_check_canonical_cell_name(struct afs_cell *cell, struct key *key) in yfs_check_canonical_cell_name() argument 259 cell_name = afs_vl_get_cell_name(cell, key); in yfs_check_canonical_cell_name() 282 static int afs_do_cell_detect_alias(struct afs_cell *cell, struct key *key) in afs_do_cell_detect_alias() argument 306 return afs_query_for_alias(cell, key); in afs_do_cell_detect_alias() 317 int afs_cell_detect_alias(struct afs_cell *cell, struct key *key) in afs_cell_detect_alias() argument [all …]
|
| /fs/btrfs/ |
| A D | free-space-tree.c | 533 found_end = key.objectid + key.offset; in btrfs_free_space_test_bit() 559 found_end = key.objectid + key.offset; in free_space_modify_bits() 598 key.objectid += key.offset; in free_space_next_bitmap() 643 if (start >= key.objectid + key.offset) { in modify_free_space_bitmap() 681 if (end >= key.objectid + key.offset) { in modify_free_space_bitmap() 741 found_end = key.objectid + key.offset; in remove_free_space_extent() 931 found_end = key.objectid + key.offset; in add_free_space_extent() 971 found_end = key.objectid + key.offset; in add_free_space_extent() 1578 ASSERT(key.objectid < end && key.objectid + key.offset <= end); in load_free_space_bitmaps() 1660 ASSERT(key.objectid < end && key.objectid + key.offset <= end); in load_free_space_extents() [all …]
|
| A D | tree-checker.c | 86 struct btrfs_key key; in file_extent_err() local 101 key.objectid, key.offset, &vaf); in file_extent_err() 277 key->offset); in check_extent_data_item() 317 key->offset, in check_extent_data_item() 421 if (unlikely(key->objectid != 0 || key->type != 0 || in check_inode_key() 456 key->offset); in check_inode_key() 677 key.objectid, key.offset, &vaf); in block_group_err() 1622 prev_key->offset, key->objectid, key->type, in check_extent_item() 2028 prev_key.offset, key.objectid, key.type, in __btrfs_check_leaf() 2029 key.offset); in __btrfs_check_leaf() [all …]
|
| A D | uuid-tree.c | 20 key->type = type; in btrfs_uuid_to_key() 35 struct btrfs_key key; in btrfs_uuid_tree_lookup() local 136 ret, key.objectid, key.offset, type); in btrfs_uuid_tree_add() 309 key.objectid = 0; in btrfs_uuid_tree_iterate() 310 key.type = 0; in btrfs_uuid_tree_iterate() 311 key.offset = 0; in btrfs_uuid_tree_iterate() 373 key.offset++; in btrfs_uuid_tree_iterate() 414 key.objectid = 0; in btrfs_uuid_scan_kthread() 416 key.offset = 0; in btrfs_uuid_scan_kthread() 503 key.offset++; in btrfs_uuid_scan_kthread() [all …]
|
| A D | dir-item.c | 118 struct btrfs_key key; in btrfs_insert_dir_item() local 215 struct btrfs_key key; in btrfs_lookup_dir_item() local 218 key.objectid = dir; in btrfs_lookup_dir_item() 234 struct btrfs_key key; in btrfs_check_dir_item_collision() local 305 struct btrfs_key key; in btrfs_lookup_dir_index_item() local 307 key.objectid = dir; in btrfs_lookup_dir_index_item() 309 key.offset = index; in btrfs_lookup_dir_index_item() 329 key.offset = 0; in btrfs_search_dir_index_item() 331 btrfs_for_each_slot(root, &key, &key, path, ret) { in btrfs_search_dir_index_item() 332 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item() [all …]
|
| A D | root-tree.c | 151 key->objectid, key->type, key->offset, btrfs_root_id(root)); in btrfs_update_root() 183 key, sizeof(*item)); in btrfs_update_root() 220 struct btrfs_key key; in btrfs_find_orphan_roots() local 231 key.offset = 0; in btrfs_find_orphan_roots() 260 key.offset++; in btrfs_find_orphan_roots() 350 struct btrfs_key key; in btrfs_del_root_ref() local 360 key.offset = ref_id; in btrfs_del_root_ref() 390 key.offset = root_id; in btrfs_del_root_ref() 419 struct btrfs_key key; in btrfs_add_root_ref() local 432 key.offset = ref_id; in btrfs_add_root_ref() [all …]
|
| A D | file-item.c | 283 struct btrfs_key key; in search_csum_tree() local 466 struct btrfs_key key; in btrfs_lookup_csums_list() local 485 key.offset = start; in btrfs_lookup_csums_list() 533 key.offset > end) in btrfs_lookup_csums_list() 537 start = key.offset; in btrfs_lookup_csums_list() 611 struct btrfs_key key; in btrfs_lookup_csums_bitmap() local 641 key.offset = start; in btrfs_lookup_csums_bitmap() 694 start = key.offset; in btrfs_lookup_csums_bitmap() 875 struct btrfs_key key; in btrfs_del_csums() local 1274 struct btrfs_key key; in btrfs_extent_item_to_extent_map() local [all …]
|
| A D | export.c | 155 struct btrfs_key key; in btrfs_get_parent() local 166 key.offset = (u64)-1; in btrfs_get_parent() 169 key.objectid = btrfs_ino(dir); in btrfs_get_parent() 170 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_parent() 171 key.offset = (u64)-1; in btrfs_get_parent() 195 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 236 struct btrfs_key key; in btrfs_get_name() local 253 key.offset = (u64)-1; in btrfs_get_name() 256 key.objectid = ino; in btrfs_get_name() 257 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_name() [all …]
|
| A D | orphan.c | 13 struct btrfs_key key; in btrfs_insert_orphan_item() local 15 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item() 16 key.type = BTRFS_ORPHAN_ITEM_KEY; in btrfs_insert_orphan_item() 17 key.offset = offset; in btrfs_insert_orphan_item() 23 return btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item() 30 struct btrfs_key key; in btrfs_del_orphan_item() local 33 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item() 34 key.type = BTRFS_ORPHAN_ITEM_KEY; in btrfs_del_orphan_item() 35 key.offset = offset; in btrfs_del_orphan_item() 41 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
|
| A D | print-tree.c | 100 struct btrfs_disk_key key; in print_extent_item() local 128 btrfs_disk_key_objectid(&key), key.type, in print_extent_item() 243 struct btrfs_key key; in btrfs_print_leaf() local 259 type = key.type; in btrfs_print_leaf() 261 i, key.objectid, type, key.offset, in btrfs_print_leaf() 353 key.objectid, key.offset); in btrfs_print_leaf() 354 switch (key.objectid) { in btrfs_print_leaf() 364 key.objectid, key.offset); in btrfs_print_leaf() 365 switch (key.objectid) { in btrfs_print_leaf() 393 struct btrfs_key key; in btrfs_print_tree() local [all …]
|
| A D | inode-item.c | 87 struct btrfs_key key; in btrfs_lookup_inode_extref() local 110 struct btrfs_key key; in btrfs_del_inode_extref() local 171 struct btrfs_key key; in btrfs_del_inode_ref() local 253 struct btrfs_key key; in btrfs_insert_inode_extref() local 301 struct btrfs_key key; in btrfs_insert_inode_ref() local 373 struct btrfs_key key; in btrfs_insert_empty_inode() local 375 key.objectid = objectid; in btrfs_insert_empty_inode() 377 key.offset = 0; in btrfs_insert_empty_inode() 450 struct btrfs_key key; in btrfs_truncate_inode_items() local 484 key.type = (u8)-1; in btrfs_truncate_inode_items() [all …]
|
| A D | tree-log.c | 660 found_type, btrfs_root_id(root), key->objectid, key->offset); in replay_one_extent() 1627 key.offset--; in count_inode_refs() 1927 key->objectid, key->offset, in replay_one_name() 1978 ret = insert_one_name(trans, root, key->objectid, key->offset, in replay_one_name() 2256 if (key.objectid != ino || key.type != BTRFS_XATTR_ITEM_KEY) { in replay_xattr_deletes() 3408 key.offset = 0; in inode_logged() 3784 if (key.objectid != ino || key.type != BTRFS_DIR_INDEX_KEY) { in process_dir_items_leaf() 4102 if (key.objectid == ino && key.type == BTRFS_DIR_INDEX_KEY) in update_last_dir_index_offset() 5063 key.offset = 0; in logged_inode_size() 5123 key.offset = 0; in btrfs_log_all_xattrs() [all …]
|
| /fs/btrfs/tests/ |
| A D | extent-buffer-tests.c | 25 struct btrfs_key key; in test_btrfs_split_item() local 60 key.objectid = 0; in test_btrfs_split_item() 62 key.offset = 0; in test_btrfs_split_item() 72 key.offset = 3; in test_btrfs_split_item() 90 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 91 key.offset != 0) { in test_btrfs_split_item() 114 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 136 key.offset = 1; in test_btrfs_split_item() 145 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() 168 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item() [all …]
|
| /fs/nfs/ |
| A D | dns_resolve.c | 80 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update() 94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 208 &key->h, in nfs_dns_lookup() 209 nfs_dns_hash(key)); in nfs_dns_lookup() 222 &new->h, &key->h, in nfs_dns_update() 223 nfs_dns_hash(key)); in nfs_dns_update() 246 sizeof(key.addr)); in nfs_dns_parse() 252 key.hostname = buf1; in nfs_dns_parse() 253 key.namelen = len; in nfs_dns_parse() 254 memset(&key.h, 0, sizeof(key.h)); in nfs_dns_parse() [all …]
|
| A D | fscache.c | 34 key[(*_len)++] = ','; in nfs_append_int() 47 char *key, int *_len) in nfs_fscache_get_client_key() argument 93 char *key; in nfs_fscache_get_super_cookie() local 102 if (!key) in nfs_fscache_get_super_cookie() 105 memcpy(key, "nfs", 3); in nfs_fscache_get_super_cookie() 123 key[len++] = ','; in nfs_fscache_get_super_cookie() 124 memcpy(key + len, uniq, ulen); in nfs_fscache_get_super_cookie() 127 key[len] = 0; in nfs_fscache_get_super_cookie() 130 vcookie = fscache_acquire_volume(key, in nfs_fscache_get_super_cookie() 135 kfree(key); in nfs_fscache_get_super_cookie() [all …]
|
| /fs/xfs/scrub/ |
| A D | xfblob.c | 78 struct xb_key key; in xfblob_load() local 81 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_load() 85 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_load() 95 cookie + sizeof(key)); in xfblob_load() 106 struct xb_key key = { in xfblob_store() local 114 error = xfile_store(blob->xfile, &key, sizeof(key), pos); in xfblob_store() 118 pos += sizeof(key); in xfblob_store() 137 struct xb_key key; in xfblob_free() local 140 error = xfile_load(blob->xfile, &key, sizeof(key), cookie); in xfblob_free() 144 if (key.xb_magic != XB_KEY_MAGIC || key.xb_offset != cookie) { in xfblob_free() [all …]
|
| /fs/bcachefs/ |
| A D | checksum.c | 126 bch2_chacha20(&c->chacha20_key, nonce, key, sizeof(key)); in bch2_poly1305_init() 487 if (keyctl_read(key_id, (void *) key, sizeof(*key)) != sizeof(*key)) in __bch2_request_key() 545 struct bch_key *key) in bch2_decrypt_sb_key() argument 570 *key = sb_key.key; in bch2_decrypt_sb_key() 588 struct bch_key key; 607 crypt->key.key = key; 639 get_random_bytes(&key.key, sizeof(key.key)); 649 &key, sizeof(key)); 655 (void *) &key.key, sizeof(key.key)); 666 crypt->key = key; [all …]
|
| /fs/crypto/ |
| A D | keysetup_v1.c | 82 static struct key * 89 struct key *key; in find_and_lock_process_key() local 100 if (IS_ERR(key)) in find_and_lock_process_key() 101 return key; in find_and_lock_process_key() 127 return key; in find_and_lock_process_key() 130 up_read(&key->sem); in find_and_lock_process_key() 131 key_put(key); in find_and_lock_process_key() 297 struct key *key; in fscrypt_setup_v1_file_key_via_subscribed_keyrings() local 309 if (IS_ERR(key)) in fscrypt_setup_v1_file_key_via_subscribed_keyrings() 313 up_read(&key->sem); in fscrypt_setup_v1_file_key_via_subscribed_keyrings() [all …]
|
| /fs/cachefiles/ |
| A D | key.c | 45 _enter(",%u,%*phN", keylen, keylen, key); in cachefiles_cook_key() 51 ch = key[i]; in cachefiles_cook_key() 63 memcpy(name + 1, key, keylen); in cachefiles_cook_key() 95 x = be32_to_cpu(*(__be32 *)(key + i)); in cachefiles_cook_key() 114 kend = key + keylen; in cachefiles_cook_key() 116 acc = *key++; in cachefiles_cook_key() 117 if (key < kend) { in cachefiles_cook_key() 118 acc |= *key++ << 8; in cachefiles_cook_key() 119 if (key < kend) in cachefiles_cook_key() 120 acc |= *key++ << 16; in cachefiles_cook_key() [all …]
|
| /fs/smb/client/ |
| A D | fscache.c | 43 char *key; in cifs_fscache_get_super_cookie() local 67 memset(&key, 0, sizeof(key)); in cifs_fscache_get_super_cookie() 82 if (!key) in cifs_fscache_get_super_cookie() 86 vcookie = fscache_acquire_volume(key, in cifs_fscache_get_super_cookie() 95 pr_err("Cache volume key already in use (%s)\n", key); in cifs_fscache_get_super_cookie() 107 kfree(key); in cifs_fscache_get_super_cookie() 130 struct cifs_fscache_inode_key key; in cifs_fscache_get_inode_cookie() local 135 key.uniqueid = cpu_to_le64(cifsi->uniqueid); in cifs_fscache_get_inode_cookie() 136 key.createtime = cpu_to_le64(cifsi->createtime); in cifs_fscache_get_inode_cookie() 137 key.type = (inode->i_mode & S_IFMT) >> 12; in cifs_fscache_get_inode_cookie() [all …]
|
| /fs/ntfs3/ |
| A D | bitmap.c | 27 size_t key; member 151 if (v < k->key) { in rb_lookup() 254 if (e->start.key + e->count.key == bit) { in wnd_add_free_ext() 269 next_end = e->start.key + e->count.key; in wnd_add_free_ext() 376 end = e->start.key + e->count.key; in wnd_remove_free_ext() 402 end3 = e3->start.key + e3->count.key; in wnd_remove_free_ext() 886 end = e->start.key + e->count.key; in wnd_is_free() 923 if (e->start.key + e->count.key > bit) in wnd_is_used() 1037 if (e->start.key + e->count.key > hint) { in wnd_find() 1039 size_t len = e->start.key + e->count.key - hint; in wnd_find() [all …]
|