Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dqcom_nandc.c1587 u8 *data_buf, u8 *oob_buf, int page, int cw) in qcom_nandc_read_cw_raw() argument
1634 read_data_dma(nandc, reg_off, oob_buf, oob_size1, 0); in qcom_nandc_read_cw_raw()
1640 read_data_dma(nandc, reg_off, oob_buf + oob_size1, oob_size2, 0); in qcom_nandc_read_cw_raw()
1669 u8 *oob_buf, unsigned long uncorrectable_cws, in check_for_erased_page() argument
1681 if (!oob_buf) { in check_for_erased_page()
1683 oob_buf = chip->oob_poi; in check_for_erased_page()
1697 cw_oob_buf = oob_buf + (cw * ecc->bytes); in check_for_erased_page()
1728 u8 *oob_buf, int page) in parse_read_errors() argument
1738 u8 *data_buf_start = data_buf, *oob_buf_start = oob_buf; in parse_read_errors()
1812 if (oob_buf) in parse_read_errors()
[all …]
Dtegra_nand.c494 void *buf, void *oob_buf, int oob_len, int page, in tegra_nand_page_xfer() argument
540 if (oob_buf) { in tegra_nand_page_xfer()
541 dma_addr_oob = dma_map_single(ctrl->dev, oob_buf, mtd->oobsize, in tegra_nand_page_xfer()
560 if (oob_buf) in tegra_nand_page_xfer()
575 if (oob_buf) in tegra_nand_page_xfer()
607 if (oob_buf) in tegra_nand_page_xfer()
620 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_read_page_raw() local
622 return tegra_nand_page_xfer(mtd, chip, buf, oob_buf, in tegra_nand_read_page_raw()
630 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_write_page_raw() local
632 return tegra_nand_page_xfer(mtd, chip, (void *)buf, oob_buf, in tegra_nand_write_page_raw()
[all …]
Dmeson_nand.c420 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte() argument
428 *info |= oob_buf[count]; in meson_nfc_set_user_byte()
429 *info |= oob_buf[count + 1] << 8; in meson_nfc_set_user_byte()
433 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte() argument
441 oob_buf[count] = *info; in meson_nfc_get_user_byte()
442 oob_buf[count + 1] = *info >> 8; in meson_nfc_get_user_byte()
679 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_raw() local
681 meson_nfc_set_data_oob(nand, buf, oob_buf); in meson_nfc_write_page_raw()
691 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_hwecc() local
695 meson_nfc_set_user_byte(nand, oob_buf); in meson_nfc_write_page_hwecc()
[all …]
Ddenali.c329 static int denali_read_raw(struct nand_chip *chip, void *buf, void *oob_buf, in denali_read_raw() argument
334 if (!buf && !oob_buf) in denali_read_raw()
347 if (oob_buf) { in denali_read_raw()
348 ret = denali_oob_xfer(chip, oob_buf, false); in denali_read_raw()
357 const void *oob_buf, int page) in denali_write_raw() argument
361 if (!buf && !oob_buf) in denali_write_raw()
374 if (oob_buf) { in denali_write_raw()
375 ret = denali_oob_xfer(chip, (void *)oob_buf, true); in denali_write_raw()
Dmxc_nand.c823 void *oob_buf; in mxc_nand_read_page() local
826 oob_buf = chip->oob_poi; in mxc_nand_read_page()
828 oob_buf = NULL; in mxc_nand_read_page()
830 return host->devtype_data->read_page(chip, buf, oob_buf, 1, page); in mxc_nand_read_page()
837 void *oob_buf; in mxc_nand_read_page_raw() local
840 oob_buf = chip->oob_poi; in mxc_nand_read_page_raw()
842 oob_buf = NULL; in mxc_nand_read_page_raw()
844 return host->devtype_data->read_page(chip, buf, oob_buf, 0, page); in mxc_nand_read_page_raw()
Dmarvell_nand.c1021 u8 *data_buf, u8 *oob_buf, in marvell_nfc_hw_ecc_hmg_do_read_page() argument
1063 memcpy(oob_buf, nfc->dma_buf + lt->data_bytes, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_read_page()
1066 marvell_nfc_xfer_data_in_pio(nfc, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_read_page()
1133 const u8 *oob_buf, bool raw, in marvell_nfc_hw_ecc_hmg_do_write_page() argument
1171 memcpy(nfc->dma_buf + lt->data_bytes, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page()
1176 marvell_nfc_xfer_data_out_pio(nfc, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page()
Dlpc32xx_mlc.c194 uint8_t *oob_buf; member
Dnand_base.c3781 uint8_t *oob_buf = chip->oob_poi; in nand_write_subpage_hwecc() local
3813 memset(oob_buf, 0xff, oob_bytes); in nand_write_subpage_hwecc()
3817 oob_buf += oob_bytes; in nand_write_subpage_hwecc()
/drivers/mtd/
Dssfdc.c197 static int get_logical_address(uint8_t *oob_buf) in get_logical_address() argument
210 block_address = ((int)oob_buf[offset[j]] << 8) | in get_logical_address()
211 oob_buf[offset[j]+1]; in get_logical_address()
243 uint8_t oob_buf[OOB_SIZE]; in build_logical_block_map() local
258 ret = read_raw_oob(mtd, offset, oob_buf); in build_logical_block_map()
264 block_address = get_logical_address(oob_buf); in build_logical_block_map()
Dmtdswap.c127 char *oob_buf; member
335 ops.oobbuf = d->oob_buf; in mtdswap_read_markers()
345 data = (struct mtdswap_oobdata *)d->oob_buf; in mtdswap_read_markers()
347 (d->oob_buf + d->mtd->oobavail); in mtdswap_read_markers()
881 unsigned char *p2 = (unsigned char *)d->oob_buf; in mtdswap_eblk_passes()
890 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes()
899 memset(d->oob_buf, patt, mtd->oobavail); in mtdswap_eblk_passes()
993 kfree(d->oob_buf); in mtdswap_cleanup()
1313 d->oob_buf = kmalloc_array(2, mtd->oobavail, GFP_KERNEL); in mtdswap_init()
1314 if (!d->oob_buf) in mtdswap_init()
/drivers/mtd/nand/onenand/
Donenand_base.c1056 this->read_bufferram(mtd, ONENAND_SPARERAM, this->oob_buf, 0, in onenand_transfer_auto_oob()
1058 return mtd_ooblayout_get_databytes(mtd, buf, this->oob_buf, in onenand_transfer_auto_oob()
1604 u_char *oob_buf = this->oob_buf; in onenand_verify_oob() local
1615 this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_verify_oob()
1617 if (buf[i] != 0xFF && buf[i] != oob_buf[i]) in onenand_verify_oob()
1771 static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, in onenand_fill_auto_oob() argument
1774 return mtd_ooblayout_set_databytes(mtd, buf, oob_buf, column, thislen); in onenand_fill_auto_oob()
1844 oobbuf = this->oob_buf; in onenand_write_ops_nolock()
2008 oobbuf = this->oob_buf; in onenand_write_oob_nolock()
2789 oobbuf = this->oob_buf; in onenand_otp_write_oob_nolock()
[all …]
Donenand_samsung.c130 void *oob_buf; member
409 s = onenand->oob_buf; in s3c_onenand_command()
485 p = onenand->oob_buf; in s3c_get_bufferram()
888 onenand->oob_buf = devm_kzalloc(&pdev->dev, 128, GFP_KERNEL); in s3c_onenand_probe()
889 if (!onenand->oob_buf) in s3c_onenand_probe()