/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A 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()
|
A D | nand_hynix.c | 413 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 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()
|
A D | nand_jedec.c | 105 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_jedec_detect() 106 mtd->oobsize = memorg->oobsize; in nand_jedec_detect()
|
A 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 …]
|
A 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 …]
|
A D | nand_base.c | 2929 size += mtd->oobsize; in nand_monolithic_read_page_raw() 3689 int length = mtd->oobsize; in nand_read_oob_syndrome() 3744 mtd->oobsize); in nand_write_oob_std() 4014 size += mtd->oobsize; in nand_monolithic_write_page_raw() 4934 mtd->oobsize = memorg->oobsize; in nand_decode_ext_id() 4964 mtd->oobsize = memorg->oobsize; in nand_decode_id() 5008 memorg->oobsize = type->oobsize; in find_full_id_nand() 5009 mtd->oobsize = memorg->oobsize; in find_full_id_nand() 6240 switch (mtd->oobsize) { in nand_scan_tail() 6265 mtd->oobsize); in nand_scan_tail() [all …]
|
A 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() 911 bits_per_step, oobsize); in tegra_nand_select_strength() 959 ret = tegra_nand_select_strength(chip, mtd->oobsize); in tegra_nand_attach_chip() [all …]
|
A 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()
|
A 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 …]
|
A 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()
|
A 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()
|
A D | nand_onfi.c | 256 memorg->oobsize = le16_to_cpu(p->spare_bytes_per_page); in nand_onfi_detect() 257 mtd->oobsize = memorg->oobsize; in nand_onfi_detect()
|
A 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()
|
/linux-6.3-rc2/drivers/mtd/nand/spi/ |
A D | alliancememory.c | 37 if (mtd->oobsize == 64) in am_get_eccsize() 39 else if (mtd->oobsize == 128) in am_get_eccsize() 41 else if (mtd->oobsize == 256) in am_get_eccsize() 56 region->offset = mtd->oobsize - ecc_bytes; in am_ooblayout_ecc() 85 region->length = mtd->oobsize - 2 - ecc_bytes; in am_ooblayout_free() 106 if (spinand->base.mtd.oobsize == 64) in am_ecc_get_status() 119 if (spinand->base.mtd.oobsize == 64) in am_ecc_get_status()
|
A 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()
|
A 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()
|
/linux-6.3-rc2/drivers/mtd/tests/ |
A 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()
|
/linux-6.3-rc2/drivers/mtd/nand/onenand/ |
A D | onenand_base.c | 742 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() 1998 oobsize = mtd->oobavail; in onenand_write_oob_nolock() 2000 oobsize = mtd->oobsize; in onenand_write_oob_nolock() 2792 oobsize = mtd->oobsize; in onenand_otp_write_oob_nolock() 3206 : mtd->oobsize); in onenand_lock_user_prot_reg() 3524 .ooblen = mtd->oobsize, in flexonenand_check_blocks_erased() 3549 if (i != mtd->oobsize) { in flexonenand_check_blocks_erased() [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/ |
A 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()
|
A 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()
|
/linux-6.3-rc2/drivers/mtd/nand/raw/gpmi-nand/ |
A D | gpmi-nand.c | 336 if (geo->eccn_chunk_size < mtd->oobsize) { in set_geometry_by_ecc_info() 339 ecc_step, mtd->oobsize); in set_geometry_by_ecc_info() 598 while (geo->eccn_chunk_size < mtd->oobsize) { in legacy_set_geometry() 713 if (mtd->oobsize > 1024) { in common_nfc_set_geometry() 1559 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_page() 1758 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_oob() 1762 mtd->oobsize); in gpmi_ecc_read_oob() 1827 mtd->writesize + mtd->oobsize); in gpmi_ecc_read_page_raw() 1874 if (oob_byte_off < mtd->oobsize) in gpmi_ecc_read_page_raw() 1877 mtd->oobsize - oob_byte_off); in gpmi_ecc_read_page_raw() [all …]
|
/linux-6.3-rc2/drivers/mtd/parsers/ |
A 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()
|
/linux-6.3-rc2/drivers/mtd/nand/raw/atmel/ |
A D | pmecc.h | 43 int oobsize; member
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ingenic/ |
A 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()
|