Searched refs:csum_idx (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | ec.h | 33 unsigned dev, unsigned csum_idx) in stripe_csum_offset() argument 41 (dev * stripe_csums_per_device(s) + csum_idx) * csum_bytes; in stripe_csum_offset() 72 unsigned block, unsigned csum_idx) in stripe_csum() argument 75 EBUG_ON(csum_idx >= stripe_csums_per_device(s)); in stripe_csum() 77 return (void *) s + stripe_csum_offset(s, block, csum_idx); in stripe_csum() 81 unsigned block, unsigned csum_idx) in stripe_csum_get() argument 85 memcpy(&csum, stripe_csum(s, block, csum_idx), bch_crc_bytes[s->csum_type]); in stripe_csum_get() 90 unsigned block, unsigned csum_idx, in stripe_csum_set() argument 93 memcpy(stripe_csum(s, block, csum_idx), &csum, bch_crc_bytes[s->csum_type]); in stripe_csum_set()
|