Home
last modified time | relevance | path

Searched refs:bch_type (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Domap_elm.c33 static void elm_load_syndromes(u8 *syndrome, enum bch_level bch_type, u8 poly) in elm_load_syndromes() argument
49 if (bch_type == BCH_8_BIT || bch_type == BCH_16_BIT) { in elm_load_syndromes()
62 if (bch_type == BCH_16_BIT) { in elm_load_syndromes()
94 int elm_check_error(u8 *syndrome, enum bch_level bch_type, u32 *error_count, in elm_check_error() argument
101 elm_load_syndromes(syndrome, bch_type, poly); in elm_check_error()
H A Domap_gpmc.c184 unsigned int bch_type = 0; in omap_enable_hwecc() local
196 bch_type = 0x0; in omap_enable_hwecc()
204 bch_type = 0x1; in omap_enable_hwecc()
217 bch_type = 0x2; in omap_enable_hwecc()
239 (bch_type << 12) | /* BCH4/BCH8/BCH16 */ in omap_enable_hwecc()
500 enum bch_level bch_type; in omap_correct_data_bch() local
529 bch_type = BCH_8_BIT; in omap_correct_data_bch()
533 bch_type = BCH_16_BIT; in omap_correct_data_bch()
540 elm_config(bch_type); in omap_correct_data_bch()
541 err = elm_check_error(calc_ecc, bch_type, &error_count, error_loc); in omap_correct_data_bch()
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Domap_elm.c77 enum bch_ecc bch_type; member
100 int elm_config(struct device *dev, enum bch_ecc bch_type, in elm_config() argument
121 reg_val = (bch_type & ECC_BCH_LEVEL_MASK) | (ELM_ECC_SIZE << 16); in elm_config()
123 info->bch_type = bch_type; in elm_config()
174 switch (info->bch_type) { in elm_load_syndrome()
442 enum bch_ecc bch_type = info->bch_type; in elm_context_save() local
451 switch (bch_type) { in elm_context_save()
490 enum bch_ecc bch_type = info->bch_type; in elm_context_restore() local
499 switch (bch_type) { in elm_context_restore()
H A Domap2.c1037 unsigned int bch_type; in omap_enable_hwecc_bch() local
1047 bch_type = 0; in omap_enable_hwecc_bch()
1054 bch_type = 0; in omap_enable_hwecc_bch()
1067 bch_type = 1; in omap_enable_hwecc_bch()
1074 bch_type = 1; in omap_enable_hwecc_bch()
1087 bch_type = 0x2; in omap_enable_hwecc_bch()
1113 (bch_type << 12) | /* BCH4/BCH8/BCH16 */ in omap_enable_hwecc_bch()
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Delm.h38 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
/OK3568_Linux_fs/u-boot/include/linux/mtd/
H A Domap_elm.h74 int elm_check_error(u8 *syndrome, enum bch_level bch_type, u32 *error_count,