/linux-6.1.9/drivers/mtd/ |
D | ssfdc.c | 197 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()
|
D | mtdswap.c | 127 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() 880 unsigned char *p2 = (unsigned char *)d->oob_buf; in mtdswap_eblk_passes() 889 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes() 898 memset(d->oob_buf, patt, mtd->oobavail); in mtdswap_eblk_passes() 992 kfree(d->oob_buf); in mtdswap_cleanup() 1311 d->oob_buf = kmalloc_array(2, mtd->oobavail, GFP_KERNEL); in mtdswap_init() 1312 if (!d->oob_buf) in mtdswap_init()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | qcom_nandc.c | 1729 u8 *data_buf, u8 *oob_buf, int page, int cw) in qcom_nandc_read_cw_raw() argument 1780 read_data_dma(nandc, reg_off, oob_buf, oob_size1, 0); in qcom_nandc_read_cw_raw() 1786 read_data_dma(nandc, reg_off, oob_buf + oob_size1, oob_size2, 0); in qcom_nandc_read_cw_raw() 1815 u8 *oob_buf, unsigned long uncorrectable_cws, in check_for_erased_page() argument 1827 if (!oob_buf) { in check_for_erased_page() 1829 oob_buf = chip->oob_poi; in check_for_erased_page() 1843 cw_oob_buf = oob_buf + (cw * ecc->bytes); in check_for_erased_page() 1874 u8 *oob_buf, int page) in parse_read_errors() argument 1884 u8 *data_buf_start = data_buf, *oob_buf_start = oob_buf; in parse_read_errors() 1957 if (oob_buf) in parse_read_errors() [all …]
|
D | tegra_nand.c | 497 void *buf, void *oob_buf, int oob_len, int page, in tegra_nand_page_xfer() argument 543 if (oob_buf) { in tegra_nand_page_xfer() 544 dma_addr_oob = dma_map_single(ctrl->dev, oob_buf, mtd->oobsize, in tegra_nand_page_xfer() 563 if (oob_buf) in tegra_nand_page_xfer() 578 if (oob_buf) in tegra_nand_page_xfer() 610 if (oob_buf) in tegra_nand_page_xfer() 623 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_read_page_raw() local 625 return tegra_nand_page_xfer(mtd, chip, buf, oob_buf, in tegra_nand_read_page_raw() 633 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_write_page_raw() local 635 return tegra_nand_page_xfer(mtd, chip, (void *)buf, oob_buf, in tegra_nand_write_page_raw() [all …]
|
D | rockchip-nand-controller.c | 184 u32 *oob_buf; member 649 nfc->oob_buf[i] = reg; in rk_nfc_write_page_hwecc() 651 nfc->oob_buf[i * (oob_step / 4)] = reg; in rk_nfc_write_page_hwecc() 656 dma_oob = dma_map_single(nfc->dev, nfc->oob_buf, in rk_nfc_write_page_hwecc() 772 dma_oob = dma_map_single(nfc->dev, nfc->oob_buf, in rk_nfc_read_page_hwecc() 817 tmp = nfc->oob_buf[i]; in rk_nfc_read_page_hwecc() 819 tmp = nfc->oob_buf[i * (oob_step / 4)]; in rk_nfc_read_page_hwecc() 1053 if (nfc->oob_buf && new_oob_len > nfc->oob_buf_size) { in rk_nfc_attach_chip() 1054 buf = krealloc(nfc->oob_buf, new_oob_len, in rk_nfc_attach_chip() 1061 nfc->oob_buf = buf; in rk_nfc_attach_chip() [all …]
|
D | meson_nand.c | 422 static void meson_nfc_set_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_set_user_byte() argument 430 *info |= oob_buf[count]; in meson_nfc_set_user_byte() 431 *info |= oob_buf[count + 1] << 8; in meson_nfc_set_user_byte() 435 static void meson_nfc_get_user_byte(struct nand_chip *nand, u8 *oob_buf) in meson_nfc_get_user_byte() argument 443 oob_buf[count] = *info; in meson_nfc_get_user_byte() 444 oob_buf[count + 1] = *info >> 8; in meson_nfc_get_user_byte() 678 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_raw() local 680 meson_nfc_set_data_oob(nand, buf, oob_buf); in meson_nfc_write_page_raw() 690 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_hwecc() local 694 meson_nfc_set_user_byte(nand, oob_buf); in meson_nfc_write_page_hwecc() [all …]
|
D | denali.c | 329 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()
|
D | mxc_nand.c | 821 void *oob_buf; in mxc_nand_read_page() local 824 oob_buf = chip->oob_poi; in mxc_nand_read_page() 826 oob_buf = NULL; in mxc_nand_read_page() 828 return host->devtype_data->read_page(chip, buf, oob_buf, 1, page); in mxc_nand_read_page() 835 void *oob_buf; in mxc_nand_read_page_raw() local 838 oob_buf = chip->oob_poi; in mxc_nand_read_page_raw() 840 oob_buf = NULL; in mxc_nand_read_page_raw() 842 return host->devtype_data->read_page(chip, buf, oob_buf, 0, page); in mxc_nand_read_page_raw()
|
D | marvell_nand.c | 1027 u8 *data_buf, u8 *oob_buf, in marvell_nfc_hw_ecc_hmg_do_read_page() argument 1069 memcpy(oob_buf, nfc->dma_buf + lt->data_bytes, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_read_page() 1072 marvell_nfc_xfer_data_in_pio(nfc, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_read_page() 1139 const u8 *oob_buf, bool raw, in marvell_nfc_hw_ecc_hmg_do_write_page() argument 1176 memcpy(nfc->dma_buf + lt->data_bytes, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page() 1181 marvell_nfc_xfer_data_out_pio(nfc, oob_buf, oob_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page()
|
D | lpc32xx_mlc.c | 193 uint8_t *oob_buf; member
|
D | nand_base.c | 4081 uint8_t *oob_buf = chip->oob_poi; in nand_write_subpage_hwecc() local 4113 memset(oob_buf, 0xff, oob_bytes); in nand_write_subpage_hwecc() 4117 oob_buf += oob_bytes; in nand_write_subpage_hwecc()
|
/linux-6.1.9/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 1056 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() 1616 u_char *oob_buf = this->oob_buf; in onenand_verify_oob() local 1627 this->read_bufferram(mtd, ONENAND_SPARERAM, oob_buf, 0, mtd->oobsize); in onenand_verify_oob() 1629 if (buf[i] != 0xFF && buf[i] != oob_buf[i]) in onenand_verify_oob() 1783 static int onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, in onenand_fill_auto_oob() argument 1786 return mtd_ooblayout_set_databytes(mtd, buf, oob_buf, column, thislen); in onenand_fill_auto_oob() 1856 oobbuf = this->oob_buf; in onenand_write_ops_nolock() 2017 oobbuf = this->oob_buf; in onenand_write_oob_nolock() 2796 oobbuf = this->oob_buf; in onenand_otp_write_oob_nolock() [all …]
|
D | onenand_samsung.c | 130 void *oob_buf; member 410 s = onenand->oob_buf; in s3c_onenand_command() 486 p = onenand->oob_buf; in s3c_get_bufferram() 889 onenand->oob_buf = devm_kzalloc(&pdev->dev, 128, GFP_KERNEL); in s3c_onenand_probe() 890 if (!onenand->oob_buf) in s3c_onenand_probe()
|
/linux-6.1.9/include/linux/mtd/ |
D | onenand.h | 128 unsigned char *oob_buf; member
|