Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 64) sorted by relevance

123

/fs/nfs/
Dpagelist.c35 nfs_pgio_get_mirror(struct nfs_pageio_descriptor *desc, u32 idx) in nfs_pgio_get_mirror() argument
37 if (desc->pg_ops->pg_get_mirror) in nfs_pgio_get_mirror()
38 return desc->pg_ops->pg_get_mirror(desc, idx); in nfs_pgio_get_mirror()
39 return &desc->pg_mirrors[0]; in nfs_pgio_get_mirror()
43 nfs_pgio_current_mirror(struct nfs_pageio_descriptor *desc) in nfs_pgio_current_mirror() argument
45 return nfs_pgio_get_mirror(desc, desc->pg_mirror_idx); in nfs_pgio_current_mirror()
50 nfs_pgio_set_current_mirror(struct nfs_pageio_descriptor *desc, u32 idx) in nfs_pgio_set_current_mirror() argument
52 if (desc->pg_ops->pg_set_mirror) in nfs_pgio_set_current_mirror()
53 return desc->pg_ops->pg_set_mirror(desc, idx); in nfs_pgio_set_current_mirror()
54 return desc->pg_mirror_idx; in nfs_pgio_set_current_mirror()
[all …]
Ddir.c391 struct nfs_readdir_descriptor *desc) in nfs_readdir_search_for_pos() argument
393 loff_t diff = desc->ctx->pos - desc->current_index; in nfs_readdir_search_for_pos()
405 desc->dir_cookie = array->array[index].cookie; in nfs_readdir_search_for_pos()
406 desc->cache_entry_index = index; in nfs_readdir_search_for_pos()
409 desc->eof = true; in nfs_readdir_search_for_pos()
436 struct nfs_readdir_descriptor *desc) in nfs_readdir_search_for_cookie() argument
442 if (!nfs_readdir_array_cookie_in_range(array, desc->dir_cookie)) in nfs_readdir_search_for_cookie()
446 if (array->array[i].cookie == desc->dir_cookie) { in nfs_readdir_search_for_cookie()
447 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie()
449 new_pos = desc->current_index + i; in nfs_readdir_search_for_cookie()
[all …]
Dread.c295 struct nfs_readdesc *desc = data; in readpage_async_filler() local
308 new = nfs_create_request(desc->ctx, page, 0, aligned_len); in readpage_async_filler()
314 if (!nfs_pageio_add_request(&desc->pgio, new)) { in readpage_async_filler()
316 error = desc->pgio.pg_error; in readpage_async_filler()
336 struct nfs_readdesc desc; in nfs_readpage() local
363 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpage()
364 if (desc.ctx == NULL) in nfs_readpage()
367 desc.ctx = get_nfs_open_context(nfs_file_open_context(file)); in nfs_readpage()
369 xchg(&desc.ctx->error, 0); in nfs_readpage()
371 ret = nfs_readpage_from_fscache(desc.ctx, inode, page); in nfs_readpage()
[all …]
Ddirect.c351 struct nfs_pageio_descriptor desc; in nfs_direct_read_schedule_iovec() local
357 nfs_pageio_init_read(&desc, dreq->inode, false, in nfs_direct_read_schedule_iovec()
360 desc.pg_dreq = dreq; in nfs_direct_read_schedule_iovec()
389 if (!nfs_pageio_add_request(&desc, req)) { in nfs_direct_read_schedule_iovec()
390 result = desc.pg_error; in nfs_direct_read_schedule_iovec()
406 nfs_pageio_complete(&desc); in nfs_direct_read_schedule_iovec()
569 struct nfs_pageio_descriptor desc; in nfs_direct_write_reschedule() local
587 nfs_pageio_init_write(&desc, dreq->inode, FLUSH_STABLE, false, in nfs_direct_write_reschedule()
589 desc.pg_dreq = dreq; in nfs_direct_write_reschedule()
594 if (!nfs_pageio_add_request(&desc, req)) { in nfs_direct_write_reschedule()
[all …]
Dnfs4idmap.c259 const char *type, size_t typelen, char **desc) in nfs_idmap_get_desc() argument
264 *desc = kmalloc(desclen, GFP_KERNEL); in nfs_idmap_get_desc()
265 if (!*desc) in nfs_idmap_get_desc()
268 cp = *desc; in nfs_idmap_get_desc()
282 char *desc; in nfs_idmap_request_key() local
286 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key()
291 rkey = request_key(&key_type_id_resolver, desc, ""); in nfs_idmap_request_key()
295 desc, NULL, "", 0, idmap); in nfs_idmap_request_key()
301 kfree(desc); in nfs_idmap_request_key()
511 static int nfs_idmap_prepare_message(char *desc, struct idmap *idmap, in nfs_idmap_prepare_message() argument
[all …]
/fs/verity/
Dopen.c131 struct fsverity_descriptor *desc, in compute_file_digest() argument
134 __le32 sig_size = desc->sig_size; in compute_file_digest()
137 desc->sig_size = 0; in compute_file_digest()
138 err = fsverity_hash_buffer(hash_alg, desc, sizeof(*desc), file_digest); in compute_file_digest()
139 desc->sig_size = sig_size; in compute_file_digest()
150 struct fsverity_descriptor *desc, in fsverity_create_info() argument
162 desc->hash_algorithm, in fsverity_create_info()
163 desc->log_blocksize, in fsverity_create_info()
164 desc->salt, desc->salt_size); in fsverity_create_info()
172 memcpy(vi->root_hash, desc->root_hash, vi->tree_params.digest_size); in fsverity_create_info()
[all …]
Denable.c204 struct fsverity_descriptor *desc; in enable_verity() local
205 size_t desc_size = sizeof(*desc) + arg->sig_size; in enable_verity()
210 desc = kzalloc(desc_size, GFP_KERNEL); in enable_verity()
211 if (!desc) in enable_verity()
213 desc->version = 1; in enable_verity()
214 desc->hash_algorithm = arg->hash_algorithm; in enable_verity()
215 desc->log_blocksize = ilog2(arg->block_size); in enable_verity()
219 copy_from_user(desc->salt, u64_to_user_ptr(arg->salt_ptr), in enable_verity()
224 desc->salt_size = arg->salt_size; in enable_verity()
228 copy_from_user(desc->signature, u64_to_user_ptr(arg->sig_ptr), in enable_verity()
[all …]
Dread_metadata.c100 struct fsverity_descriptor *desc; in fsverity_read_descriptor() local
104 res = fsverity_get_descriptor(inode, &desc, &desc_size); in fsverity_read_descriptor()
110 desc->sig_size = 0; in fsverity_read_descriptor()
112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor()
114 kfree(desc); in fsverity_read_descriptor()
121 struct fsverity_descriptor *desc; in fsverity_read_signature() local
125 res = fsverity_get_descriptor(inode, &desc, &desc_size); in fsverity_read_signature()
129 if (desc->sig_size == 0) { in fsverity_read_signature()
138 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature()
139 le32_to_cpu(desc->sig_size)); in fsverity_read_signature()
[all …]
/fs/ext2/
Dialloc.c49 struct ext2_group_desc *desc; in read_inode_bitmap() local
52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap()
53 if (!desc) in read_inode_bitmap()
56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
68 struct ext2_group_desc * desc; in ext2_release_inode() local
71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
72 if (!desc) { in ext2_release_inode()
79 le16_add_cpu(&desc->bg_free_inodes_count, 1); in ext2_release_inode()
81 le16_add_cpu(&desc->bg_used_dirs_count, -1); in ext2_release_inode()
[all …]
Dballoc.c47 struct ext2_group_desc * desc; in ext2_get_group_desc() local
67 desc = (struct ext2_group_desc *) sbi->s_group_desc[group_desc]->b_data; in ext2_get_group_desc()
70 return desc + offset; in ext2_get_group_desc()
74 struct ext2_group_desc *desc, in ext2_valid_block_bitmap() argument
86 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in ext2_valid_block_bitmap()
93 bitmap_blk = le32_to_cpu(desc->bg_inode_bitmap); in ext2_valid_block_bitmap()
100 bitmap_blk = le32_to_cpu(desc->bg_inode_table); in ext2_valid_block_bitmap()
126 struct ext2_group_desc * desc; in read_block_bitmap() local
130 desc = ext2_get_group_desc(sb, block_group, NULL); in read_block_bitmap()
131 if (!desc) in read_block_bitmap()
[all …]
/fs/nfs_common/
Dnfsacl.c35 struct xdr_array2_desc desc; member
49 xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_encode() argument
52 (struct nfsacl_encode_desc *) desc; in xdr_nfsace_encode()
97 .desc = { in nfsacl_encode()
131 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode()
133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode()
134 nfsacl_desc.desc.array_len; in nfsacl_encode()
159 .desc = { in nfs_stream_encode_acl()
199 elem_size * nfsacl_desc.desc.array_len)) in nfs_stream_encode_acl()
201 err = xdr_encode_array2(xdr->buf, base, &nfsacl_desc.desc); in nfs_stream_encode_acl()
[all …]
/fs/ksmbd/
Dcrypto_ctx.h35 struct shash_desc *desc[CRYPTO_SHASH_MAX]; member
39 #define CRYPTO_HMACMD5(c) ((c)->desc[CRYPTO_SHASH_HMACMD5])
40 #define CRYPTO_HMACSHA256(c) ((c)->desc[CRYPTO_SHASH_HMACSHA256])
41 #define CRYPTO_CMACAES(c) ((c)->desc[CRYPTO_SHASH_CMACAES])
42 #define CRYPTO_SHA256(c) ((c)->desc[CRYPTO_SHASH_SHA256])
43 #define CRYPTO_SHA512(c) ((c)->desc[CRYPTO_SHASH_SHA512])
45 #define CRYPTO_HMACMD5_TFM(c) ((c)->desc[CRYPTO_SHASH_HMACMD5]->tfm)
47 ((c)->desc[CRYPTO_SHASH_HMACSHA256]->tfm)
48 #define CRYPTO_CMACAES_TFM(c) ((c)->desc[CRYPTO_SHASH_CMACAES]->tfm)
49 #define CRYPTO_SHA256_TFM(c) ((c)->desc[CRYPTO_SHASH_SHA256]->tfm)
[all …]
/fs/incfs/
Dverity.c132 struct fsverity_descriptor *desc, in incfs_compute_file_digest() argument
138 return crypto_shash_digest(d, (u8 *)desc, sizeof(*desc), digest); in incfs_compute_file_digest()
211 struct fsverity_descriptor *desc, in incfs_calc_verity_digest_from_desc() argument
219 incfs_hash_alg = incfs_convert_fsverity_hash_alg(desc->hash_algorithm); in incfs_calc_verity_digest_from_desc()
232 err = incfs_compute_file_digest(hash_alg, desc, in incfs_calc_verity_digest_from_desc()
244 desc->hash_algorithm); in incfs_calc_verity_digest_from_desc()
257 struct fsverity_descriptor *desc = kzalloc(sizeof(*desc), GFP_KERNEL); in incfs_get_fsverity_descriptor() local
260 if (!desc) in incfs_get_fsverity_descriptor()
263 *desc = (struct fsverity_descriptor) { in incfs_get_fsverity_descriptor()
270 err = incfs_get_root_hash(filp, desc->root_hash); in incfs_get_fsverity_descriptor()
[all …]
/fs/crypto/
Dhkdf.c120 SHASH_DESC_ON_STACK(desc, hkdf->hmac_tfm); in fscrypt_hkdf_expand()
131 desc->tfm = hkdf->hmac_tfm; in fscrypt_hkdf_expand()
138 err = crypto_shash_init(desc); in fscrypt_hkdf_expand()
143 err = crypto_shash_update(desc, prev, HKDF_HASHLEN); in fscrypt_hkdf_expand()
148 err = crypto_shash_update(desc, prefix, sizeof(prefix)); in fscrypt_hkdf_expand()
152 err = crypto_shash_update(desc, info, infolen); in fscrypt_hkdf_expand()
158 err = crypto_shash_finup(desc, &counter, 1, tmp); in fscrypt_hkdf_expand()
164 err = crypto_shash_finup(desc, &counter, 1, &okm[i]); in fscrypt_hkdf_expand()
175 shash_desc_zero(desc); in fscrypt_hkdf_expand()
/fs/nilfs2/
Dalloc.c130 nilfs_palloc_group_desc_nfrees(const struct nilfs_palloc_group_desc *desc, in nilfs_palloc_group_desc_nfrees() argument
136 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_nfrees()
148 nilfs_palloc_group_desc_add_entries(struct nilfs_palloc_group_desc *desc, in nilfs_palloc_group_desc_add_entries() argument
154 le32_add_cpu(&desc->pg_nfrees, n); in nilfs_palloc_group_desc_add_entries()
155 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_add_entries()
185 struct nilfs_palloc_group_desc *desc = kaddr + bh_offset(bh); in nilfs_palloc_desc_block_init() local
191 desc->pg_nfrees = nfrees; in nilfs_palloc_desc_block_init()
192 desc++; in nilfs_palloc_desc_block_init()
503 struct nilfs_palloc_group_desc *desc; in nilfs_palloc_prepare_alloc_entry() local
529 desc = nilfs_palloc_block_get_group_desc( in nilfs_palloc_prepare_alloc_entry()
[all …]
/fs/ext4/
Dialloc.c80 struct ext4_group_desc *desc, in ext4_validate_inode_bitmap() argument
100 blk = ext4_inode_bitmap(sb, desc); in ext4_validate_inode_bitmap()
101 if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh, in ext4_validate_inode_bitmap()
126 struct ext4_group_desc *desc; in ext4_read_inode_bitmap() local
132 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap()
133 if (!desc) in ext4_read_inode_bitmap()
136 bitmap_blk = ext4_inode_bitmap(sb, desc); in ext4_read_inode_bitmap()
163 (desc->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_read_inode_bitmap()
210 err = ext4_validate_inode_bitmap(sb, desc, block_group, bh); in ext4_read_inode_bitmap()
379 struct ext4_group_desc *desc; in get_orlov_stats() local
[all …]
Dballoc.c271 struct ext4_group_desc *desc; in ext4_get_group_desc() local
298 desc = (struct ext4_group_desc *)( in ext4_get_group_desc()
303 return desc; in ext4_get_group_desc()
341 struct ext4_group_desc *desc, in ext4_valid_block_bitmap() argument
364 blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap()
372 blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap()
380 blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap()
396 struct ext4_group_desc *desc, in ext4_validate_block_bitmap() argument
417 desc, bh) || in ext4_validate_block_bitmap()
425 blk = ext4_valid_block_bitmap(sb, desc, block_group, bh); in ext4_validate_block_bitmap()
[all …]
/fs/hfs/
Dbnode.c151 struct hfs_bnode_desc desc; in hfs_bnode_dump() local
156 hfs_bnode_read(node, &desc, 0, sizeof(desc)); in hfs_bnode_dump()
158 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump()
159 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump()
162 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump()
331 struct hfs_bnode_desc *desc; in hfs_bnode_find() local
354 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + node->page_offset); in hfs_bnode_find()
355 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find()
356 node->next = be32_to_cpu(desc->next); in hfs_bnode_find()
357 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find()
[all …]
Dbtree.c192 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local
209 desc.next = 0; in hfs_bmap_new_bmap()
210 desc.prev = 0; in hfs_bmap_new_bmap()
211 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap()
212 desc.height = 0; in hfs_bmap_new_bmap()
213 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
214 desc.reserved = 0; in hfs_bmap_new_bmap()
215 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
/fs/ocfs2/
Daops.c1228 struct ocfs2_write_cluster_desc *desc; in ocfs2_write_cluster_by_desc() local
1232 desc = &wc->w_desc[i]; in ocfs2_write_cluster_by_desc()
1243 ret = ocfs2_write_cluster(mapping, &desc->c_phys, in ocfs2_write_cluster_by_desc()
1244 desc->c_new, in ocfs2_write_cluster_by_desc()
1245 desc->c_clear_unwritten, in ocfs2_write_cluster_by_desc()
1246 desc->c_needs_zero, in ocfs2_write_cluster_by_desc()
1248 wc, desc->c_cpos, pos, local_len); in ocfs2_write_cluster_by_desc()
1272 struct ocfs2_write_cluster_desc *desc; in ocfs2_set_target_boundaries() local
1296 desc = &wc->w_desc[0]; in ocfs2_set_target_boundaries()
1297 if (desc->c_needs_zero) in ocfs2_set_target_boundaries()
[all …]
/fs/hfsplus/
Dbnode.c300 struct hfs_bnode_desc desc; in hfs_bnode_dump() local
305 hfs_bnode_read(node, &desc, 0, sizeof(desc)); in hfs_bnode_dump()
307 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump()
308 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump()
311 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump()
481 struct hfs_bnode_desc *desc; in hfs_bnode_find() local
505 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + in hfs_bnode_find()
507 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find()
508 node->next = be32_to_cpu(desc->next); in hfs_bnode_find()
509 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find()
[all …]
Dbtree.c316 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local
331 desc.next = 0; in hfs_bmap_new_bmap()
332 desc.prev = 0; in hfs_bmap_new_bmap()
333 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap()
334 desc.height = 0; in hfs_bmap_new_bmap()
335 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap()
336 desc.reserved = 0; in hfs_bmap_new_bmap()
337 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
/fs/reiserfs/
Djournal.c1983 struct reiserfs_journal_desc *desc, in journal_compare_desc_commit() argument
1986 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) || in journal_compare_desc_commit()
1987 get_commit_trans_len(commit) != get_desc_trans_len(desc) || in journal_compare_desc_commit()
2006 struct reiserfs_journal_desc *desc; in journal_transaction_is_valid() local
2014 desc = (struct reiserfs_journal_desc *)d_bh->b_data; in journal_transaction_is_valid()
2015 if (get_desc_trans_len(desc) > 0 in journal_transaction_is_valid()
2018 && get_desc_trans_id(desc) > *oldest_invalid_trans_id) { in journal_transaction_is_valid()
2023 get_desc_trans_id(desc), in journal_transaction_is_valid()
2028 && *newest_mount_id > get_desc_mount_id(desc)) { in journal_transaction_is_valid()
2033 get_desc_mount_id(desc), in journal_transaction_is_valid()
[all …]
/fs/
Dfs_parser.c55 const struct fs_parameter_spec *desc, in fs_lookup_key() argument
63 for (p = desc; p->name; p++) { in fs_lookup_key()
72 for (p = desc; p->name; p++) { in fs_lookup_key()
104 const struct fs_parameter_spec *desc, in __fs_parse() argument
112 p = fs_lookup_key(desc, param, &result->negated); in __fs_parse()
365 const struct fs_parameter_spec *desc) in fs_validate_description() argument
370 for (param = desc; param->name; param++) { in fs_validate_description()
372 for (p2 = desc; p2 < param; p2++) { in fs_validate_description()
/fs/ubifs/
Dauth.c93 struct shash_desc *desc; in ubifs_get_desc() local
99 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); in ubifs_get_desc()
100 if (!desc) in ubifs_get_desc()
103 desc->tfm = tfm; in ubifs_get_desc()
105 err = crypto_shash_init(desc); in ubifs_get_desc()
107 kfree(desc); in ubifs_get_desc()
111 return desc; in ubifs_get_desc()

123