Searched refs:rsn (Results 1 – 4 of 4) sorted by relevance
51 inline uint64_t fec_ecc_interleave(uint64_t offset, int rsn, uint64_t rounds) in fec_ecc_interleave() argument53 return (offset / rsn) + (offset % rsn) * rounds * FEC_BLOCKSIZE; in fec_ecc_interleave()
118 int erasures[e->rsn]; in __ecc_read()124 for (int i = 0; i < e->rsn; ++i) { in __ecc_read()125 uint64_t interleaved = fec_ecc_interleave(rsb * e->rsn + i, e->rsn, in __ecc_read()163 if (!raw_pread(f, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
100 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header()149 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header()536 f->ecc.rsn = FEC_RSM - roots; in fec_open()
70 int rsn; member