Home
last modified time | relevance | path

Searched refs:page_ptr (Results 1 – 1 of 1) sorted by relevance

/components/drivers/mtd/
A Dmtd_nand.c201 rt_uint8_t *page_ptr; in mtd_nand_read() local
212 page_ptr = rt_malloc(nand->page_size + nand->oob_size); in mtd_nand_read()
213 if (page_ptr == RT_NULL) in mtd_nand_read()
219 oob_ptr = page_ptr + nand->page_size; in mtd_nand_read()
228 mtd_dump_hex(page_ptr, nand->page_size); in mtd_nand_read()
231 rt_free(page_ptr); in mtd_nand_read()
267 rt_uint8_t *page_ptr; in mtd_nand_write() local
280 if (page_ptr == RT_NULL) in mtd_nand_write()
286 oob_ptr = page_ptr + nand->page_size; in mtd_nand_write()
290 page_ptr[index] = index & 0xff; in mtd_nand_write()
[all …]

Completed in 3 milliseconds