Searched refs:poly (Results 1 – 9 of 9) sorted by relevance
| /u-boot/drivers/mtd/nand/raw/ |
| A D | omap_elm.c | 43 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[0]; in elm_load_syndromes() 48 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[1]; in elm_load_syndromes() 55 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[2]; in elm_load_syndromes() 101 u8 poly = ELM_DEFAULT_POLY; in elm_check_error() local 105 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error() 110 &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]); in elm_check_error() 113 while ((readl(&elm_cfg->irqstatus) & (0x1 << poly)) != 0x1) in elm_check_error() 116 writel((readl(&elm_cfg->irqstatus) | (0x1 << poly)), in elm_check_error() 151 u8 poly = ELM_DEFAULT_POLY; in elm_config() local 162 writel((readl(&elm_cfg->irqenable) | (0x1 << poly)), in elm_config() [all …]
|
| A D | atmel_nand.c | 757 static inline int deg(unsigned int poly) in deg() argument 760 return fls(poly) - 1; in deg() 763 static int build_gf_tables(int mm, unsigned int poly, in build_gf_tables() argument 767 const unsigned int k = 1 << deg(poly); in build_gf_tables() 782 x ^= poly; in build_gf_tables() 796 unsigned int poly = (sector_size == 512) ? in create_lookup_table() local 804 if (addr && build_gf_tables(degree, poly, addr, addr + table_size)) in create_lookup_table()
|
| /u-boot/tools/ |
| A D | pbl_crc32.c | 17 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()
|
| A D | mtk_image.c | 77 static void crc32_normal_init(uint32_t *crc32c_table, uint32_t poly) in crc32_normal_init() argument 84 v = (v << 1) ^ ((v & (1 << 31)) ? poly : 0); in crc32_normal_init()
|
| /u-boot/lib/ |
| A D | bch.c | 124 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 D | crc32c.c | 29 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 D | crc32.c | 68 uLong poly; /* polynomial exclusive-or pattern */ in make_crc_table() local 74 poly = 0L; in make_crc_table() 76 poly |= 1L << (31 - p[n]); in make_crc_table() 82 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
|
| /u-boot/drivers/mtd/nand/raw/atmel/ |
| A D | pmecc.c | 174 static inline int deg(unsigned int poly) in deg() argument 177 return fls(poly) - 1; in deg() 180 static int atmel_pmecc_build_gf_tables(int mm, unsigned int poly, in atmel_pmecc_build_gf_tables() argument 184 const unsigned int k = BIT(deg(poly)); in atmel_pmecc_build_gf_tables() 199 x ^= poly; in atmel_pmecc_build_gf_tables() 211 unsigned int poly, degree, table_size; in atmel_pmecc_create_gf_tables() local 216 poly = PMECC_GF_13_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 220 poly = PMECC_GF_14_PRIMITIVE_POLY; in atmel_pmecc_create_gf_tables() 233 ret = atmel_pmecc_build_gf_tables(degree, poly, gf_tables); in atmel_pmecc_create_gf_tables()
|
| /u-boot/drivers/w1-eeprom/ |
| A D | ds2502.c | 40 static const u8 poly = 0x8C; /* (1 + x^4 + x^5) + x^8 */ in ds2502_crc8() local 53 crc ^= poly; in ds2502_crc8()
|
Completed in 23 milliseconds