Home
last modified time | relevance | path

Searched refs:oobsize (Results 1 – 25 of 49) sorted by relevance

12

/drivers/mtd/tests/
Dreadtest.c61 if (mtd->oobsize) { in read_eraseblock_by_page()
67 ops.ooblen = mtd->oobsize; in read_eraseblock_by_page()
74 ops.oobretlen != mtd->oobsize) { in read_eraseblock_by_page()
82 oobbuf += mtd->oobsize; in read_eraseblock_by_page()
108 if (!mtd->oobsize) in dump_eraseblock()
111 n = mtd->oobsize; in dump_eraseblock()
163 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init()
/drivers/mtd/onenand/
Donenand_base.c714 return mtd->oobsize; in onenand_bufferram_offset()
1042 this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_transfer_auto_oob()
1120 int oobread = 0, oobcolumn, thisooblen, oobsize; in onenand_mlc_read_ops_nolock() local
1128 oobsize = this->ecclayout->oobavail; in onenand_mlc_read_ops_nolock()
1130 oobsize = mtd->oobsize; 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
1233 oobsize = this->ecclayout->oobavail; in onenand_read_ops_nolock()
1235 oobsize = mtd->oobsize; in onenand_read_ops_nolock()
[all …]
Dsamsung.c421 s += (mtd->oobsize >> 2); in s3c_onenand_command()
425 scount = mtd->oobsize >> 2; in s3c_onenand_command()
495 p += mtd->oobsize; in s3c_get_bufferram()
638 p += mtd->oobsize; in s5pc110_read_bufferram()
/drivers/mtd/nand/
Dnand_bch.c164 if (mtd->oobsize < 64) { in nand_bch_init()
166 "oobsize %d\n", mtd->oobsize); in nand_bch_init()
174 if (layout->eccbytes+2 > mtd->oobsize) { in nand_bch_init()
176 "for oobsize %d eccbytes %u\n", mtd->oobsize, in nand_bch_init()
182 layout->eccpos[i] = mtd->oobsize-layout->eccbytes+i; in nand_bch_init()
185 layout->oobfree[0].length = mtd->oobsize-2-layout->eccbytes; in nand_bch_init()
Dvf610_nfc.c394 trfr_sz += mtd->oobsize; in vf610_nfc_command()
404 trfr_sz += mtd->writesize + mtd->oobsize; in vf610_nfc_command()
471 l = min_t(uint, len, mtd->writesize + mtd->oobsize - c); in vf610_nfc_write_buf()
574 vf610_nfc_read_buf(mtd, oob, mtd->oobsize); in vf610_nfc_correct_data()
581 mtd->oobsize, NULL, 0, in vf610_nfc_correct_data()
593 vf610_nfc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in vf610_nfc_read_page()
613 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()
760 if (mtd->writesize + mtd->oobsize > PAGE_2K + OOB_MAX - 8) { in vf610_nfc_probe()
767 if (mtd->writesize != PAGE_2K && mtd->oobsize < 64) { in vf610_nfc_probe()
[all …]
Dnand_base.c1258 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_raw()
1299 size = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_raw_syndrome()
1407 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_subpage()
1471 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_hwecc()
1521 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_page_hwecc_oob_first()
1597 i = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_syndrome()
1693 mtd->oobavail : mtd->oobsize; in nand_do_read_ops()
1897 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_read_oob_std()
1911 int length = mtd->oobsize; in nand_read_oob_syndrome()
1949 int length = mtd->oobsize; in nand_write_oob_std()
[all …]
Dfsl_elbc_nand.c245 if (elbc_fcm_ctrl->read_bytes == mtd->writesize + mtd->oobsize) { in fsl_elbc_run_command()
331 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc()
344 out_be32(&lbc->fbcr, mtd->oobsize - column); in fsl_elbc_cmdfunc()
347 elbc_fcm_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_elbc_cmdfunc()
472 elbc_fcm_ctrl->index != mtd->writesize + mtd->oobsize) in fsl_elbc_cmdfunc()
531 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_elbc_write_buf()
670 mtd->oobsize); in fsl_elbc_chip_init_tail()
706 fsl_elbc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_read_page()
721 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_page()
734 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_subpage()
Ddenali.c880 write_data_to_flash_mem(denali, buf, mtd->oobsize); in write_oob_data()
907 read_data_from_flash_mem(denali, buf, mtd->oobsize); in read_oob_data()
1065 size_t size = denali->mtd.writesize + denali->mtd.oobsize; in write_page()
1084 mtd->oobsize); in write_page()
1163 size_t size = denali->mtd.writesize + denali->mtd.oobsize; in denali_read_page()
1202 if (!is_erased(buf, denali->mtd.oobsize)) in denali_read_page()
1214 size_t size = denali->mtd.writesize + denali->mtd.oobsize; in denali_read_page_raw()
1240 memcpy(chip->oob_poi, denali->buf.buf + mtd->writesize, mtd->oobsize); in denali_read_page_raw()
1488 denali->mtd.writesize + denali->mtd.oobsize, in denali_init()
1503 denali->mtd.writesize + denali->mtd.oobsize, in denali_init()
[all …]
Dnand_bbt.c322 ops.ooblen = mtd->oobsize; in scan_read_oob()
337 buf += mtd->oobsize + mtd->writesize; in scan_read_oob()
361 ops.ooblen = mtd->oobsize; in scan_write_bbt()
419 ops.ooblen = mtd->oobsize; in scan_block_fast()
529 int scanlen = mtd->writesize + mtd->oobsize; in search_bbt()
632 ops.ooblen = mtd->oobsize; in write_bbt()
731 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt()
742 ooboffs = len + (pageoffs * mtd->oobsize); in write_bbt()
766 (len >> this->page_shift)* mtd->oobsize); in write_bbt()
1108 len += (len >> this->page_shift) * mtd->oobsize; in nand_scan_bbt()
[all …]
Dcafe_nand.c222 cafe->datalen = mtd->writesize + mtd->oobsize - column; in cafe_nand_cmdfunc()
352 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in cafe_nand_write_oob()
364 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in cafe_nand_read_oob()
388 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in cafe_nand_read_page()
525 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in cafe_nand_write_page_lowlevel()
707 mtd->writesize + mtd->oobsize, in cafe_nand_probe()
778 mtd->writesize + mtd->oobsize, in cafe_nand_probe()
807 mtd->writesize + mtd->oobsize, in cafe_nand_remove()
Dhisi504_nand.c201 hinfc_write(host, ((mtd->oobsize & HINFC504_DMA_LEN_OOB_MASK) in hisi_nfc_dma_transfer()
279 hinfc_write(host, mtd->writesize + mtd->oobsize, in hisi_nfc_send_cmd_readstart()
551 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in hisi_nand_read_page_hwecc()
581 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in hisi_nand_read_oob()
598 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in hisi_nand_write_page_hwecc()
773 host->buffer = dmam_alloc_coherent(dev, mtd->writesize + mtd->oobsize, in hisi_nfc_probe()
781 memset(host->buffer, 0xff, mtd->writesize + mtd->oobsize); in hisi_nfc_probe()
Dfsl_ifc_nand.c428 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc()
440 ifc_out32(mtd->oobsize - column, &ifc->ifc_nand.nand_fbcr); in fsl_ifc_cmdfunc()
443 ifc_nand_ctrl->read_bytes = mtd->writesize + mtd->oobsize; in fsl_ifc_cmdfunc()
632 unsigned int bufsize = mtd->writesize + mtd->oobsize; in fsl_ifc_write_buf()
764 fsl_ifc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page()
782 fsl_ifc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_write_page()
825 mtd->oobsize); in fsl_ifc_chip_init_tail()
Dsunxi_nand.c644 int len = mtd->oobsize - offset; in sunxi_nfc_hw_ecc_read_extra_oob()
655 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob()
708 int len = mtd->oobsize - offset; in sunxi_nfc_hw_ecc_write_extra_oob()
719 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_write_extra_oob()
1076 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init()
1140 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { in sunxi_nand_hw_ecc_ctrl_init()
1145 layout->oobfree[nsectors].length = mtd->oobsize - in sunxi_nand_hw_ecc_ctrl_init()
1175 layout->oobfree[0].length = mtd->oobsize - i; in sunxi_nand_hw_syndrome_ecc_ctrl_init()
1226 ecc->layout->oobfree[0].length = mtd->oobsize; in sunxi_nand_ecc_init()
Datmel_nand.c431 if (use_dma && len > mtd->oobsize) in atmel_read_buf()
447 if (use_dma && len > mtd->oobsize) in atmel_write_buf()
478 int oobsize, int ecc_len) in pmecc_config_ecc_layout() argument
486 layout->eccpos[i] = oobsize - ecc_len + i; in pmecc_config_ecc_layout()
490 oobsize - ecc_len - layout->oobfree[0].offset; in pmecc_config_ecc_layout()
934 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_pmecc_read_page()
988 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in atmel_nand_pmecc_write_page()
1046 pmecc_writel(host->ecc, SAREA, mtd->oobsize - 1); in atmel_pmecc_core_init()
1259 mtd->oobsize - PMECC_OOB_RESERVED_BYTES) { in atmel_pmecc_nand_init_params()
1265 mtd->oobsize, in atmel_pmecc_nand_init_params()
[all …]
Dlpc32xx_slc.c381 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_oob_syndrome()
395 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_oob_syndrome()
618 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_syndrome()
655 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_raw_syndrome()
685 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_syndrome()
700 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_raw_syndrome()
Dmxc_nand.c768 int n = mtd->oobsize + mtd->writesize - col; in mxc_nand_write_buf()
786 int n = mtd->oobsize + mtd->writesize - col; in mxc_nand_read_buf()
955 oobbytes_per_512 = mtd->oobsize * 512 / mtd->writesize; in get_eccsize()
1038 writew(mtd->oobsize / 2, NFC_V21_RSLTSPARE_AREA); in preset_v2()
1080 NFC_V3_CONFIG2_SPAS(mtd->oobsize >> 1) | in preset_v3()
1647 host->data_buf = devm_kzalloc(&pdev->dev, mtd->writesize + mtd->oobsize, in mxcnd_probe()
1672 host->used_oobsize = min(mtd->oobsize, 218U); in mxcnd_probe()
Dsh_flctl.c567 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in flctl_read_page_hwecc()
576 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in flctl_write_page_hwecc()
726 flctl->read_bytes = mtd->writesize + mtd->oobsize; in flctl_cmdfunc()
747 flctl->read_bytes = mtd->oobsize; in flctl_cmdfunc()
762 flctl->read_bytes = mtd->writesize + mtd->oobsize - column; in flctl_cmdfunc()
Domap2.c549 if (len <= mtd->oobsize) in omap_read_buf_dma_pref()
565 if (len <= mtd->oobsize) in omap_write_buf_dma_pref()
630 if (len <= mtd->oobsize) { in omap_read_buf_irq_pref()
680 if (len <= mtd->oobsize) { in omap_write_buf_irq_pref()
1527 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in omap_write_page_bch()
2022 ecclayout->oobfree->length = mtd->oobsize - ecclayout->oobfree->offset; in omap_nand_probe()
2024 if (mtd->oobsize < (ecclayout->eccbytes + BADBLOCK_MARKER_LENGTH)) { in omap_nand_probe()
2027 ecclayout->eccbytes, mtd->oobsize); in omap_nand_probe()
Dmpc5121_nfc.c429 sbsize = (mtd->oobsize / (mtd->writesize / 512)) & ~1; in mpc5121_nfc_copy_spare()
600 mtd->oobsize = rcw_sparesize; in mpc5121_nfc_read_hw_config()
774 nfc_write(mtd, NFC_SPAS, mtd->oobsize >> 1); in mpc5121_nfc_probe()
Dsm_common.c54 ops.ooblen = mtd->oobsize; in sm_block_markbad()
/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.c113 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength()
169 if (geo->ecc_chunk_size < mtd->oobsize) { in set_geometry_by_ecc_info()
172 chip->ecc_step_ds, mtd->oobsize); in set_geometry_by_ecc_info()
233 if (geo->page_size < mtd->writesize + mtd->oobsize) { in set_geometry_by_ecc_info()
235 of->length = mtd->oobsize - of->offset; in set_geometry_by_ecc_info()
277 while (geo->ecc_chunk_size < mtd->oobsize) { in legacy_set_geometry()
294 geo->page_size = mtd->writesize + mtd->oobsize; in legacy_set_geometry()
841 this->raw_buffer = kzalloc(mtd->writesize + mtd->oobsize, GFP_KERNEL); in gpmi_alloc_dma_buffer()
1134 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_page()
1276 chip->oob_poi, mtd->oobsize, in gpmi_ecc_write_page()
[all …]
/drivers/mtd/
Dmtdconcat.c721 concat->mtd.oobsize = subdev[0]->oobsize; in mtd_concat_create()
768 concat->mtd.oobsize != subdev[i]->oobsize || in mtd_concat_create()
Dinftlmount.c339 u8 buf[SECTORSIZE + inftl->mbd.mtd->oobsize]; in check_free_sectors()
351 if(inftl_read_oob(mtd, address, mtd->oobsize, in check_free_sectors()
354 if (memcmpb(buf + SECTORSIZE, 0xff, mtd->oobsize) != 0) in check_free_sectors()
Dnftlmount.c276 u8 buf[SECTORSIZE + nftl->mbd.mtd->oobsize]; in check_free_sectors()
288 if(nftl_read_oob(mtd, address, mtd->oobsize, in check_free_sectors()
291 if (memcmpb(buf + SECTORSIZE, 0xff, mtd->oobsize) != 0) in check_free_sectors()
Dmtdchar.c392 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_writeoob()
432 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_readoob()
685 info.oobsize = mtd->oobsize; in mtdchar_ioctl()

12