Searched refs:bch_crc_bytes (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | ec.h | 37 unsigned csum_bytes = bch_crc_bytes[s->csum_type]; in stripe_csum_offset() 85 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get() 93 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
|
D | checksum.h | 53 unsigned bytes = type < BCH_CSUM_NR ? bch_crc_bytes[type] : 16; in bch2_csum_to_text()
|
D | checksum.c | 241 memcpy(&ret, digest, bch_crc_bytes[type]); in bch2_checksum() 315 memcpy(&ret, digest, bch_crc_bytes[type]); in __bch2_checksum_bio()
|
D | extents.c | 566 if (bch_crc_bytes[new.csum_type] <= 4 && in bch2_extent_crc_append() 570 else if (bch_crc_bytes[new.csum_type] <= 10 && in bch2_extent_crc_append() 574 else if (bch_crc_bytes[new.csum_type] <= 16 && in bch2_extent_crc_append()
|
D | bcachefs_format.h | 1007 static const __maybe_unused unsigned bch_crc_bytes[] = { variable
|