Home
last modified time | relevance | path

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

1234

/linux/drivers/mtd/nand/raw/
A Dnand_samsung.c34 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()
A Dnand_hynix.c413 u8 oobsize; in hynix_nand_extract_oobsize() local
421 switch (oobsize) { 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()
453 memorg->oobsize = 448; in hynix_nand_extract_oobsize()
456 memorg->oobsize = 64; in hynix_nand_extract_oobsize()
459 memorg->oobsize = 32; in hynix_nand_extract_oobsize()
462 memorg->oobsize = 16; in hynix_nand_extract_oobsize()
[all …]
A Dnand_micron.c140 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()
A Dvf610_nfc.c524 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 …]
A Dnand_jedec.c106 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_jedec_detect()
107 mtd->oobsize = memorg->oobsize; in nand_jedec_detect()
A Dfsl_elbc_nand.c106 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 …]
A Dnand_base.c2854 size += mtd->oobsize; in nand_monolithic_read_page_raw()
3524 int length = mtd->oobsize; in nand_read_oob_syndrome()
3579 mtd->oobsize); in nand_write_oob_std()
3841 size += mtd->oobsize; in nand_monolithic_write_page_raw()
4764 mtd->oobsize = memorg->oobsize; in nand_decode_ext_id()
4794 mtd->oobsize = memorg->oobsize; in nand_decode_id()
4838 memorg->oobsize = type->oobsize; in find_full_id_nand()
4839 mtd->oobsize = memorg->oobsize; in find_full_id_nand()
6026 switch (mtd->oobsize) { in nand_scan_tail()
6051 mtd->oobsize); in nand_scan_tail()
[all …]
A Dtegra_nand.c541 dma_addr_oob = dma_map_single(ctrl->dev, oob_buf, mtd->oobsize, in tegra_nand_page_xfer()
608 dma_unmap_single(ctrl->dev, dma_addr_oob, mtd->oobsize, dir); in tegra_nand_page_xfer()
623 mtd->oobsize, page, true); in tegra_nand_read_page_raw()
633 mtd->oobsize, page, false); in tegra_nand_write_page_raw()
641 mtd->oobsize, page, true); in tegra_nand_read_oob()
649 mtd->oobsize, page, false); in tegra_nand_write_oob()
841 int oobsize) in tegra_nand_get_strength() argument
870 if (bytes_per_page < (oobsize - SKIP_SPARE_BYTES)) in tegra_nand_get_strength()
908 bits_per_step, oobsize); in tegra_nand_select_strength()
956 ret = tegra_nand_select_strength(chip, mtd->oobsize); in tegra_nand_attach_chip()
[all …]
A Dnand_bbt.c321 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 …]
A Dnand_toshiba.c168 memorg->oobsize = 32 * memorg->pagesize >> 9; in toshiba_nand_decode_id()
169 mtd->oobsize = memorg->oobsize; in toshiba_nand_decode_id()
A Dhisi504_nand.c190 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()
A Dfsl_ifc_nand.c123 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()
A Dnand_onfi.c257 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_onfi_detect()
258 mtd->oobsize = memorg->oobsize; in nand_onfi_detect()
A Dcafe_nand.c225 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()
A Dlpc32xx_slc.c389 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()
A Domap2.c544 if (len <= mtd->oobsize) in omap_read_buf_dma_pref()
562 if (len <= mtd->oobsize) in omap_write_buf_dma_pref()
628 if (len <= mtd->oobsize) { in omap_read_buf_irq_pref()
678 if (len <= mtd->oobsize) { in omap_write_buf_irq_pref()
1565 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in omap_write_page_bch()
1903 if (off >= mtd->oobsize) in omap_ooblayout_free()
1907 oobregion->length = mtd->oobsize - off; in omap_ooblayout_free()
1954 if (off >= mtd->oobsize) in omap_sw_ooblayout_free()
1958 oobregion->length = mtd->oobsize - off; in omap_sw_ooblayout_free()
2210 if (mtd->oobsize < min_oobbytes) { in omap_nand_attach_chip()
[all …]
/linux/drivers/mtd/tests/
A Dreadtest.c49 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()
/linux/drivers/mtd/nand/onenand/
A Donenand_base.c742 return mtd->oobsize; in onenand_bufferram_offset()
1057 mtd->oobsize); in onenand_transfer_auto_oob()
1364 oobsize = mtd->oobavail; in onenand_read_oob_nolock()
1366 oobsize = mtd->oobsize; in onenand_read_oob_nolock()
1986 oobsize = mtd->oobavail; in onenand_write_oob_nolock()
1988 oobsize = mtd->oobsize; in onenand_write_oob_nolock()
2780 oobsize = mtd->oobsize; in onenand_otp_write_oob_nolock()
3194 : mtd->oobsize); in onenand_lock_user_prot_reg()
3512 .ooblen = mtd->oobsize, in flexonenand_check_blocks_erased()
3537 if (i != mtd->oobsize) { in flexonenand_check_blocks_erased()
[all …]
/linux/drivers/mtd/nand/
A Decc.c168 if (mtd->oobsize == 16) in nand_ooblayout_ecc_sp()
173 if (mtd->oobsize == 8) in nand_ooblayout_ecc_sp()
189 if (mtd->oobsize == 16) { in nand_ooblayout_free_sp()
227 oobregion->offset = mtd->oobsize - oobregion->length; in nand_ooblayout_ecc_lp()
241 oobregion->length = mtd->oobsize - total_ecc_bytes - 2; in nand_ooblayout_free_lp()
271 switch (mtd->oobsize) { in nand_ooblayout_ecc_lp_hamming()
283 if (oobregion->offset + oobregion->length > mtd->oobsize) in nand_ooblayout_ecc_lp_hamming()
299 switch (mtd->oobsize) { in nand_ooblayout_free_lp_hamming()
315 oobregion->length = mtd->oobsize - oobregion->offset; in nand_ooblayout_free_lp_hamming()
A Decc-sw-bch.c179 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()
/linux/drivers/mtd/nand/spi/
A Dtoshiba.c47 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()
A Dmicron.c66 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()
/linux/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c289 if (geo->ecc_chunk_size < mtd->oobsize) { in set_geometry_by_ecc_info()
292 ecc_step, mtd->oobsize); in set_geometry_by_ecc_info()
422 while (geo->ecc_chunk_size < mtd->oobsize) { in legacy_set_geometry()
1338 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_page()
1520 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_oob()
1524 mtd->oobsize); in gpmi_ecc_read_oob()
1589 mtd->writesize + mtd->oobsize); in gpmi_ecc_read_page_raw()
1636 if (oob_byte_off < mtd->oobsize) in gpmi_ecc_read_page_raw()
1639 mtd->oobsize - oob_byte_off); in gpmi_ecc_read_page_raw()
1710 if (oob_required && oob_byte_off < mtd->oobsize) in gpmi_ecc_write_page_raw()
[all …]
/linux/drivers/mtd/parsers/
A Dsharpslpart.c104 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()
/linux/drivers/mtd/nand/raw/ingenic/
A Dingenic_nand_drv.c95 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free()
130 oobregion->length = mtd->oobsize - ecc->total - 3; in jz4725b_ooblayout_free()
229 if (eccbytes > mtd->oobsize - 2) { in ingenic_nand_attach_chip()
232 eccbytes, mtd->oobsize - 2); in ingenic_nand_attach_chip()

Completed in 71 milliseconds

1234