Searched refs:prepad (Results 1 – 7 of 7) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | mxc_nand.c | 391 int eccpitch = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; 400 toread = min_t(int, length, chip->ecc.prepad); 422 mtd->writesize + chip->ecc.prepad, page); 423 bufpoi = buf + chip->ecc.prepad; 424 length = mtd->oobsize - chip->ecc.prepad; 430 host->col_addr += chip->ecc.postpad + chip->ecc.prepad; 445 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad; 459 if (chip->ecc.prepad) { 460 chip->read_buf(mtd, oob, chip->ecc.prepad); 461 oob += chip->ecc.prepad; [all …]
|
| H A D | rockchip_nand_v9.c | 288 int offset = ((ecc->bytes + ecc->prepad) * ecc->steps); in rockchip_nand_read_extra_oob() 303 int offset = ((ecc->bytes + ecc->prepad) * ecc->steps); in rockchip_nand_write_extra_oob() 334 int oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_read_page() 401 int oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 412 memcpy_toio(rknand->regs + NANDC_REG_V9_SPARE0, &index, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 418 oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 427 oob, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 430 oob, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 453 max_strength = ((mtd->oobsize / ecc->steps) - ecc->prepad) * 8 / 14; in rockchip_nand_ecc_max_strength() 487 ecc->prepad = 4; in rockchip_nand_hw_ecc_ctrl_init() [all …]
|
| H A D | rockchip_nand.c | 287 int offset = ((ecc->bytes + ecc->prepad) * ecc->steps); in rockchip_nand_read_extra_oob() 302 int offset = ((ecc->bytes + ecc->prepad) * ecc->steps); in rockchip_nand_write_extra_oob() 333 int oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_read_page() 400 int oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 411 memcpy_toio(rknand->regs + NANDC_REG_V6_SPARE0, &index, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 418 oob_off = step * (ecc->bytes + ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 427 oob, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 430 oob, ecc->prepad); in rockchip_nand_hw_syndrome_pio_write_page() 452 max_strength = ((mtd->oobsize / ecc->steps) - ecc->prepad) * 8 / 14; in rockchip_nand_ecc_max_strength() 486 ecc->prepad = 4; in rockchip_nand_hw_ecc_ctrl_init() [all …]
|
| H A D | nand_base.c | 1808 if (chip->ecc.prepad) { in nand_read_page_raw_syndrome() 1809 ret = nand_read_data_op(chip, oob, chip->ecc.prepad, in nand_read_page_raw_syndrome() 1814 oob += chip->ecc.prepad; in nand_read_page_raw_syndrome() 2153 int eccpadbytes = eccbytes + chip->ecc.prepad + chip->ecc.postpad; in nand_read_page_syndrome() 2167 if (chip->ecc.prepad) { in nand_read_page_syndrome() 2168 ret = nand_read_data_op(chip, oob, chip->ecc.prepad, in nand_read_page_syndrome() 2173 oob += chip->ecc.prepad; in nand_read_page_syndrome() 2508 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_read_oob_syndrome() 2575 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_write_oob_syndrome() 2585 if (!chip->ecc.prepad && !chip->ecc.postpad) { in nand_write_oob_syndrome() [all …]
|
| H A D | atmel_nand.c | 931 nand->ecc.prepad = 0; in atmel_pmecc_nand_init_params() 1195 nand->ecc.prepad = 0; in atmel_hwecc_nand_init_param()
|
| H A D | sunxi_nand.c | 1528 ecc->prepad = 4; in sunxi_nand_hw_syndrome_ecc_ctrl_init()
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | rawnand.h | 577 int prepad; member
|