• Home
  • Raw
  • Download

Lines Matching refs:ecc

200 	u8 *ecc = chip->oob_poi + BBM_SIZE + METADATA_SIZE;  in check_erased_page()  local
201 const int ecc_size = chip->ecc.bytes; in check_erased_page()
202 const int pkt_size = chip->ecc.size; in check_erased_page()
205 for (i = 0; i < chip->ecc.steps; ++i) { in check_erased_page()
207 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()
209 chip->ecc.strength); in check_erased_page()
217 ecc += ecc_size; in check_erased_page()
305 chip->ecc.read_oob(chip, page); in tango_read_page()
313 chip->ecc.read_oob_raw(chip, page); in tango_read_page()
405 const int ecc_size = chip->ecc.bytes; in raw_read()
406 const int pkt_size = chip->ecc.size; in raw_read()
432 const int ecc_size = chip->ecc.bytes; in raw_write()
433 const int pkt_size = chip->ecc.size; in raw_write()
491 struct nand_ecc_ctrl *ecc = &chip->ecc; in oob_ecc() local
493 if (idx >= ecc->steps) in oob_ecc()
496 res->offset = BBM_SIZE + METADATA_SIZE + ecc->bytes * idx; in oob_ecc()
497 res->length = ecc->bytes; in oob_ecc()
508 .ecc = oob_ecc,
550 struct nand_ecc_ctrl *ecc = &chip->ecc; in tango_attach_chip() local
552 ecc->engine_type = NAND_ECC_ENGINE_TYPE_ON_HOST; in tango_attach_chip()
553 ecc->algo = NAND_ECC_ALGO_BCH; in tango_attach_chip()
554 ecc->bytes = DIV_ROUND_UP(ecc->strength * FIELD_ORDER, BITS_PER_BYTE); in tango_attach_chip()
556 ecc->read_page_raw = tango_read_page_raw; in tango_attach_chip()
557 ecc->write_page_raw = tango_write_page_raw; in tango_attach_chip()
558 ecc->read_page = tango_read_page; in tango_attach_chip()
559 ecc->write_page = tango_write_page; in tango_attach_chip()
560 ecc->read_oob = tango_read_oob; in tango_attach_chip()
561 ecc->write_oob = tango_write_oob; in tango_attach_chip()
579 struct nand_ecc_ctrl *ecc; in chip_init() local
601 ecc = &chip->ecc; in chip_init()
618 tchip->xfer_cfg = XFER_CFG(cs, 1, ecc->steps, METADATA_SIZE); in chip_init()
619 tchip->pkt_0_cfg = PKT_CFG(ecc->size + METADATA_SIZE, ecc->strength); in chip_init()
620 tchip->pkt_n_cfg = PKT_CFG(ecc->size, ecc->strength); in chip_init()