Home
last modified time | relevance | path

Searched refs:bch_crc_bytes (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dec.h37 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()
Dchecksum.h53 unsigned bytes = type < BCH_CSUM_NR ? bch_crc_bytes[type] : 16; in bch2_csum_to_text()
Dchecksum.c241 memcpy(&ret, digest, bch_crc_bytes[type]); in bch2_checksum()
315 memcpy(&ret, digest, bch_crc_bytes[type]); in __bch2_checksum_bio()
Dextents.c566 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()
Dbcachefs_format.h1007 static const __maybe_unused unsigned bch_crc_bytes[] = { variable