Searched refs:bch_type (Results 1 – 6 of 6) sorted by relevance
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | omap_elm.c | 32 static void elm_load_syndromes(u8 *syndrome, enum bch_level bch_type, u8 poly) in elm_load_syndromes() argument 48 if (bch_type == BCH_8_BIT || bch_type == BCH_16_BIT) { in elm_load_syndromes() 61 if (bch_type == BCH_16_BIT) { in elm_load_syndromes() 93 int elm_check_error(u8 *syndrome, enum bch_level bch_type, u32 *error_count, in elm_check_error() argument 100 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error()
|
H A D | omap_gpmc.c | 183 unsigned int bch_type = 0; in omap_enable_hwecc() local 195 bch_type = 0x0; in omap_enable_hwecc() 203 bch_type = 0x1; in omap_enable_hwecc() 216 bch_type = 0x2; in omap_enable_hwecc() 238 (bch_type << 12) | /* BCH4/BCH8/BCH16 */ in omap_enable_hwecc() 499 enum bch_level bch_type; in omap_correct_data_bch() local 528 bch_type = BCH_8_BIT; in omap_correct_data_bch() 532 bch_type = BCH_16_BIT; in omap_correct_data_bch() 539 elm_config(bch_type); in omap_correct_data_bch() 540 err = elm_check_error(calc_ecc, bch_type, &error_count, error_loc); in omap_correct_data_bch()
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | omap_elm.c | 77 enum bch_ecc bch_type; member 103 int elm_config(struct device *dev, enum bch_ecc bch_type, in elm_config() argument 124 reg_val = (bch_type & ECC_BCH_LEVEL_MASK) | (ELM_ECC_SIZE << 16); in elm_config() 126 info->bch_type = bch_type; in elm_config() 177 switch (info->bch_type) { in elm_load_syndrome() 439 enum bch_ecc bch_type = info->bch_type; in elm_context_save() local 448 switch (bch_type) { in elm_context_save() 487 enum bch_ecc bch_type = info->bch_type; in elm_context_restore() local 496 switch (bch_type) { in elm_context_restore()
|
H A D | omap2.c | 898 unsigned int bch_type; in omap_enable_hwecc_bch() local 908 bch_type = 0; in omap_enable_hwecc_bch() 915 bch_type = 0; in omap_enable_hwecc_bch() 928 bch_type = 1; in omap_enable_hwecc_bch() 935 bch_type = 1; in omap_enable_hwecc_bch() 948 bch_type = 0x2; in omap_enable_hwecc_bch() 974 (bch_type << 12) | /* BCH4/BCH8/BCH16 */ in omap_enable_hwecc_bch()
|
/openbmc/linux/include/linux/platform_data/ |
H A D | elm.h | 38 int elm_config(struct device *dev, enum bch_ecc bch_type, 47 static inline int elm_config(struct device *dev, enum bch_ecc bch_type, in elm_config() argument
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | omap_elm.h | 73 int elm_check_error(u8 *syndrome, enum bch_level bch_type, u32 *error_count,
|