Searched refs:rsn (Results 1 – 5 of 5) 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->fd, &ecc_data[i * FEC_RSM + e->rsn], e->roots, in __ecc_read()
102 check(f->ecc.rsn > 0 && f->ecc.rsn < FEC_RSM); in parse_ecc_header()151 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header()528 f->ecc.rsn = FEC_RSM - roots; in fec_open()
129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
71 int rsn; member