/linux/drivers/mtd/tests/ |
A D | oobtest.c | 241 mtd->oobavail - k); in verify_eraseblock() 267 size_t oobavail = mtd->oobavail; in verify_eraseblock_in_one_go() local 296 writebuf + (i * oobavail), oobavail); in verify_eraseblock_in_one_go() 394 use_len = mtd->oobavail; in mtd_oobtest_init() 395 use_len_max = mtd->oobavail; in mtd_oobtest_init() 460 use_len = mtd->oobavail; in mtd_oobtest_init() 461 use_len_max = mtd->oobavail; in mtd_oobtest_init() 471 use_len = mtd->oobavail; in mtd_oobtest_init() 472 use_len_max = mtd->oobavail; in mtd_oobtest_init() 480 use_len = mtd->oobavail; in mtd_oobtest_init() [all …]
|
/linux/fs/jffs2/ |
A D | wbuf.c | 1037 int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_check_oob_empty() 1041 ops.ooblen = NR_OOB_SCAN_PAGES * c->oobavail; in jffs2_check_oob_empty() 1080 int ret, cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_check_nand_cleanmarker() 1105 int cmlen = min_t(int, c->oobavail, OOB_CM_SIZE); in jffs2_write_nand_cleanmarker() 1192 if (c->mtd->oobavail == 0) { in jffs2_nand_flash_setup() 1199 c->oobavail = c->mtd->oobavail; in jffs2_nand_flash_setup() 1211 c->oobbuf = kmalloc_array(NR_OOB_SCAN_PAGES, c->oobavail, GFP_KERNEL); in jffs2_nand_flash_setup()
|
A D | jffs2_fs_sb.h | 140 int oobavail; /* How many bytes are available for JFFS2 in OOB */ member
|
/linux/drivers/mtd/ |
A D | mtdswap.c | 334 ops.ooblen = 2 * d->mtd->oobavail; in mtdswap_read_markers() 347 (d->oob_buf + d->mtd->oobavail); in mtdswap_read_markers() 886 ops.ooblen = mtd->oobavail; in mtdswap_eblk_passes() 898 memset(d->oob_buf, patt, mtd->oobavail); in mtdswap_eblk_passes() 917 for (j = 0; j < mtd->oobavail; j++) in mtdswap_eblk_passes() 1311 d->oob_buf = kmalloc_array(2, mtd->oobavail, GFP_KERNEL); in mtdswap_init() 1370 if (!mtd->oobsize || mtd->oobavail < MTDSWAP_OOBSIZE) { in mtdswap_add_mtd() 1373 MTDSWAP_PREFIX, mtd->oobavail, MTDSWAP_OOBSIZE); in mtdswap_add_mtd()
|
A D | mtdcore.c | 204 return sysfs_emit(buf, "%u\n", mtd->oobavail); in mtd_oobavail_show() 206 MTD_DEVICE_ATTR_RO(oobavail); 1499 unsigned int wunit, oobavail; in mtd_io_emulated_slc() local 1510 oobavail = mtd_oobavail(mtd, ops); in mtd_io_emulated_slc() 1528 if (adjops.ooblen > oobavail - adjops.ooboffs) in mtd_io_emulated_slc() 1529 adjops.ooblen = oobavail - adjops.ooboffs; in mtd_io_emulated_slc()
|
A D | mtdpart.c | 68 child->oobavail = parent->oobavail; in allocate_partition()
|
A D | mtdconcat.c | 682 concat->mtd.oobavail = subdev[0]->oobavail; in mtd_concat_create()
|
A D | mtdchar.c | 485 to->oobavail += to->oobfree[i].length; in shrink_ecclayout()
|
/linux/include/uapi/mtd/ |
A D | mtd-abi.h | 240 __u32 oobavail; member
|
/linux/drivers/mtd/nand/raw/ |
A D | nand_base.c | 5723 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 5798 if (ecc_bytes_total > oobavail || in nand_match_ecc_req() 5836 const struct nand_ecc_caps *caps, int oobavail) in nand_maximize_ecc() argument 5866 if (ecc_bytes * nsteps > oobavail) in nand_maximize_ecc() 5914 const struct nand_ecc_caps *caps, int oobavail) in nand_ecc_choose_conf() argument 5919 if (WARN_ON(oobavail < 0 || oobavail > mtd->oobsize)) in nand_ecc_choose_conf() 5923 return nand_check_ecc_caps(chip, caps, oobavail); in nand_ecc_choose_conf() 5926 return nand_maximize_ecc(chip, caps, oobavail); in nand_ecc_choose_conf() 5928 if (!nand_match_ecc_req(chip, caps, oobavail)) in nand_ecc_choose_conf() 5931 return nand_maximize_ecc(chip, caps, oobavail); in nand_ecc_choose_conf() [all …]
|
A D | qcom_nandc.c | 2253 oob_size = mtd->oobavail; in qcom_nandc_write_oob() 2258 0, mtd->oobavail); in qcom_nandc_write_oob()
|
/linux/include/linux/mtd/ |
A D | mtd.h | 265 uint32_t oobavail; // Available OOB bytes per block member 474 return ops->mode == MTD_OPS_AUTO_OOB ? mtd->oobavail : mtd->oobsize; in mtd_oobavail()
|
A D | rawnand.h | 1488 const struct nand_ecc_caps *caps, int oobavail);
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-class-mtd | 236 What: /sys/class/mtd/mtdX/oobavail
|
/linux/drivers/mtd/devices/ |
A D | docg3.c | 1404 oobdelta = mtd->oobavail; in doc_write_oob() 1778 mtd->oobavail = 8; in doc_set_driver_info()
|
/linux/drivers/mtd/nand/onenand/ |
A D | onenand_base.c | 1364 oobsize = mtd->oobavail; in onenand_read_oob_nolock() 1986 oobsize = mtd->oobavail; in onenand_write_oob_nolock() 3931 mtd->oobavail = ret; in onenand_scan()
|
/linux/drivers/mtd/nand/spi/ |
A D | core.c | 1247 mtd->oobavail = ret; in spinand_init()
|