Lines Matching refs:data_buf
56 uint32_t addr = (uint32_t)info->data_buf; in mxs_nand_flush_data_buf()
63 uint32_t addr = (uint32_t)info->data_buf; in mxs_nand_inval_data_buf()
375 uint8_t *data_buf, uint8_t *oob_buf) in mxs_nand_swap_block_mark() argument
389 src = data_buf[buf_offset] >> bit_offset; in mxs_nand_swap_block_mark()
390 src |= data_buf[buf_offset + 1] << (8 - bit_offset); in mxs_nand_swap_block_mark()
396 data_buf[buf_offset] &= ~(0xff << bit_offset); in mxs_nand_swap_block_mark()
397 data_buf[buf_offset + 1] &= 0xff << bit_offset; in mxs_nand_swap_block_mark()
399 data_buf[buf_offset] |= dst << bit_offset; in mxs_nand_swap_block_mark()
400 data_buf[buf_offset + 1] |= dst >> (8 - bit_offset); in mxs_nand_swap_block_mark()
432 d->cmd.address = (dma_addr_t)nand_info->data_buf; in mxs_nand_read_buf()
480 memcpy(buf, nand_info->data_buf, length); in mxs_nand_read_buf()
508 memcpy(nand_info->data_buf, buf, length); in mxs_nand_write_buf()
518 d->cmd.address = (dma_addr_t)nand_info->data_buf; in mxs_nand_write_buf()
602 d->cmd.pio_words[4] = (dma_addr_t)nand_info->data_buf; in mxs_nand_ecc_read_page()
657 mxs_nand_swap_block_mark(geo, nand_info->data_buf, nand_info->oob_buf); in mxs_nand_ecc_read_page()
693 memcpy(buf, nand_info->data_buf, mtd->writesize); in mxs_nand_ecc_read_page()
714 memcpy(nand_info->data_buf, buf, mtd->writesize); in mxs_nand_ecc_write_page()
718 mxs_nand_swap_block_mark(geo, nand_info->data_buf, nand_info->oob_buf); in mxs_nand_ecc_write_page()
740 d->cmd.pio_words[4] = (dma_addr_t)nand_info->data_buf; in mxs_nand_ecc_write_page()
1076 nand_info->data_buf = buf; in mxs_nand_alloc_buffers()
1263 free(nand_info->data_buf); in mxs_nand_init_ctrl()