Searched refs:bch_crc_bytes (Results 1 – 5 of 5) sorted by relevance
/linux/fs/bcachefs/ |
H A D | ec.h | 36 unsigned csum_bytes = bch_crc_bytes[s->csum_type]; in stripe_csum_offset() 84 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get() 92 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
|
H A D | checksum.h | 53 unsigned bytes = type < BCH_CSUM_NR ? bch_crc_bytes[type] : 16; in bch2_csum_to_text()
|
H A D | checksum.c | 242 memcpy(&ret, digest, bch_crc_bytes[type]); in bch2_checksum() 320 memcpy(&ret, digest, bch_crc_bytes[type]); in __bch2_checksum_bio()
|
H A D | extents.c | 576 if (bch_crc_bytes[new.csum_type] <= 4 && in bch2_extent_crc_append() 580 else if (bch_crc_bytes[new.csum_type] <= 10 && in bch2_extent_crc_append() 584 else if (bch_crc_bytes[new.csum_type] <= 16 && in bch2_extent_crc_append()
|
H A D | bcachefs_format.h | 1019 static const __maybe_unused unsigned bch_crc_bytes[] = { variable
|