Home
last modified time | relevance | path

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

/linux-6.15/fs/bcachefs/
H A Dec.h32 unsigned dev, unsigned csum_idx) in stripe_csum_offset() argument
40 (dev * stripe_csums_per_device(s) + csum_idx) * csum_bytes; in stripe_csum_offset()
71 unsigned block, unsigned csum_idx) in stripe_csum() argument
74 EBUG_ON(csum_idx >= stripe_csums_per_device(s)); in stripe_csum()
76 return (void *) s + stripe_csum_offset(s, block, csum_idx); in stripe_csum()
80 unsigned block, unsigned csum_idx) in stripe_csum_get() argument
84 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get()
89 unsigned block, unsigned csum_idx, in stripe_csum_set() argument
92 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()