Lines Matching refs:data_buf
1399 static bool erased_chunk_check_and_fixup(u8 *data_buf, int data_len) in erased_chunk_check_and_fixup() argument
1409 empty1 = data_buf[3]; in erased_chunk_check_and_fixup()
1410 empty2 = data_buf[175]; in erased_chunk_check_and_fixup()
1418 data_buf[3] = 0xff; in erased_chunk_check_and_fixup()
1419 data_buf[175] = 0xff; in erased_chunk_check_and_fixup()
1426 if (memchr_inv(data_buf, 0xff, data_len)) { in erased_chunk_check_and_fixup()
1427 data_buf[3] = empty1; in erased_chunk_check_and_fixup()
1428 data_buf[175] = empty2; in erased_chunk_check_and_fixup()
1464 u8 *data_buf, u8 *oob_buf, int page, int cw) in qcom_nandc_read_cw_raw() argument
1515 read_data_dma(nandc, reg_off, data_buf, data_size1, 0); in qcom_nandc_read_cw_raw()
1521 read_data_dma(nandc, reg_off, data_buf + data_size1, data_size2, 0); in qcom_nandc_read_cw_raw()
1551 check_for_erased_page(struct qcom_nand_host *host, u8 *data_buf, in check_for_erased_page() argument
1561 if (!data_buf) in check_for_erased_page()
1562 data_buf = nand_get_data_buf(chip); in check_for_erased_page()
1579 cw_data_buf = data_buf + (cw * host->cw_data); in check_for_erased_page()
1610 static int parse_read_errors(struct qcom_nand_host *host, u8 *data_buf, in parse_read_errors() argument
1621 u8 *data_buf_start = data_buf, *oob_buf_start = oob_buf; in parse_read_errors()
1663 } else if (data_buf) { in parse_read_errors()
1664 erased = erased_chunk_check_and_fixup(data_buf, in parse_read_errors()
1692 if (data_buf) in parse_read_errors()
1693 data_buf += data_len; in parse_read_errors()
1713 static int read_page_ecc(struct qcom_nand_host *host, u8 *data_buf, in read_page_ecc() argument
1719 u8 *data_buf_start = data_buf, *oob_buf_start = oob_buf; in read_page_ecc()
1738 if (data_buf && oob_buf) { in read_page_ecc()
1742 } else if (data_buf) { in read_page_ecc()
1752 if (data_buf) in read_page_ecc()
1753 read_data_dma(nandc, FLASH_BUF_ACC, data_buf, in read_page_ecc()
1773 if (data_buf) in read_page_ecc()
1774 data_buf += data_size; in read_page_ecc()
1891 u8 *data_buf, *oob_buf = NULL; in qcom_nandc_read_page() local
1904 data_buf = buf; in qcom_nandc_read_page()
1909 return read_page_ecc(host, data_buf, oob_buf, page); in qcom_nandc_read_page()
1920 u8 *data_buf = buf, *oob_buf = chip->oob_poi; in qcom_nandc_read_page_raw() local
1926 ret = qcom_nandc_read_cw_raw(mtd, chip, data_buf, oob_buf, in qcom_nandc_read_page_raw()
1931 data_buf += host->cw_data; in qcom_nandc_read_page_raw()
1965 u8 *data_buf, *oob_buf; in qcom_nandc_write_page() local
1979 data_buf = (u8 *)buf; in qcom_nandc_write_page()
1998 write_data_dma(nandc, FLASH_BUF_ACC, data_buf, data_size, in qcom_nandc_write_page()
2017 data_buf += data_size; in qcom_nandc_write_page()
2039 u8 *data_buf, *oob_buf; in qcom_nandc_write_page_raw() local
2049 data_buf = (u8 *)buf; in qcom_nandc_write_page_raw()
2073 write_data_dma(nandc, reg_off, data_buf, data_size1, in qcom_nandc_write_page_raw()
2076 data_buf += data_size1; in qcom_nandc_write_page_raw()
2083 write_data_dma(nandc, reg_off, data_buf, data_size2, in qcom_nandc_write_page_raw()
2086 data_buf += data_size2; in qcom_nandc_write_page_raw()