Lines Matching defs:buffer

443 	 * The auxiliary buffer contains the metadata and the ECC status. The
837 /* Can we use the upper's buffer directly for DMA? */
845 /* first try to map the upper buffer directly */
856 /* We have to use our own DMA buffer. */
1127 * [2] Allocate a read/write data buffer.
1129 * We allocate a PAGE_SIZE length buffer if gpmi_alloc_dma_buffer
1131 * buffer of the real NAND page size when the gpmi_alloc_dma_buffer
1258 * try to correct the bitflips in buffer up to
1261 * ECC failure. Otherwise we use the corrected buffer.
1348 * We fill the caller's buffer with set bits, and then copy the
1349 * block mark to th caller's buffer. Note that, if block mark
1351 * rely on the first byte of the auxiliary buffer to contain
1456 * input buffer as we can't modify the const buffer.
1508 * -------------+-------------------------+ return it in a buffer |
1535 /* clear the OOB buffer */
1550 /* Read the block mark into the first byte of the OOB buffer. */
1620 * Copy the metadata section into the oob buffer (this section is
1689 * Initialize all bits to 1 in case we don't have a buffer for the
1697 * First copy the metadata section (stored in oob buffer) at the
1816 u8 *buffer = nand_get_data_buf(chip);
1840 ret = nand_read_page_op(chip, page, 12, buffer,
1846 if (!memcmp(buffer, fingerprint, strlen(fingerprint))) {
1876 u8 *buffer = nand_get_data_buf(chip);
1906 /* Write the NCB fingerprint into the page buffer. */
1907 memset(buffer, ~0, mtd->writesize);
1908 memcpy(buffer + 12, fingerprint, strlen(fingerprint));
1919 status = chip->ecc.write_page_raw(chip, buffer, 0, page);
2462 * Allocate a temporary DMA buffer for reading ID in the