/drivers/mtd/nand/raw/ |
D | nand_samsung.c | 34 memorg->oobsize = 128; in samsung_nand_decode_id() 37 memorg->oobsize = 218; in samsung_nand_decode_id() 40 memorg->oobsize = 400; in samsung_nand_decode_id() 43 memorg->oobsize = 436; in samsung_nand_decode_id() 46 memorg->oobsize = 512; in samsung_nand_decode_id() 49 memorg->oobsize = 640; in samsung_nand_decode_id() 62 mtd->oobsize = memorg->oobsize; in samsung_nand_decode_id()
|
D | nand_hynix.c | 413 u8 oobsize; in hynix_nand_extract_oobsize() local 417 oobsize = ((chip->id.data[3] >> 2) & 0x3) | in hynix_nand_extract_oobsize() 421 switch (oobsize) { in hynix_nand_extract_oobsize() 423 memorg->oobsize = 2048; in hynix_nand_extract_oobsize() 426 memorg->oobsize = 1664; in hynix_nand_extract_oobsize() 429 memorg->oobsize = 1024; in hynix_nand_extract_oobsize() 432 memorg->oobsize = 640; in hynix_nand_extract_oobsize() 445 switch (oobsize) { in hynix_nand_extract_oobsize() 447 memorg->oobsize = 128; in hynix_nand_extract_oobsize() 450 memorg->oobsize = 224; in hynix_nand_extract_oobsize() [all …]
|
D | nand_micron.c | 140 oobregion->offset = mtd->oobsize - chip->ecc.total; in micron_nand_on_die_8_ooblayout_ecc() 156 oobregion->length = mtd->oobsize - chip->ecc.total - 2; in micron_nand_on_die_8_ooblayout_free() 225 !nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, false, in micron_nand_on_die_ecc_status_4() 231 mtd->oobsize, false, false); in micron_nand_on_die_ecc_status_4() 235 mtd->oobsize, false); in micron_nand_on_die_ecc_status_4() 243 mtd->writesize + mtd->oobsize); in micron_nand_on_die_ecc_status_4() 345 mtd->oobsize, false, false); in micron_nand_read_page_on_die_ecc() 352 mtd->oobsize, false); in micron_nand_read_page_on_die_ecc() 533 mtd->oobsize, in micron_nand_init()
|
D | vf610_nfc.c | 524 nand_read_oob_op(&nfc->chip, page, 0, oob, mtd->oobsize); in vf610_nfc_correct_data() 532 mtd->oobsize, NULL, 0, in vf610_nfc_correct_data() 553 int trfr_sz = mtd->writesize + mtd->oobsize; in vf610_nfc_read_page() 583 mtd->oobsize, false); in vf610_nfc_read_page() 601 int trfr_sz = mtd->writesize + mtd->oobsize; in vf610_nfc_write_page() 663 ret = nand_write_data_op(chip, chip->oob_poi, mtd->oobsize, in vf610_nfc_write_page_raw() 693 chip->oob_poi, mtd->oobsize); in vf610_nfc_write_oob() 754 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { in vf610_nfc_attach_chip() 762 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) { in vf610_nfc_attach_chip() 773 if (mtd->oobsize > 64) in vf610_nfc_attach_chip() [all …]
|
D | nand_jedec.c | 106 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_jedec_detect() 107 mtd->oobsize = memorg->oobsize; in nand_jedec_detect()
|
D | fsl_elbc_nand.c | 106 oobregion->length = mtd->oobsize - oobregion->offset; in fsl_elbc_ooblayout_free() 251 if (elbc_fcm_ctrl->read_bytes == mtd->writesize + mtd->oobsize) { in fsl_elbc_run_command() 336 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 358 out_be32(&lbc->fbcr, mtd->oobsize - column); in fsl_elbc_cmdfunc() 361 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc() 486 elbc_fcm_ctrl->index != mtd->writesize + mtd->oobsize) in fsl_elbc_cmdfunc() 545 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf() 642 fsl_elbc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_read_page() 659 fsl_elbc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_page() 675 fsl_elbc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_subpage() [all …]
|
D | nand_base.c | 395 memset(chip->oob_poi, 0xff, mtd->oobsize); in nand_fill_oob() 1095 if (offset_in_page > mtd->writesize + mtd->oobsize) in nand_fill_column_cycles() 1232 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_read_page_op() 1323 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_read_column_op() 1386 if (offset_in_oob + len > mtd->oobsize) in nand_read_oob_op() 1490 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_begin_op() 1578 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_prog_page_op() 1632 if (offset_in_page + len > mtd->writesize + mtd->oobsize) in nand_change_write_column_op() 2822 ret = nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, in nand_read_page_raw() 2856 size += mtd->oobsize; in nand_monolithic_read_page_raw() [all …]
|
D | tegra_nand.c | 544 dma_addr_oob = dma_map_single(ctrl->dev, oob_buf, mtd->oobsize, in tegra_nand_page_xfer() 611 dma_unmap_single(ctrl->dev, dma_addr_oob, mtd->oobsize, dir); in tegra_nand_page_xfer() 626 mtd->oobsize, page, true); in tegra_nand_read_page_raw() 636 mtd->oobsize, page, false); in tegra_nand_write_page_raw() 644 mtd->oobsize, page, true); in tegra_nand_read_oob() 652 mtd->oobsize, page, false); in tegra_nand_write_oob() 844 int oobsize) in tegra_nand_get_strength() argument 873 if (bytes_per_page < (oobsize - SKIP_SPARE_BYTES)) in tegra_nand_get_strength() 880 static int tegra_nand_select_strength(struct nand_chip *chip, int oobsize) in tegra_nand_select_strength() argument 911 bits_per_step, oobsize); in tegra_nand_select_strength() [all …]
|
D | nand_bbt.c | 321 ops.ooblen = mtd->oobsize; in scan_read_oob() 336 buf += mtd->oobsize + mtd->writesize; in scan_read_oob() 361 ops.ooblen = mtd->oobsize; in scan_write_bbt() 422 ops.ooblen = mtd->oobsize; in scan_block_fast() 559 int scanlen = mtd->writesize + mtd->oobsize; in search_bbt() 761 ops.ooblen = mtd->oobsize; in write_bbt() 835 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt() 846 ooboffs = len + (pageoffs * mtd->oobsize); in write_bbt() 870 (len >> this->page_shift)* mtd->oobsize); in write_bbt() 1088 len += (len >> this->page_shift) * mtd->oobsize; in nand_update_bbt() [all …]
|
D | nand_toshiba.c | 168 memorg->oobsize = 32 * memorg->pagesize >> 9; in toshiba_nand_decode_id() 169 mtd->oobsize = memorg->oobsize; in toshiba_nand_decode_id()
|
D | hisi504_nand.c | 190 hinfc_write(host, ((mtd->oobsize & HINFC504_DMA_LEN_OOB_MASK) in hisi_nfc_dma_transfer() 268 hinfc_write(host, mtd->writesize + mtd->oobsize, in hisi_nfc_send_cmd_readstart() 527 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in hisi_nand_read_page_hwecc() 556 nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in hisi_nand_read_oob() 575 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in hisi_nand_write_page_hwecc() 700 mtd->writesize + mtd->oobsize, in hisi_nfc_attach_chip() 706 memset(host->buffer, 0xff, mtd->writesize + mtd->oobsize); in hisi_nfc_attach_chip()
|
D | fsl_ifc_nand.c | 123 oobregion->length = mtd->oobsize - oobregion->offset; in fsl_ifc_ooblayout_free() 308 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 320 ifc_out32(mtd->oobsize - column, &ifc->ifc_nand.nand_fbcr); in fsl_ifc_cmdfunc() 323 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc() 512 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_ifc_write_buf() 676 fsl_ifc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 680 fsl_ifc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 700 fsl_ifc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_write_page() 767 mtd->oobsize); in fsl_ifc_attach_chip()
|
D | nand_onfi.c | 257 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_onfi_detect() 258 mtd->oobsize = memorg->oobsize; in nand_onfi_detect()
|
D | omap2.c | 454 if (len <= mtd->oobsize) in omap_nand_data_in_dma_pref() 475 if (len <= mtd->oobsize) in omap_nand_data_out_dma_pref() 538 if (len <= mtd->oobsize || force_8bit) { in omap_nand_data_in_irq_pref() 582 if (len <= mtd->oobsize || force_8bit) { in omap_nand_data_out_irq_pref() 1421 info->data_out(chip, chip->oob_poi, mtd->oobsize, false); in omap_write_page_bch() 1500 info->data_out(chip, chip->oob_poi, mtd->oobsize, false); in omap_write_subpage_bch() 1759 if (off >= mtd->oobsize) in omap_ooblayout_free() 1763 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free() 1810 if (off >= mtd->oobsize) in omap_sw_ooblayout_free() 1814 oobregion->length = mtd->oobsize - off; in omap_sw_ooblayout_free() [all …]
|
D | lpc32xx_slc.c | 389 return nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_oob_syndrome() 400 mtd->oobsize); in lpc32xx_nand_write_oob_syndrome() 617 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_syndrome() 659 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_raw_syndrome() 697 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_syndrome() 715 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_raw_syndrome()
|
D | cafe_nand.c | 225 cafe->datalen = mtd->writesize + mtd->oobsize - column; in cafe_nand_cmdfunc() 350 mtd->oobsize); in cafe_nand_write_oob() 358 return nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in cafe_nand_read_oob() 382 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in cafe_nand_read_page() 473 oobregion->length = mtd->oobsize - chip->ecc.total; in cafe_ooblayout_free() 541 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in cafe_nand_write_page_lowlevel()
|
/drivers/mtd/tests/ |
D | readtest.c | 49 if (mtd->oobsize) { in read_eraseblock_by_page() 55 ops.ooblen = mtd->oobsize; in read_eraseblock_by_page() 62 ops.oobretlen != mtd->oobsize) { in read_eraseblock_by_page() 70 oobbuf += mtd->oobsize; in read_eraseblock_by_page() 96 if (!mtd->oobsize) in dump_eraseblock() 99 n = mtd->oobsize; in dump_eraseblock() 151 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init()
|
/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 153 int sections = (mtd->oobsize / 32) * 2; in onenand_ooblayout_32_64_free() 742 return mtd->oobsize; in onenand_bufferram_offset() 1057 mtd->oobsize); in onenand_transfer_auto_oob() 1124 int oobread = 0, oobcolumn, thisooblen, oobsize; in onenand_mlc_read_ops_nolock() local 1131 oobsize = mtd_oobavail(mtd, ops); in onenand_mlc_read_ops_nolock() 1132 oobcolumn = from & (mtd->oobsize - 1); in onenand_mlc_read_ops_nolock() 1169 thisooblen = oobsize - oobcolumn; in onenand_mlc_read_ops_nolock() 1225 int oobread = 0, oobcolumn, thisooblen, oobsize; in onenand_read_ops_nolock() local 1232 oobsize = mtd_oobavail(mtd, ops); in onenand_read_ops_nolock() 1233 oobcolumn = from & (mtd->oobsize - 1); in onenand_read_ops_nolock() [all …]
|
/drivers/mtd/nand/ |
D | ecc.c | 174 if (mtd->oobsize == 16) in nand_ooblayout_ecc_sp() 179 if (mtd->oobsize == 8) in nand_ooblayout_ecc_sp() 195 if (mtd->oobsize == 16) { in nand_ooblayout_free_sp() 233 oobregion->offset = mtd->oobsize - oobregion->length; in nand_ooblayout_ecc_lp() 247 oobregion->length = mtd->oobsize - total_ecc_bytes - 2; in nand_ooblayout_free_lp() 277 switch (mtd->oobsize) { in nand_ooblayout_ecc_lp_hamming() 289 if (oobregion->offset + oobregion->length > mtd->oobsize) in nand_ooblayout_ecc_lp_hamming() 305 switch (mtd->oobsize) { in nand_ooblayout_free_lp_hamming() 321 oobregion->length = mtd->oobsize - oobregion->offset; in nand_ooblayout_free_lp_hamming()
|
D | ecc-sw-bch.c | 179 if (mtd->oobsize < 64) { in nand_ecc_sw_bch_init_ctx() 199 if (mtd->oobsize >= 64) in nand_ecc_sw_bch_init_ctx() 214 code_size = (mtd->oobsize - 2) / nsteps; in nand_ecc_sw_bch_init_ctx() 239 engine_conf->calc_buf = kzalloc(mtd->oobsize, GFP_KERNEL); in nand_ecc_sw_bch_init_ctx() 240 engine_conf->code_buf = kzalloc(mtd->oobsize, GFP_KERNEL); in nand_ecc_sw_bch_init_ctx()
|
/drivers/mtd/nand/spi/ |
D | toshiba.c | 47 region->offset = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc() 48 region->length = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc() 61 region->length = (mtd->oobsize / 2) - 2; in tx58cxgxsxraix_ooblayout_free()
|
D | micron.c | 66 region->offset = mtd->oobsize / 2; in micron_8_ooblayout_ecc() 67 region->length = mtd->oobsize / 2; in micron_8_ooblayout_ecc() 80 region->length = (mtd->oobsize / 2) - 2; in micron_8_ooblayout_free()
|
/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 338 if (geo->eccn_chunk_size < mtd->oobsize) { in set_geometry_by_ecc_info() 341 ecc_step, mtd->oobsize); in set_geometry_by_ecc_info() 444 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength() 505 if (mtd->oobsize * 8 < geo->metadata_size * 8 + in set_geometry_for_large_oob() 600 while (geo->eccn_chunk_size < mtd->oobsize) { in legacy_set_geometry() 706 if ((!use_minimun_ecc && mtd->oobsize < 1024) || in common_nfc_set_geometry() 715 if (mtd->oobsize > 1024) { in common_nfc_set_geometry() 1118 if (geo->page_size < mtd->writesize + mtd->oobsize) { in gpmi_ooblayout_free() 1120 oobregion->length = mtd->oobsize - oobregion->offset; in gpmi_ooblayout_free() 1350 this->raw_buffer = kzalloc((mtd->writesize ?: PAGE_SIZE) + mtd->oobsize, GFP_KERNEL); in gpmi_alloc_dma_buffer() [all …]
|
/drivers/mtd/parsers/ |
D | sharpslpart.c | 104 ops.ooblen = mtd->oobsize; in sharpsl_nand_read_oob() 108 if (ret != 0 || mtd->oobsize != ops.oobretlen) in sharpsl_nand_read_oob() 173 oob = kzalloc(mtd->oobsize, GFP_KERNEL); in sharpsl_nand_init_ftl()
|
/drivers/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 96 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free() 131 oobregion->length = mtd->oobsize - ecc->total - 3; in jz4725b_ooblayout_free() 230 if (eccbytes > mtd->oobsize - 2) { in ingenic_nand_attach_chip() 233 eccbytes, mtd->oobsize - 2); in ingenic_nand_attach_chip()
|