Lines Matching refs:layout
477 static void pmecc_config_ecc_layout(struct nand_ecclayout *layout, in pmecc_config_ecc_layout() argument
482 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout()
486 layout->eccpos[i] = oobsize - ecc_len + i; in pmecc_config_ecc_layout()
488 layout->oobfree[0].offset = PMECC_OOB_RESERVED_BYTES; in pmecc_config_ecc_layout()
489 layout->oobfree[0].length = in pmecc_config_ecc_layout()
490 oobsize - ecc_len - layout->oobfree[0].offset; in pmecc_config_ecc_layout()
836 pos = tmp + nand_chip->ecc.layout->eccpos[0]; in pmecc_correct_data()
925 uint32_t *eccpos = chip->ecc.layout->eccpos; in atmel_nand_pmecc_read_page()
960 uint32_t *eccpos = chip->ecc.layout->eccpos; in atmel_nand_pmecc_write_page()
1044 ecc_layout = nand_chip->ecc.layout; in atmel_pmecc_core_init()
1267 nand_chip->ecc.layout = &atmel_pmecc_oobinfo; in atmel_pmecc_nand_init_params()
1342 uint32_t *eccpos = chip->ecc.layout->eccpos; in atmel_nand_read_page()
1610 nand_chip->ecc.layout = &atmel_oobinfo_small; in atmel_hw_nand_init_params()
1614 nand_chip->ecc.layout = &atmel_oobinfo_large; in atmel_hw_nand_init_params()
1618 nand_chip->ecc.layout = &atmel_oobinfo_large; in atmel_hw_nand_init_params()
1622 nand_chip->ecc.layout = &atmel_oobinfo_large; in atmel_hw_nand_init_params()