• Home
  • Raw
  • Download

Lines Matching refs:data_buf

966 static bool erased_chunk_check_and_fixup(u8 *data_buf, int data_len)  in erased_chunk_check_and_fixup()  argument
976 empty1 = data_buf[3]; in erased_chunk_check_and_fixup()
977 empty2 = data_buf[175]; in erased_chunk_check_and_fixup()
985 data_buf[3] = 0xff; in erased_chunk_check_and_fixup()
986 data_buf[175] = 0xff; in erased_chunk_check_and_fixup()
993 if (memchr_inv(data_buf, 0xff, data_len)) { in erased_chunk_check_and_fixup()
994 data_buf[3] = empty1; in erased_chunk_check_and_fixup()
995 data_buf[175] = empty2; in erased_chunk_check_and_fixup()
1013 static int parse_read_errors(struct qcom_nand_host *host, u8 *data_buf, in parse_read_errors() argument
1050 erased = erased_chunk_check_and_fixup(data_buf, in parse_read_errors()
1055 data_buf += data_len; in parse_read_errors()
1073 ret = nand_check_erased_ecc_chunk(data_buf, in parse_read_errors()
1092 data_buf += data_len; in parse_read_errors()
1104 static int read_page_ecc(struct qcom_nand_host *host, u8 *data_buf, in read_page_ecc() argument
1127 if (data_buf) in read_page_ecc()
1128 read_data_dma(nandc, FLASH_BUF_ACC, data_buf, in read_page_ecc()
1148 if (data_buf) in read_page_ecc()
1149 data_buf += data_size; in read_page_ecc()
1204 u8 *data_buf, *oob_buf = NULL; in qcom_nandc_read_page() local
1207 data_buf = buf; in qcom_nandc_read_page()
1210 ret = read_page_ecc(host, data_buf, oob_buf); in qcom_nandc_read_page()
1216 return parse_read_errors(host, data_buf, oob_buf); in qcom_nandc_read_page()
1226 u8 *data_buf, *oob_buf; in qcom_nandc_read_page_raw() local
1230 data_buf = buf; in qcom_nandc_read_page_raw()
1255 read_data_dma(nandc, reg_off, data_buf, data_size1); in qcom_nandc_read_page_raw()
1257 data_buf += data_size1; in qcom_nandc_read_page_raw()
1263 read_data_dma(nandc, reg_off, data_buf, data_size2); in qcom_nandc_read_page_raw()
1265 data_buf += data_size2; in qcom_nandc_read_page_raw()
1309 u8 *data_buf, *oob_buf; in qcom_nandc_write_page() local
1314 data_buf = (u8 *)buf; in qcom_nandc_write_page()
1334 write_data_dma(nandc, FLASH_BUF_ACC, data_buf, data_size); in qcom_nandc_write_page()
1352 data_buf += data_size; in qcom_nandc_write_page()
1373 u8 *data_buf, *oob_buf; in qcom_nandc_write_page_raw() local
1378 data_buf = (u8 *)buf; in qcom_nandc_write_page_raw()
1403 write_data_dma(nandc, reg_off, data_buf, data_size1); in qcom_nandc_write_page_raw()
1405 data_buf += data_size1; in qcom_nandc_write_page_raw()
1411 write_data_dma(nandc, reg_off, data_buf, data_size2); in qcom_nandc_write_page_raw()
1413 data_buf += data_size2; in qcom_nandc_write_page_raw()