Lines Matching defs:buf
1659 * top-level API can be called with only data buf or OOB buf so use
1660 * chip->data_buf if data buf is null and chip->oob_poi if oob buf
1735 struct read_stats *buf;
1740 buf = (struct read_stats *)nandc->reg_read_buf;
1743 for (i = 0; i < ecc->steps; i++, buf++) {
1755 flash = le32_to_cpu(buf->flash);
1756 buffer = le32_to_cpu(buf->buffer);
1757 erased_cw = le32_to_cpu(buf->erased_cw);
1944 static int qcom_nandc_read_page(struct nand_chip *chip, uint8_t *buf,
1952 data_buf = buf;
1961 static int qcom_nandc_read_page_raw(struct nand_chip *chip, uint8_t *buf,
1968 u8 *data_buf = buf, *oob_buf = chip->oob_poi;
2001 static int qcom_nandc_write_page(struct nand_chip *chip, const uint8_t *buf,
2015 data_buf = (u8 *)buf;
2072 const uint8_t *buf, int oob_required,
2086 data_buf = (u8 *)buf;
2281 u8 *buf = nandc->data_buffer;
2293 ret = buf[nandc->buf_start++];
2298 static void qcom_nandc_read_buf(struct nand_chip *chip, uint8_t *buf, int len)
2303 memcpy(buf, nandc->data_buffer + nandc->buf_start, real_len);
2307 static void qcom_nandc_write_buf(struct nand_chip *chip, const uint8_t *buf,
2313 memcpy(nandc->data_buffer + nandc->buf_start, buf, real_len);