Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/nand/raw/
A Domap_elm.c38 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[0]; in elm_load_syndromes()
43 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[1]; in elm_load_syndromes()
50 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[2]; in elm_load_syndromes()
96 u8 poly = ELM_DEFAULT_POLY; in elm_check_error() local
100 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error()
105 &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]); in elm_check_error()
108 while ((readl(&elm_cfg->irqstatus) & (0x1 << poly)) != 0x1) in elm_check_error()
111 writel((readl(&elm_cfg->irqstatus) | (0x1 << poly)), in elm_check_error()
146 u8 poly = ELM_DEFAULT_POLY; in elm_config() local
157 writel((readl(&elm_cfg->irqenable) | (0x1 << poly)), in elm_config()
[all …]
A Datmel_nand.c761 static inline int deg(unsigned int poly) in deg() argument
764 return fls(poly) - 1; in deg()
767 static int build_gf_tables(int mm, unsigned int poly, in build_gf_tables() argument
771 const unsigned int k = 1 << deg(poly); in build_gf_tables()
786 x ^= poly; in build_gf_tables()
800 unsigned int poly = (sector_size == 512) ? in create_lookup_table() local
808 if (addr && build_gf_tables(degree, poly, addr, addr + table_size)) in create_lookup_table()
/u-boot/tools/
A Dpbl_crc32.c17 uint32_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
26 poly = 0x04c11db7; in make_crc_table()
32 mask = (mask << 1) ^ poly; in make_crc_table()
/u-boot/lib/
A Dbch.c124 struct gf_poly poly; member
391 uint32_t poly; in compute_syndromes() local
404 poly = *ecc++; in compute_syndromes()
406 while (poly) { in compute_syndromes()
407 i = deg(poly); in compute_syndromes()
599 if (poly->c[0]) in find_poly_deg1_roots()
615 if (poly->c[0] && poly->c[1]) { in find_poly_deg2_roots()
657 if (poly->c[0]) { in find_poly_deg3_roots()
659 e3 = poly->c[3]; in find_poly_deg3_roots()
694 e4 = poly->c[4]; in find_poly_deg4_roots()
[all …]
A Dcrc32c.c29 const uint32_t poly = pol; /* Bit-reflected CRC32C polynomial */ in crc32c_init() local
34 v = (v >> 1) ^ ((v & 1) ? poly : 0); in crc32c_init()
A Dcrc32.c67 uLong poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
73 poly = 0L; in make_crc_table()
75 poly |= 1L << (31 - p[n]); in make_crc_table()
81 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
/u-boot/drivers/w1-eeprom/
A Dds2502.c40 static const u8 poly = 0x8C; /* (1 + x^4 + x^5) + x^8 */ in ds2502_crc8() local
53 crc ^= poly; in ds2502_crc8()

Completed in 32 milliseconds