/external/u-boot/drivers/mtd/onenand/ |
D | onenand_base.c | 523 return mtd->oobsize; in onenand_bufferram_offset() 783 this->read_bufferram(mtd, 0, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_transfer_auto_oob() 857 int oobread = 0, oobcolumn, thisooblen, oobsize; in onenand_read_ops_nolock() local 865 oobsize = this->ecclayout->oobavail; in onenand_read_ops_nolock() 867 oobsize = mtd->oobsize; in onenand_read_ops_nolock() 869 oobcolumn = from & (mtd->oobsize - 1); in onenand_read_ops_nolock() 928 thisooblen = oobsize - oobcolumn; in onenand_read_ops_nolock() 1003 int read = 0, thislen, column, oobsize; in onenand_read_oob_nolock() local 1018 oobsize = this->ecclayout->oobavail; in onenand_read_oob_nolock() 1020 oobsize = mtd->oobsize; in onenand_read_oob_nolock() [all …]
|
D | samsung.c | 305 s += (mtd->oobsize >> 2); in s3c_onenand_command() 309 scount = mtd->oobsize >> 2; in s3c_onenand_command() 387 p += mtd->oobsize; in s3c_get_bufferram()
|
/external/u-boot/drivers/mtd/nand/ |
D | nand_bch.c | 155 if (mtd->oobsize < 64) { in nand_bch_init() 157 "oobsize %d\n", mtd->oobsize); in nand_bch_init() 165 if (layout->eccbytes+2 > mtd->oobsize) { in nand_bch_init() 167 "for oobsize %d eccbytes %u\n", mtd->oobsize, in nand_bch_init() 173 layout->eccpos[i] = mtd->oobsize-layout->eccbytes+i; in nand_bch_init() 176 layout->oobfree[0].length = mtd->oobsize-2-layout->eccbytes; in nand_bch_init()
|
D | vf610_nfc.c | 381 trfr_sz += mtd->oobsize; in vf610_nfc_command() 391 trfr_sz += mtd->writesize + mtd->oobsize; in vf610_nfc_command() 463 l = min_t(uint, len, mtd->writesize + mtd->oobsize - c); in vf610_nfc_write_buf() 565 vf610_nfc_read_buf(mtd, oob, mtd->oobsize); in vf610_nfc_correct_data() 572 flips += count_written_bits(oob, mtd->oobsize, flips_threshold); in vf610_nfc_correct_data() 579 memset(oob, 0xff, mtd->oobsize); in vf610_nfc_correct_data() 591 vf610_nfc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in vf610_nfc_read_page() 614 vf610_nfc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in vf610_nfc_write_page() 617 nfc->write_sz = mtd->writesize + mtd->oobsize; in vf610_nfc_write_page() 698 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { in vf610_nfc_nand_init() [all …]
|
D | omap_gpmc.c | 712 enum omap_ecc ecc_scheme, unsigned int pagesize, unsigned int oobsize) { in omap_select_ecc_scheme() argument 732 if ((3 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme() 756 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme() 764 if ((13 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme() 796 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme() 808 if ((14 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme() 831 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme() 843 if ((26 * eccsteps) + BADBLOCK_MARKER_LENGTH > oobsize) { in omap_select_ecc_scheme() 864 ecclayout->oobfree[0].length = oobsize - nand->ecc.bytes - in omap_select_ecc_scheme() 912 mtd->writesize, mtd->oobsize); in omap_nand_switch_ecc() [all …]
|
D | zynq_nand.c | 432 chip->read_buf(mtd, p, (mtd->oobsize - data_width)); in zynq_nand_read_oob() 433 p += mtd->oobsize - data_width; in zynq_nand_read_oob() 458 chip->write_buf(mtd, buf, (mtd->oobsize - data_width)); in zynq_nand_write_oob() 459 buf += mtd->oobsize - data_width; in zynq_nand_write_oob() 492 chip->read_buf(mtd, p, (mtd->oobsize - data_width)); in zynq_nand_read_page_raw() 493 p += (mtd->oobsize - data_width); in zynq_nand_read_page_raw() 540 chip->write_buf(mtd, p, (mtd->oobsize - data_width)); in zynq_nand_write_page_raw() 541 p += (mtd->oobsize - data_width); in zynq_nand_write_page_raw() 600 chip->write_buf(mtd, oob_ptr, (mtd->oobsize - data_width)); in zynq_nand_write_page_hwecc() 606 oob_ptr += (mtd->oobsize - data_width); in zynq_nand_write_page_hwecc() [all …]
|
D | mxs_nand.c | 186 if (geo->ecc_chunk_size < mtd->oobsize) in mxs_nand_calc_ecc_layout_by_info() 209 if (geo->ecc_chunk_size < mtd->oobsize) { in mxs_nand_calc_ecc_layout() 214 if (mtd->oobsize > geo->ecc_chunk_size) { in mxs_nand_calc_ecc_layout() 230 geo->ecc_strength = ((mtd->oobsize - MXS_NAND_METADATA_SIZE) * 8) in mxs_nand_calc_ecc_layout() 595 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page() 601 d->cmd.pio_words[3] = mtd->writesize + mtd->oobsize; in mxs_nand_ecc_read_page() 621 (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_read_page() 689 memset(nand->oob_poi, 0xff, mtd->oobsize); in mxs_nand_ecc_read_page() 715 memcpy(nand_info->oob_buf, nand->oob_poi, mtd->oobsize); in mxs_nand_ecc_write_page() 739 d->cmd.pio_words[3] = (mtd->writesize + mtd->oobsize); in mxs_nand_ecc_write_page() [all …]
|
D | denali.c | 634 int oobsize = mtd->oobsize; in denali_oob_xfer() local 640 size_t size = writesize + oobsize; in denali_oob_xfer() 679 len = oobsize - (bufpoi - chip->oob_poi); in denali_oob_xfer() 692 int oobsize = mtd->oobsize; in denali_read_page_raw() local 698 size_t size = writesize + oobsize; in denali_read_page_raw() 755 len = oobsize - (oob - chip->oob_poi); in denali_read_page_raw() 823 int oobsize = mtd->oobsize; in denali_write_page_raw() local 829 size_t size = writesize + oobsize; in denali_write_page_raw() 889 len = oobsize - (oob - chip->oob_poi); in denali_write_page_raw() 1113 int oobavail = mtd->oobsize - denali->oob_skip_bytes; in denali_ecc_setup() [all …]
|
D | nand_base.c | 1223 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_raw() 1264 size = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_raw_syndrome() 1372 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_subpage() 1446 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_hwecc() 1505 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_hwecc_oob_first() 1601 i = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_syndrome() 1903 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_oob_std() 1917 int length = mtd->oobsize; in nand_read_oob_syndrome() 1955 int length = mtd->oobsize; in nand_write_oob_std() 1978 int eccsize = chip->ecc.size, length = mtd->oobsize; in nand_write_oob_syndrome() [all …]
|
D | mxs_nand_spl.c | 116 mtd->oobsize = le16_to_cpu(p->spare_bytes_per_page); in mxs_flash_onfi_ident() 128 debug("oobsize=%d\n", mtd->oobsize); in mxs_flash_onfi_ident() 170 memset(chip->oob_poi, 0, mtd->oobsize); in is_badblock() 171 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in is_badblock()
|
D | fsl_elbc_nand.c | 306 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 318 out_be32(&lbc->fbcr, mtd->oobsize - column); in fsl_elbc_cmdfunc() 321 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 436 ctrl->index != mtd->writesize + mtd->oobsize) in fsl_elbc_cmdfunc() 494 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf() 601 fsl_elbc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_read_page() 617 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_page() 632 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_subpage()
|
D | nand_bbt.c | 320 ops.ooblen = mtd->oobsize; in scan_read_oob() 335 buf += mtd->oobsize + mtd->writesize; in scan_read_oob() 359 ops.ooblen = mtd->oobsize; in scan_write_bbt() 417 ops.ooblen = mtd->oobsize; in scan_block_fast() 527 int scanlen = mtd->writesize + mtd->oobsize; in search_bbt() 630 ops.ooblen = mtd->oobsize; in write_bbt() 729 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt() 740 ooboffs = len + (pageoffs * mtd->oobsize); in write_bbt() 764 (len >> this->page_shift)* mtd->oobsize); in write_bbt() 1106 len += (len >> this->page_shift) * mtd->oobsize; in nand_scan_bbt() [all …]
|
D | mxc_nand.c | 389 int length = mtd->oobsize; 423 length = mtd->oobsize - chip->ecc.prepad; 472 size = mtd->oobsize - (oob - chip->oob_poi); 527 n = mtd->oobsize - (oob - chip->oob_poi); 552 int length = mtd->oobsize; 607 size = mtd->oobsize - (oob - chip->oob_poi); 652 i = mtd->oobsize - (oob - chip->oob_poi); 832 n = mtd->writesize + mtd->oobsize - col; 866 m += mtd->oobsize; 903 n = mtd->writesize + mtd->oobsize - col; [all …]
|
D | atmel_nand.c | 91 int oobsize, int ecc_len) in pmecc_config_ecc_layout() argument 99 layout->eccpos[i] = oobsize - ecc_len + i; in pmecc_config_ecc_layout() 103 oobsize - ecc_len - layout->oobfree[0].offset; in pmecc_config_ecc_layout() 547 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_pmecc_read_page() 610 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in atmel_nand_pmecc_write_page() 671 pmecc_writel(host->pmecc, sarea, mtd->oobsize - 1); in atmel_pmecc_core_init() 911 if (nand->ecc.bytes > mtd->oobsize - PMECC_OOB_RESERVED_BYTES) { in atmel_pmecc_nand_init_params() 916 mtd->oobsize, in atmel_pmecc_nand_init_params() 1062 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_read_page() 1425 mtd->oobsize = CONFIG_SYS_NAND_OOBSIZE; in nand_init()
|
D | lpc32xx_nand_slc.c | 316 int tmp = (len != mtd->oobsize) ? mtd->oobsize : 0; in lpc32xx_nand_xfer() 469 lpc32xx_dma_read_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_read_page_hwecc() 510 lpc32xx_dma_write_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_write_page_hwecc()
|
D | fsl_ifc_nand.c | 413 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 426 ifc_out32(&ifc->ifc_nand.nand_fbcr, mtd->oobsize - column); in fsl_ifc_cmdfunc() 429 ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 603 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_ifc_write_buf() 737 fsl_ifc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 752 fsl_ifc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_write_page()
|
D | sunxi_nand.c | 910 int len = mtd->oobsize - offset; in sunxi_nfc_hw_ecc_read_extra_oob() 925 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob() 991 int len = mtd->oobsize - offset; in sunxi_nfc_hw_ecc_write_extra_oob() 1002 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_write_extra_oob() 1436 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init() 1503 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init() 1508 layout->oobfree[nsectors].length = mtd->oobsize - in sunxi_nand_hw_ecc_ctrl_init() 1537 layout->oobfree[0].length = mtd->oobsize - i; in sunxi_nand_hw_syndrome_ecc_ctrl_init() 1589 ecc->layout->oobfree[0].length = mtd->oobsize; in sunxi_nand_ecc_init()
|
D | pxa3xx_nand.c | 724 info->buf_count = mtd->writesize + mtd->oobsize; in prepare_start_command() 803 (mtd->writesize + mtd->oobsize))) { in prepare_set_command() 1092 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in pxa3xx_nand_write_page_hwecc() 1105 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in pxa3xx_nand_read_page_hwecc() 1465 info->buf_size = mtd->writesize + mtd->oobsize; in pxa3xx_nand_scan()
|
D | tegra_nand.c | 564 tag_size = mtd->oobsize; in nand_rw_page() 740 tag_size = mtd->oobsize; in nand_rw_oob() 969 nand->ecc.bytes = our_mtd->oobsize; in tegra_probe()
|
D | arasan_nfc.c | 594 chip->read_buf(mtd, chip->oob_poi, (mtd->oobsize)); in arasan_nand_read_oob() 606 chip->write_buf(mtd, buf, mtd->oobsize); in arasan_nand_write_oob() 1155 eccaddr = mtd->writesize + mtd->oobsize - in arasan_nand_ecc_init() 1172 eccpos_start = mtd->oobsize - nand_oob.eccbytes; in arasan_nand_ecc_init()
|
/external/u-boot/cmd/ |
D | nand.c | 60 oobbuf = memalign(ARCH_DMA_MINALIGN, mtd->oobsize); in nand_dump() 73 ops.ooblen = mtd->oobsize; in nand_dump() 98 i = mtd->oobsize >> 3; in nand_dump() 301 printf(" OOB size %8d b\n", mtd->oobsize); in nand_print_and_set_info() 309 env_set_hex("nand_oobsize", mtd->oobsize); in nand_print_and_set_info() 324 .ooblen = mtd->oobsize, in raw_access() 342 addr += mtd->writesize + mtd->oobsize; in raw_access() 589 rwsize = pagecount * (mtd->writesize + mtd->oobsize); in do_nand()
|
D | onenand.c | 113 .ooblen = mtd->oobsize, in onenand_write_oneblock_withoob() 121 buf += mtd->oobsize; in onenand_write_oneblock_withoob() 312 datbuf = malloc(mtd->writesize + mtd->oobsize); in onenand_dump() 313 oobbuf = malloc(mtd->oobsize); in onenand_dump() 324 ops.ooblen = mtd->oobsize; in onenand_dump() 347 i = mtd->oobsize >> 3; in onenand_dump()
|
/external/u-boot/drivers/mtd/ |
D | mtdconcat.c | 732 concat->mtd.oobsize = subdev[0]->oobsize; in mtd_concat_create() 795 concat->mtd.oobsize != subdev[i]->oobsize || in mtd_concat_create()
|
/external/kernel-headers/original/uapi/mtd/ |
D | mtd-abi.h | 133 __u32 oobsize; /* Amount of OOB data per block (e.g. 16) */ member
|
/external/u-boot/include/mtd/ |
D | mtd-abi.h | 122 __u32 oobsize; /* Amount of OOB data per block (e.g. 16) */ member
|