Home
last modified time | relevance | path

Searched refs:oob_buf (Results 1 – 7 of 7) sorted by relevance

/drivers/mtd/
Dssfdc.c200 static int get_logical_address(uint8_t *oob_buf) in get_logical_address() argument
213 block_address = ((int)oob_buf[offset[j]] << 8) | in get_logical_address()
214 oob_buf[offset[j]+1]; in get_logical_address()
246 uint8_t oob_buf[OOB_SIZE]; in build_logical_block_map() local
261 ret = read_raw_oob(mtd, offset, oob_buf); in build_logical_block_map()
267 block_address = get_logical_address(oob_buf); in build_logical_block_map()
Dmtdswap.c140 char *oob_buf; member
350 ops.oobbuf = d->oob_buf; in mtdswap_read_markers()
360 data = (struct mtdswap_oobdata *)d->oob_buf; in mtdswap_read_markers()
362 (d->oob_buf + d->mtd->ecclayout->oobavail); in mtdswap_read_markers()
930 unsigned char *p2 = (unsigned char *)d->oob_buf; in mtdswap_eblk_passes()
939 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes()
948 memset(d->oob_buf, patt, mtd->ecclayout->oobavail); in mtdswap_eblk_passes()
1042 kfree(d->oob_buf); in mtdswap_cleanup()
1390 d->oob_buf = kmalloc(2 * mtd->ecclayout->oobavail, GFP_KERNEL); in mtdswap_init()
1391 if (!d->oob_buf) in mtdswap_init()
/drivers/mtd/onenand/
Dsamsung.c137 void __iomem *oob_buf; member
417 s = (unsigned int *) onenand->oob_buf; in s3c_onenand_command()
493 p = (unsigned char *) onenand->oob_buf; in s3c_get_bufferram()
931 onenand->oob_buf = kzalloc(128, GFP_KERNEL); in s3c_onenand_probe()
932 if (!onenand->oob_buf) { in s3c_onenand_probe()
1010 kfree(onenand->oob_buf); in s3c_onenand_probe()
1054 kfree(onenand->oob_buf); in s3c_onenand_remove()
Donenand_base.c1032 uint8_t *oob_buf = this->oob_buf; in onenand_transfer_auto_oob() local
1042 this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_transfer_auto_oob()
1050 memcpy(buf, oob_buf + st, n); in onenand_transfer_auto_oob()
1649 u_char *oob_buf = this->oob_buf; in onenand_verify_oob() local
1660 this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_verify_oob()
1662 if (buf[i] != 0xFF && buf[i] != oob_buf[i]) in onenand_verify_oob()
1822 static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, in onenand_fill_auto_oob() argument
1847 memcpy(oob_buf + st, buf, n); in onenand_fill_auto_oob()
1927 oobbuf = this->oob_buf; in onenand_write_ops_nolock()
2100 oobbuf = this->oob_buf; in onenand_write_oob_nolock()
[all …]
/drivers/mtd/nand/
Ddocg4.c88 uint8_t oob_buf[16]; member
737 memcpy(nand->oob_poi, doc->oob_buf, 16); in docg4_command()
1008 memcpy(doc->oob_buf, nand->oob_poi, 16); in docg4_write_oob()
Dlpc32xx_mlc.c190 uint8_t *oob_buf; member
Dnand_base.c2142 uint8_t *oob_buf = chip->oob_poi; in nand_write_subpage_hwecc() local
2169 memset(oob_buf, 0xff, oob_bytes); in nand_write_subpage_hwecc()
2173 oob_buf += oob_bytes; in nand_write_subpage_hwecc()