Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/md/
Ddm-verity-fec.h68 extern bool verity_fec_is_enabled(struct dm_verity *v);
70 extern int verity_fec_decode(struct dm_verity *v, struct dm_verity_io *io,
74 extern unsigned int verity_fec_status_table(struct dm_verity *v, unsigned int sz,
82 struct dm_verity *v, unsigned int *argc,
85 extern void verity_fec_dtr(struct dm_verity *v);
87 extern int verity_fec_ctr_alloc(struct dm_verity *v);
88 extern int verity_fec_ctr(struct dm_verity *v);
94 static inline bool verity_fec_is_enabled(struct dm_verity *v) in verity_fec_is_enabled()
99 static inline int verity_fec_decode(struct dm_verity *v, in verity_fec_decode()
107 static inline unsigned int verity_fec_status_table(struct dm_verity *v, in verity_fec_status_table()
[all …]
Ddm-verity.h36 struct dm_verity { struct
85 struct dm_verity *v; argument
111 static inline void *verity_io_hash_req(struct dm_verity *v, in verity_io_hash_req()
117 static inline u8 *verity_io_real_digest(struct dm_verity *v, in verity_io_real_digest()
123 static inline u8 *verity_io_want_digest(struct dm_verity *v, in verity_io_want_digest()
129 extern int verity_hash(struct dm_verity *v, struct dm_verity_io *io,
132 extern int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io,
Ddm-verity-target.c59 struct dm_verity *v;
94 static sector_t verity_map_sector(struct dm_verity *v, sector_t bi_sector) in verity_map_sector()
105 static sector_t verity_position_at_level(struct dm_verity *v, sector_t block, in verity_position_at_level()
111 static int verity_ahash_update(struct dm_verity *v, struct ahash_request *req, in verity_ahash_update()
144 static int verity_ahash_init(struct dm_verity *v, struct ahash_request *req, in verity_ahash_init()
169 static int verity_ahash_final(struct dm_verity *v, struct ahash_request *req, in verity_ahash_final()
189 int verity_hash(struct dm_verity *v, struct dm_verity_io *io, in verity_hash()
213 static void verity_hash_at_level(struct dm_verity *v, sector_t block, int level, in verity_hash_at_level()
234 static int verity_handle_err(struct dm_verity *v, enum verity_block_type type, in verity_handle_err()
298 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()
34 static inline u64 fec_interleave(struct dm_verity *v, u64 offset) in fec_interleave()
45 static int fec_decode_rs8(struct dm_verity *v, struct dm_verity_fec_io *fio, in fec_decode_rs8()
62 static u8 *fec_read_parity(struct dm_verity *v, u64 rsb, int index, in fec_read_parity()
105 static inline u8 *fec_buffer_rs_block(struct dm_verity *v, in fec_buffer_rs_block()
125 static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_io *io, in fec_decode_bufs()
186 static int fec_is_erasure(struct dm_verity *v, struct dm_verity_io *io, in fec_is_erasure()
201 static int fec_read_bufs(struct dm_verity *v, struct dm_verity_io *io, in fec_read_bufs()
308 static int fec_alloc_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio) in fec_alloc_bufs()
348 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()