Lines Matching defs:read
183 /* we read at most 3 registers per codeword scan */
212 /* Returns the dma address for reg read buffer */
371 * @data_buffer: our local DMA buffer for page read/writes,
378 * @reg_read_dma: contains dma address for register read buffer
385 * @reg_read_pos: marker for data read in reg_read_buf
512 * the driver for read/write operation.
514 * upcoming read/write
804 * update_rw_regs: set up read/write register values, these will be
807 * @num_cw: number of steps for the read/write operation
808 * @read: read or write operation
811 static void update_rw_regs(struct qcom_nand_host *host, int num_cw, bool read, int cw)
817 if (read) {
850 if (read)
939 static int prep_bam_dma_desc_cmd(struct qcom_nand_controller *nandc, bool read,
952 if (read)
994 static int prep_bam_dma_desc_data(struct qcom_nand_controller *nandc, bool read,
1001 if (read) {
1025 static int prep_adm_dma_desc(struct qcom_nand_controller *nandc, bool read,
1045 if (read) {
1062 if (read) {
1105 * read_reg_dma: prepares a descriptor to read a given number of
1109 * @num_regs: number of registers to read
1202 * @vaddr: virtual address of the buffer we want to read from
1381 /* reset the register read buffer for next NAND operation */
1389 * when using BCH ECC, the HW flags an error in NAND_FLASH_STATUS if it read
1461 /* performs raw read for one codeword */
1528 dev_err(nandc->dev, "failure to read raw cw %d\n", cw);
1545 * 2. Perform raw read for all the CW which has uncorrectable errors.
1607 * reads back status registers set by the controller to notify page read
1661 * complete page is read i.e. data_buf is not NULL.
1676 * EIO will be returned for page read.
1710 * helper to perform the actual page read operation, used by ecc->read_page(),
1757 * when ecc is enabled, the controller doesn't read the real
1781 dev_err(nandc->dev, "failure to read page/oob\n");
1804 /* prepare a clean read buffer */
2163 * configure registers for a raw sub page read, the address is set to
2176 dev_warn(nandc->dev, "error when trying to read BBM\n");
2307 * This layout is read as is when ECC is disabled. When ECC is enabled, the
2309 * and assumed as 0xffs when we read a page/oob. The ECC, unused and
2475 * DATA_UD_BYTES varies based on whether the read/write command protects
2781 dev_err(nandc->dev, "failure in submitting read id descriptor\n");
3054 * data like ID and status, and preforming read-copy-write operations
3113 * Initially allocate BAM transaction to read ONFI param page.
3168 * access to operational registers are read only
3282 * the bad block marker is readable only when we read the last codeword
3284 * helpers don't allow us to read BB from a nand chip with ECC