Searched refs:data_dev_block_bits (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/md/ |
D | dm-verity-fec.c | 39 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave() 155 if (block_offset >= 1 << v->data_dev_block_bits) in fec_decode_bufs() 189 if (unlikely(verity_hash(v, io, data, 1 << v->data_dev_block_bits, in fec_is_erasure() 236 block = ileaved >> v->data_dev_block_bits; in fec_read_bufs() 291 if (k >= 1 << v->data_dev_block_bits) in fec_read_bufs() 374 for (pos = 0; pos < 1 << v->data_dev_block_bits; ) { in fec_decode_rsb() 390 r = verity_hash(v, io, fio->output, 1 << v->data_dev_block_bits, in fec_decode_rsb() 436 offset = block << v->data_dev_block_bits; in verity_fec_decode() 437 res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode() 443 rsb = offset - res * (v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode() [all …]
|
D | dm-verity-target.c | 434 io_loc.sector = cur_block << (v->data_dev_block_bits - SECTOR_SHIFT); in verity_recheck() 435 io_loc.count = 1 << (v->data_dev_block_bits - SECTOR_SHIFT); in verity_recheck() 440 r = verity_hash(v, io, buffer, 1 << v->data_dev_block_bits, in verity_recheck() 451 memcpy(dest, buffer, 1 << v->data_dev_block_bits); in verity_recheck() 498 const unsigned int block_size = 1 << v->data_dev_block_bits; in verity_verify_io() 698 cluster >>= v->data_dev_block_bits; in verity_prefetch_io() 765 ((1 << (v->data_dev_block_bits - SECTOR_SHIFT)) - 1)) { in verity_map() 771 (v->data_dev_block_bits - SECTOR_SHIFT) > v->data_blocks) { in verity_map() 782 io->block = bio->bi_iter.bi_sector >> (v->data_dev_block_bits - SECTOR_SHIFT); in verity_map() 783 io->n_blocks = bio->bi_iter.bi_size >> v->data_dev_block_bits; in verity_map() [all …]
|
D | dm-verity.h | 57 unsigned char data_dev_block_bits; /* log2(data blocksize) */ member
|