Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 14 of 14) sorted by relevance

/fs/erofs/
A Ddecompressor_crypto.c85 for (e = z_erofs_crypto[alg]; e->crypto_name; ++e) in z_erofs_crypto_get_engine()
98 tfm = z_erofs_crypto_get_engine(rq->alg); in z_erofs_crypto_decompress()
128 int alg; in z_erofs_crypto_enable_engine() local
131 for (alg = 0; alg < Z_EROFS_COMPRESSION_MAX; ++alg) { in z_erofs_crypto_enable_engine()
132 for (e = z_erofs_crypto[alg]; e->crypto_name; ++e) { in z_erofs_crypto_enable_engine()
153 int alg; in z_erofs_crypto_disable_all_engines() local
156 for (alg = 0; alg < Z_EROFS_COMPRESSION_MAX; ++alg) { in z_erofs_crypto_disable_all_engines()
157 for (e = z_erofs_crypto[alg]; e->crypto_name; ++e) { in z_erofs_crypto_disable_all_engines()
170 int alg, len = 0; in z_erofs_crypto_show_engines() local
172 for (alg = 0; alg < Z_EROFS_COMPRESSION_MAX; ++alg) { in z_erofs_crypto_show_engines()
[all …]
A Ddecompressor.c298 if (rq->alg == Z_EROFS_COMPRESSION_INTERLACED) { in z_erofs_transform_plain()
454 unsigned int algs, alg; in z_erofs_parse_cfgs() local
472 alg = 0; in z_erofs_parse_cfgs()
473 for (algs = sbi->available_compr_algs; algs; algs >>= 1, ++alg) { in z_erofs_parse_cfgs()
474 const struct z_erofs_decompressor *dec = z_erofs_decomp[alg]; in z_erofs_parse_cfgs()
486 if (alg < Z_EROFS_COMPRESSION_MAX && dec && dec->config) { in z_erofs_parse_cfgs()
490 alg); in z_erofs_parse_cfgs()
A Dcompress.h18 unsigned int alg; /* the algorithm for decompression */ member
A Dzdata.c1321 .alg = pcl->algorithmformat, in z_erofs_decompress_pcluster()
/fs/verity/
A Dhash_algs.c55 fsverity_prepare_hash_state(const struct fsverity_hash_alg *alg, in fsverity_prepare_hash_state() argument
70 padded_salt_size = round_up(salt_size, alg->block_size); in fsverity_prepare_hash_state()
76 switch (alg->algo_id) { in fsverity_prepare_hash_state()
138 void fsverity_hash_buffer(const struct fsverity_hash_alg *alg, in fsverity_hash_buffer() argument
141 switch (alg->algo_id) { in fsverity_hash_buffer()
164 if (!alg->name) in fsverity_check_hash_algs()
175 BUG_ON(alg->digest_size > FS_VERITY_MAX_DIGEST_SIZE); in fsverity_check_hash_algs()
182 BUG_ON(!is_power_of_2(alg->digest_size)); in fsverity_check_hash_algs()
183 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
186 BUG_ON(alg->algo_id == 0); in fsverity_check_hash_algs()
[all …]
A Dmeasure.c88 u8 *alg, enum hash_algo *halg) in fsverity_get_digest() argument
99 if (alg) in fsverity_get_digest()
100 *alg = hash_alg - fsverity_hash_algs; in fsverity_get_digest()
A Dfsverity_private.h89 fsverity_prepare_hash_state(const struct fsverity_hash_alg *alg,
93 void fsverity_hash_buffer(const struct fsverity_hash_alg *alg,
/fs/smb/client/
A Dcompress.h64 static __always_inline int smb_compress_alg_valid(__le16 alg, bool valid_none) in smb_compress_alg_valid() argument
66 if (alg == SMB3_COMPRESS_NONE) in smb_compress_alg_valid()
69 if (alg == SMB3_COMPRESS_LZ77 || alg == SMB3_COMPRESS_PATTERN) in smb_compress_alg_valid()
A Dmisc.c1027 struct crypto_shash *alg = NULL; in cifs_alloc_hash() local
1032 alg = crypto_alloc_shash(name, 0, 0); in cifs_alloc_hash()
1033 if (IS_ERR(alg)) { in cifs_alloc_hash()
1035 rc = PTR_ERR(alg); in cifs_alloc_hash()
1040 *sdesc = kmalloc(sizeof(struct shash_desc) + crypto_shash_descsize(alg), GFP_KERNEL); in cifs_alloc_hash()
1043 crypto_free_shash(alg); in cifs_alloc_hash()
1047 (*sdesc)->tfm = alg; in cifs_alloc_hash()
A Dcifs_debug.c332 static __always_inline const char *compression_alg_str(__le16 alg) in compression_alg_str() argument
334 switch (alg) { in compression_alg_str()
538 seq_printf(m, "enabled (%s)", compression_alg_str(server->compression.alg)); in cifs_debug_data_proc_show()
A Dsmb2pdu.c797 __le16 alg; in decode_compress_ctx() local
816 alg = ctxt->CompressionAlgorithms[0]; in decode_compress_ctx()
819 if (alg == 0 || le16_to_cpu(alg) > 3) { in decode_compress_ctx()
820 pr_warn_once("invalid compression algorithm '%u'\n", alg); in decode_compress_ctx()
824 server->compression.alg = alg; in decode_compress_ctx()
A Dcifsglob.h821 __le16 alg; /* preferred alg negotiated with server */ member
/fs/f2fs/
A Dcompress.c553 bool f2fs_is_compress_level_valid(int alg, int lvl) in f2fs_is_compress_level_valid() argument
555 const struct f2fs_compress_ops *cops = f2fs_cops[alg]; in f2fs_is_compress_level_valid()
A Df2fs.h4466 bool f2fs_is_compress_level_valid(int alg, int lvl);
4532 static inline bool f2fs_is_compress_level_valid(int alg, int lvl) { return false; } in f2fs_is_compress_level_valid() argument

Completed in 61 milliseconds