Home
last modified time | relevance | path

Searched refs:dm_verity (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
Ddm-verity-fec.h69 extern bool verity_fec_is_enabled(struct dm_verity *v);
71 extern int verity_fec_decode(struct dm_verity *v, struct dm_verity_io *io,
75 extern unsigned verity_fec_status_table(struct dm_verity *v, unsigned sz,
83 struct dm_verity *v, unsigned *argc,
86 extern void verity_fec_dtr(struct dm_verity *v);
88 extern int verity_fec_ctr_alloc(struct dm_verity *v);
89 extern int verity_fec_ctr(struct dm_verity *v);
95 static inline bool verity_fec_is_enabled(struct dm_verity *v) in verity_fec_is_enabled()
100 static inline int verity_fec_decode(struct dm_verity *v, in verity_fec_decode()
109 static inline unsigned verity_fec_status_table(struct dm_verity *v, in verity_fec_status_table()
[all …]
Ddm-verity.h34 struct dm_verity { struct
72 struct dm_verity *v; argument
96 static inline struct ahash_request *verity_io_hash_req(struct dm_verity *v, in verity_io_hash_req()
102 static inline u8 *verity_io_real_digest(struct dm_verity *v, in verity_io_real_digest()
108 static inline u8 *verity_io_want_digest(struct dm_verity *v, in verity_io_want_digest()
114 static inline u8 *verity_io_digest_end(struct dm_verity *v, in verity_io_digest_end()
120 extern int verity_for_bv_block(struct dm_verity *v, struct dm_verity_io *io,
122 int (*process)(struct dm_verity *v,
126 extern int verity_hash(struct dm_verity *v, struct ahash_request *req,
129 extern int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io,
Ddm-verity-target.c46 struct dm_verity *v;
80 static sector_t verity_map_sector(struct dm_verity *v, sector_t bi_sector) in verity_map_sector()
91 static sector_t verity_position_at_level(struct dm_verity *v, sector_t block, in verity_position_at_level()
97 static int verity_hash_update(struct dm_verity *v, struct ahash_request *req, in verity_hash_update()
128 static int verity_hash_init(struct dm_verity *v, struct ahash_request *req, in verity_hash_init()
152 static int verity_hash_final(struct dm_verity *v, struct ahash_request *req, in verity_hash_final()
172 int verity_hash(struct dm_verity *v, struct ahash_request *req, in verity_hash()
192 static void verity_hash_at_level(struct dm_verity *v, sector_t block, int level, in verity_hash_at_level()
213 static int verity_handle_err(struct dm_verity *v, enum verity_block_type type, in verity_handle_err()
275 static int verity_verify_level(struct dm_verity *v, struct dm_verity_io *io, in verity_verify_level()
[all …]
Ddm-verity-fec.c16 bool verity_fec_is_enabled(struct dm_verity *v) in verity_fec_is_enabled()
33 static inline u64 fec_interleave(struct dm_verity *v, u64 offset) in fec_interleave()
44 static int fec_decode_rs8(struct dm_verity *v, struct dm_verity_fec_io *fio, in fec_decode_rs8()
61 static u8 *fec_read_parity(struct dm_verity *v, u64 rsb, int index, in fec_read_parity()
103 static inline u8 *fec_buffer_rs_block(struct dm_verity *v, in fec_buffer_rs_block()
123 static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio, in fec_decode_bufs()
183 static int fec_is_erasure(struct dm_verity *v, struct dm_verity_io *io, in fec_is_erasure()
199 static int fec_read_bufs(struct dm_verity *v, struct dm_verity_io *io, in fec_read_bufs()
305 static int fec_alloc_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio) in fec_alloc_bufs()
345 static void fec_init_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio) in fec_init_bufs()
[all …]
Ddm-verity-verify-sig.h27 int verity_verify_sig_parse_opt_args(struct dm_arg_set *as, struct dm_verity *v,
49 struct dm_verity *v, struct dm_verity_sig_opts *sig_opts, in verity_verify_sig_parse_opt_args()
Ddm-verity-verify-sig.c68 struct dm_verity *v, in verity_verify_sig_parse_opt_args()